From 9286cf949b6a64667ff27756817e31d1657798e3 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Thu, 3 Aug 2023 12:13:57 +0530 Subject: [PATCH 01/58] Updated rust toolchain --- rust-toolchain.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index ab25d60ea..6de056c46 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,5 +1,5 @@ [toolchain] -channel = "nightly-2022-11-15" +channel = "nightly-2023-05-22" components = ["rustfmt", "clippy", "llvm-tools-preview"] profile = "minimal" targets = ["wasm32-unknown-unknown"] From e1aa805ac6e99347390372fa67b6ad0fa5ccce95 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Thu, 3 Aug 2023 12:17:23 +0530 Subject: [PATCH 02/58] Incorporated upstream changes into frame-system --- pallets/system/Cargo.toml | 29 +- pallets/system/README.md | 2 +- pallets/system/benchmarking/Cargo.toml | 12 +- pallets/system/rpc/runtime-api/src/lib.rs | 8 +- .../system/src/extensions/check_genesis.rs | 4 +- .../system/src/extensions/check_mortality.rs | 9 +- .../src/extensions/check_non_zero_sender.rs | 6 +- pallets/system/src/extensions/check_nonce.rs | 6 +- pallets/system/src/extensions/check_weight.rs | 91 ++--- pallets/system/src/lib.rs | 386 +++++++++++------- pallets/system/src/migrations/mod.rs | 16 +- pallets/system/src/mock.rs | 31 +- pallets/system/src/mocking.rs | 10 +- pallets/system/src/offchain.rs | 2 +- pallets/system/src/test_utils.rs | 4 +- pallets/system/src/tests.rs | 154 +++++-- pallets/system/src/weights.rs | 48 +-- 17 files changed, 496 insertions(+), 322 deletions(-) diff --git a/pallets/system/Cargo.toml b/pallets/system/Cargo.toml index dcc03c353..c8b0a3031 100644 --- a/pallets/system/Cargo.toml +++ b/pallets/system/Cargo.toml @@ -18,6 +18,7 @@ avail-core = { version = "0.5", default-features = false, features = ["runtime"] kate = { version = "0.8", default-features = false } # Other +cfg-if = "1.0" impl-trait-for-tuples = "0.2.1" static_assertions = "1.1.0" log = { version = "0.4.17", default-features = false } @@ -25,24 +26,24 @@ rs_merkle = { version = "1.2.0", default-features = false, optional = true } derive_more = { version = "0.99.17", default-features = false, features = ["from", "into"] } # Substrate -codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] } -scale-info = { version = "2.1.1", default-features = false, features = ["derive"] } -serde = { version = "1.0.136", features = ["derive"], optional = true } +codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive"] } +scale-info = { version = "2.5.0", default-features = false, features = ["derive", "serde"] } +serde = { version = "1.0.163", default-features = false, features = ["derive", "alloc"] } frame-support = { version = "4.0.0-dev", default-features = false } -sp-core = { version = "7.0.0", default-features = false } -sp-io = { version = "7.0.0", default-features = false } -sp-runtime = { version = "7.0.0", default-features = false } -sp-std = { version = "5.0.0", default-features = false } -sp-version = { version = "5.0.0", default-features = false } -sp-weights = { version = "4.0.0", default-features = false } -sp-runtime-interface = { version = "7.0.0", default-features = false } -beefy-merkle-tree = { version = "4.0.0-dev", default-features = false } +sp-core = { version = "21.0.0", default-features = false } +sp-io = { version = "23.0.0", default-features = false } +sp-runtime = { version = "24.0.0", default-features = false } +sp-std = { version = "8.0.0", default-features = false } +sp-version = { version = "22.0.0", default-features = false } +sp-weights = { version = "20.0.0", default-features = false } +sp-runtime-interface = { version = "17", default-features = false } +beefy-merkle-tree = { version = "4.0.0-dev", default-features = false, package = "binary-merkle-tree" } [dev-dependencies] hex-literal = "0.3.1" test-case = "1.2.3" -criterion = "0.3.3" -sp-externalities = "0.13" +criterion = "0.4.0" +sp-externalities = "0.19.0" [features] default = ["std"] @@ -54,7 +55,7 @@ std = [ "frame-support/std", "log/std", "scale-info/std", - "serde", + "serde/std", "sp-core/std", "sp-io/std", "sp-runtime-interface/std", diff --git a/pallets/system/README.md b/pallets/system/README.md index c22b41e42..30b2ea737 100644 --- a/pallets/system/README.md +++ b/pallets/system/README.md @@ -33,7 +33,7 @@ The System module defines the following extensions: - [`CheckWeight`]: Checks the weight and length of the block and ensure that it does not exceed the limits. - [`CheckNonce`]: Checks the nonce of the transaction. Contains a single payload of type - `T::Index`. + `T::Nonce`. - [`CheckEra`]: Checks the era of the transaction. Contains a single payload of type `Era`. - [`CheckGenesis`]: Checks the provided genesis hash of the transaction. Must be a part of the signed payload of the transaction. diff --git a/pallets/system/benchmarking/Cargo.toml b/pallets/system/benchmarking/Cargo.toml index 1b6d9760a..e813401aa 100644 --- a/pallets/system/benchmarking/Cargo.toml +++ b/pallets/system/benchmarking/Cargo.toml @@ -21,14 +21,14 @@ scale-info = { version = "2.1.1", default-features = false, features = ["derive" frame-benchmarking = { version = "4.0.0-dev", default-features = false } frame-support = { version = "4.0.0-dev", default-features = false } frame-system = { path = "../", default-features = false } -sp-core = { version = "7.0.0", default-features = false } -sp-runtime = { version = "7.0.0", default-features = false } -sp-std = { version = "5.0.0", default-features = false } +sp-core = { version = "21.0.0", default-features = false } +sp-runtime = { version = "24.0.0", default-features = false } +sp-std = { version = "8.0.0", default-features = false } [dev-dependencies] -sp-io = "7.0.0" -sp-version = "5" -sp-externalities = "0.13" +sp-io = "23.0.0" +sp-version = "22.0.0" +sp-externalities = "0.19.0" [features] default = ["std"] diff --git a/pallets/system/rpc/runtime-api/src/lib.rs b/pallets/system/rpc/runtime-api/src/lib.rs index 6e01bdae2..8ee029520 100644 --- a/pallets/system/rpc/runtime-api/src/lib.rs +++ b/pallets/system/rpc/runtime-api/src/lib.rs @@ -24,12 +24,12 @@ #![cfg_attr(not(feature = "std"), no_std)] sp_api::decl_runtime_apis! { - /// The API to query account nonce (aka transaction index). - pub trait AccountNonceApi where + /// The API to query account nonce + pub trait AccountNonceApi where AccountId: codec::Codec, - Index: codec::Codec, + Nonce: codec::Codec, { /// Get current account nonce of given `AccountId`. - fn account_nonce(account: AccountId) -> Index; + fn account_nonce(account: AccountId) -> Nonce; } } diff --git a/pallets/system/src/extensions/check_genesis.rs b/pallets/system/src/extensions/check_genesis.rs index 443c248de..aa0f4e626 100644 --- a/pallets/system/src/extensions/check_genesis.rs +++ b/pallets/system/src/extensions/check_genesis.rs @@ -22,7 +22,7 @@ use sp_runtime::{ transaction_validity::TransactionValidityError, }; -use crate::{Config, Pallet}; +use crate::{pallet_prelude::BlockNumberFor, Config, Pallet}; /// Genesis hash check to provide replay protection between different networks. /// @@ -59,7 +59,7 @@ impl SignedExtension for CheckGenesis { const IDENTIFIER: &'static str = "CheckGenesis"; fn additional_signed(&self) -> Result { - Ok(>::block_hash(T::BlockNumber::zero())) + Ok(>::block_hash(>::zero())) } fn pre_dispatch( diff --git a/pallets/system/src/extensions/check_mortality.rs b/pallets/system/src/extensions/check_mortality.rs index a168e07f5..f0f9b97ab 100644 --- a/pallets/system/src/extensions/check_mortality.rs +++ b/pallets/system/src/extensions/check_mortality.rs @@ -25,7 +25,7 @@ use sp_runtime::{ }, }; -use crate::{BlockHash, Config, Pallet}; +use crate::{pallet_prelude::BlockNumberFor, BlockHash, Config, Pallet}; /// Check for transaction mortality. /// @@ -76,7 +76,10 @@ impl SignedExtension for CheckMortality { fn additional_signed(&self) -> Result { let current_u64 = >::block_number().saturated_into::(); - let n = self.0.birth(current_u64).saturated_into::(); + let n = self + .0 + .birth(current_u64) + .saturated_into::>(); if !>::contains_key(n) { Err(InvalidTransaction::AncientBirthBlock.into()) } else { @@ -131,7 +134,7 @@ mod tests { fn signed_ext_check_era_should_change_longevity() { new_test_ext().execute_with(|| { let normal = DispatchInfo { - weight: Weight::from_ref_time(100), + weight: Weight::from_parts(100, 0), class: DispatchClass::Normal, pays_fee: Pays::Yes, }; diff --git a/pallets/system/src/extensions/check_non_zero_sender.rs b/pallets/system/src/extensions/check_non_zero_sender.rs index 3308cbb98..f2a7c3d72 100644 --- a/pallets/system/src/extensions/check_non_zero_sender.rs +++ b/pallets/system/src/extensions/check_non_zero_sender.rs @@ -16,7 +16,7 @@ // limitations under the License. use codec::{Decode, Encode}; -use frame_support::dispatch::DispatchInfo; +use frame_support::{dispatch::DispatchInfo, DefaultNoBound}; use scale_info::TypeInfo; use sp_runtime::{ traits::{DispatchInfoOf, Dispatchable, SignedExtension}, @@ -29,9 +29,9 @@ use sp_std::{marker::PhantomData, prelude::*}; use crate::Config; /// Check to ensure that the sender is not the zero address. -#[derive(Encode, Decode, Clone, Eq, PartialEq, TypeInfo)] +#[derive(Encode, Decode, DefaultNoBound, Clone, Eq, PartialEq, TypeInfo)] #[scale_info(skip_type_params(T))] -pub struct CheckNonZeroSender(PhantomData); +pub struct CheckNonZeroSender(PhantomData); impl sp_std::fmt::Debug for CheckNonZeroSender { #[cfg(feature = "std")] diff --git a/pallets/system/src/extensions/check_nonce.rs b/pallets/system/src/extensions/check_nonce.rs index a1c897c4c..bea3bc235 100644 --- a/pallets/system/src/extensions/check_nonce.rs +++ b/pallets/system/src/extensions/check_nonce.rs @@ -38,11 +38,11 @@ use crate::Config; /// some kind of priority upon validating transactions. #[derive(Encode, Decode, Clone, Eq, PartialEq, TypeInfo)] #[scale_info(skip_type_params(T))] -pub struct CheckNonce(#[codec(compact)] pub T::Index); +pub struct CheckNonce(#[codec(compact)] pub T::Nonce); impl CheckNonce { /// utility constructor. Used only in client/factory code. - pub fn from(nonce: T::Index) -> Self { Self(nonce) } + pub fn from(nonce: T::Nonce) -> Self { Self(nonce) } } impl sp_std::fmt::Debug for CheckNonce { @@ -84,7 +84,7 @@ where } .into()); } - account.nonce += T::Index::one(); + account.nonce += T::Nonce::one(); crate::Account::::insert(who, account); Ok(()) } diff --git a/pallets/system/src/extensions/check_weight.rs b/pallets/system/src/extensions/check_weight.rs index 4e2fc8df7..af9cfe37b 100644 --- a/pallets/system/src/extensions/check_weight.rs +++ b/pallets/system/src/extensions/check_weight.rs @@ -177,10 +177,10 @@ where // add the weight. If class is unlimited, use saturating add instead of checked one. if limit_per_class.max_total.is_none() && limit_per_class.reserved.is_none() { - all_weight.add(extrinsic_weight, info.class) + all_weight.accrue(extrinsic_weight, info.class) } else { all_weight - .checked_add(extrinsic_weight, info.class) + .checked_accrue(extrinsic_weight, info.class) .map_err(|_| InvalidTransaction::ExhaustsResources)?; } @@ -272,7 +272,7 @@ where let unspent = post_info.calc_unspent(info); if unspent.any_gt(Weight::zero()) { crate::BlockWeight::::mutate(|current_weight| { - current_weight.sub(unspent, info.class); + current_weight.reduce(unspent, info.class); }) } @@ -357,7 +357,7 @@ mod tests { weight: block_weights() .get(DispatchClass::Normal) .max_extrinsic - .unwrap() + Weight::from_ref_time(1), + .unwrap() + Weight::from_parts(1, 0), class: DispatchClass::Normal, ..Default::default() }; @@ -386,7 +386,7 @@ mod tests { ..Default::default() }; let max = DispatchInfo { - weight: weight + Weight::from_ref_time(1), + weight: weight + Weight::from_parts(1, 0), class: DispatchClass::Operational, ..Default::default() }; @@ -421,11 +421,11 @@ mod tests { // So normal extrinsic can be 758 weight (-5 for base extrinsic weight) // And Operational can be 246 to produce a full block (-10 for base) let max_normal = DispatchInfo { - weight: Weight::from_ref_time(753), + weight: Weight::from_parts(753, 0), ..Default::default() }; let rest_operational = DispatchInfo { - weight: Weight::from_ref_time(246), + weight: Weight::from_parts(246, 0), class: DispatchClass::Operational, ..Default::default() }; @@ -433,12 +433,9 @@ mod tests { let len = 0_usize; assert_ok!(CheckWeight::::do_pre_dispatch(&max_normal, len)); - assert_eq!(System::block_weight().total(), Weight::from_ref_time(768)); + assert_eq!(System::block_weight().total(), Weight::from_parts(768, 0)); assert_ok!(CheckWeight::::do_pre_dispatch(&rest_operational, len)); - assert_eq!( - block_weight_limit(), - Weight::from_ref_time(1024).set_proof_size(u64::MAX) - ); + assert_eq!(block_weight_limit(), Weight::from_parts(1024, u64::MAX)); assert_eq!( System::block_weight().total(), block_weight_limit().set_proof_size(0) @@ -456,11 +453,11 @@ mod tests { new_test_ext().execute_with(|| { // We switch the order of `full_block_with_normal_and_operational` let max_normal = DispatchInfo { - weight: Weight::from_ref_time(753), + weight: Weight::from_parts(753, 0), ..Default::default() }; let rest_operational = DispatchInfo { - weight: Weight::from_ref_time(246), + weight: Weight::from_parts(246, 0), class: DispatchClass::Operational, ..Default::default() }; @@ -469,12 +466,9 @@ mod tests { assert_ok!(CheckWeight::::do_pre_dispatch(&rest_operational, len)); // Extra 20 here from block execution + base extrinsic weight - assert_eq!(System::block_weight().total(), Weight::from_ref_time(266)); + assert_eq!(System::block_weight().total(), Weight::from_parts(266, 0)); assert_ok!(CheckWeight::::do_pre_dispatch(&max_normal, len)); - assert_eq!( - block_weight_limit(), - Weight::from_ref_time(1024).set_proof_size(u64::MAX) - ); + assert_eq!(block_weight_limit(), Weight::from_parts(1024, u64::MAX)); assert_eq!( System::block_weight().total(), block_weight_limit().set_proof_size(0) @@ -488,12 +482,12 @@ mod tests { // An on_initialize takes up the whole block! (Every time!) System::register_extra_weight_unchecked(Weight::MAX, DispatchClass::Mandatory); let dispatch_normal = DispatchInfo { - weight: Weight::from_ref_time(251), + weight: Weight::from_parts(251, 0), class: DispatchClass::Normal, ..Default::default() }; let dispatch_operational = DispatchInfo { - weight: Weight::from_ref_time(246), + weight: Weight::from_parts(246, 0), class: DispatchClass::Operational, ..Default::default() }; @@ -526,11 +520,11 @@ mod tests { fn signed_ext_check_weight_works_operational_tx() { new_test_ext().execute_with(|| { let normal = DispatchInfo { - weight: Weight::from_ref_time(100), + weight: Weight::from_parts(100, 0), ..Default::default() }; let op = DispatchInfo { - weight: Weight::from_ref_time(100), + weight: Weight::from_parts(100, 0), class: DispatchClass::Operational, pays_fee: Pays::Yes, }; @@ -599,7 +593,7 @@ mod tests { new_test_ext().execute_with(|| { let normal_limit = normal_weight_limit(); let small = DispatchInfo { - weight: Weight::from_ref_time(100), + weight: Weight::from_parts(100, 0), ..Default::default() }; let base_extrinsic = block_weights().get(DispatchClass::Normal).base_extrinsic; @@ -608,7 +602,7 @@ mod tests { ..Default::default() }; let big = DispatchInfo { - weight: normal_limit - base_extrinsic + Weight::from_ref_time(1), + weight: normal_limit - base_extrinsic + Weight::from_parts(1, 0), ..Default::default() }; let len = 0_usize; @@ -627,7 +621,7 @@ mod tests { reset_check_weight(&small, false, Weight::zero()); reset_check_weight(&medium, false, Weight::zero()); - reset_check_weight(&big, true, Weight::from_ref_time(1)); + reset_check_weight(&big, true, Weight::from_parts(1, 0)); }) } @@ -636,11 +630,11 @@ mod tests { new_test_ext().execute_with(|| { // This is half of the max block weight let info = DispatchInfo { - weight: Weight::from_ref_time(512), + weight: Weight::from_parts(512, 0), ..Default::default() }; let post_info = PostDispatchInfo { - actual_weight: Some(Weight::from_ref_time(128)), + actual_weight: Some(Weight::from_parts(128, 0)), pays_fee: Default::default(), }; let len = 0_usize; @@ -650,7 +644,7 @@ mod tests { BlockWeight::::mutate(|current_weight| { current_weight.set(Weight::zero(), DispatchClass::Mandatory); current_weight.set( - Weight::from_ref_time(256) - base_extrinsic, + Weight::from_parts(256, 0) - base_extrinsic, DispatchClass::Normal, ); }); @@ -660,7 +654,7 @@ mod tests { .unwrap(); assert_eq!( BlockWeight::::get().total(), - info.weight + Weight::from_ref_time(256) + info.weight + Weight::from_parts(256, 0) ); assert_ok!(CheckWeight::::post_dispatch( @@ -672,7 +666,7 @@ mod tests { )); assert_eq!( BlockWeight::::get().total(), - post_info.actual_weight.unwrap() + Weight::from_ref_time(256) + post_info.actual_weight.unwrap() + Weight::from_parts(256, 0) ); }) } @@ -681,18 +675,18 @@ mod tests { fn signed_ext_check_weight_actual_weight_higher_than_max_is_capped() { new_test_ext().execute_with(|| { let info = DispatchInfo { - weight: Weight::from_ref_time(512), + weight: Weight::from_parts(512, 0), ..Default::default() }; let post_info = PostDispatchInfo { - actual_weight: Some(Weight::from_ref_time(700)), + actual_weight: Some(Weight::from_parts(700, 0)), pays_fee: Default::default(), }; let len = 0_usize; BlockWeight::::mutate(|current_weight| { current_weight.set(Weight::zero(), DispatchClass::Mandatory); - current_weight.set(Weight::from_ref_time(128), DispatchClass::Normal); + current_weight.set(Weight::from_parts(128, 0), DispatchClass::Normal); }); let pre = CheckWeight::(PhantomData) @@ -701,7 +695,7 @@ mod tests { assert_eq!( BlockWeight::::get().total(), info.weight - + Weight::from_ref_time(128) + + Weight::from_parts(128, 0) + block_weights().get(DispatchClass::Normal).base_extrinsic, ); @@ -715,7 +709,7 @@ mod tests { assert_eq!( BlockWeight::::get().total(), info.weight - + Weight::from_ref_time(128) + + Weight::from_parts(128, 0) + block_weights().get(DispatchClass::Normal).base_extrinsic, ); }) @@ -748,11 +742,11 @@ mod tests { // Max normal is 768 (75%) // Max mandatory is unlimited let max_normal = DispatchInfo { - weight: Weight::from_ref_time(753), + weight: Weight::from_parts(753, 0), ..Default::default() }; let mandatory = DispatchInfo { - weight: Weight::from_ref_time(1019), + weight: Weight::from_parts(1019, 0), class: DispatchClass::Mandatory, ..Default::default() }; @@ -760,15 +754,12 @@ mod tests { let len = 0_usize; assert_ok!(CheckWeight::::do_pre_dispatch(&max_normal, len)); - assert_eq!(System::block_weight().total(), Weight::from_ref_time(768)); + assert_eq!(System::block_weight().total(), Weight::from_parts(768, 0)); assert_ok!(CheckWeight::::do_pre_dispatch(&mandatory, len)); - assert_eq!( - block_weight_limit(), - Weight::from_ref_time(1024).set_proof_size(u64::MAX) - ); + assert_eq!(block_weight_limit(), Weight::from_parts(1024, u64::MAX)); assert_eq!( System::block_weight().total(), - Weight::from_ref_time(1024 + 768) + Weight::from_parts(1024 + 768, 0) ); assert_eq!( CheckWeight::::check_extrinsic_weight(&mandatory), @@ -784,17 +775,17 @@ mod tests { .base_block(Weight::zero()) .for_class(DispatchClass::non_mandatory(), |w| { w.base_extrinsic = Weight::zero(); - w.max_total = Some(Weight::from_ref_time(20).set_proof_size(u64::MAX)); + w.max_total = Some(Weight::from_parts(20, u64::MAX)); }) .for_class(DispatchClass::Mandatory, |w| { w.base_extrinsic = Weight::zero(); - w.reserved = Some(Weight::from_ref_time(5).set_proof_size(u64::MAX)); + w.reserved = Some(Weight::from_parts(5, u64::MAX)); w.max_total = None; }) .build_or_panic(); let all_weight = crate::ConsumedWeight::new(|class| match class { - DispatchClass::Normal => Weight::from_ref_time(10), - DispatchClass::Operational => Weight::from_ref_time(10), + DispatchClass::Normal => Weight::from_parts(10, 0), + DispatchClass::Operational => Weight::from_parts(10, 0), DispatchClass::Mandatory => Weight::zero(), }); assert_eq!( @@ -804,13 +795,13 @@ mod tests { // fits into reserved let mandatory1 = DispatchInfo { - weight: Weight::from_ref_time(5), + weight: Weight::from_parts(5, 0), class: DispatchClass::Mandatory, ..Default::default() }; // does not fit into reserved and the block is full. let mandatory2 = DispatchInfo { - weight: Weight::from_ref_time(6), + weight: Weight::from_parts(6, 0), class: DispatchClass::Mandatory, ..Default::default() }; diff --git a/pallets/system/src/lib.rs b/pallets/system/src/lib.rs index 2961316ad..79cdcbebf 100644 --- a/pallets/system/src/lib.rs +++ b/pallets/system/src/lib.rs @@ -71,24 +71,28 @@ use avail_core::{ }; use codec::{Decode, Encode, EncodeLike, FullCodec, MaxEncodedLen}; #[cfg(feature = "std")] -use frame_support::traits::GenesisBuild; +use frame_support::traits::BuildGenesisConfig; use frame_support::{ dispatch::{ extract_actual_pays_fee, extract_actual_weight, DispatchClass, DispatchInfo, DispatchResult, DispatchResultWithPostInfo, PerDispatchClass, }, + impl_ensure_origin_with_arg_ignoring_arg, storage::{self, StorageStreamIter}, traits::{ - ConstU32, Contains, EnsureOrigin, Get, HandleLifetime, OnKilledAccount, OnNewAccount, - OriginTrait, PalletInfo, SortedMembers, StoredMap, TypedGet, + ConstU32, Contains, EnsureOrigin, EnsureOriginWithArg, Get, HandleLifetime, + OnKilledAccount, OnNewAccount, OriginTrait, PalletInfo, Randomness, SortedMembers, + StoredMap, TypedGet, }, Parameter, }; use kate::Seed; +use pallet_prelude::{BlockNumberFor, HeaderFor}; use scale_info::TypeInfo; #[cfg(feature = "std")] use serde::Serialize; use sp_core::storage::well_known_keys; +use sp_io::hashing::blake2_256; #[cfg(any(feature = "std", test))] use sp_io::TestExternalities; #[cfg(feature = "runtime-benchmarks")] @@ -96,9 +100,9 @@ use sp_runtime::traits::TrailingZeroInput; use sp_runtime::{ generic, traits::{ - self, AtLeast32Bit, AtLeast32BitUnsigned, BadOrigin, BlockNumberProvider, Bounded, - CheckEqual, Dispatchable, Hash, Lookup, LookupError, MaybeDisplay, Member, One, Saturating, - SimpleBitOps, StaticLookup, UniqueSaturatedInto, Zero, + self, AtLeast32Bit, BadOrigin, BlockNumberProvider, Bounded, CheckEqual, Dispatchable, + Hash, Lookup, LookupError, MaybeDisplay, Member, One, Saturating, SimpleBitOps, + StaticLookup, UniqueSaturatedInto, Zero, }, DispatchError, RuntimeDebug, }; @@ -220,12 +224,50 @@ pub mod pallet { use crate::{self as frame_system, pallet_prelude::*, *}; + // /// Contains default types suitable for various environments + // pub mod config_preludes { + // use super::DefaultConfig; + + // /// Provides a viable default config that can be used with + // /// [`derive_impl`](`frame_support::derive_impl`) to derive a testing pallet config + // /// based on this one. + // /// + // /// See `Test` in the `default-config` example pallet's `test.rs` for an example of + // /// a downstream user of this particular `TestDefaultConfig` + // pub struct TestDefaultConfig; + + // #[frame_support::register_default_impl(TestDefaultConfig)] + // impl DefaultConfig for TestDefaultConfig { + // type AccountData = (); + // type AccountId = u64; + // type BlockLength = (); + // type BlockWeights = (); + // type DbWeight = (); + // type BlockNumber = u32; + // type Header = (); + // type HeaderExtensionBuilder = (); + // type Hash = sp_core::hash::H256; + // type Hashing = sp_runtime::traits::BlakeTwo256; + // type Lookup = sp_runtime::traits::IdentityLookup; + // type MaxConsumers = frame_support::traits::ConstU32<16>; + // type Nonce = u32; + // type OnKilledAccount = (); + // type OnNewAccount = (); + // type Randomness = (); + // type SS58Prefix = (); + // type SystemWeightInfo = (); + // type UncheckedExtrinsic = (); + // type Version = (); + // } + // } + /// System configuration trait. Implemented by runtime. - #[pallet::config] + #[pallet::config(with_default)] #[pallet::disable_frame_system_supertrait_check] pub trait Config: 'static + Eq + Clone { /// The basic call filter to use in Origin. All origins are built with this filter as base, /// except Root. + #[pallet::no_default] type BaseCallFilter: Contains; /// Block & extrinsics weights: base values and limits. @@ -237,20 +279,21 @@ pub mod pallet { type BlockLength: Get; /// The `RuntimeOrigin` type used by dispatchable calls. + #[pallet::no_default] type RuntimeOrigin: Into, Self::RuntimeOrigin>> + From> + Clone - + OriginTrait; + + OriginTrait; /// The aggregated `RuntimeCall` type. + #[pallet::no_default] type RuntimeCall: Parameter + Dispatchable + Debug + From>; - /// Account index (aka nonce) type. This stores the number of previous transactions - /// associated with a sender account. - type Index: Parameter + /// This stores the number of previous transactions associated with a sender account. + type Nonce: Parameter + Member + MaybeSerializeDeserialize + Debug @@ -260,20 +303,20 @@ pub mod pallet { + Copy + MaxEncodedLen; - /// The block number type used by the runtime. - type BlockNumber: Parameter - + Member - + MaybeSerializeDeserialize - + Debug - + MaybeDisplay - + AtLeast32BitUnsigned - + Default - + Bounded - + Copy - + sp_std::hash::Hash - + sp_std::str::FromStr - + MaxEncodedLen - + TypeInfo; + // /// The block number type used by the runtime. + // type BlockNumber: Parameter + // + Member + // + MaybeSerializeDeserialize + // + Debug + // + MaybeDisplay + // + AtLeast32BitUnsigned + // + Default + // + Bounded + // + Copy + // + sp_std::hash::Hash + // + sp_std::str::FromStr + // + MaxEncodedLen + // + TypeInfo; /// The output of the `Hashing` function. type Hash: Parameter @@ -312,16 +355,17 @@ pub mod pallet { /// functional/efficient alternatives. type Lookup: StaticLookup; - /// The block header. - type Header: Parameter - + traits::Header - + ExtendedHeader; + // /// The block header. + // type Header: Parameter + // + traits::Header, Hash = Self::Hash> + // + ExtendedHeader, Self::Hash, generic::Digest, HeaderExtension>; /// Header builder type HeaderExtensionBuilder: header_builder::HeaderExtensionBuilder; /// Source of random seeds. - type Randomness: frame_support::traits::Randomness; + #[pallet::no_default] + type Randomness: Randomness>; /// The aggregated event type of the runtime. type RuntimeEvent: Parameter @@ -330,9 +374,15 @@ pub mod pallet { + Debug + IsType<::RuntimeEvent>; + /// The Block type used by the runtime. This is used by `construct_runtime` to retrieve the + /// extrinsics or other block specific data as needed. + #[pallet::no_default] + type Block: Parameter + Member + traits::Block; + /// Maximum number of block number to block hash mappings to keep (oldest pruned first). #[pallet::constant] - type BlockHashCount: Get; + #[pallet::no_default] + type BlockHashCount: Get>; /// The weight of runtime database operations the runtime can invoke. #[pallet::constant] @@ -348,6 +398,7 @@ pub mod pallet { /// runtime. /// /// For tests it is okay to use `()` as type, however it will provide "useless" data. + #[pallet::no_default] type PalletInfo: PalletInfo; /// Data to be associated with an account (other than nonce/transaction counter, which this @@ -379,22 +430,24 @@ pub mod pallet { /// [`Pallet::update_code_in_storage`]). /// It's unlikely that this needs to be customized, unless you are writing a parachain using /// `Cumulus`, where the actual code change is deferred. + #[pallet::no_default] type OnSetCode: SetCode; /// The maximum number of consumers allowed on a single account. type MaxConsumers: ConsumerLimits; /// Filter used by `DataRootBuilder`. + #[pallet::no_default] type SubmittedDataExtractor: submitted_data::Extractor + submitted_data::Filter; /// UncheckedExtrinsic Type used on Kate commitment & Data root calculation. + #[pallet::no_default] type UncheckedExtrinsic: Into + for<'a> TryFrom<&'a OpaqueExtrinsic, Error = codec::Error>; } #[pallet::pallet] - #[pallet::generate_store(pub (super) trait Store)] pub struct Pallet(_); #[pallet::hooks] @@ -416,10 +469,10 @@ pub mod pallet { /// # /// - `O(1)` /// # + /// Can be executed by every `origin`. #[pallet::call_index(0)] #[pallet::weight(T::SystemWeightInfo::remark(_remark.len() as u32))] - pub fn remark(origin: OriginFor, _remark: Vec) -> DispatchResultWithPostInfo { - ensure_signed_or_root(origin)?; + pub fn remark(_origin: OriginFor, _remark: Vec) -> DispatchResultWithPostInfo { Ok(().into()) } @@ -434,35 +487,17 @@ pub mod pallet { } /// Set the new runtime code. - /// - /// # - /// - `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code` - /// - 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is - /// expensive). - /// - 1 storage write (codec `O(C)`). - /// - 1 digest item. - /// - 1 event. - /// The weight of this function is dependent on the runtime, but generally this is very - /// expensive. We will treat this as a full block. - /// # #[pallet::call_index(2)] #[pallet::weight((T::SystemWeightInfo::set_code(), DispatchClass::Operational))] pub fn set_code(origin: OriginFor, code: Vec) -> DispatchResultWithPostInfo { ensure_root(origin)?; Self::can_set_code(&code)?; T::OnSetCode::set_code(code)?; - Ok(().into()) + // consume the rest of the block to prevent further transactions + Ok(Some(T::BlockWeights::get().max_block).into()) } /// Set the new runtime code without doing any checks of the given `code`. - /// - /// # - /// - `O(C)` where `C` length of `code` - /// - 1 storage write (codec `O(C)`). - /// - 1 digest item. - /// - 1 event. - /// The weight of this function is dependent on the runtime. We will treat this as a full - /// block. # #[pallet::call_index(3)] #[pallet::weight((T::SystemWeightInfo::set_code(), DispatchClass::Operational))] pub fn set_code_without_checks( @@ -471,7 +506,7 @@ pub mod pallet { ) -> DispatchResultWithPostInfo { ensure_root(origin)?; T::OnSetCode::set_code(code)?; - Ok(().into()) + Ok(Some(T::BlockWeights::get().max_block).into()) } /// Set some items of storage. @@ -598,7 +633,7 @@ pub mod pallet { _, Blake2_128Concat, T::AccountId, - AccountInfo, + AccountInfo, ValueQuery, >; @@ -620,7 +655,7 @@ pub mod pallet { #[pallet::storage] #[pallet::getter(fn block_hash)] pub type BlockHash = - StorageMap<_, Twox64Concat, T::BlockNumber, T::Hash, ValueQuery>; + StorageMap<_, Twox64Concat, BlockNumberFor, T::Hash, ValueQuery>; /// Extrinsics data for the current block (maps an extrinsic's index to its data). #[pallet::storage] @@ -633,7 +668,7 @@ pub mod pallet { #[pallet::storage] #[pallet::whitelist_storage] #[pallet::getter(fn block_number)] - pub(super) type Number = StorageValue<_, T::BlockNumber, ValueQuery>; + pub(super) type Number = StorageValue<_, BlockNumberFor, ValueQuery>; /// Hash of the previous block. #[pallet::storage] @@ -672,14 +707,14 @@ pub mod pallet { /// allows light-clients to leverage the changes trie storage tracking mechanism and /// in case of changes fetch the list of events of interest. /// - /// The value has the type `(T::BlockNumber, EventIndex)` because if we used only just + /// The value has the type `(BlockNumberFor, EventIndex)` because if we used only just /// the `EventIndex` then in case if the topic has the same contents on the next block /// no notification will be triggered thus the event might be lost. #[pallet::storage] #[pallet::unbounded] #[pallet::getter(fn event_topics)] pub(super) type EventTopics = - StorageMap<_, Blake2_128Concat, T::Hash, Vec<(T::BlockNumber, EventIndex)>, ValueQuery>; + StorageMap<_, Blake2_128Concat, T::Hash, Vec<(BlockNumberFor, EventIndex)>, ValueQuery>; /// Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened. #[pallet::storage] @@ -705,17 +740,20 @@ pub mod pallet { #[pallet::getter(fn block_length)] pub type DynamicBlockLength = StorageValue<_, limits::BlockLength, ValueQuery>; + // #[derive(frame_support::DefaultNoBound)] #[pallet::genesis_config] - pub struct GenesisConfig { + pub struct GenesisConfig { #[serde(with = "sp_core::bytes")] pub code: Vec, + #[serde(skip)] + pub _config: sp_std::marker::PhantomData, #[serde(with = "sp_core::bytes")] pub kc_public_params: Vec, pub block_length: limits::BlockLength, } #[cfg(feature = "std")] - impl Default for GenesisConfig { + impl Default for GenesisConfig { fn default() -> Self { use kate::config::{MAX_BLOCK_COLUMNS, MAX_BLOCK_ROWS}; @@ -733,6 +771,7 @@ pub mod pallet { Self { code: Default::default(), + _config: Default::default(), kc_public_params, block_length, } @@ -740,12 +779,12 @@ pub mod pallet { } #[pallet::genesis_build] - impl GenesisBuild for GenesisConfig { + impl BuildGenesisConfig for GenesisConfig { fn build(&self) { use avail_core::well_known_keys::KATE_PUBLIC_PARAMS; use frame_support::traits::StorageVersion; - >::insert::<_, T::Hash>(T::BlockNumber::zero(), hash69()); + >::insert::<_, T::Hash>(BlockNumberFor::::zero(), hash69()); >::put::(hash69()); >::put(LastRuntimeUpgradeInfo::from(T::Version::get())); >::put(true); @@ -761,26 +800,6 @@ pub mod pallet { } } -#[cfg(feature = "std")] -impl GenesisConfig { - /// Direct implementation of `GenesisBuild::build_storage`. - /// - /// Kept in order not to break dependency. - pub fn build_storage(&self) -> Result { - >::build_storage(self) - } - - /// Direct implementation of `GenesisBuild::assimilate_storage`. - /// - /// Kept in order not to break dependency. - pub fn assimilate_storage( - &self, - storage: &mut sp_runtime::Storage, - ) -> Result<(), String> { - >::assimilate_storage(self, storage) - } -} - pub type Key = Vec; pub type KeyValue = (Vec, Vec); @@ -814,7 +833,6 @@ pub struct EventRecord { // Create a Hash with 69 for each byte, // only used to build genesis config. -#[cfg(feature = "std")] fn hash69 + Default>() -> T { let mut h = T::default(); h.as_mut().iter_mut().for_each(|byte| *byte = 69); @@ -832,9 +850,9 @@ pub type RefCount = u32; /// Information of an account. #[derive(Clone, Eq, PartialEq, Default, RuntimeDebug, Encode, Decode, TypeInfo, MaxEncodedLen)] -pub struct AccountInfo { +pub struct AccountInfo { /// The number of transactions this account has sent. - pub nonce: Index, + pub nonce: Nonce, /// The number of other modules that currently depend on this account's existence. The account /// cannot be reaped until this is zero. pub consumers: RefCount, @@ -894,6 +912,12 @@ impl, O>> + From>, Acco fn try_successful_origin() -> Result { Ok(O::from(RawOrigin::Root)) } } +impl_ensure_origin_with_arg_ignoring_arg! { + impl< { O: .., AccountId: Decode, T } > + EnsureOriginWithArg for EnsureRoot + {} +} + /// Ensure the origin is Root and return the provided `Success` value. pub struct EnsureRootWithSuccess( sp_std::marker::PhantomData<(AccountId, Success)>, @@ -917,6 +941,12 @@ impl< fn try_successful_origin() -> Result { Ok(O::from(RawOrigin::Root)) } } +impl_ensure_origin_with_arg_ignoring_arg! { + impl< { O: .., AccountId: Decode, Success: TypedGet, T } > + EnsureOriginWithArg for EnsureRootWithSuccess + {} +} + /// Ensure the origin is provided `Ensure` origin and return the provided `Success` value. pub struct EnsureWithSuccess( sp_std::marker::PhantomData<(Ensure, AccountId, Success)>, @@ -939,6 +969,12 @@ impl< fn try_successful_origin() -> Result { Ensure::try_successful_origin() } } +impl_ensure_origin_with_arg_ignoring_arg! { + impl< { O: .., AccountId: Decode, T } > + EnsureOriginWithArg for EnsureSigned + {} +} + /// Ensure the origin is any `Signed` origin. pub struct EnsureSigned(sp_std::marker::PhantomData); impl, O>> + From>, AccountId: Decode> @@ -983,14 +1019,20 @@ impl< let zero_account_id = AccountId::decode(&mut TrailingZeroInput::zeroes()).map_err(|_| ())?; let members = Who::sorted_members(); - let first_member = match members.get(0) { + let first_member = match Who::sorted_members().first() { Some(account) => account.clone(), - None => zero_account_id, + None => AccountId::decode(&mut TrailingZeroInput::zeroes()).map_err(|_| ())?, }; Ok(O::from(RawOrigin::Signed(first_member))) } } +impl_ensure_origin_with_arg_ignoring_arg! { + impl< { O: .., Who: SortedMembers, AccountId: PartialEq + Clone + Ord + Decode, T } > + EnsureOriginWithArg for EnsureSignedBy + {} +} + /// Ensure the origin is `None`. i.e. unsigned transaction. pub struct EnsureNone(sp_std::marker::PhantomData); impl, O>> + From>, AccountId> @@ -1009,10 +1051,16 @@ impl, O>> + From>, Acco fn try_successful_origin() -> Result { Ok(O::from(RawOrigin::None)) } } +impl_ensure_origin_with_arg_ignoring_arg! { + impl< { O: .., AccountId, T } > + EnsureOriginWithArg for EnsureNone + {} +} + /// Always fail. -pub struct EnsureNever(sp_std::marker::PhantomData); -impl EnsureOrigin for EnsureNever { - type Success = T; +pub struct EnsureNever(sp_std::marker::PhantomData); +impl EnsureOrigin for EnsureNever { + type Success = Success; fn try_origin(o: O) -> Result { Err(o) } @@ -1020,6 +1068,12 @@ impl EnsureOrigin for EnsureNever { fn try_successful_origin() -> Result { Err(()) } } +impl_ensure_origin_with_arg_ignoring_arg! { + impl< { O, Success, T } > + EnsureOriginWithArg for EnsureNever + {} +} + /// Ensure that the origin `o` represents a signed extrinsic (i.e. transaction). /// Returns `Ok` with the account that signed the extrinsic or an `Err` otherwise. pub fn ensure_signed(o: OuterOrigin) -> Result @@ -1308,13 +1362,23 @@ impl Pallet { a.consumers == 0 || a.providers > 1 } - /// True if the account has at least one provider reference. - pub fn can_inc_consumer(who: &T::AccountId) -> bool { + /// True if the account has at least one provider reference and adding `amount` consumer + /// references would not take it above the the maximum. + pub fn can_accrue_consumers(who: &T::AccountId, amount: u32) -> bool { let a = Account::::get(who); - a.providers > 0 && a.consumers < T::MaxConsumers::max_consumers() + match a.consumers.checked_add(amount) { + Some(c) => a.providers > 0 && c <= T::MaxConsumers::max_consumers(), + None => false, + } } + /// True if the account has at least one provider reference and fewer consumer references than + /// the maximum. + pub fn can_inc_consumer(who: &T::AccountId) -> bool { Self::can_accrue_consumers(who, 1) } + /// Deposits an event into this block's event record. + /// + /// NOTE: Events not registered at the genesis block and quietly omitted. pub fn deposit_event(event: impl Into) { Self::deposit_event_indexed(&[], event.into()); } @@ -1324,6 +1388,8 @@ impl Pallet { /// /// This will update storage entries that correspond to the specified topics. /// It is expected that light-clients could subscribe to this topics. + /// + /// NOTE: Events not registered at the genesis block and quietly omitted. pub fn deposit_event_indexed(topics: &[T::Hash], event: T::RuntimeEvent) { let block_number = Self::block_number(); // Don't populate events on genesis. @@ -1391,15 +1457,17 @@ impl Pallet { /// Another potential use-case could be for the `on_initialize` and `on_finalize` hooks. pub fn register_extra_weight_unchecked(weight: Weight, class: DispatchClass) { BlockWeight::::mutate(|current_weight| { - current_weight.add(weight, class); + current_weight.accrue(weight, class); }); } /// Start the execution of a particular block. - pub fn initialize(number: &T::BlockNumber, parent_hash: &T::Hash, digest: &generic::Digest) { + pub fn initialize(number: &BlockNumberFor, parent_hash: &T::Hash, digest: &generic::Digest) { // populate environment ExecutionPhase::::put(Phase::Initialization); storage::unhashed::put(well_known_keys::EXTRINSIC_INDEX, &0u32); + let entropy = (b"frame_system::initialize", parent_hash).using_encoded(blake2_256); + storage::unhashed::put_raw(well_known_keys::INTRABLOCK_ENTROPY, &entropy[..]); >::put(number); >::put(digest); >::put(parent_hash); @@ -1411,7 +1479,7 @@ impl Pallet { /// Remove temporary "environment" entries in storage, compute the storage root and return the /// resulting header for this block. - pub fn finalize() -> T::Header { + pub fn finalize() -> HeaderFor where <::Block as sp_runtime::traits::Block>::Header: avail_core::traits::ExtendedHeader<<<::Block as sp_runtime::traits::Block>::Header as sp_runtime::traits::Header>::Number, ::Hash, sp_runtime::Digest, avail_core::header::HeaderExtension>{ log::debug!( target: LOG_TARGET, "[{:?}] {} extrinsics, length: {} (normal {}%, op: {}%, mandatory {}%) / normal weight:\ @@ -1450,6 +1518,7 @@ impl Pallet { ExecutionPhase::::kill(); AllExtrinsicsLen::::kill(); + storage::unhashed::kill(well_known_keys::INTRABLOCK_ENTROPY); // The following fields // // - > @@ -1516,8 +1585,8 @@ impl Pallet { ); let extrinsics_root = extrinsics_data_root::(extrinsics); - let header = as ExtendedHeader< + BlockNumberFor, T::Hash, generic::Digest, HeaderExtension, @@ -1554,8 +1623,8 @@ impl Pallet { pub fn externalities() -> TestExternalities { TestExternalities::new(sp_core::storage::Storage { top: map![ - >::hashed_key_for(T::BlockNumber::zero()) => [69u8; 32].encode(), - >::hashed_key().to_vec() => T::BlockNumber::one().encode(), + >::hashed_key_for(BlockNumberFor::::zero()) => [69u8; 32].encode(), + >::hashed_key().to_vec() => BlockNumberFor::::one().encode(), >::hashed_key().to_vec() => [69u8; 32].encode() ], children_default: map![], @@ -1567,13 +1636,29 @@ impl Pallet { /// NOTE: This should only be used in tests. Reading events from the runtime can have a large /// impact on the PoV size of a block. Users should use alternative and well bounded storage /// items for any behavior like this. + /// + /// NOTE: Events not registered at the genesis block and quietly omitted. #[cfg(any(feature = "std", feature = "runtime-benchmarks", test))] pub fn events() -> Vec> { + debug_assert!( + !Self::block_number().is_zero(), + "events not registered at the genesis block" + ); // Dereferencing the events here is fine since we are not in the // memory-restricted runtime. Self::read_events_no_consensus().map(|e| *e).collect() } + /// Get a single event at specified index. + /// + /// Should only be called if you know what you are doing and outside of the runtime block + /// execution else it can have a large impact on the PoV size of a block. + pub fn event_no_consensus(index: usize) -> Option { + Self::read_events_no_consensus() + .nth(index) + .map(|e| e.event.clone()) + } + /// Get the current events deposited by the runtime. /// /// Should only be called if you know what you are doing and outside of the runtime block @@ -1586,7 +1671,7 @@ impl Pallet { /// Set the block number to something in particular. Can be used as an alternative to /// `initialize` for tests that don't need to bother with the other environment entries. #[cfg(any(feature = "std", feature = "runtime-benchmarks", test))] - pub fn set_block_number(n: T::BlockNumber) { >::put(n); } + pub fn set_block_number(n: BlockNumberFor) { >::put(n); } /// Sets the index of extrinsic that is currently executing. #[cfg(any(feature = "std", test))] @@ -1626,28 +1711,44 @@ impl Pallet { } /// Assert the given `event` exists. + /// + /// NOTE: Events not registered at the genesis block and quietly omitted. #[cfg(any(feature = "std", feature = "runtime-benchmarks", test))] pub fn assert_has_event(event: T::RuntimeEvent) { - assert!(Self::events().iter().any(|record| record.event == event)) + let events = Self::events(); + assert!( + events.iter().any(|record| record.event == event), + "expected event {event:?} not found in events {events:?}", + ); } /// Assert the last event equal to the given `event`. + /// + /// NOTE: Events not registered at the genesis block and quietly omitted. #[cfg(any(feature = "std", feature = "runtime-benchmarks", test))] pub fn assert_last_event(event: T::RuntimeEvent) { - assert_eq!(Self::events().last().expect("events expected").event, event); + let last_event = Self::events() + .last() + .expect("events expected") + .event + .clone(); + assert_eq!( + last_event, event, + "expected event {event:?} is not equal to the last event {last_event:?}", + ); } /// Return the chain's current runtime version. pub fn runtime_version() -> RuntimeVersion { T::Version::get() } /// Retrieve the account transaction counter from storage. - pub fn account_nonce(who: impl EncodeLike) -> T::Index { + pub fn account_nonce(who: impl EncodeLike) -> T::Nonce { Account::::get(who).nonce } /// Increment a particular account's nonce by 1. pub fn inc_account_nonce(who: impl EncodeLike) { - Account::::mutate(who, |a| a.nonce += T::Index::one()); + Account::::mutate(who, |a| a.nonce += T::Nonce::one()); } /// Note what the extrinsic data of the current extrinsic index is. @@ -1706,7 +1807,7 @@ impl Pallet { pub fn note_finished_initialize() { ExecutionPhase::::put(Phase::ApplyExtrinsic(0)) } /// An account is being created. - pub fn on_created_account(who: T::AccountId, _a: &mut AccountInfo) { + pub fn on_created_account(who: T::AccountId, _a: &mut AccountInfo) { T::OnNewAccount::on_new_account(&who); Self::deposit_event(Event::NewAccount { account: who }); } @@ -1717,7 +1818,7 @@ impl Pallet { Self::deposit_event(Event::KilledAccount { account: who }); } - /// Determine whether or not it is possible to update the code. + //// Determine whether or not it is possible to update the code. /// /// Checks the given code if it is a valid runtime wasm blob by instantianting /// it and extracting the runtime version of it. It checks that the runtime version @@ -1728,15 +1829,23 @@ impl Pallet { .and_then(|v| RuntimeVersion::decode(&mut &v[..]).ok()) .ok_or(Error::::FailedToExtractRuntimeVersion)?; - if new_version.spec_name != current_version.spec_name { - return Err(Error::::InvalidSpecName.into()); - } + cfg_if::cfg_if! { + if #[cfg(all(feature = "runtime-benchmarks", not(test)))] { + // Let's ensure the compiler doesn't optimize our fetching of the runtime version away. + core::hint::black_box((new_version, current_version)); + Ok(()) + } else { + if new_version.spec_name != current_version.spec_name { + return Err(Error::::InvalidSpecName.into()) + } - if new_version.spec_version <= current_version.spec_version { - return Err(Error::::SpecVersionNeedsToIncrease.into()); - } + if new_version.spec_version <= current_version.spec_version { + return Err(Error::::SpecVersionNeedsToIncrease.into()) + } - Ok(()) + Ok(()) + } + } } pub fn take_extrinsics() -> impl Iterator> { @@ -1751,6 +1860,16 @@ impl Pallet { } } +/// Returns a 32 byte datum which is guaranteed to be universally unique. `entropy` is provided +/// as a facility to reduce the potential for precalculating results. +pub fn unique(entropy: impl Encode) -> [u8; 32] { + let mut last = [0u8; 32]; + sp_io::storage::read(well_known_keys::INTRABLOCK_ENTROPY, &mut last[..], 0); + let next = (b"frame_system::unique", entropy, last).using_encoded(blake2_256); + sp_io::storage::set(well_known_keys::INTRABLOCK_ENTROPY, &next); + next +} + /// Event handler which registers a provider when created. pub struct Provider(PhantomData); impl HandleLifetime for Provider { @@ -1790,13 +1909,11 @@ impl HandleLifetime for Consumer { } impl BlockNumberProvider for Pallet { - type BlockNumber = ::BlockNumber; + type BlockNumber = BlockNumberFor; fn current_block_number() -> Self::BlockNumber { Pallet::::block_number() } } -fn is_providing(d: &T) -> bool { d != &T::default() } - /// Implement StoredMap for a simple single-item, provide-when-not-default system. This works fine /// for storing a single item which allows the account to continue existing as long as it's not /// empty/default. @@ -1810,27 +1927,14 @@ impl StoredMap for Pallet { f: impl FnOnce(&mut Option) -> Result, ) -> Result { let account = Account::::get(k); - let was_providing = is_providing(&account.data); - let mut some_data = if was_providing { - Some(account.data) - } else { - None - }; + let is_default = account.data == T::AccountData::default(); + let mut some_data = if is_default { None } else { Some(account.data) }; let result = f(&mut some_data)?; - let is_providing = some_data.is_some(); - if !was_providing && is_providing { - Self::inc_providers(k); - } else if was_providing && !is_providing { - match Self::dec_providers(k)? { - DecRefStatus::Reaped => return Ok(result), - DecRefStatus::Exists => { - // Update value as normal... - }, - } - } else if !was_providing && !is_providing { - return Ok(result); + if Self::providers(k) > 0 || Self::sufficients(k) > 0 { + Account::::mutate(k, |a| a.data = some_data.unwrap_or_default()); + } else { + Account::::remove(k) } - Account::::mutate(k, |a| a.data = some_data.unwrap_or_default()); Ok(result) } } @@ -1870,6 +1974,10 @@ pub mod pallet_prelude { /// Type alias for the `Origin` associated type of system config. pub type OriginFor = ::RuntimeOrigin; + /// Type alias for the `Header`. + pub type HeaderFor = + <::Block as sp_runtime::traits::HeaderProvider>::HeaderT; + /// Type alias for the `BlockNumber` associated type of system config. - pub type BlockNumberFor = ::BlockNumber; + pub type BlockNumberFor = as sp_runtime::traits::Header>::Number; } diff --git a/pallets/system/src/migrations/mod.rs b/pallets/system/src/migrations/mod.rs index 43e417ebb..130d51bd5 100644 --- a/pallets/system/src/migrations/mod.rs +++ b/pallets/system/src/migrations/mod.rs @@ -32,8 +32,8 @@ type RefCount = u32; /// Information of an account. #[derive(Clone, Eq, PartialEq, Default, RuntimeDebug, Encode, Decode)] -struct AccountInfo { - nonce: Index, +struct AccountInfo { + nonce: Nonce, consumers: RefCount, providers: RefCount, sufficients: RefCount, @@ -48,8 +48,8 @@ pub trait V2ToV3 { /// System config account id type AccountId: 'static + FullCodec; - /// System config index - type Index: 'static + FullCodec + Copy; + /// System config Nonce + type Nonce: 'static + FullCodec + Copy; /// System config account data type AccountData: 'static + FullCodec; @@ -66,13 +66,13 @@ type Account = StorageMap< Pallet, Blake2_128Concat, ::AccountId, - AccountInfo<::Index, ::AccountData>, + AccountInfo<::Nonce, ::AccountData>, >; /// Migrate from unique `u8` reference counting to triple `u32` reference counting. pub fn migrate_from_single_u8_to_triple_ref_count() -> Weight { let mut translated: usize = 0; - >::translate::<(V::Index, u8, V::AccountData), _>(|_key, (nonce, rc, data)| { + >::translate::<(V::Nonce, u8, V::AccountData), _>(|_key, (nonce, rc, data)| { translated += 1; Some(AccountInfo { nonce, @@ -95,7 +95,7 @@ pub fn migrate_from_single_u8_to_triple_ref_count() -> Wei /// Migrate from unique `u32` reference counting to triple `u32` reference counting. pub fn migrate_from_single_to_triple_ref_count() -> Weight { let mut translated: usize = 0; - >::translate::<(V::Index, RefCount, V::AccountData), _>( + >::translate::<(V::Nonce, RefCount, V::AccountData), _>( |_key, (nonce, consumers, data)| { translated += 1; Some(AccountInfo { @@ -119,7 +119,7 @@ pub fn migrate_from_single_to_triple_ref_count() -> Weight /// Migrate from dual `u32` reference counting to triple `u32` reference counting. pub fn migrate_from_dual_to_triple_ref_count() -> Weight { let mut translated: usize = 0; - >::translate::<(V::Index, RefCount, RefCount, V::AccountData), _>( + >::translate::<(V::Nonce, RefCount, RefCount, V::AccountData), _>( |_key, (nonce, consumers, providers, data)| { translated += 1; Some(AccountInfo { diff --git a/pallets/system/src/mock.rs b/pallets/system/src/mock.rs index 1695f28ce..40294e094 100644 --- a/pallets/system/src/mock.rs +++ b/pallets/system/src/mock.rs @@ -19,27 +19,24 @@ use frame_support::{parameter_types, traits::ConstU32}; use sp_core::H256; use sp_runtime::{ traits::{BlakeTwo256, IdentityLookup}, - Perbill, + BuildStorage, Perbill, }; use crate::{self as frame_system, test_utils::TestRandomness, *}; type UncheckedExtrinsic = mocking::MockUncheckedExtrinsic; -type Block = mocking::MockBlock; -type BlockNumber = u32; +type Block = mocking::MockDaBlock; +// type BlockNumber = u32; frame_support::construct_runtime!( - pub enum Test where - Block = Block, - NodeBlock = Block, - UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Test { - System: frame_system::{Pallet, Call, Config, Storage, Event}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, } ); const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75); -const MAX_BLOCK_WEIGHT: Weight = Weight::from_ref_time(1024).set_proof_size(u64::MAX); +const MAX_BLOCK_WEIGHT: Weight = Weight::from_parts(1024, u64::MAX); parameter_types! { pub Version: RuntimeVersion = RuntimeVersion { @@ -57,15 +54,15 @@ parameter_types! { write: 100, }; pub RuntimeBlockWeights: limits::BlockWeights = limits::BlockWeights::builder() - .base_block(Weight::from_ref_time(10)) + .base_block(Weight::from_parts(10, 0)) .for_class(DispatchClass::all(), |weights| { - weights.base_extrinsic = Weight::from_ref_time(5); + weights.base_extrinsic = Weight::from_parts(5, 0); }) .for_class(DispatchClass::Normal, |weights| { weights.max_total = Some(NORMAL_DISPATCH_RATIO * MAX_BLOCK_WEIGHT); }) .for_class(DispatchClass::Operational, |weights| { - weights.base_extrinsic = Weight::from_ref_time(10); + weights.base_extrinsic = Weight::from_parts(10, 0); weights.max_total = Some(MAX_BLOCK_WEIGHT); weights.reserved = Some( MAX_BLOCK_WEIGHT - NORMAL_DISPATCH_RATIO * MAX_BLOCK_WEIGHT @@ -90,18 +87,18 @@ impl Config for Test { type AccountData = u32; type AccountId = u64; type BaseCallFilter = frame_support::traits::Everything; + type Block = Block; type BlockHashCount = ConstU32<10>; type BlockLength = RuntimeBlockLength; - type BlockNumber = u32; type BlockWeights = RuntimeBlockWeights; type DbWeight = DbWeight; type Hash = H256; type Hashing = BlakeTwo256; - type Header = avail_core::header::Header; + // type Header = avail_core::header::Header; type HeaderExtensionBuilder = frame_system::header_builder::da::HeaderExtensionBuilder; - type Index = u64; type Lookup = IdentityLookup; type MaxConsumers = ConstU32<16>; + type Nonce = u64; type OnKilledAccount = RecordKilled; type OnNewAccount = (); type OnSetCode = (); @@ -128,9 +125,9 @@ pub const CALL: &::RuntimeCall = /// Create new externalities for `System` module tests. #[allow(dead_code)] pub fn new_test_ext() -> sp_io::TestExternalities { - let mut ext: sp_io::TestExternalities = GenesisConfig::default() + let mut ext: sp_io::TestExternalities = RuntimeGenesisConfig::default() .system - .build_storage::() + .build_storage() .unwrap() .into(); // Add to each test the initial weight of a block diff --git a/pallets/system/src/mocking.rs b/pallets/system/src/mocking.rs index 4f5cd5261..a1f546fa1 100644 --- a/pallets/system/src/mocking.rs +++ b/pallets/system/src/mocking.rs @@ -26,7 +26,7 @@ use sp_runtime::{ transaction_validity::TransactionValidityError, }; -use crate::Config; +use crate::{header_builder::da::BlockNumber, Config}; #[derive(Clone, Copy, Default, Debug, Encode, Decode, PartialEq, Eq, TypeInfo)] pub struct DefaultGetAppId {} @@ -126,6 +126,12 @@ impl From> for AppExtrinsic { /// An implementation of `sp_runtime::traits::Block` to be used in tests. pub type MockBlock = generic::Block< - generic::Header<::BlockNumber, sp_runtime::traits::BlakeTwo256>, + generic::Header, + MockUncheckedExtrinsic, +>; + +/// An implementation of `sp_runtime::traits::Block` with DA header to be used in tests +pub type MockDaBlock = generic::Block< + avail_core::header::Header, MockUncheckedExtrinsic, >; diff --git a/pallets/system/src/offchain.rs b/pallets/system/src/offchain.rs index e42216234..aa4e3e375 100644 --- a/pallets/system/src/offchain.rs +++ b/pallets/system/src/offchain.rs @@ -492,7 +492,7 @@ pub trait CreateSignedTransaction: call: Self::OverarchingCall, public: Self::Public, account: Self::AccountId, - nonce: Self::Index, + nonce: Self::Nonce, ) -> Option<( Self::OverarchingCall, ::SignaturePayload, diff --git a/pallets/system/src/test_utils.rs b/pallets/system/src/test_utils.rs index c2312baa5..8dc6f017e 100644 --- a/pallets/system/src/test_utils.rs +++ b/pallets/system/src/test_utils.rs @@ -8,12 +8,12 @@ use crate::*; /// tests! pub struct TestRandomness(sp_std::marker::PhantomData); -impl Randomness::BlockNumber> for TestRandomness +impl Randomness> for TestRandomness where Output: Decode + Default, T: Config, { - fn random(subject: &[u8]) -> (Output, T::BlockNumber) { + fn random(subject: &[u8]) -> (Output, BlockNumberFor) { ( Output::decode(&mut TrailingZeroInput::new(subject)).unwrap_or_default(), crate::Pallet::::block_number(), diff --git a/pallets/system/src/tests.rs b/pallets/system/src/tests.rs index fbff97392..d69dcd406 100644 --- a/pallets/system/src/tests.rs +++ b/pallets/system/src/tests.rs @@ -35,9 +35,47 @@ fn origin_works() { assert_eq!(x.unwrap(), RawOrigin::::Signed(1u64)); } +#[test] +fn unique_datum_works() { + new_test_ext().execute_with(|| { + System::initialize(&1, &[0u8; 32].into(), &Default::default()); + assert!(sp_io::storage::exists(well_known_keys::INTRABLOCK_ENTROPY)); + + let h1 = unique(b""); + assert_eq!( + 32, + sp_io::storage::read(well_known_keys::INTRABLOCK_ENTROPY, &mut [], 0).unwrap() + ); + let h2 = unique(b""); + assert_eq!( + 32, + sp_io::storage::read(well_known_keys::INTRABLOCK_ENTROPY, &mut [], 0).unwrap() + ); + assert_ne!(h1, h2); + + let h3 = unique(b"Hello"); + assert_eq!( + 32, + sp_io::storage::read(well_known_keys::INTRABLOCK_ENTROPY, &mut [], 0).unwrap() + ); + assert_ne!(h2, h3); + + let h4 = unique(b"Hello"); + assert_eq!( + 32, + sp_io::storage::read(well_known_keys::INTRABLOCK_ENTROPY, &mut [], 0).unwrap() + ); + assert_ne!(h3, h4); + + System::finalize(); + assert!(!sp_io::storage::exists(well_known_keys::INTRABLOCK_ENTROPY)); + }); +} + #[test] fn stored_map_works() { new_test_ext().execute_with(|| { + assert_eq!(System::inc_providers(&0), IncRefStatus::Created); assert_ok!(System::insert(&0, 42)); assert!(!System::is_provider_required(&0)); @@ -60,6 +98,7 @@ fn stored_map_works() { assert!(Killed::get().is_empty()); assert_ok!(System::remove(&0)); + assert_ok!(System::dec_providers(&0)); assert_eq!(Killed::get(), vec![0u64]); }); } @@ -237,32 +276,32 @@ fn deposit_event_uses_actual_weight_and_pays_fee() { let normal_base = ::BlockWeights::get() .get(DispatchClass::Normal) .base_extrinsic; - let pre_info = DispatchInfo { - weight: Weight::from_ref_time(1000), - ..Default::default() - }; - System::note_applied_extrinsic(&Ok(Some(300).into()), pre_info); - System::note_applied_extrinsic(&Ok(Some(1000).into()), pre_info); + let pre_info = DispatchInfo { weight: Weight::from_parts(1000, 0), ..Default::default() }; + System::note_applied_extrinsic(&Ok(from_actual_ref_time(Some(300))), pre_info); + System::note_applied_extrinsic(&Ok(from_actual_ref_time(Some(1000))), pre_info); System::note_applied_extrinsic( // values over the pre info should be capped at pre dispatch value - &Ok(Some(1200).into()), + &Ok(from_actual_ref_time(Some(1200))), + pre_info, + ); + System::note_applied_extrinsic( + &Ok(from_post_weight_info(Some(2_500_000), Pays::Yes)), pre_info, ); - System::note_applied_extrinsic(&Ok((Some(2_500_000), Pays::Yes).into()), pre_info); System::note_applied_extrinsic(&Ok(Pays::No.into()), pre_info); - System::note_applied_extrinsic(&Ok((Some(2_500_000), Pays::No).into()), pre_info); - System::note_applied_extrinsic(&Ok((Some(500), Pays::No).into()), pre_info); System::note_applied_extrinsic( - &Err(DispatchError::BadOrigin.with_weight(Weight::from_ref_time(999))), + &Ok(from_post_weight_info(Some(2_500_000), Pays::No)), + pre_info, + ); + System::note_applied_extrinsic(&Ok(from_post_weight_info(Some(500), Pays::No)), pre_info); + System::note_applied_extrinsic( + &Err(DispatchError::BadOrigin.with_weight(Weight::from_parts(999, 0))), pre_info, ); System::note_applied_extrinsic( &Err(DispatchErrorWithPostInfo { - post_info: PostDispatchInfo { - actual_weight: None, - pays_fee: Pays::Yes, - }, + post_info: PostDispatchInfo { actual_weight: None, pays_fee: Pays::Yes }, error: DispatchError::BadOrigin, }), pre_info, @@ -270,7 +309,7 @@ fn deposit_event_uses_actual_weight_and_pays_fee() { System::note_applied_extrinsic( &Err(DispatchErrorWithPostInfo { post_info: PostDispatchInfo { - actual_weight: Some(Weight::from_ref_time(800)), + actual_weight: Some(Weight::from_parts(800, 0)), pays_fee: Pays::Yes, }, error: DispatchError::BadOrigin, @@ -280,7 +319,7 @@ fn deposit_event_uses_actual_weight_and_pays_fee() { System::note_applied_extrinsic( &Err(DispatchErrorWithPostInfo { post_info: PostDispatchInfo { - actual_weight: Some(Weight::from_ref_time(800)), + actual_weight: Some(Weight::from_parts(800, 0)), pays_fee: Pays::No, }, error: DispatchError::BadOrigin, @@ -291,16 +330,13 @@ fn deposit_event_uses_actual_weight_and_pays_fee() { let operational_base = ::BlockWeights::get() .get(DispatchClass::Operational) .base_extrinsic; - assert!( - normal_base != operational_base, - "Test pre-condition violated" - ); + assert!(normal_base != operational_base, "Test pre-condition violated"); let pre_info = DispatchInfo { - weight: Weight::from_ref_time(1000), + weight: Weight::from_parts(1000, 0), class: DispatchClass::Operational, ..Default::default() }; - System::note_applied_extrinsic(&Ok(Some(300).into()), pre_info); + System::note_applied_extrinsic(&Ok(from_actual_ref_time(Some(300))), pre_info); let got = System::events(); let want = vec![ @@ -308,7 +344,7 @@ fn deposit_event_uses_actual_weight_and_pays_fee() { phase: Phase::ApplyExtrinsic(0), event: SysEvent::ExtrinsicSuccess { dispatch_info: DispatchInfo { - weight: Weight::from_ref_time(300).saturating_add(normal_base), + weight: Weight::from_parts(300, 0).saturating_add(normal_base), ..Default::default() }, } @@ -319,7 +355,7 @@ fn deposit_event_uses_actual_weight_and_pays_fee() { phase: Phase::ApplyExtrinsic(1), event: SysEvent::ExtrinsicSuccess { dispatch_info: DispatchInfo { - weight: Weight::from_ref_time(1000).saturating_add(normal_base), + weight: Weight::from_parts(1000, 0).saturating_add(normal_base), ..Default::default() }, } @@ -330,7 +366,7 @@ fn deposit_event_uses_actual_weight_and_pays_fee() { phase: Phase::ApplyExtrinsic(2), event: SysEvent::ExtrinsicSuccess { dispatch_info: DispatchInfo { - weight: Weight::from_ref_time(1000).saturating_add(normal_base), + weight: Weight::from_parts(1000, 0).saturating_add(normal_base), ..Default::default() }, } @@ -341,7 +377,7 @@ fn deposit_event_uses_actual_weight_and_pays_fee() { phase: Phase::ApplyExtrinsic(3), event: SysEvent::ExtrinsicSuccess { dispatch_info: DispatchInfo { - weight: Weight::from_ref_time(1000).saturating_add(normal_base), + weight: Weight::from_parts(1000, 0).saturating_add(normal_base), pays_fee: Pays::Yes, ..Default::default() }, @@ -353,7 +389,7 @@ fn deposit_event_uses_actual_weight_and_pays_fee() { phase: Phase::ApplyExtrinsic(4), event: SysEvent::ExtrinsicSuccess { dispatch_info: DispatchInfo { - weight: Weight::from_ref_time(1000).saturating_add(normal_base), + weight: Weight::from_parts(1000, 0).saturating_add(normal_base), pays_fee: Pays::No, ..Default::default() }, @@ -365,7 +401,7 @@ fn deposit_event_uses_actual_weight_and_pays_fee() { phase: Phase::ApplyExtrinsic(5), event: SysEvent::ExtrinsicSuccess { dispatch_info: DispatchInfo { - weight: Weight::from_ref_time(1000).saturating_add(normal_base), + weight: Weight::from_parts(1000, 0).saturating_add(normal_base), pays_fee: Pays::No, ..Default::default() }, @@ -377,7 +413,7 @@ fn deposit_event_uses_actual_weight_and_pays_fee() { phase: Phase::ApplyExtrinsic(6), event: SysEvent::ExtrinsicSuccess { dispatch_info: DispatchInfo { - weight: Weight::from_ref_time(500).saturating_add(normal_base), + weight: Weight::from_parts(500, 0).saturating_add(normal_base), pays_fee: Pays::No, ..Default::default() }, @@ -390,7 +426,7 @@ fn deposit_event_uses_actual_weight_and_pays_fee() { event: SysEvent::ExtrinsicFailed { dispatch_error: DispatchError::BadOrigin.into(), dispatch_info: DispatchInfo { - weight: Weight::from_ref_time(999).saturating_add(normal_base), + weight: Weight::from_parts(999, 0).saturating_add(normal_base), ..Default::default() }, } @@ -402,7 +438,7 @@ fn deposit_event_uses_actual_weight_and_pays_fee() { event: SysEvent::ExtrinsicFailed { dispatch_error: DispatchError::BadOrigin.into(), dispatch_info: DispatchInfo { - weight: Weight::from_ref_time(1000).saturating_add(normal_base), + weight: Weight::from_parts(1000, 0).saturating_add(normal_base), pays_fee: Pays::Yes, ..Default::default() }, @@ -415,7 +451,7 @@ fn deposit_event_uses_actual_weight_and_pays_fee() { event: SysEvent::ExtrinsicFailed { dispatch_error: DispatchError::BadOrigin.into(), dispatch_info: DispatchInfo { - weight: Weight::from_ref_time(800).saturating_add(normal_base), + weight: Weight::from_parts(800, 0).saturating_add(normal_base), pays_fee: Pays::Yes, ..Default::default() }, @@ -428,7 +464,7 @@ fn deposit_event_uses_actual_weight_and_pays_fee() { event: SysEvent::ExtrinsicFailed { dispatch_error: DispatchError::BadOrigin.into(), dispatch_info: DispatchInfo { - weight: Weight::from_ref_time(800).saturating_add(normal_base), + weight: Weight::from_parts(800, 0).saturating_add(normal_base), pays_fee: Pays::No, ..Default::default() }, @@ -440,7 +476,7 @@ fn deposit_event_uses_actual_weight_and_pays_fee() { phase: Phase::ApplyExtrinsic(11), event: SysEvent::ExtrinsicSuccess { dispatch_info: DispatchInfo { - weight: Weight::from_ref_time(300).saturating_add(operational_base), + weight: Weight::from_parts(300, 0).saturating_add(operational_base), class: DispatchClass::Operational, ..Default::default() }, @@ -562,7 +598,12 @@ fn set_code_checks_works() { ("test", 1, 2, Err(Error::::SpecVersionNeedsToIncrease)), ("test", 1, 1, Err(Error::::SpecVersionNeedsToIncrease)), ("test2", 1, 1, Err(Error::::InvalidSpecName)), - ("test", 2, 1, Ok(PostDispatchInfo::default())), + ( + "test", + 2, + 1, + Ok(Some(::BlockWeights::get().max_block).into()), + ), ("test", 0, 1, Err(Error::::SpecVersionNeedsToIncrease)), ("test", 1, 0, Err(Error::::SpecVersionNeedsToIncrease)), ]; @@ -644,7 +685,8 @@ fn events_not_emitted_during_genesis() { assert!(System::block_number().is_zero()); let mut account_data = AccountInfo::default(); System::on_created_account(Default::default(), &mut account_data); - assert!(System::events().is_empty()); + // No events registered at the genesis block + assert!(!System::read_events_no_consensus().any(|_| true)); // Events will be emitted starting on block 1 System::set_block_number(1); System::on_created_account(Default::default(), &mut account_data); @@ -691,15 +733,41 @@ fn ensure_signed_stuff_works() { } let signed_origin = RuntimeOrigin::signed(0u64); - assert_ok!(EnsureSigned::try_origin(signed_origin.clone())); - assert_ok!(EnsureSignedBy::::try_origin(signed_origin)); + assert_ok!( as EnsureOrigin<_>>::try_origin( + signed_origin.clone() + )); + assert_ok!( as EnsureOrigin<_>>::try_origin( + signed_origin + )); #[cfg(feature = "runtime-benchmarks")] { - let successful_origin: RuntimeOrigin = EnsureSigned::successful_origin(); - assert_ok!(EnsureSigned::try_origin(successful_origin)); + let successful_origin: RuntimeOrigin = + as EnsureOrigin<_>>::try_successful_origin() + .expect("EnsureSigned has no successful origin required for the test"); + assert_ok!( as EnsureOrigin<_>>::try_origin( + successful_origin + )); + + let successful_origin: RuntimeOrigin = + as EnsureOrigin<_>>::try_successful_origin() + .expect("EnsureSignedBy has no successful origin required for the test"); + assert_ok!( as EnsureOrigin<_>>::try_origin( + successful_origin + )); + } +} + +pub fn from_actual_ref_time(ref_time: Option) -> PostDispatchInfo { + PostDispatchInfo { + actual_weight: ref_time.map(|t| Weight::from_all(t)), + pays_fee: Default::default(), + } +} - let successful_origin: RuntimeOrigin = EnsureSignedBy::::successful_origin(); - assert_ok!(EnsureSignedBy::::try_origin(successful_origin)); +pub fn from_post_weight_info(ref_time: Option, pays_fee: Pays) -> PostDispatchInfo { + PostDispatchInfo { + actual_weight: ref_time.map(|t| Weight::from_all(t)), + pays_fee, } } diff --git a/pallets/system/src/weights.rs b/pallets/system/src/weights.rs index 9213b2651..35f46703e 100644 --- a/pallets/system/src/weights.rs +++ b/pallets/system/src/weights.rs @@ -62,22 +62,22 @@ impl WeightInfo for SubstrateWeight { /// The range of component `b` is `[0, 4718592]`. fn remark(b: u32, ) -> Weight { // Minimum execution time: 7_792 nanoseconds. - Weight::from_ref_time(7_879_000_u64) + Weight::from_parts(7_879_000, 0) // Standard Error: 0 - .saturating_add(Weight::from_ref_time(604_u64).saturating_mul(b as u64)) + .saturating_add(Weight::from_parts(604, 0).saturating_mul(b as u64)) } /// The range of component `b` is `[0, 4718592]`. fn remark_with_event(b: u32, ) -> Weight { // Minimum execution time: 26_943 nanoseconds. - Weight::from_ref_time(27_213_000_u64) + Weight::from_parts(27_213_000, 0) // Standard Error: 1 - .saturating_add(Weight::from_ref_time(2_262_u64).saturating_mul(b as u64)) + .saturating_add(Weight::from_parts(2_262, 0).saturating_mul(b as u64)) } // Storage: System Digest (r:1 w:1) // Storage: unknown [0x3a686561707061676573] (r:0 w:1) fn set_heap_pages() -> Weight { // Minimum execution time: 17_916 nanoseconds. - Weight::from_ref_time(18_282_000_u64) + Weight::from_parts(18_282_000, 0) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -85,7 +85,7 @@ impl WeightInfo for SubstrateWeight { // Storage: unknown [0x3a636f6465] (r:0 w:1) fn set_code() -> Weight { // Minimum execution time: 212_972_630 nanoseconds. - Weight::from_ref_time(225_594_161_000_u64) + Weight::from_parts(225_594_161_000, 0) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -93,27 +93,27 @@ impl WeightInfo for SubstrateWeight { /// The range of component `i` is `[0, 1000]`. fn set_storage(i: u32, ) -> Weight { // Minimum execution time: 7_854 nanoseconds. - Weight::from_ref_time(8_024_000_u64) + Weight::from_parts(8_024_000, 0) // Standard Error: 1_479 - .saturating_add(Weight::from_ref_time(1_330_041_u64).saturating_mul(i as u64)) + .saturating_add(Weight::from_parts(1_330_041, 0).saturating_mul(i as u64)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i as u64))) } // Storage: Skipped Metadata (r:0 w:0) /// The range of component `i` is `[0, 1000]`. fn kill_storage(i: u32, ) -> Weight { // Minimum execution time: 7_372 nanoseconds. - Weight::from_ref_time(7_683_000_u64) + Weight::from_parts(7_683_000, 0) // Standard Error: 1_058 - .saturating_add(Weight::from_ref_time(1_051_245_u64).saturating_mul(i as u64)) + .saturating_add(Weight::from_parts(1_051_245, 0).saturating_mul(i as u64)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i as u64))) } // Storage: Skipped Metadata (r:0 w:0) /// The range of component `p` is `[0, 1000]`. fn kill_prefix(p: u32, ) -> Weight { // Minimum execution time: 11_231 nanoseconds. - Weight::from_ref_time(11_515_000_u64) + Weight::from_parts(11_515_000, 0) // Standard Error: 2_026 - .saturating_add(Weight::from_ref_time(1_957_948_u64).saturating_mul(p as u64)) + .saturating_add(Weight::from_parts(1_957_948, 0).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p as u64))) } } @@ -123,22 +123,22 @@ impl WeightInfo for () { /// The range of component `b` is `[0, 4718592]`. fn remark(b: u32, ) -> Weight { // Minimum execution time: 7_792 nanoseconds. - Weight::from_ref_time(7_879_000_u64) + Weight::from_parts(7_879_000, 0) // Standard Error: 0 - .saturating_add(Weight::from_ref_time(604_u64).saturating_mul(b as u64)) + .saturating_add(Weight::from_parts(604, 0).saturating_mul(b as u64)) } /// The range of component `b` is `[0, 4718592]`. fn remark_with_event(b: u32, ) -> Weight { // Minimum execution time: 26_943 nanoseconds. - Weight::from_ref_time(27_213_000_u64) + Weight::from_parts(27_213_000, 0) // Standard Error: 1 - .saturating_add(Weight::from_ref_time(2_262_u64).saturating_mul(b as u64)) + .saturating_add(Weight::from_parts(2_262, 0).saturating_mul(b as u64)) } // Storage: System Digest (r:1 w:1) // Storage: unknown [0x3a686561707061676573] (r:0 w:1) fn set_heap_pages() -> Weight { // Minimum execution time: 17_916 nanoseconds. - Weight::from_ref_time(18_282_000_u64) + Weight::from_parts(18_282_000, 0) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -146,7 +146,7 @@ impl WeightInfo for () { // Storage: unknown [0x3a636f6465] (r:0 w:1) fn set_code() -> Weight { // Minimum execution time: 212_972_630 nanoseconds. - Weight::from_ref_time(225_594_161_000_u64) + Weight::from_parts(225_594_161_000, 0) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -154,27 +154,27 @@ impl WeightInfo for () { /// The range of component `i` is `[0, 1000]`. fn set_storage(i: u32, ) -> Weight { // Minimum execution time: 7_854 nanoseconds. - Weight::from_ref_time(8_024_000_u64) + Weight::from_parts(8_024_000, 0) // Standard Error: 1_479 - .saturating_add(Weight::from_ref_time(1_330_041_u64).saturating_mul(i as u64)) + .saturating_add(Weight::from_parts(1_330_041, 0).saturating_mul(i as u64)) .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(i as u64))) } // Storage: Skipped Metadata (r:0 w:0) /// The range of component `i` is `[0, 1000]`. fn kill_storage(i: u32, ) -> Weight { // Minimum execution time: 7_372 nanoseconds. - Weight::from_ref_time(7_683_000_u64) + Weight::from_parts(7_683_000, 0) // Standard Error: 1_058 - .saturating_add(Weight::from_ref_time(1_051_245_u64).saturating_mul(i as u64)) + .saturating_add(Weight::from_parts(1_051_245, 0).saturating_mul(i as u64)) .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(i as u64))) } // Storage: Skipped Metadata (r:0 w:0) /// The range of component `p` is `[0, 1000]`. fn kill_prefix(p: u32, ) -> Weight { // Minimum execution time: 11_231 nanoseconds. - Weight::from_ref_time(11_515_000_u64) + Weight::from_parts(11_515_000, 0) // Standard Error: 2_026 - .saturating_add(Weight::from_ref_time(1_957_948_u64).saturating_mul(p as u64)) + .saturating_add(Weight::from_parts(1_957_948, 0).saturating_mul(p as u64)) .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(p as u64))) } } From 64787cd0bb77caacd59d447cef2c8986f91e45f1 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Mon, 7 Aug 2023 18:25:39 +0530 Subject: [PATCH 03/58] Updated packages to use latest support versions --- Cargo.lock | 3969 +++++++++-------- Cargo.toml | 237 +- avail-subxt/Cargo.toml | 6 +- base/Cargo.toml | 2 +- node/Cargo.toml | 24 +- pallets/bridges/nomad/da-bridge/Cargo.toml | 10 +- pallets/bridges/nomad/home/Cargo.toml | 14 +- .../bridges/nomad/updater-manager/Cargo.toml | 8 +- pallets/dactr/Cargo.toml | 12 +- pallets/mocked_runtime/Cargo.toml | 14 +- pallets/system/Cargo.toml | 8 +- rpc/kate-rpc/Cargo.toml | 2 +- runtime/Cargo.toml | 18 +- 13 files changed, 2400 insertions(+), 1924 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7a350d3e1..50c3a7249 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -14,20 +14,20 @@ dependencies = [ [[package]] name = "addr2line" -version = "0.17.0" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9ecd88a8c8378ca913a680cd98f0f13ac67383d35993f86c90a70e3f137816b" +checksum = "a76fd60b23679b7d19bd066031410fb7e458ccc5e958eb5c325888ce4baedc97" dependencies = [ - "gimli 0.26.2", + "gimli", ] [[package]] name = "addr2line" -version = "0.19.0" +version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a76fd60b23679b7d19bd066031410fb7e458ccc5e958eb5c325888ce4baedc97" +checksum = "f4fa78e18c64fce05e902adecd7a5eed15a5e0a3439f7b0e169f0252214865e3" dependencies = [ - "gimli 0.27.2", + "gimli", ] [[package]] @@ -42,7 +42,7 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7fc95d1bdb8e6666b2b217308eeeb09f2d6728d104be3e31916cc74d15420331" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", ] [[package]] @@ -51,10 +51,20 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b613b8e1e3cf911a086f53f03bf286f52fd7a7258e4fa606f0ef220d39d8877" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", "rand_core 0.6.4", ] +[[package]] +name = "aead" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d122413f284cf2d62fb1b7db97e02edb8cda96d769b16e443a4f6195e35662b0" +dependencies = [ + "crypto-common", + "generic-array 0.14.7", +] + [[package]] name = "aes" version = "0.6.0" @@ -80,29 +90,15 @@ dependencies = [ [[package]] name = "aes" -version = "0.8.2" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "433cfd6710c9986c576a25ca913c39d66a6474107b406f34f91d4a8923395241" +checksum = "ac1f845298e95f983ff1944b728ae08b8cebab80d684f0a832ed0fc74dfa27e2" dependencies = [ "cfg-if", - "cipher 0.4.3", + "cipher 0.4.4", "cpufeatures", ] -[[package]] -name = "aes-gcm" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5278b5fabbb9bd46e24aa69b2fdea62c99088e0a950a9be40e3e0101298f88da" -dependencies = [ - "aead 0.3.2", - "aes 0.6.0", - "cipher 0.2.5", - "ctr 0.6.0", - "ghash 0.3.1", - "subtle", -] - [[package]] name = "aes-gcm" version = "0.9.4" @@ -117,6 +113,20 @@ dependencies = [ "subtle", ] +[[package]] +name = "aes-gcm" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "209b47e8954a928e1d72e86eca7000ebb6655fe1436d33eefc2201cad027e237" +dependencies = [ + "aead 0.5.2", + "aes 0.8.3", + "cipher 0.4.4", + "ctr 0.9.2", + "ghash 0.5.0", + "subtle", +] + [[package]] name = "aes-soft" version = "0.6.4" @@ -149,7 +159,7 @@ version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" dependencies = [ - "getrandom 0.2.8", + "getrandom 0.2.10", "once_cell", "version_check", ] @@ -161,19 +171,26 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f" dependencies = [ "cfg-if", + "getrandom 0.2.10", "once_cell", "version_check", ] [[package]] name = "aho-corasick" -version = "0.7.20" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac" +checksum = "43f6cb1bf222025340178f382c426f13757b2960e89779dfcb319c32542a5a41" dependencies = [ "memchr", ] +[[package]] +name = "android-tzdata" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" + [[package]] name = "android_system_properties" version = "0.1.5" @@ -183,6 +200,12 @@ dependencies = [ "libc", ] +[[package]] +name = "anes" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299" + [[package]] name = "ansi_term" version = "0.12.1" @@ -192,11 +215,60 @@ dependencies = [ "winapi", ] +[[package]] +name = "anstream" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ca84f3628370c59db74ee214b3263d58f9aadd9b4fe7e711fd87dc452b7f163" +dependencies = [ + "anstyle", + "anstyle-parse", + "anstyle-query", + "anstyle-wincon", + "colorchoice", + "is-terminal", + "utf8parse", +] + +[[package]] +name = "anstyle" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a30da5c5f2d5e72842e00bcb57657162cdabef0931f40e2deb9b4140440cecd" + +[[package]] +name = "anstyle-parse" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "938874ff5980b03a87c5524b3ae5b59cf99b1d6bc836848df7bc5ada9643c333" +dependencies = [ + "utf8parse", +] + +[[package]] +name = "anstyle-query" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ca11d4be1bab0c8bc8734a9aa7bf4ee8316d462a08c6ac5052f888fef5b494b" +dependencies = [ + "windows-sys 0.48.0", +] + +[[package]] +name = "anstyle-wincon" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "180abfa45703aebe0093f79badacc01b8fd4ea2e35118747e5811127f926e188" +dependencies = [ + "anstyle", + "windows-sys 0.48.0", +] + [[package]] name = "anyhow" -version = "1.0.69" +version = "1.0.72" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "224afbd727c3d6e4b90103ece64b8d1b67fbb1973b1046c2281eed3f3803f800" +checksum = "3b13c32d80ecc7ab747b80c3784bce54ee8a7a0cc4fbda9bf4cda2cf6fe90854" [[package]] name = "approx" @@ -253,7 +325,7 @@ dependencies = [ "ark-serialize", "ark-std", "derivative", - "digest 0.10.6", + "digest 0.10.7", "itertools 0.10.5", "num-bigint", "num-traits", @@ -306,7 +378,7 @@ checksum = "adb7b85a02b83d2f22f89bd5cac66c9c89474240cb6207cb1efc16d098e822a5" dependencies = [ "ark-serialize-derive", "ark-std", - "digest 0.10.6", + "digest 0.10.7", "num-bigint", ] @@ -333,15 +405,15 @@ dependencies = [ [[package]] name = "array-bytes" -version = "4.2.0" +version = "6.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f52f63c5c1316a16a4b35eaac8b76a98248961a533f061684cb2a7cb0eafb6c6" +checksum = "d9b1c5a481ec30a5abd8dfbd94ab5cf1bb4e9a66be7f1b3b322f2f1170c200fd" [[package]] name = "arrayref" -version = "0.3.6" +version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4c527152e37cf757a3f78aae5a06fbeefdb07ccc535c980a3208ee3060dd544" +checksum = "6b4930d2cb77ce62f89ee5d5289b4ac049559b1c45539271f5ed4fdc7db34545" [[package]] name = "arrayvec" @@ -351,9 +423,9 @@ checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" [[package]] name = "arrayvec" -version = "0.7.2" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6" +checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" [[package]] name = "asn1-rs" @@ -368,14 +440,14 @@ dependencies = [ "num-traits", "rusticata-macros", "thiserror", - "time 0.3.19", + "time 0.3.25", ] [[package]] name = "asn1-rs" -version = "0.5.1" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf6690c370453db30743b373a60ba498fc0d6d83b11f4abfd87a84a075db5dd4" +checksum = "7f6fd5ddaf0351dff5b8da21b2fb4ff8e08ddd02857f0bf69c47639106c0fff0" dependencies = [ "asn1-rs-derive 0.4.0", "asn1-rs-impl", @@ -384,7 +456,7 @@ dependencies = [ "num-traits", "rusticata-macros", "thiserror", - "time 0.3.19", + "time 0.3.25", ] [[package]] @@ -423,70 +495,85 @@ dependencies = [ ] [[package]] -name = "asn1_der" -version = "0.7.5" +name = "async-channel" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e22d1f4b888c298a027c99dc9048015fac177587de20fc30232a057dfbe24a21" +checksum = "81953c529336010edd6d8e358f886d9581267795c61b19475b71314bffa46d35" +dependencies = [ + "concurrent-queue", + "event-listener", + "futures-core", +] [[package]] name = "async-io" -version = "1.12.0" +version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c374dda1ed3e7d8f0d9ba58715f924862c63eae6849c92d3a18e7fbde9e2794" +checksum = "0fc5b45d93ef0529756f812ca52e44c221b35341892d3dcc34132ac02f3dd2af" dependencies = [ "async-lock", "autocfg", + "cfg-if", "concurrent-queue", "futures-lite", - "libc", "log", "parking", "polling", + "rustix 0.37.23", "slab", - "socket2", + "socket2 0.4.9", "waker-fn", - "windows-sys 0.42.0", ] [[package]] name = "async-lock" -version = "2.6.0" +version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8101efe8695a6c17e02911402145357e718ac92d3ff88ae8419e84b1707b685" +checksum = "fa24f727524730b077666307f2734b4a1a1c57acb79193127dcc8914d5242dd7" dependencies = [ "event-listener", - "futures-lite", +] + +[[package]] +name = "async-recursion" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e97ce7de6cf12de5d7226c73f5ba9811622f4db3a5b91b55c53e987e5f91cba" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.28", ] [[package]] name = "async-trait" -version = "0.1.64" +version = "0.1.72" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cd7fce9ba8c3c042128ce72d8b2ddbf3a05747efb67ea0313c635e10bda47a2" +checksum = "cc6dde6e4ed435a4c1ee4e73592f5ba9da2151af10076cc04858746af9352d09" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.28", ] [[package]] name = "asynchronous-codec" -version = "0.6.1" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06a0daa378f5fd10634e44b0a29b2a87b890657658e072a30d6f26e57ddee182" +checksum = "4057f2c32adbb2fc158e22fb38433c8e9bbf76b75a4732c7c0cbaf695fb65568" dependencies = [ "bytes", "futures-sink", "futures-util", "memchr", - "pin-project-lite 0.2.9", + "pin-project-lite 0.2.11", ] [[package]] name = "atomic-waker" -version = "1.1.0" +version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "debc29dde2e69f9e47506b525f639ed42300fc014a3e007832592448fa8e4599" +checksum = "1181e1e0d1fce796a03db1ae795d67167da795f9cf4a39c37589e85ef57f26d3" [[package]] name = "atty" @@ -501,9 +588,9 @@ dependencies = [ [[package]] name = "auto_impl" -version = "1.0.1" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a8c1df849285fbacd587de7818cc7d13be6cd2cbcd47a04fb1801b0e2706e33" +checksum = "fee3da8ef1276b0bee5dd1c7258010d8fffd31801447323115a25560e1327b89" dependencies = [ "proc-macro-error", "proc-macro2", @@ -532,9 +619,9 @@ dependencies = [ [[package]] name = "avail-core" version = "0.5.0" -source = "git+https://github.com/availproject/avail-core?tag=avail-core/v0.5.0#3e972524dce089d73140a2e32c83084e5c9c418c" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#b77ac42456d7e09b81d29c065ce8a20872ef596f" dependencies = [ - "beefy-merkle-tree", + "binary-merkle-tree", "derive_more", "frame-support", "hash256-std-hasher", @@ -556,16 +643,16 @@ dependencies = [ [[package]] name = "backtrace" -version = "0.3.67" +version = "0.3.68" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "233d376d6d185f2a3093e58f283f60f880315b6c60075b01f36b3b85154564ca" +checksum = "4319208da049c43661739c5fade2ba182f09d1dc2299b32298d3a31692b17e12" dependencies = [ - "addr2line 0.19.0", + "addr2line 0.20.0", "cc", "cfg-if", "libc", "miniz_oxide", - "object 0.30.3", + "object 0.31.1", "rustc-demangle", ] @@ -582,16 +669,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "349a06037c7bf932dd7e7d1f653678b2038b9ad46a74102f1fc7bd7872678cce" [[package]] -name = "base58" -version = "0.1.0" +name = "base16ct" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5024ee8015f02155eee35c711107ddd9a9bf3cb689cf2a9089c97e79b6e1ae83" +checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" [[package]] name = "base58" -version = "0.2.0" +version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6107fe1be6682a68940da878d9e9f5e90ca5745b3dec9fd1bb393c8777d4f581" +checksum = "5024ee8015f02155eee35c711107ddd9a9bf3cb689cf2a9089c97e79b6e1ae83" [[package]] name = "base58check" @@ -599,7 +686,7 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2ee2fe4c9a0c84515f136aaae2466744a721af6d63339c18689d9e995d74d99b" dependencies = [ - "base58 0.1.0", + "base58", "sha2 0.8.2", ] @@ -617,15 +704,15 @@ checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" [[package]] name = "base64" -version = "0.21.0" +version = "0.21.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4a4ddaa51a5bc52a6948f74c06d20aaaddb71924eab79b8c97a8c556e942d6a" +checksum = "604178f6c5c21f02dc555784810edfb88d34ac2c73b2eae109655649ee73ce3d" [[package]] name = "base64ct" -version = "1.5.3" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b645a089122eccb6111b4f81cbc1a49f5900ac4666bb93ac027feaecf15607bf" +checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" [[package]] name = "bech32" @@ -643,13 +730,12 @@ dependencies = [ ] [[package]] -name = "beefy-merkle-tree" +name = "binary-merkle-tree" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#6fa7fe1326ecaab9921c2c3888530ad679cfbb87" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ - "sp-api", - "sp-beefy", - "sp-runtime", + "hash-db", + "log", ] [[package]] @@ -663,22 +749,23 @@ dependencies = [ [[package]] name = "bindgen" -version = "0.64.0" +version = "0.65.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4243e6031260db77ede97ad86c27e501d646a27ab57b59a574f725d98ab1fb4" +checksum = "cfdf7b466f9a4903edc73f95d6d2bcd5baf8ae620638762244d3f60143643cc5" dependencies = [ - "bitflags", + "bitflags 1.3.2", "cexpr", "clang-sys", "lazy_static", "lazycell", "peeking_take_while", + "prettyplease 0.2.12", "proc-macro2", "quote", "regex", "rustc-hash", "shlex", - "syn 1.0.109", + "syn 2.0.28", ] [[package]] @@ -687,6 +774,12 @@ version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" +[[package]] +name = "bitflags" +version = "2.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "630be753d4e58660abd17930c71b647fe46c27ea6b63cc59e1e3851406972e42" + [[package]] name = "bitvec" version = "0.17.4" @@ -715,7 +808,7 @@ version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "46502ad458c9a52b69d4d4d32775c788b7a1b85e8bc9d482d92250fc0e3f8efe" dependencies = [ - "digest 0.10.6", + "digest 0.10.7", ] [[package]] @@ -725,8 +818,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3c2f0dc9a68c6317d884f97cc36cf5a3d20ba14ce404227df55e1af708ab04bc" dependencies = [ "arrayref", - "arrayvec 0.7.2", - "constant_time_eq", + "arrayvec 0.7.4", + "constant_time_eq 0.2.6", ] [[package]] @@ -736,21 +829,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6637f448b9e61dfadbdcbae9a885fadee1f3eaffb1f8d3c1965d3ade8bdfd44f" dependencies = [ "arrayref", - "arrayvec 0.7.2", - "constant_time_eq", + "arrayvec 0.7.4", + "constant_time_eq 0.2.6", ] [[package]] name = "blake3" -version = "1.3.3" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42ae2468a89544a466886840aa467a25b766499f4f04bf7d9fcd10ecee9fccef" +checksum = "199c42ab6972d92c9f8995f086273d25c42fc0f7b2a1fcefba465c1352d25ba5" dependencies = [ "arrayref", - "arrayvec 0.7.2", + "arrayvec 0.7.4", "cc", "cfg-if", - "constant_time_eq", + "constant_time_eq 0.3.0", ] [[package]] @@ -771,16 +864,16 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", ] [[package]] name = "block-buffer" -version = "0.10.3" +version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69cce20737498f97b993470a6e536b8523f0af7892a4f928cceb1ac5e52ebe7e" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", ] [[package]] @@ -819,6 +912,18 @@ dependencies = [ "zeroize", ] +[[package]] +name = "bounded-collections" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb5b05133427c07c4776906f673ccf36c21b102c9829c641a5b56bd151d44fd6" +dependencies = [ + "log", + "parity-scale-codec", + "scale-info", + "serde", +] + [[package]] name = "bs58" version = "0.4.0" @@ -827,9 +932,9 @@ checksum = "771fe0050b883fcc3ea2359b1a96bcfbc090b7116eae7c3c512c7a083fdf23d3" [[package]] name = "bstr" -version = "1.3.0" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ffdb39cb703212f3c11973452c2861b972f757b021158f3516ba10f2fa8b2c1" +checksum = "6798148dccfbff0fae41c7574d2fa8f1ef3492fba0face179de5d8d447d67b05" dependencies = [ "memchr", "serde", @@ -846,9 +951,9 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.12.0" +version = "3.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d261e256854913907f67ed06efbc3338dfe6179796deefc1ff763fc1aee5535" +checksum = "a3e2c3daef883ecc1b5d58c15adae93470a91d425f3532ba1695849656af3fc1" [[package]] name = "byte-slice-cast" @@ -896,33 +1001,34 @@ dependencies = [ [[package]] name = "camino" -version = "1.1.3" +version = "1.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6031a462f977dd38968b6f23378356512feeace69cef817e1a4475108093cec3" +checksum = "c59e92b5a388f549b863a7bea62612c09f24c8393560709a54558a9abdfb3b9c" dependencies = [ "serde", ] [[package]] name = "cargo-platform" -version = "0.1.2" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbdb825da8a5df079a43676dbe042702f1707b1109f713a01420fbb4cc71fa27" +checksum = "2cfa25e60aea747ec7e1124f238816749faa93759c6ff5b31f1ccdda137f4479" dependencies = [ "serde", ] [[package]] name = "cargo_metadata" -version = "0.14.2" +version = "0.15.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4acbb09d9ee8e23699b9634375c72795d095bf268439da88562cf9b501f181fa" +checksum = "eee4243f1f26fc7a42710e7439c149e2b10b05472f88090acce52632f231a73a" dependencies = [ "camino", "cargo-platform", - "semver 1.0.16", + "semver 1.0.18", "serde", "serde_json", + "thiserror", ] [[package]] @@ -933,11 +1039,12 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5" [[package]] name = "cc" -version = "1.0.79" +version = "1.0.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f" +checksum = "305fe645edc1442a0fa8b6726ba61d422798d37a52e12eaecf4b022ebbb88f01" dependencies = [ "jobserver", + "libc", ] [[package]] @@ -962,9 +1069,9 @@ dependencies = [ [[package]] name = "cfg-expr" -version = "0.10.3" +version = "0.15.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0aacacf4d96c24b2ad6eb8ee6df040e4f27b0d0b39a5710c30091baa830485db" +checksum = "b40ccee03b5175c18cde8f37e7d2a33bcef6f8ec8f7cc0d81090d1bb380949c9" dependencies = [ "smallvec", ] @@ -1008,24 +1115,51 @@ dependencies = [ [[package]] name = "chrono" -version = "0.4.23" +version = "0.4.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16b0a3d9ed01224b22057780a37bb8c5dbfe1be8ba48678e7bf57ec4b385411f" +checksum = "ec837a71355b28f6556dbd569b37b3f363091c0bd4b2e735674521b4c5fd9bc5" dependencies = [ + "android-tzdata", "iana-time-zone", "js-sys", - "num-integer", "num-traits", "time 0.1.45", "wasm-bindgen", "winapi", ] +[[package]] +name = "ciborium" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "effd91f6c78e5a4ace8a5d3c0b6bfaec9e2baaef55f3efc00e45fb2e477ee926" +dependencies = [ + "ciborium-io", + "ciborium-ll", + "serde", +] + +[[package]] +name = "ciborium-io" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdf919175532b369853f5d5e20b26b43112613fd6fe7aee757e35f7a44642656" + +[[package]] +name = "ciborium-ll" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "defaa24ecc093c77630e6c15e17c51f5e187bf35ee514f4e2d67baaa96dae22b" +dependencies = [ + "ciborium-io", + "half", +] + [[package]] name = "cid" -version = "0.8.6" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6ed9c8b2d17acb8110c46f1da5bf4a696d745e1474a16db0cd2b49cd0249bf2" +checksum = "b9b68e3193982cd54187d71afdb2a271ad4cf8af157858e9cb911b91321de143" dependencies = [ "core2", "multibase", @@ -1040,7 +1174,7 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "12f8e7987cbd042a63249497f41aed09f8e65add917ea6566effbc56578d6801" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", ] [[package]] @@ -1049,14 +1183,14 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ee52072ec15386f770805afd189a01c8841be8696bed250fa2f13c4c0d6dfb7" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", ] [[package]] name = "cipher" -version = "0.4.3" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1873270f8f7942c191139cb8a40fd228da6c3fd2fc376d7e92d47aa14aeb59e" +checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" dependencies = [ "crypto-common", "inout", @@ -1073,9 +1207,9 @@ dependencies = [ [[package]] name = "clang-sys" -version = "1.6.0" +version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77ed9a53e5d4d9c573ae844bfac6872b159cb1d1585a83b29e7a64b7eef7332a" +checksum = "c688fc74432808e3eb684cae8830a86be1d66a2bd58e1f248ed0960a590baf6f" dependencies = [ "glob", "libc", @@ -1084,61 +1218,75 @@ dependencies = [ [[package]] name = "clap" -version = "2.34.0" +version = "3.2.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c" +checksum = "4ea181bf566f71cb9a5d17a59e1871af638180a18fb0035c92ae62b705207123" dependencies = [ - "bitflags", + "bitflags 1.3.2", + "clap_lex 0.2.4", + "indexmap 1.9.3", "textwrap", - "unicode-width", ] [[package]] name = "clap" -version = "4.1.6" +version = "4.3.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec0b0588d44d4d63a87dbd75c136c166bbfd9a86a31cb89e09906521c7d3f5e3" +checksum = "5fd304a20bff958a57f04c4e96a2e7594cc4490a0e809cbd48bb6437edaa452d" dependencies = [ - "bitflags", + "clap_builder", "clap_derive", - "clap_lex", - "is-terminal", "once_cell", +] + +[[package]] +name = "clap_builder" +version = "4.3.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01c6a3f08f1fe5662a35cfe393aec09c4df95f60ee93b7556505260f75eee9e1" +dependencies = [ + "anstream", + "anstyle", + "clap_lex 0.5.0", "strsim", - "termcolor", ] [[package]] name = "clap_complete" -version = "4.1.3" +version = "4.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0012995dc3a54314f4710f5631d74767e73c534b8757221708303e48eef7a19b" +checksum = "5fc443334c81a804575546c5a8a79b4913b50e28d69232903604cada1de817ce" dependencies = [ - "clap 4.1.6", + "clap 4.3.19", ] [[package]] name = "clap_derive" -version = "4.1.0" +version = "4.3.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "684a277d672e91966334af371f1a7b5833f9aa00b07c84e92fbce95e00208ce8" +checksum = "54a9bb5758fc5dfe728d1019941681eccaf0cf8a4189b692a0ee2f2ecf90a050" dependencies = [ "heck", - "proc-macro-error", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.28", ] [[package]] name = "clap_lex" -version = "0.3.2" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "350b9cf31731f9957399229e9b2adc51eeabdfbe9d71d9a0552275fd12710d09" +checksum = "2850f2f5a82cbf437dd5af4d49848fbdfc27c157c3d010345776f952765261c5" dependencies = [ "os_str_bytes", ] +[[package]] +name = "clap_lex" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2da6da31387c7e4ef160ffab6d5e7f00c42626fe39aea70a7b0f1773f7dd6c1b" + [[package]] name = "codespan-reporting" version = "0.11.1" @@ -1158,13 +1306,13 @@ dependencies = [ "bincode", "bs58", "coins-core", - "digest 0.10.6", - "getrandom 0.2.8", + "digest 0.10.7", + "getrandom 0.2.10", "hmac 0.12.1", - "k256", + "k256 0.11.6", "lazy_static", "serde", - "sha2 0.10.6", + "sha2 0.10.7", "thiserror", ] @@ -1176,12 +1324,12 @@ checksum = "2a11892bcac83b4c6e95ab84b5b06c76d9d70ad73548dd07418269c5c7977171" dependencies = [ "bitvec 0.17.4", "coins-bip32", - "getrandom 0.2.8", + "getrandom 0.2.10", "hex", "hmac 0.12.1", "pbkdf2 0.11.0", "rand 0.8.5", - "sha2 0.10.6", + "sha2 0.10.7", "thiserror", ] @@ -1195,22 +1343,28 @@ dependencies = [ "base64 0.12.3", "bech32", "blake2", - "digest 0.10.6", - "generic-array 0.14.6", + "digest 0.10.7", + "generic-array 0.14.7", "hex", "ripemd", "serde", "serde_derive", - "sha2 0.10.6", + "sha2 0.10.7", "sha3", "thiserror", ] +[[package]] +name = "colorchoice" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7" + [[package]] name = "comfy-table" -version = "6.1.4" +version = "7.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e7b787b0dc42e8111badfdbe4c3059158ccb2db8780352fa1b01e8ccf45cc4d" +checksum = "9ab77dbd8adecaf3f0db40581631b995f312a8a5ae3aa9993188bb8f23d83a5b" dependencies = [ "strum", "strum_macros", @@ -1219,24 +1373,65 @@ dependencies = [ [[package]] name = "concurrent-queue" -version = "2.1.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c278839b831783b70278b14df4d45e1beb1aad306c07bb796637de9a0e323e8e" +checksum = "62ec6771ecfa0762d24683ee5a32ad78487a3d3afdc0fb8cae19d2c5deb50b7c" dependencies = [ "crossbeam-utils", ] +[[package]] +name = "console" +version = "0.15.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c926e00cc70edefdc64d3a5ff31cc65bb97a3460097762bd23afb4d8145fccf8" +dependencies = [ + "encode_unicode", + "lazy_static", + "libc", + "unicode-width", + "windows-sys 0.45.0", +] + [[package]] name = "const-oid" -version = "0.9.1" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "795bc6e66a8e340f075fcf6227e417a2dc976b92b91f3cdc778bb858778b6747" + +[[package]] +name = "const-random" +version = "0.1.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "368a7a772ead6ce7e1de82bfb04c485f3db8ec744f72925af5735e29a22cc18e" +dependencies = [ + "const-random-macro", + "proc-macro-hack", +] + +[[package]] +name = "const-random-macro" +version = "0.1.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d7d6ab3c3a2282db210df5f02c4dab6e0a7057af0fb7ebd4070f30fe05c0ddb" +dependencies = [ + "getrandom 0.2.10", + "once_cell", + "proc-macro-hack", + "tiny-keccak", +] + +[[package]] +name = "constant_time_eq" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cec318a675afcb6a1ea1d4340e2d377e56e47c266f28043ceccbf4412ddfdd3b" +checksum = "21a53c0a4d288377e7415b53dcfc3c04da5cdc2cc95c8d5ac178b58f0b861ad6" [[package]] name = "constant_time_eq" -version = "0.2.4" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3ad85c1f65dc7b37604eb0e89748faf0b9653065f2a8ef69f96a687ec1e9279" +checksum = "f7144d30dcf0fafbce74250a3963025d8d52177934239851c917d29f1df280c2" [[package]] name = "convert_case" @@ -1265,9 +1460,9 @@ dependencies = [ [[package]] name = "core-foundation-sys" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc" +checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa" [[package]] name = "core2" @@ -1289,42 +1484,36 @@ dependencies = [ [[package]] name = "cpufeatures" -version = "0.2.5" +version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28d997bd5e24a5928dd43e46dc529867e207907fe0b239c3477d924f7f2ca320" +checksum = "a17b76ff3a4162b0b27f354a0c87015ddad39d35f9c0c36607a3bdd175dde1f1" dependencies = [ "libc", ] -[[package]] -name = "cpuid-bool" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcb25d077389e53838a8158c8e99174c5a9d902dee4904320db714f3c653ffba" - [[package]] name = "cranelift-bforest" -version = "0.88.2" +version = "0.95.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52056f6d0584484b57fa6c1a65c1fcb15f3780d8b6a758426d9e3084169b2ddd" +checksum = "1277fbfa94bc82c8ec4af2ded3e639d49ca5f7f3c7eeab2c66accd135ece4e70" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-codegen" -version = "0.88.2" +version = "0.95.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18fed94c8770dc25d01154c3ffa64ed0b3ba9d583736f305fed7beebe5d9cf74" +checksum = "c6e8c31ad3b2270e9aeec38723888fe1b0ace3bea2b06b3f749ccf46661d3220" dependencies = [ - "arrayvec 0.7.2", "bumpalo", "cranelift-bforest", "cranelift-codegen-meta", "cranelift-codegen-shared", "cranelift-entity", "cranelift-isle", - "gimli 0.26.2", + "gimli", + "hashbrown 0.13.2", "log", "regalloc2", "smallvec", @@ -1333,33 +1522,33 @@ dependencies = [ [[package]] name = "cranelift-codegen-meta" -version = "0.88.2" +version = "0.95.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c451b81faf237d11c7e4f3165eeb6bac61112762c5cfe7b4c0fb7241474358f" +checksum = "c8ac5ac30d62b2d66f12651f6b606dbdfd9c2cfd0908de6b387560a277c5c9da" dependencies = [ "cranelift-codegen-shared", ] [[package]] name = "cranelift-codegen-shared" -version = "0.88.2" +version = "0.95.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7c940133198426d26128f08be2b40b0bd117b84771fd36798969c4d712d81fc" +checksum = "dd82b8b376247834b59ed9bdc0ddeb50f517452827d4a11bccf5937b213748b8" [[package]] name = "cranelift-entity" -version = "0.88.2" +version = "0.95.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87a0f1b2fdc18776956370cf8d9b009ded3f855350c480c1c52142510961f352" +checksum = "40099d38061b37e505e63f89bab52199037a72b931ad4868d9089ff7268660b0" dependencies = [ "serde", ] [[package]] name = "cranelift-frontend" -version = "0.88.2" +version = "0.95.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34897538b36b216cc8dd324e73263596d51b8cf610da6498322838b2546baf8a" +checksum = "64a25d9d0a0ae3079c463c34115ec59507b4707175454f0eee0891e83e30e82d" dependencies = [ "cranelift-codegen", "log", @@ -1369,15 +1558,15 @@ dependencies = [ [[package]] name = "cranelift-isle" -version = "0.88.2" +version = "0.95.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b2629a569fae540f16a76b70afcc87ad7decb38dc28fa6c648ac73b51e78470" +checksum = "80de6a7d0486e4acbd5f9f87ec49912bf4c8fb6aea00087b989685460d4469ba" [[package]] name = "cranelift-native" -version = "0.88.2" +version = "0.95.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20937dab4e14d3e225c5adfc9c7106bafd4ac669bdb43027b911ff794c6fb318" +checksum = "bb6b03e0e03801c4b3fd8ce0758a94750c07a44e7944cc0ffbf0d3f2e7c79b00" dependencies = [ "cranelift-codegen", "libc", @@ -1386,9 +1575,9 @@ dependencies = [ [[package]] name = "cranelift-wasm" -version = "0.88.2" +version = "0.95.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80fc2288957a94fd342a015811479de1837850924166d1f1856d8406e6f3609b" +checksum = "ff3220489a3d928ad91e59dd7aeaa8b3de18afb554a6211213673a71c90737ac" dependencies = [ "cranelift-codegen", "cranelift-entity", @@ -1426,15 +1615,16 @@ dependencies = [ [[package]] name = "criterion" -version = "0.3.6" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b01d6de93b2b6c65e17c634a26653a29d107b3c98c607c765bf38d041531cd8f" +checksum = "e7c76e09c1aae2bc52b3d2f29e13c6572553b30c4aa1b8a49fd70de6412654cb" dependencies = [ + "anes", "atty", "cast", - "clap 2.34.0", + "ciborium", + "clap 3.2.25", "criterion-plot", - "csv", "itertools 0.10.5", "lazy_static", "num-traits", @@ -1443,7 +1633,6 @@ dependencies = [ "rayon", "regex", "serde", - "serde_cbor", "serde_derive", "serde_json", "tinytemplate", @@ -1452,9 +1641,9 @@ dependencies = [ [[package]] name = "criterion-plot" -version = "0.4.5" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2673cc8207403546f45f5fd319a974b1e6983ad1a3ee7e6041650013be041876" +checksum = "6b50826342786a51a89e2da3a28f1c32b06e387201bc2d19791f622c673706b1" dependencies = [ "cast", "itertools 0.10.5", @@ -1462,9 +1651,9 @@ dependencies = [ [[package]] name = "crossbeam-channel" -version = "0.5.6" +version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2dd04ddaf88237dc3b8d8f9a3c1004b506b54b3313403944054d23c0870c521" +checksum = "a33c2bf77f2df06183c3aa30d1e96c0695a313d4f9c453cc3762a6db39f99200" dependencies = [ "cfg-if", "crossbeam-utils", @@ -1472,9 +1661,9 @@ dependencies = [ [[package]] name = "crossbeam-deque" -version = "0.8.2" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "715e8152b692bba2d374b53d4875445368fdf21a94751410af607a5ac677d1fc" +checksum = "ce6fd6f855243022dcecf8702fef0c297d4338e226845fe067f6341ad9fa0cef" dependencies = [ "cfg-if", "crossbeam-epoch", @@ -1483,22 +1672,22 @@ dependencies = [ [[package]] name = "crossbeam-epoch" -version = "0.9.13" +version = "0.9.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01a9af1f4c2ef74bb8aa1f7e19706bc72d03598c8a570bb5de72243c7a9d9d5a" +checksum = "ae211234986c545741a7dc064309f67ee1e5ad243d0e48335adc0484d960bcc7" dependencies = [ "autocfg", "cfg-if", "crossbeam-utils", - "memoffset 0.7.1", + "memoffset 0.9.0", "scopeguard", ] [[package]] name = "crossbeam-utils" -version = "0.8.14" +version = "0.8.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fb766fa798726286dbbb842f174001dab8abc7b627a1dd86e0b7222a95d929f" +checksum = "5a22b2d63d4d1dc0b7f1b6b2747dd0088008a9be28b6ddf0b1e7d335e3037294" dependencies = [ "cfg-if", ] @@ -1515,7 +1704,19 @@ version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ef2b4b23cddf68b89b8f8069890e8c270d54e2d5fe1b143820234805e4cb17ef" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", + "rand_core 0.6.4", + "subtle", + "zeroize", +] + +[[package]] +name = "crypto-bigint" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf4c2f4e1afd912bc40bfd6fed5d9dc1f288e0ba01bfcc835cc5bc3eb13efe15" +dependencies = [ + "generic-array 0.14.7", "rand_core 0.6.4", "subtle", "zeroize", @@ -1527,7 +1728,8 @@ version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", + "rand_core 0.6.4", "typenum", ] @@ -1537,60 +1739,20 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", "subtle", ] [[package]] name = "crypto-mac" -version = "0.10.1" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bff07008ec701e8028e2ceb8f83f0e4274ee62bd2dbdc4fefff2e9a91824081a" +checksum = "b1d1a86f49236c215f271d40892d5fc950490551400b02ef360692c29815c714" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", "subtle", ] -[[package]] -name = "crypto-mac" -version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1d1a86f49236c215f271d40892d5fc950490551400b02ef360692c29815c714" -dependencies = [ - "generic-array 0.14.6", - "subtle", -] - -[[package]] -name = "csv" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af91f40b7355f82b0a891f50e70399475945bb0b0da4f1700ce60761c9d3e359" -dependencies = [ - "csv-core", - "itoa", - "ryu", - "serde", -] - -[[package]] -name = "csv-core" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b2466559f260f48ad25fe6317b3c8dac77b5bdb5763ac7d9d6103530663bc90" -dependencies = [ - "memchr", -] - -[[package]] -name = "ctr" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb4a30d54f7443bf3d6191dcd486aca19e67cb3c49fa7a06a319966346707e7f" -dependencies = [ - "cipher 0.2.5", -] - [[package]] name = "ctr" version = "0.8.0" @@ -1606,7 +1768,7 @@ version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0369ee1ad671834580515889b80f2ea915f23b8be8d0daa4bbaf2ac5c7590835" dependencies = [ - "cipher 0.4.3", + "cipher 0.4.4", ] [[package]] @@ -1637,23 +1799,23 @@ dependencies = [ [[package]] name = "curve25519-dalek" -version = "4.0.0-rc.0" +version = "4.0.0-rc.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8da00a7a9a4eb92a0a0f8e75660926d48f0d0f3c537e455c457bcdaa1e16b1ac" +checksum = "8d4ba9852b42210c7538b75484f9daa0655e9a3ac04f693747bb0f02cf3cfe16" dependencies = [ "cfg-if", "fiat-crypto", "packed_simd_2", - "platforms 3.0.2", + "platforms", "subtle", "zeroize", ] [[package]] name = "cxx" -version = "1.0.91" +version = "1.0.104" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86d3488e7665a7a483b57e25bdd90d0aeb2bc7608c8d0346acf2ad3f1caf1d62" +checksum = "ba1ba0a82363c553ecb7b4cd58ba6e1c017baef8e3cca4e7d66ca17879201144" dependencies = [ "cc", "cxxbridge-flags", @@ -1663,9 +1825,9 @@ dependencies = [ [[package]] name = "cxx-build" -version = "1.0.91" +version = "1.0.104" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48fcaf066a053a41a81dfb14d57d99738b767febb8b735c3016e469fac5da690" +checksum = "ac9ec8372f860c6ee7c6463b96a26d08dd590bcbcd9bf2d1894db09ae81410d3" dependencies = [ "cc", "codespan-reporting", @@ -1673,24 +1835,24 @@ dependencies = [ "proc-macro2", "quote", "scratch", - "syn 1.0.109", + "syn 2.0.28", ] [[package]] name = "cxxbridge-flags" -version = "1.0.91" +version = "1.0.104" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2ef98b8b717a829ca5603af80e1f9e2e48013ab227b68ef37872ef84ee479bf" +checksum = "409667bbb937bae87f7cfa91ca29e1415bb92d415371e3344b5269c10d90d595" [[package]] name = "cxxbridge-macro" -version = "1.0.91" +version = "1.0.104" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "086c685979a698443656e5cf7856c95c642295a38599f12fb1ff76fb28d19892" +checksum = "5fb2a9757fb085d6d97856b28d4f049141ca4a61a64c697f4426433b5f6caa1f" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.28", ] [[package]] @@ -1799,9 +1961,9 @@ dependencies = [ [[package]] name = "darling" -version = "0.14.3" +version = "0.14.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0808e1bd8671fb44a113a14e13497557533369847788fa2ae912b6ebfce9fa8" +checksum = "7b750cb3417fd1b327431a470f388520309479ab0bf5e323505daf0290cd3850" dependencies = [ "darling_core", "darling_macro", @@ -1809,9 +1971,9 @@ dependencies = [ [[package]] name = "darling_core" -version = "0.14.3" +version = "0.14.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "001d80444f28e193f30c2f293455da62dcf9a6b29918a4253152ae2b1de592cb" +checksum = "109c1ca6e6b7f82cc233a97004ea8ed7ca123a9af07a8230878fcfda9b158bf0" dependencies = [ "fnv", "ident_case", @@ -1823,9 +1985,9 @@ dependencies = [ [[package]] name = "darling_macro" -version = "0.14.3" +version = "0.14.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b36230598a2d5de7ec1c6f51f72d8a99a9208daff41de2084d06e3fd3ea56685" +checksum = "a4aab4dbc9f7611d8b55048a3a16d2d010c2c8334e46304b40ac1cc14bf3b48e" dependencies = [ "darling_core", "quote", @@ -1834,12 +1996,12 @@ dependencies = [ [[package]] name = "data-avail" -version = "1.6.2" +version = "1.6.3" dependencies = [ "async-trait", "avail-base", "avail-core", - "clap 4.1.6", + "clap 4.3.19", "clap_complete", "da-control", "da-runtime", @@ -1876,11 +2038,10 @@ dependencies = [ "sc-consensus-babe", "sc-consensus-babe-rpc", "sc-consensus-epochs", + "sc-consensus-grandpa", + "sc-consensus-grandpa-rpc", "sc-consensus-slots", - "sc-consensus-uncles", "sc-executor", - "sc-finality-grandpa", - "sc-finality-grandpa-rpc", "sc-keystore", "sc-network", "sc-network-common", @@ -1897,13 +2058,12 @@ dependencies = [ "serde_json", "sp-api", "sp-authority-discovery", - "sp-authorship", "sp-block-builder", "sp-blockchain", "sp-consensus", "sp-consensus-babe", + "sp-consensus-grandpa", "sp-core", - "sp-finality-grandpa", "sp-inherents", "sp-io", "sp-keyring", @@ -1924,15 +2084,15 @@ dependencies = [ [[package]] name = "data-encoding" -version = "2.3.3" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23d8666cb01533c39dde32bcbab8e227b4ed6679b2c925eba05feabea39508fb" +checksum = "c2e66c9d817f1720209181c316d28635c050fa304f9c79e47a520882661b7308" [[package]] name = "data-encoding-macro" -version = "0.1.12" +version = "0.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86927b7cd2fe88fa698b87404b287ab98d1a0063a34071d92e575b72d3029aca" +checksum = "c904b33cc60130e1aeea4956ab803d08a3f4a0ca82d64ed757afac3891f2bb99" dependencies = [ "data-encoding", "data-encoding-macro-internal", @@ -1940,9 +2100,9 @@ dependencies = [ [[package]] name = "data-encoding-macro-internal" -version = "0.1.10" +version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5bbed42daaa95e780b60a50546aa345b8413a1e46f9a40a12907d3598f038db" +checksum = "8fdf3fce3ce863539ec1d7fd1b6dcc3c645663376b43ed376bbf887733e4f772" dependencies = [ "data-encoding", "syn 1.0.109", @@ -1959,6 +2119,16 @@ dependencies = [ "zeroize", ] +[[package]] +name = "der" +version = "0.7.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c7ed52955ce76b1554f509074bb357d3fb8ac9b51288a65a3fd480d1dfba946" +dependencies = [ + "const-oid", + "zeroize", +] + [[package]] name = "der-parser" version = "7.0.0" @@ -1975,11 +2145,11 @@ dependencies = [ [[package]] name = "der-parser" -version = "8.1.0" +version = "8.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42d4bc9b0db0a0df9ae64634ac5bdefb7afcb534e182275ca0beadbe486701c1" +checksum = "dbd676fbbab537128ef0278adb5576cf363cff6aa22a7b24effe97347cfab61e" dependencies = [ - "asn1-rs 0.5.1", + "asn1-rs 0.5.2", "displaydoc", "nom", "num-bigint", @@ -1987,6 +2157,12 @@ dependencies = [ "rusticata-macros", ] +[[package]] +name = "deranged" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7684a49fb1af197853ef7b2ee694bc1f5b4179556f1e5710e1760c5db6f5e929" + [[package]] name = "derivative" version = "2.2.0" @@ -2009,6 +2185,17 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "derive-syn-parse" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e79116f119dd1dba1abf1f3405f03b9b0e79a27a3883864bfebded8a3dc768cd" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + [[package]] name = "derive_builder" version = "0.11.2" @@ -2074,16 +2261,17 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", ] [[package]] name = "digest" -version = "0.10.6" +version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8168378f4e5023e7218c89c891c0fd8ecdb5e5e4f18cb78f38cf245dd021e76f" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ - "block-buffer 0.10.3", + "block-buffer 0.10.4", + "const-oid", "crypto-common", "subtle", ] @@ -2131,13 +2319,13 @@ dependencies = [ [[package]] name = "displaydoc" -version = "0.2.3" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3bf95dc3f046b9da4f2d51833c0d3547d8564ef6910f5c1ed130306a75b92886" +checksum = "487585f4d0c6655fe74905e2504d8ad6908e4db67f744eb140876906c2f3175d" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.28", ] [[package]] @@ -2146,23 +2334,17 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1435fa1053d8b2fbbe9be7e97eca7f33d37b28409959813daefc1446a14247f1" -[[package]] -name = "downcast-rs" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ea835d29036a4087793836fa931b08837ad5e957da9e23886b29586fb9b6650" - [[package]] name = "dtoa" -version = "1.0.5" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c00704156a7de8df8da0911424e30c2049957b0a714542a44e05fe693dd85313" +checksum = "dcbb2bf8e87535c23f7a8a321e364ce21462d0ff10cb6407820e8e96dfff6653" [[package]] name = "dusk-bls12_381" -version = "0.11.2" +version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41fc81248ab76f1739dd4241ea2e7037a4d4cb0bd170443a7049e13b0e09acd6" +checksum = "81cded349291dd4620fd02065cc0fb9a1da7bea8cfe479e0dd067a4cd87225ea" dependencies = [ "byteorder", "dusk-bytes", @@ -2231,9 +2413,9 @@ dependencies = [ [[package]] name = "dyn-clone" -version = "1.0.10" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9b0705efd4599c15a38151f4721f7bc388306f61084d3bfd50bd07fbca5cb60" +checksum = "304e6508efa593091e97a9abbc10f90aa7ca635b6d2784feff3c89d41dd12272" [[package]] name = "ecdsa" @@ -2241,10 +2423,24 @@ version = "0.14.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "413301934810f597c1d19ca71c8710e99a3f1ba28a0d2ebc01551a2daeea3c5c" dependencies = [ - "der", - "elliptic-curve", - "rfc6979", - "signature", + "der 0.6.1", + "elliptic-curve 0.12.3", + "rfc6979 0.3.1", + "signature 1.6.4", +] + +[[package]] +name = "ecdsa" +version = "0.16.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4b1e0c257a9e9f25f90ff76d7a68360ed497ee519c8e428d1825ef0000799d4" +dependencies = [ + "der 0.7.7", + "digest 0.10.7", + "elliptic-curve 0.13.5", + "rfc6979 0.4.0", + "signature 2.1.0", + "spki 0.7.2", ] [[package]] @@ -2253,7 +2449,7 @@ version = "1.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "91cff35c70bba8a626e3185d8cd48cc11b5437e1a5bcd15b9b5fa3c64b6dfee7" dependencies = [ - "signature", + "signature 1.6.4", ] [[package]] @@ -2286,9 +2482,9 @@ dependencies = [ [[package]] name = "either" -version = "1.8.1" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91" +checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" [[package]] name = "elliptic-curve" @@ -2296,22 +2492,47 @@ version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e7bb888ab5300a19b8e5bceef25ac745ad065f3c9f7efc6de1b91958110891d3" dependencies = [ - "base16ct", - "crypto-bigint", - "der", - "digest 0.10.6", - "ff", - "generic-array 0.14.6", - "group", + "base16ct 0.1.1", + "crypto-bigint 0.4.9", + "der 0.6.1", + "digest 0.10.7", + "ff 0.12.1", + "generic-array 0.14.7", + "group 0.12.1", "hkdf", "pem-rfc7468", - "pkcs8", + "pkcs8 0.9.0", + "rand_core 0.6.4", + "sec1 0.3.0", + "subtle", + "zeroize", +] + +[[package]] +name = "elliptic-curve" +version = "0.13.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "968405c8fdc9b3bf4df0a6638858cc0b52462836ab6b1c87377785dd09cf1c0b" +dependencies = [ + "base16ct 0.2.0", + "crypto-bigint 0.5.2", + "digest 0.10.7", + "ff 0.13.0", + "generic-array 0.14.7", + "group 0.13.0", + "pkcs8 0.10.2", "rand_core 0.6.4", - "sec1", + "sec1 0.7.3", "subtle", "zeroize", ] +[[package]] +name = "encode_unicode" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" + [[package]] name = "enum-as-inner" version = "0.5.1" @@ -2356,15 +2577,21 @@ version = "1.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e48c92028aaa870e83d51c64e5d4e0b6981b360c522198c23959f219a4e1b15b" +[[package]] +name = "equivalent" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" + [[package]] name = "errno" -version = "0.2.8" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f639046355ee4f37944e44f60642c6f3a7efa3cf6b78c78a0d989a8ce6c396a1" +checksum = "6b30f669a7961ef1631673d2766cc92f52d64f7ef354d4fe0ddfd30ed52f0f4f" dependencies = [ "errno-dragonfly", "libc", - "winapi", + "windows-sys 0.48.0", ] [[package]] @@ -2383,9 +2610,9 @@ version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1fda3bf123be441da5260717e0661c25a2fd9cb2b2c1d20bf2e05580047158ab" dependencies = [ - "aes 0.8.2", + "aes 0.8.3", "ctr 0.9.2", - "digest 0.10.6", + "digest 0.10.7", "hex", "hmac 0.12.1", "pbkdf2 0.11.0", @@ -2393,7 +2620,7 @@ dependencies = [ "scrypt", "serde", "serde_json", - "sha2 0.10.6", + "sha2 0.10.7", "sha3", "thiserror", "uuid 0.8.2", @@ -2453,15 +2680,15 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ade3e9c97727343984e1ceada4fdab11142d2ee3472d2c67027d56b1251d4f15" dependencies = [ - "arrayvec 0.7.2", + "arrayvec 0.7.4", "bytes", "chrono", "convert_case 0.6.0", - "elliptic-curve", + "elliptic-curve 0.12.3", "ethabi", - "generic-array 0.14.6", + "generic-array 0.14.7", "hex", - "k256", + "k256 0.11.6", "open-fastrlp", "proc-macro2", "rand 0.8.5", @@ -2485,12 +2712,12 @@ dependencies = [ "async-trait", "coins-bip32", "coins-bip39", - "elliptic-curve", + "elliptic-curve 0.12.3", "eth-keystore", "ethers-core", "hex", "rand 0.8.5", - "sha2 0.10.6", + "sha2 0.10.7", "thiserror", ] @@ -2509,6 +2736,19 @@ dependencies = [ "futures", ] +[[package]] +name = "expander" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f86a749cf851891866c10515ef6c299b5c69661465e9c3bbe7e07a2b77fb0f7" +dependencies = [ + "blake2", + "fs-err", + "proc-macro2", + "quote", + "syn 2.0.28", +] + [[package]] name = "fake-simd" version = "0.1.2" @@ -2530,6 +2770,12 @@ dependencies = [ "instant", ] +[[package]] +name = "fastrand" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6999dc1837253364c2ebb0704ba97994bd874e8f195d665c50b7548f6ea92764" + [[package]] name = "fdlimit" version = "0.2.1" @@ -2549,11 +2795,21 @@ dependencies = [ "subtle", ] +[[package]] +name = "ff" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ded41244b729663b1e574f1b4fb731469f69f79c17667b5d776b16cda0479449" +dependencies = [ + "rand_core 0.6.4", + "subtle", +] + [[package]] name = "fiat-crypto" -version = "0.1.17" +version = "0.1.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a214f5bb88731d436478f3ae1f8a277b62124089ba9fb67f4f93fb100ef73c90" +checksum = "e825f6987101665dea6ec934c09ec6d721de7bc1bf92248e1d5810c8cd636b77" [[package]] name = "file-per-thread-logger" @@ -2567,21 +2823,21 @@ dependencies = [ [[package]] name = "filetime" -version = "0.2.20" +version = "0.2.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a3de6e8d11b22ff9edc6d916f890800597d60f8b2da1caf2955c274638d6412" +checksum = "d4029edd3e734da6fe05b6cd7bd2960760a616bd2ddd0d59a0124746d6272af0" dependencies = [ "cfg-if", "libc", - "redox_syscall", - "windows-sys 0.45.0", + "redox_syscall 0.3.5", + "windows-sys 0.48.0", ] [[package]] name = "finality-grandpa" -version = "0.16.1" +version = "0.16.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e24e6c429951433ccb7c87fd528c60084834dcd14763182c1f83291bcde24c34" +checksum = "36530797b9bf31cd4ff126dcfee8170f86b00cfdcea3269d73133cc0415945c3" dependencies = [ "either", "futures", @@ -2613,9 +2869,9 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "flate2" -version = "1.0.25" +version = "1.0.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8a2db397cb1c8772f31494cb8917e48cd1e64f0fa7efac59fbd741a0a8ce841" +checksum = "3b9429470923de8e8cbd4d2dc513535400b4b3fef0319fb5c4e1f520a7bef743" dependencies = [ "crc32fast", "libz-sys", @@ -2640,16 +2896,16 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "parity-scale-codec", ] [[package]] name = "form_urlencoded" -version = "1.1.0" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9c384f161156f5260c24a097c56119f9be8c798586aecc13afbcbe7b7e26bf8" +checksum = "a62bc1cf6f830c2ec14a513a9fb124d0a213a629668a4186f329db21fe045652" dependencies = [ "percent-encoding", ] @@ -2663,9 +2919,10 @@ checksum = "6c2141d6d6c8512188a7891b4b01590a45f6dac67afb4f255c4124dbb86d4eaa" [[package]] name = "frame-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-support", + "frame-support-procedural", "frame-system", "linregress", "log", @@ -2681,17 +2938,18 @@ dependencies = [ "sp-runtime-interface", "sp-std", "sp-storage", + "static_assertions", ] [[package]] name = "frame-benchmarking-cli" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "Inflector", "array-bytes", "chrono", - "clap 4.1.6", + "clap 4.3.19", "comfy-table", "frame-benchmarking", "frame-support", @@ -2720,12 +2978,13 @@ dependencies = [ "sp-database", "sp-externalities", "sp-inherents", + "sp-io", "sp-keystore", "sp-runtime", "sp-state-machine", - "sp-std", "sp-storage", "sp-trie", + "sp-wasm-interface", "thiserror", "thousands", ] @@ -2733,18 +2992,18 @@ dependencies = [ [[package]] name = "frame-election-provider-solution-type" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.28", ] [[package]] name = "frame-election-provider-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-election-provider-solution-type", "frame-support", @@ -2761,7 +3020,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#6fa7fe1326ecaab9921c2c3888530ad679cfbb87" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-support", "frame-system", @@ -2777,9 +3036,9 @@ dependencies = [ [[package]] name = "frame-metadata" -version = "15.0.0" +version = "16.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df6bb8542ef006ef0de09a5c4420787d79823c0ed7924225822362fd2bf2ff2d" +checksum = "87cf1549fba25a6fcac22785b61698317d958e96cac72a59102ea45b9ae64692" dependencies = [ "cfg-if", "parity-scale-codec", @@ -2790,31 +3049,37 @@ dependencies = [ [[package]] name = "frame-remote-externalities" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ + "async-recursion", "futures", + "indicatif", + "jsonrpsee", "log", "parity-scale-codec", "serde", "sp-core", "sp-io", "sp-runtime", + "spinners", "substrate-rpc-client", "tokio", + "tokio-retry", ] [[package]] name = "frame-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#6fa7fe1326ecaab9921c2c3888530ad679cfbb87" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ - "bitflags", + "bitflags 1.3.2", + "environmental", "frame-metadata", "frame-support-procedural", "impl-trait-for-tuples", - "k256", + "k256 0.13.1", "log", - "once_cell", + "macro_magic", "parity-scale-codec", "paste", "scale-info", @@ -2824,6 +3089,7 @@ dependencies = [ "sp-arithmetic", "sp-core", "sp-core-hashing-proc-macro", + "sp-debug-derive", "sp-inherents", "sp-io", "sp-runtime", @@ -2838,37 +3104,41 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#6fa7fe1326ecaab9921c2c3888530ad679cfbb87" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "Inflector", "cfg-expr", + "derive-syn-parse", + "expander", "frame-support-procedural-tools", "itertools 0.10.5", + "macro_magic", + "proc-macro-warning", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.28", ] [[package]] name = "frame-support-procedural-tools" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#6fa7fe1326ecaab9921c2c3888530ad679cfbb87" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.28", ] [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#6fa7fe1326ecaab9921c2c3888530ad679cfbb87" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.28", ] [[package]] @@ -2877,7 +3147,8 @@ version = "4.0.0-dev" dependencies = [ "avail-base", "avail-core", - "beefy-merkle-tree", + "binary-merkle-tree", + "cfg-if", "criterion", "derive_more", "frame-support", @@ -2930,7 +3201,7 @@ dependencies = [ [[package]] name = "frame-try-runtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-support", "parity-scale-codec", @@ -2939,6 +3210,12 @@ dependencies = [ "sp-std", ] +[[package]] +name = "fs-err" +version = "2.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0845fa252299212f0389d64ba26f34fa32cfe41588355f21ed507c59a0f64541" + [[package]] name = "fs2" version = "0.4.3" @@ -2957,9 +3234,9 @@ checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" [[package]] name = "futures" -version = "0.3.26" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13e2792b0ff0340399d58445b88fd9770e3489eff258a4cbc1523418f12abf84" +checksum = "23342abe12aba583913b2e62f22225ff9c950774065e4bfb61a19cd9770fec40" dependencies = [ "futures-channel", "futures-core", @@ -2972,9 +3249,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.26" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e5317663a9089767a1ec00a487df42e0ca174b61b4483213ac24448e4664df5" +checksum = "955518d47e09b25bbebc7a18df10b81f0c766eaf4c4f1cccef2fca5f2a4fb5f2" dependencies = [ "futures-core", "futures-sink", @@ -2982,15 +3259,15 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.26" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec90ff4d0fe1f57d600049061dc6bb68ed03c7d2fbd697274c41805dcb3f8608" +checksum = "4bca583b7e26f571124fe5b7561d49cb2868d79116cfa0eefce955557c6fee8c" [[package]] name = "futures-executor" -version = "0.3.26" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8de0a35a6ab97ec8869e32a2473f4b1324459e14c29275d14b10cb1fd19b50e" +checksum = "ccecee823288125bd88b4d7f565c9e58e41858e47ab72e8ea2d64e93624386e0" dependencies = [ "futures-core", "futures-task", @@ -3000,34 +3277,34 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.26" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfb8371b6fb2aeb2d280374607aeabfc99d95c72edfe51692e42d3d7f0d08531" +checksum = "4fff74096e71ed47f8e023204cfd0aa1289cd54ae5430a9523be060cdb849964" [[package]] name = "futures-lite" -version = "1.12.0" +version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7694489acd39452c77daa48516b894c153f192c3578d5a839b62c58099fcbf48" +checksum = "49a9d51ce47660b1e808d3c990b4709f2f415d928835a17dfd16991515c46bce" dependencies = [ - "fastrand", + "fastrand 1.9.0", "futures-core", "futures-io", "memchr", "parking", - "pin-project-lite 0.2.9", + "pin-project-lite 0.2.11", "waker-fn", ] [[package]] name = "futures-macro" -version = "0.3.26" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95a73af87da33b5acf53acfebdc339fe592ecf5357ac7c0a7734ab9d8c876a70" +checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.28", ] [[package]] @@ -3043,15 +3320,15 @@ dependencies = [ [[package]] name = "futures-sink" -version = "0.3.26" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f310820bb3e8cfd46c80db4d7fb8353e15dfff853a127158425f31e0be6c8364" +checksum = "f43be4fe21a13b9781a69afa4985b0f6ee0e1afab2c6f454a8cf30e2b2237b6e" [[package]] name = "futures-task" -version = "0.3.26" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcf79a1bf610b10f42aea489289c5a2c478a786509693b80cd39c44ccd936366" +checksum = "76d3d132be6c0e6aa1534069c705a74a5997a356c0dc2f86a47765e5617c5b65" [[package]] name = "futures-timer" @@ -3065,9 +3342,9 @@ dependencies = [ [[package]] name = "futures-util" -version = "0.3.26" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c1d6de3acfef38d2be4b1f543f553131788603495be83da675e180c8d6b7bd1" +checksum = "26b01e40b772d54cf6c6d721c1d1abd0647a0106a12ecaa1c186273392a69533" dependencies = [ "futures-channel", "futures-core", @@ -3076,7 +3353,7 @@ dependencies = [ "futures-sink", "futures-task", "memchr", - "pin-project-lite 0.2.9", + "pin-project-lite 0.2.11", "pin-utils", "slab", ] @@ -3101,12 +3378,13 @@ dependencies = [ [[package]] name = "generic-array" -version = "0.14.6" +version = "0.14.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bff49e947297f3312447abdca79f45f4738097cc82b06e72054d2223f601f1b9" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" dependencies = [ "typenum", "version_check", + "zeroize", ] [[package]] @@ -3132,9 +3410,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.8" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31" +checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427" dependencies = [ "cfg-if", "js-sys", @@ -3145,41 +3423,35 @@ dependencies = [ [[package]] name = "ghash" -version = "0.3.1" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97304e4cd182c3846f7575ced3890c53012ce534ad9114046b0a9e00bb30a375" +checksum = "1583cc1656d7839fd3732b80cf4f38850336cdb9b8ded1cd399ca62958de3c99" dependencies = [ "opaque-debug 0.3.0", - "polyval 0.4.5", + "polyval 0.5.3", ] [[package]] name = "ghash" -version = "0.4.4" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1583cc1656d7839fd3732b80cf4f38850336cdb9b8ded1cd399ca62958de3c99" +checksum = "d930750de5717d2dd0b8c0d42c076c0e884c81a73e6cab859bbd2339c71e3e40" dependencies = [ "opaque-debug 0.3.0", - "polyval 0.5.3", + "polyval 0.6.1", ] [[package]] name = "gimli" -version = "0.26.2" +version = "0.27.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22030e2c5a68ec659fde1e949a745124b48e6fa8b045b7ed5bd1fe4ccc5c4e5d" +checksum = "b6c80984affa11d98d1b88b66ac8853f143217b399d3c74116778ff8fdb4ed2e" dependencies = [ "fallible-iterator", - "indexmap", + "indexmap 1.9.3", "stable_deref_trait", ] -[[package]] -name = "gimli" -version = "0.27.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad0a93d233ebf96623465aad4046a8d3aa4da22d4f4beba5388838c8a434bbb4" - [[package]] name = "glob" version = "0.3.1" @@ -3188,9 +3460,9 @@ checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" [[package]] name = "globset" -version = "0.4.10" +version = "0.4.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "029d74589adefde59de1a0c4f4732695c32805624aec7b68d91503d4dba79afc" +checksum = "759c97c1e17c55525b57192c06a267cda0ac5210b222d6b82189a2338fa1c13d" dependencies = [ "aho-corasick", "bstr", @@ -3233,9 +3505,9 @@ dependencies = [ [[package]] name = "gloo-utils" -version = "0.1.6" +version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8e8fc851e9c7b9852508bc6e3f690f452f474417e8545ec9857b7f7377036b5" +checksum = "037fcb07216cb3a30f7292bd0176b050b7b9a052ba830ef7d5d65f6dc64ba58e" dependencies = [ "js-sys", "serde", @@ -3250,16 +3522,27 @@ version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5dfbfb3a6cfbd390d5c9564ab283a0349b9b9fcd46a706c1eb10e0db70bfbac7" dependencies = [ - "ff", + "ff 0.12.1", + "rand_core 0.6.4", + "subtle", +] + +[[package]] +name = "group" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63" +dependencies = [ + "ff 0.13.0", "rand_core 0.6.4", "subtle", ] [[package]] name = "h2" -version = "0.3.15" +version = "0.3.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f9f29bc9dda355256b2916cf526ab02ce0aeaaaf2bad60d65ef3f12f11dd0f4" +checksum = "97ec8491ebaf99c8eaa73058b045fe58073cd6be7f596ac993ced0b0a0c01049" dependencies = [ "bytes", "fnv", @@ -3267,7 +3550,7 @@ dependencies = [ "futures-sink", "futures-util", "http", - "indexmap", + "indexmap 1.9.3", "slab", "tokio", "tokio-util", @@ -3282,9 +3565,9 @@ checksum = "eabb4a44450da02c90444cf74558da904edde8fb4e9035a9a6a4e15445af0bd7" [[package]] name = "handlebars" -version = "4.3.6" +version = "4.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "035ef95d03713f2c347a72547b7cd38cbc9af7cd51e6099fb62d586d4a6dee3a" +checksum = "83c3372087601b532857d332f5957cbae686da52bb7810bf038c3e3c3cc2fa0d" dependencies = [ "log", "pest", @@ -3296,9 +3579,9 @@ dependencies = [ [[package]] name = "hash-db" -version = "0.15.2" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d23bd4e7b5eda0d0f3a307e8b381fdc8ba9000f26fbe912250c0a4cc3956364a" +checksum = "8e7d7786361d7425ae2fe4f9e407eb0efaa0840f5212d109cc018c40c35c6ab4" [[package]] name = "hash256-std-hasher" @@ -3336,6 +3619,12 @@ dependencies = [ "ahash 0.8.3", ] +[[package]] +name = "hashbrown" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c6201b9ff9fd90a5a3bac2e56a830d0caa509576f0e503818ee82c181b3437a" + [[package]] name = "heck" version = "0.4.1" @@ -3353,18 +3642,9 @@ dependencies = [ [[package]] name = "hermit-abi" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7" -dependencies = [ - "libc", -] - -[[package]] -name = "hermit-abi" -version = "0.3.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286" +checksum = "443144c8cdadd93ebf52ddb4056d257f5b52c04d3c804e657d19eb73fc33668b" [[package]] name = "hex" @@ -3400,16 +3680,6 @@ dependencies = [ "digest 0.9.0", ] -[[package]] -name = "hmac" -version = "0.10.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1441c6b1e930e2817404b5046f1f989899143a12bf92de603b69f4e0aee1e15" -dependencies = [ - "crypto-mac 0.10.1", - "digest 0.9.0", -] - [[package]] name = "hmac" version = "0.11.0" @@ -3426,7 +3696,7 @@ version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" dependencies = [ - "digest 0.10.6", + "digest 0.10.7", ] [[package]] @@ -3436,7 +3706,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "17ea0a1394df5b6574da6e0c1ade9e78868c9fb0a4e5ef4428e32da4676b85b1" dependencies = [ "digest 0.9.0", - "generic-array 0.14.6", + "generic-array 0.14.7", "hmac 0.8.1", ] @@ -3470,14 +3740,14 @@ checksum = "d5f38f16d184e36f2408a55281cd658ecbd3ca05cce6d6510a176eca393e26d1" dependencies = [ "bytes", "http", - "pin-project-lite 0.2.9", + "pin-project-lite 0.2.11", ] [[package]] name = "http-range-header" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0bfe8eed0a9285ef776bb792479ea3834e8b94e13d615c2f66d03dd50a435a29" +checksum = "add0ab9360ddbd88cfeb3bd9574a1d85cfdfa14db10b3e21d3700dbc4328758f" [[package]] name = "httparse" @@ -3499,9 +3769,9 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "hyper" -version = "0.14.24" +version = "0.14.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e011372fa0b68db8350aa7a248930ecc7839bf46d8485577d69f117a75f164c" +checksum = "ffb1cfd654a8219eaef89881fdb3bb3b1cdc5fa75ded05d6933b2b382e395468" dependencies = [ "bytes", "futures-channel", @@ -3513,8 +3783,8 @@ dependencies = [ "httparse", "httpdate", "itoa", - "pin-project-lite 0.2.9", - "socket2", + "pin-project-lite 0.2.11", + "socket2 0.4.9", "tokio", "tower-service", "tracing", @@ -3539,26 +3809,25 @@ dependencies = [ [[package]] name = "iana-time-zone" -version = "0.1.53" +version = "0.1.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64c122667b287044802d6ce17ee2ddf13207ed924c712de9a66a5814d5b64765" +checksum = "2fad5b825842d2b38bd206f3e81d6957625fd7f0a361e345c30e01a0ae2dd613" dependencies = [ "android_system_properties", "core-foundation-sys", "iana-time-zone-haiku", "js-sys", "wasm-bindgen", - "winapi", + "windows 0.48.0", ] [[package]] name = "iana-time-zone-haiku" -version = "0.1.1" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0703ae284fc167426161c2e3f1da3ea71d94b21bedbcc9494e92b28e334e3dca" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" dependencies = [ - "cxx", - "cxx-build", + "cc", ] [[package]] @@ -3580,9 +3849,9 @@ dependencies = [ [[package]] name = "idna" -version = "0.3.0" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e14ddfc70884202db2244c223200c204c2bda1bc6e0998d11b5e024d657209e6" +checksum = "7d20d6b07bfbc108882d88ed8e37d39636dcc260e15e30c45e6ba089610b917c" dependencies = [ "unicode-bidi", "unicode-normalization", @@ -3600,9 +3869,9 @@ dependencies = [ [[package]] name = "if-watch" -version = "3.0.0" +version = "3.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba7abdbb86e485125dad06c2691e1e393bf3b08c7b743b43aa162a00fd39062e" +checksum = "a9465340214b296cd17a0009acdb890d6160010b8adf8f78a00d0d7ab270f79f" dependencies = [ "async-io", "core-foundation", @@ -3614,7 +3883,7 @@ dependencies = [ "rtnetlink", "system-configuration", "tokio", - "windows", + "windows 0.34.0", ] [[package]] @@ -3657,22 +3926,45 @@ dependencies = [ [[package]] name = "indexmap" -version = "1.9.2" +version = "1.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1885e79c1fc4b10f0e172c475f458b7f7b93061064d98c3293e98c5ba0c8b399" +checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" dependencies = [ "autocfg", "hashbrown 0.12.3", "serde", ] +[[package]] +name = "indexmap" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d5477fe2230a79769d8dc68e0eabf5437907c0457a5614a9e8dddb67f65eb65d" +dependencies = [ + "equivalent", + "hashbrown 0.14.0", +] + +[[package]] +name = "indicatif" +version = "0.17.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b297dc40733f23a0e52728a58fa9489a5b7638a324932de16b41adc3ef80730" +dependencies = [ + "console", + "instant", + "number_prefix", + "portable-atomic", + "unicode-width", +] + [[package]] name = "inout" version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a0c10553d664a4d0bcff9f4215d0aac67a639cc68ef660840afe309b807bc9f5" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", ] [[package]] @@ -3714,18 +4006,13 @@ dependencies = [ [[package]] name = "io-lifetimes" -version = "0.7.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59ce5ef949d49ee85593fc4d3f3f95ad61657076395cbbce23e2121fc5542074" - -[[package]] -name = "io-lifetimes" -version = "1.0.5" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1abeb7a0dd0f8181267ff8adc397075586500b81b28a73e8a0208b00fc170fb3" +checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2" dependencies = [ + "hermit-abi 0.3.2", "libc", - "windows-sys 0.45.0", + "windows-sys 0.48.0", ] [[package]] @@ -3736,32 +4023,31 @@ checksum = "aa2f047c0a98b2f299aa5d6d7088443570faae494e9ae1305e48be000c9e0eb1" [[package]] name = "ipconfig" -version = "0.3.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd302af1b90f2463a98fa5ad469fc212c8e3175a41c3068601bfa2727591c5be" +checksum = "b58db92f96b720de98181bbbe63c831e87005ab460c1bf306eb2622b4707997f" dependencies = [ - "socket2", + "socket2 0.5.3", "widestring", - "winapi", + "windows-sys 0.48.0", "winreg", ] [[package]] name = "ipnet" -version = "2.7.1" +version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30e22bd8629359895450b59ea7a776c850561b96a3b1d31321c1949d9e6c9146" +checksum = "28b29a3cd74f0f4598934efe3aeba42bae0eb4680554128851ebbecb02af14e6" [[package]] name = "is-terminal" -version = "0.4.4" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21b6b32576413a8e69b90e952e4a026476040d81017b80445deda5f2d3921857" +checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b" dependencies = [ - "hermit-abi 0.3.1", - "io-lifetimes 1.0.5", - "rustix 0.36.8", - "windows-sys 0.45.0", + "hermit-abi 0.3.2", + "rustix 0.38.7", + "windows-sys 0.48.0", ] [[package]] @@ -3784,24 +4070,24 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.5" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fad582f4b9e86b6caa621cabeb0963332d92eea04729ab12892c2533951e6440" +checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" [[package]] name = "jobserver" -version = "0.1.25" +version = "0.1.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "068b1ee6743e4d11fb9c6a1e6064b3693a1b600e7f5f5988047d98b3dc9fb90b" +checksum = "936cfd212a0155903bcbc060e316fb6cc7cbf2e1907329391ebadc1fe0ce77c2" dependencies = [ "libc", ] [[package]] name = "js-sys" -version = "0.3.61" +version = "0.3.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "445dde2150c55e483f3d8416706b97ec8e8237c307e5b7b4b8dd15e6af2a0730" +checksum = "c5f195fe497f702db0f318b07fdd68edb16955aed830df8363d837542f8f935a" dependencies = [ "wasm-bindgen", ] @@ -3855,7 +4141,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a4e70b4439a751a5de7dd5ed55eacff78ebf4ffe0fc009cb1ebb11417f5b536b" dependencies = [ "anyhow", - "arrayvec 0.7.2", + "arrayvec 0.7.4", "async-lock", "async-trait", "beef", @@ -3975,16 +4261,29 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72c1e0b51e7ec0a97369623508396067a486bd0cbed95a2659a4b863d28cfc8b" dependencies = [ "cfg-if", - "ecdsa", - "elliptic-curve", - "sha2 0.10.6", + "ecdsa 0.14.8", + "elliptic-curve 0.12.3", + "sha2 0.10.7", "sha3", ] +[[package]] +name = "k256" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cadb76004ed8e97623117f3df85b17aaa6626ab0b0831e6573f104df16cd1bcc" +dependencies = [ + "cfg-if", + "ecdsa 0.16.8", + "elliptic-curve 0.13.5", + "once_cell", + "sha2 0.10.7", +] + [[package]] name = "kate" version = "0.8.0" -source = "git+https://github.com/availproject/avail-core?tag=avail-core/v0.5.0#3e972524dce089d73140a2e32c83084e5c9c418c" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#b77ac42456d7e09b81d29c065ce8a20872ef596f" dependencies = [ "avail-core", "derive_more", @@ -3994,7 +4293,7 @@ dependencies = [ "hex-literal", "kate-recovery", "log", - "nalgebra 0.32.3", + "nalgebra", "once_cell", "parity-scale-codec", "poly-multiproof", @@ -4012,7 +4311,7 @@ dependencies = [ [[package]] name = "kate-recovery" version = "0.9.0" -source = "git+https://github.com/availproject/avail-core?tag=avail-core/v0.5.0#3e972524dce089d73140a2e32c83084e5c9c418c" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#b77ac42456d7e09b81d29c065ce8a20872ef596f" dependencies = [ "avail-core", "derive_more", @@ -4042,7 +4341,7 @@ dependencies = [ "kate", "kate-recovery", "lru 0.7.8", - "nalgebra 0.32.3", + "nalgebra", "parity-scale-codec", "sc-client-api", "sc-client-db", @@ -4054,9 +4353,9 @@ dependencies = [ [[package]] name = "keccak" -version = "0.1.3" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3afef3b6eff9ce9d8ff9b3601125eec7f0c8cbac7abd14f355d053fa56c98768" +checksum = "8f6d5ed8676d904364de097082f4e7d240b571b67989ced0240f08b7f966f940" dependencies = [ "cpufeatures", ] @@ -4082,9 +4381,9 @@ dependencies = [ [[package]] name = "kvdb-rocksdb" -version = "0.17.0" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2182b8219fee6bd83aacaab7344e840179ae079d5216aa4e249b4d704646a844" +checksum = "b644c70b92285f66bfc2032922a79000ea30af7bc2ab31902992a5dcb9b434f6" dependencies = [ "kvdb", "num_cpus", @@ -4108,9 +4407,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "libc" -version = "0.2.139" +version = "0.2.147" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79" +checksum = "b4668fb0ea861c1df094127ac5f1da3409a82116a4ba74fca2e58ef927159bb3" [[package]] name = "libloading" @@ -4128,30 +4427,26 @@ version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7fc7aa29613bd6a620df431842069224d8bc9011086b1db4c0e0cd47fa03ec9a" -[[package]] -name = "libm" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "348108ab3fba42ec82ff6e9564fc4ca0247bdccdc68dd8af9764bbc79c3c8ffb" - [[package]] name = "libp2p" -version = "0.50.0" +version = "0.51.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e0a0d2f693675f49ded13c5d510c48b78069e23cbd9108d7ccd59f6dc568819" +checksum = "f210d259724eae82005b5c48078619b7745edb7b76de370b03f8ba59ea103097" dependencies = [ "bytes", "futures", "futures-timer", - "getrandom 0.2.8", + "getrandom 0.2.10", "instant", + "libp2p-allow-block-list", + "libp2p-connection-limits", "libp2p-core", "libp2p-dns", "libp2p-identify", + "libp2p-identity", "libp2p-kad", "libp2p-mdns", "libp2p-metrics", - "libp2p-mplex", "libp2p-noise", "libp2p-ping", "libp2p-quic", @@ -4163,25 +4458,45 @@ dependencies = [ "libp2p-websocket", "libp2p-yamux", "multiaddr", - "parking_lot 0.12.1", "pin-project", - "smallvec", +] + +[[package]] +name = "libp2p-allow-block-list" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "510daa05efbc25184458db837f6f9a5143888f1caa742426d92e1833ddd38a50" +dependencies = [ + "libp2p-core", + "libp2p-identity", + "libp2p-swarm", + "void", +] + +[[package]] +name = "libp2p-connection-limits" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4caa33f1d26ed664c4fe2cca81a08c8e07d4c1c04f2f4ac7655c2dd85467fda0" +dependencies = [ + "libp2p-core", + "libp2p-identity", + "libp2p-swarm", + "void", ] [[package]] name = "libp2p-core" -version = "0.38.0" +version = "0.39.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6a8fcd392ff67af6cc3f03b1426c41f7f26b6b9aff2dc632c1c56dd649e571f" +checksum = "3c1df63c0b582aa434fb09b2d86897fa2b419ffeccf934b36f87fcedc8e835c2" dependencies = [ - "asn1_der", - "bs58", - "ed25519-dalek", "either", "fnv", "futures", "futures-timer", "instant", + "libp2p-identity", "log", "multiaddr", "multihash", @@ -4189,24 +4504,20 @@ dependencies = [ "once_cell", "parking_lot 0.12.1", "pin-project", - "prost", - "prost-build", + "quick-protobuf", "rand 0.8.5", "rw-stream-sink", - "sec1", - "sha2 0.10.6", "smallvec", "thiserror", "unsigned-varint", "void", - "zeroize", ] [[package]] name = "libp2p-dns" -version = "0.38.0" +version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e42a271c1b49f789b92f7fc87749fa79ce5c7bdc88cbdfacb818a4bca47fec5" +checksum = "146ff7034daae62077c415c2376b8057368042df6ab95f5432ad5e88568b1554" dependencies = [ "futures", "libp2p-core", @@ -4218,32 +4529,51 @@ dependencies = [ [[package]] name = "libp2p-identify" -version = "0.41.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c052d0026f4817b44869bfb6810f4e1112f43aec8553f2cb38881c524b563abf" +checksum = "5455f472243e63b9c497ff320ded0314254a9eb751799a39c283c6f20b793f3c" dependencies = [ "asynchronous-codec", + "either", "futures", "futures-timer", "libp2p-core", + "libp2p-identity", "libp2p-swarm", "log", - "lru 0.8.1", - "prost", - "prost-build", - "prost-codec", + "lru 0.10.1", + "quick-protobuf", + "quick-protobuf-codec", "smallvec", "thiserror", "void", ] +[[package]] +name = "libp2p-identity" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e2d584751cecb2aabaa56106be6be91338a60a0f4e420cf2af639204f596fc1" +dependencies = [ + "bs58", + "ed25519-dalek", + "log", + "multiaddr", + "multihash", + "quick-protobuf", + "rand 0.8.5", + "sha2 0.10.7", + "thiserror", + "zeroize", +] + [[package]] name = "libp2p-kad" -version = "0.42.1" +version = "0.43.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2766dcd2be8c87d5e1f35487deb22d765f49c6ae1251b3633efe3b25698bd3d2" +checksum = "39d5ef876a2b2323d63c258e63c2f8e36f205fe5a11f0b3095d59635650790ff" dependencies = [ - "arrayvec 0.7.2", + "arrayvec 0.7.4", "asynchronous-codec", "bytes", "either", @@ -4252,12 +4582,12 @@ dependencies = [ "futures-timer", "instant", "libp2p-core", + "libp2p-identity", "libp2p-swarm", "log", - "prost", - "prost-build", + "quick-protobuf", "rand 0.8.5", - "sha2 0.10.6", + "sha2 0.10.7", "smallvec", "thiserror", "uint", @@ -4267,19 +4597,20 @@ dependencies = [ [[package]] name = "libp2p-mdns" -version = "0.42.0" +version = "0.43.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04f378264aade9872d6ccd315c0accc18be3a35d15fc1b9c36e5b6f983b62b5b" +checksum = "19983e1f949f979a928f2c603de1cf180cc0dc23e4ac93a62651ccb18341460b" dependencies = [ "data-encoding", "futures", "if-watch", "libp2p-core", + "libp2p-identity", "libp2p-swarm", "log", "rand 0.8.5", "smallvec", - "socket2", + "socket2 0.4.9", "tokio", "trust-dns-proto", "void", @@ -4287,9 +4618,9 @@ dependencies = [ [[package]] name = "libp2p-metrics" -version = "0.11.0" +version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ad8a64f29da86005c86a4d2728b8a0719e9b192f4092b609fd8790acb9dec55" +checksum = "a42ec91e227d7d0dafa4ce88b333cdf5f277253873ab087555c92798db2ddd46" dependencies = [ "libp2p-core", "libp2p-identify", @@ -4299,40 +4630,22 @@ dependencies = [ "prometheus-client", ] -[[package]] -name = "libp2p-mplex" -version = "0.38.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03805b44107aa013e7cbbfa5627b31c36cbedfdfb00603c0311998882bc4bace" -dependencies = [ - "asynchronous-codec", - "bytes", - "futures", - "libp2p-core", - "log", - "nohash-hasher", - "parking_lot 0.12.1", - "rand 0.8.5", - "smallvec", - "unsigned-varint", -] - [[package]] name = "libp2p-noise" -version = "0.41.0" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a978cb57efe82e892ec6f348a536bfbd9fee677adbe5689d7a93ad3a9bffbf2e" +checksum = "9c3673da89d29936bc6435bafc638e2f184180d554ce844db65915113f86ec5e" dependencies = [ "bytes", "curve25519-dalek 3.2.0", "futures", "libp2p-core", + "libp2p-identity", "log", "once_cell", - "prost", - "prost-build", + "quick-protobuf", "rand 0.8.5", - "sha2 0.10.6", + "sha2 0.10.7", "snow", "static_assertions", "thiserror", @@ -4342,10 +4655,11 @@ dependencies = [ [[package]] name = "libp2p-ping" -version = "0.41.0" +version = "0.42.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "929fcace45a112536e22b3dcfd4db538723ef9c3cb79f672b98be2cc8e25f37f" +checksum = "3e57759c19c28a73ef1eb3585ca410cefb72c1a709fcf6de1612a378e4219202" dependencies = [ + "either", "futures", "futures-timer", "instant", @@ -4358,15 +4672,16 @@ dependencies = [ [[package]] name = "libp2p-quic" -version = "0.7.0-alpha" +version = "0.7.0-alpha.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01e7c867e95c8130667b24409d236d37598270e6da69b3baf54213ba31ffca59" +checksum = "c6b26abd81cd2398382a1edfe739b539775be8a90fa6914f39b2ab49571ec735" dependencies = [ "bytes", "futures", "futures-timer", "if-watch", "libp2p-core", + "libp2p-identity", "libp2p-tls", "log", "parking_lot 0.12.1", @@ -4379,27 +4694,25 @@ dependencies = [ [[package]] name = "libp2p-request-response" -version = "0.23.0" +version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3236168796727bfcf4927f766393415361e2c644b08bedb6a6b13d957c9a4884" +checksum = "7ffdb374267d42dc5ed5bc53f6e601d4a64ac5964779c6e40bb9e4f14c1e30d5" dependencies = [ "async-trait", - "bytes", "futures", "instant", "libp2p-core", + "libp2p-identity", "libp2p-swarm", - "log", "rand 0.8.5", "smallvec", - "unsigned-varint", ] [[package]] name = "libp2p-swarm" -version = "0.41.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2a35472fe3276b3855c00f1c032ea8413615e030256429ad5349cdf67c6e1a0" +checksum = "903b3d592d7694e56204d211f29d31bc004be99386644ba8731fc3e3ef27b296" dependencies = [ "either", "fnv", @@ -4407,21 +4720,20 @@ dependencies = [ "futures-timer", "instant", "libp2p-core", + "libp2p-identity", "libp2p-swarm-derive", "log", - "pin-project", "rand 0.8.5", "smallvec", - "thiserror", "tokio", "void", ] [[package]] name = "libp2p-swarm-derive" -version = "0.31.0" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d527d5827582abd44a6d80c07ff8b50b4ee238a8979e05998474179e79dc400" +checksum = "0fba456131824ab6acd4c7bf61e9c0f0a3014b5fc9868ccb8e10d344594cdc4f" dependencies = [ "heck", "quote", @@ -4430,9 +4742,9 @@ dependencies = [ [[package]] name = "libp2p-tcp" -version = "0.38.0" +version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4b257baf6df8f2df39678b86c578961d48cc8b68642a12f0f763f56c8e5858d" +checksum = "33d33698596d7722d85d3ab0c86c2c322254fce1241e91208e3679b4eb3026cf" dependencies = [ "futures", "futures-timer", @@ -4440,19 +4752,20 @@ dependencies = [ "libc", "libp2p-core", "log", - "socket2", + "socket2 0.4.9", "tokio", ] [[package]] name = "libp2p-tls" -version = "0.1.0-alpha" +version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7905ce0d040576634e8a3229a7587cc8beab83f79db6023800f1792895defa8" +checksum = "ff08d13d0dc66e5e9ba6279c1de417b84fa0d0adc3b03e5732928c180ec02781" dependencies = [ "futures", "futures-rustls", "libp2p-core", + "libp2p-identity", "rcgen 0.10.0", "ring", "rustls 0.20.8", @@ -4464,9 +4777,9 @@ dependencies = [ [[package]] name = "libp2p-wasm-ext" -version = "0.38.0" +version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bb1a35299860e0d4b3c02a3e74e3b293ad35ae0cee8a056363b0c862d082069" +checksum = "77dff9d32353a5887adb86c8afc1de1a94d9e8c3bc6df8b2201d7cdf5c848f43" dependencies = [ "futures", "js-sys", @@ -4478,9 +4791,9 @@ dependencies = [ [[package]] name = "libp2p-webrtc" -version = "0.4.0-alpha" +version = "0.4.0-alpha.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cdb6cd86dd68cba72308ea05de1cebf3ba0ae6e187c40548167955d4e3970f6a" +checksum = "dba48592edbc2f60b4bc7c10d65445b0c3964c07df26fdf493b6880d33be36f8" dependencies = [ "async-trait", "asynchronous-codec", @@ -4490,12 +4803,12 @@ dependencies = [ "hex", "if-watch", "libp2p-core", + "libp2p-identity", "libp2p-noise", "log", "multihash", - "prost", - "prost-build", - "prost-codec", + "quick-protobuf", + "quick-protobuf-codec", "rand 0.8.5", "rcgen 0.9.3", "serde", @@ -4509,9 +4822,9 @@ dependencies = [ [[package]] name = "libp2p-websocket" -version = "0.40.0" +version = "0.41.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d705506030d5c0aaf2882437c70dab437605f21c5f9811978f694e6917a3b54" +checksum = "111273f7b3d3510524c752e8b7a5314b7f7a1fee7e68161c01a7d72cbb06db9f" dependencies = [ "either", "futures", @@ -4528,23 +4841,22 @@ dependencies = [ [[package]] name = "libp2p-yamux" -version = "0.42.0" +version = "0.43.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f63594a0aa818642d9d4915c791945053877253f08a3626f13416b5cd928a29" +checksum = "4dcd21d950662700a385d4c6d68e2f5f54d778e97068cdd718522222ef513bda" dependencies = [ "futures", "libp2p-core", "log", - "parking_lot 0.12.1", "thiserror", "yamux", ] [[package]] name = "librocksdb-sys" -version = "0.8.3+7.4.4" +version = "0.11.0+8.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "557b255ff04123fcc176162f56ed0c9cd42d8f357cf55b3fabeb60f7413741b3" +checksum = "d3386f101bcb4bd252d8e9d2fb41ec3b0862a15a62b478c355b2982efa469e3e" dependencies = [ "bindgen", "bzip2-sys", @@ -4605,9 +4917,9 @@ dependencies = [ [[package]] name = "libz-sys" -version = "1.1.8" +version = "1.1.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9702761c3935f8cc2f101793272e202c72b99da8f4224a19ddcf1279a6450bbf" +checksum = "d97137b25e321a73eef1418d1d5d2eda4d77e12813f8e6dead84bc52c5870a7b" dependencies = [ "cc", "pkg-config", @@ -4616,9 +4928,9 @@ dependencies = [ [[package]] name = "link-cplusplus" -version = "1.0.8" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecd207c9c713c34f95a097a5b029ac2ce6010530c7b49d7fea24d977dede04f5" +checksum = "9d240c6f7e1ba3a28b0249f774e6a9dd0175054b52dfbb61b16eb8505c3785c9" dependencies = [ "cc", ] @@ -4640,31 +4952,36 @@ dependencies = [ [[package]] name = "linregress" -version = "0.4.4" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6c601a85f5ecd1aba625247bca0031585fb1c446461b142878a16f8245ddeb8" +checksum = "4de0b5f52a9f84544d268f5fabb71b38962d6aa3c6600b8bcd27d44ccf9c9c45" dependencies = [ - "nalgebra 0.27.1", - "statrs", + "nalgebra", ] [[package]] name = "linux-raw-sys" -version = "0.0.46" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4d2456c373231a208ad294c33dc5bff30051eafd954cd4caae83a712b12854d" +checksum = "f051f77a7c8e6957c0696eac88f26b0117e54f52d3fc682ab19397a8812846a4" [[package]] name = "linux-raw-sys" -version = "0.1.4" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f051f77a7c8e6957c0696eac88f26b0117e54f52d3fc682ab19397a8812846a4" +checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519" + +[[package]] +name = "linux-raw-sys" +version = "0.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57bcfdad1b858c2db7c38303a6d2ad4dfaf5eb53dfeb0910128b2c26d6158503" [[package]] name = "lock_api" -version = "0.4.9" +version = "0.4.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" +checksum = "c1cc9717a20b1bb222f333e6a92fd32f7d8a18ddc5a3191a11af45dcbf4dcd16" dependencies = [ "autocfg", "scopeguard", @@ -4672,12 +4989,9 @@ dependencies = [ [[package]] name = "log" -version = "0.4.17" +version = "0.4.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" -dependencies = [ - "cfg-if", -] +checksum = "b06a4cde4c0f271a446782e3eff8de789548ce57dbc8eca9292c27f4a42004b4" [[package]] name = "lru" @@ -4690,11 +5004,11 @@ dependencies = [ [[package]] name = "lru" -version = "0.8.1" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6e8aaa3f231bb4bd57b84b2d5dc3ae7f350265df8aa96492e0bc394a1571909" +checksum = "718e8fae447df0c7e1ba7f5189829e63fd536945c8988d61444c19039f16b670" dependencies = [ - "hashbrown 0.12.3", + "hashbrown 0.13.2", ] [[package]] @@ -4735,6 +5049,60 @@ dependencies = [ "libc", ] +[[package]] +name = "macro_magic" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aee866bfee30d2d7e83835a4574aad5b45adba4cc807f2a3bbba974e5d4383c9" +dependencies = [ + "macro_magic_core", + "macro_magic_macros", + "quote", + "syn 2.0.28", +] + +[[package]] +name = "macro_magic_core" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e766a20fd9c72bab3e1e64ed63f36bd08410e75803813df210d1ce297d7ad00" +dependencies = [ + "const-random", + "derive-syn-parse", + "macro_magic_core_macros", + "proc-macro2", + "quote", + "syn 2.0.28", +] + +[[package]] +name = "macro_magic_core_macros" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c12469fc165526520dff2807c2975310ab47cf7190a45b99b49a7dc8befab17b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.28", +] + +[[package]] +name = "macro_magic_macros" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8fb85ec1620619edf2984a7693497d4ec88a9665d8b87e942856884c92dbf2a" +dependencies = [ + "macro_magic_core", + "quote", + "syn 2.0.28", +] + +[[package]] +name = "maplit" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d" + [[package]] name = "match_cfg" version = "0.1.0" @@ -4747,7 +5115,7 @@ version = "0.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f099785f7595cc4b4553a174ce30dd7589ef93391ff414dbb67f62392b9e0ce1" dependencies = [ - "regex-automata", + "regex-automata 0.1.10", ] [[package]] @@ -4758,10 +5126,11 @@ checksum = "2532096657941c2fea9c289d370a250971c689d4f143798ff67113ec042024a5" [[package]] name = "matrixmultiply" -version = "0.3.2" +version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "add85d4dd35074e6fedc608f8c8f513a3548619a9024b751949ef0e8e45a4d84" +checksum = "090126dc04f95dc0d1c1c91f61bdd474b3930ca064c1edc8a849da2c6cbe1e77" dependencies = [ + "autocfg", "rawpointer", ] @@ -4771,7 +5140,7 @@ version = "0.10.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6365506850d44bff6e2fbcb5176cf63650e48bd45ef2fe2665ae1570e0f4b9ca" dependencies = [ - "digest 0.10.6", + "digest 0.10.7", ] [[package]] @@ -4782,11 +5151,11 @@ checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" [[package]] name = "memfd" -version = "0.6.2" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b20a59d985586e4a5aef64564ac77299f8586d8be6cf9106a5a40207e8908efb" +checksum = "ffc89ccdc6e10d6907450f753537ebc5c5d3460d2e4e62ea74bd571db62c0f9e" dependencies = [ - "rustix 0.36.8", + "rustix 0.37.23", ] [[package]] @@ -4809,28 +5178,30 @@ dependencies = [ [[package]] name = "memoffset" -version = "0.7.1" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5de893c32cde5f383baa4c04c5d6dbdd735cfd4a794b0debdb2bb1b421da5ff4" +checksum = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1" dependencies = [ "autocfg", ] [[package]] -name = "memory-db" -version = "0.31.0" +name = "memoffset" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e0c7cba9ce19ac7ffd2053ac9f49843bbd3f4318feedfd74e85c19d5fb0ba66" +checksum = "5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c" dependencies = [ - "hash-db", - "hashbrown 0.12.3", + "autocfg", ] [[package]] -name = "memory_units" -version = "0.4.0" +name = "memory-db" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8452105ba047068f40ff7093dd1d9da90898e63dd61736462e9cdda6a90ad3c3" +checksum = "808b50db46293432a45e63bc15ea51e0ab4c0a1647b8eb114e31a3e698dd6fbe" +dependencies = [ + "hash-db", +] [[package]] name = "merlin" @@ -4856,12 +5227,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "micromath" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39617bc909d64b068dcffd0e3e31679195b5576d0c83fadc52690268cc2b2b55" - [[package]] name = "minimal-lexical" version = "0.2.1" @@ -4870,29 +5235,28 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" [[package]] name = "miniz_oxide" -version = "0.6.2" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b275950c28b37e794e8c55d88aeb5e139d0ce23fdbbeda68f8d7174abdf9e8fa" +checksum = "e7810e0be55b428ada41041c41f32c9f1a42817901b4ccf45fa3d4b6561e74c7" dependencies = [ "adler", ] [[package]] name = "mio" -version = "0.8.6" +version = "0.8.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b9d9a46eff5b4ff64b45a9e316a6d1e0bc719ef429cbec4dc630684212bfdf9" +checksum = "927a765cd3fc26206e66b296465fa9d3e5ab003e651c1b3c060e7956d96b19d2" dependencies = [ "libc", - "log", "wasi 0.11.0+wasi-snapshot-preview1", - "windows-sys 0.45.0", + "windows-sys 0.48.0", ] [[package]] name = "mmr-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "anyhow", "jsonrpsee", @@ -4907,9 +5271,9 @@ dependencies = [ [[package]] name = "mockall" -version = "0.11.3" +version = "0.11.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50e4a1c770583dac7ab5e2f6c139153b783a53a1bbee9729613f193e59828326" +checksum = "4c84490118f2ee2d74570d114f3d0493cbf02790df303d2707606c3e14e07c96" dependencies = [ "cfg-if", "downcast", @@ -4922,9 +5286,9 @@ dependencies = [ [[package]] name = "mockall_derive" -version = "0.11.3" +version = "0.11.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "832663583d5fa284ca8810bf7015e46c9fff9622d3cf34bd1eea5003fec06dd0" +checksum = "22ce75669015c4f47b289fd4d4f56e894e4c96003ffdf3ac51313126f94c6cbb" dependencies = [ "cfg-if", "proc-macro2", @@ -4934,13 +5298,14 @@ dependencies = [ [[package]] name = "multiaddr" -version = "0.16.0" +version = "0.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4aebdb21e90f81d13ed01dc84123320838e53963c2ca94b60b305d3fa64f31e" +checksum = "2b36f567c7099511fa8612bbbb52dda2419ce0bdbacf31714e3a5ffdb766d3bd" dependencies = [ "arrayref", "byteorder", "data-encoding", + "log", "multibase", "multihash", "percent-encoding", @@ -4963,17 +5328,17 @@ dependencies = [ [[package]] name = "multihash" -version = "0.16.3" +version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c346cf9999c631f002d8f977c4eaeaa0e6386f16007202308d0b3757522c2cc" +checksum = "835d6ff01d610179fbce3de1694d007e500bf33a7f29689838941d6bf783ae40" dependencies = [ "blake2b_simd", "blake2s_simd", "blake3", "core2", - "digest 0.10.6", + "digest 0.10.7", "multihash-derive", - "sha2 0.10.6", + "sha2 0.10.7", "sha3", "unsigned-varint", ] @@ -5012,24 +5377,6 @@ dependencies = [ "unsigned-varint", ] -[[package]] -name = "nalgebra" -version = "0.27.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "462fffe4002f4f2e1f6a9dcf12cc1a6fc0e15989014efc02a941d3e0f5dc2120" -dependencies = [ - "approx", - "matrixmultiply", - "nalgebra-macros 0.1.0", - "num-complex", - "num-rational", - "num-traits", - "rand 0.8.5", - "rand_distr", - "simba 0.5.1", - "typenum", -] - [[package]] name = "nalgebra" version = "0.32.3" @@ -5038,25 +5385,14 @@ checksum = "307ed9b18cc2423f29e83f84fd23a8e73628727990181f18641a8b5dc2ab1caa" dependencies = [ "approx", "matrixmultiply", - "nalgebra-macros 0.2.1", + "nalgebra-macros", "num-complex", "num-rational", "num-traits", - "simba 0.8.1", + "simba", "typenum", ] -[[package]] -name = "nalgebra-macros" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01fcc0b8149b4632adc89ac3b7b31a12fb6099a0317a4eb2ebff574ef7de7218" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - [[package]] name = "nalgebra-macros" version = "0.2.1" @@ -5096,7 +5432,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d9ea4302b9759a7a88242299225ea3688e63c85ea136371bb6cf94fd674efaab" dependencies = [ "anyhow", - "bitflags", + "bitflags 1.3.2", "byteorder", "libc", "netlink-packet-core", @@ -5132,9 +5468,9 @@ dependencies = [ [[package]] name = "netlink-sys" -version = "0.8.4" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "260e21fbb6f3d253a14df90eb0000a6066780a15dd901a7519ce02d77a94985b" +checksum = "6471bf08e7ac0135876a9581bf3217ef0333c191c128d34878079f42ee150411" dependencies = [ "bytes", "futures", @@ -5149,7 +5485,7 @@ version = "0.24.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fa52e972a9a719cecb6864fb88568781eb706bac2cd1d4f04a648542dbf78069" dependencies = [ - "bitflags", + "bitflags 1.3.2", "cfg-if", "libc", "memoffset 0.6.5", @@ -5174,7 +5510,7 @@ dependencies = [ [[package]] name = "nomad-base" version = "0.1.4" -source = "git+https://github.com/availproject/avail-core?tag=avail-core/v0.5.0#3e972524dce089d73140a2e32c83084e5c9c418c" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#b77ac42456d7e09b81d29c065ce8a20872ef596f" dependencies = [ "ethers-signers", "nomad-core", @@ -5190,7 +5526,7 @@ dependencies = [ [[package]] name = "nomad-core" version = "0.1.4" -source = "git+https://github.com/availproject/avail-core?tag=avail-core/v0.5.0#3e972524dce089d73140a2e32c83084e5c9c418c" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#b77ac42456d7e09b81d29c065ce8a20872ef596f" dependencies = [ "ethers-core", "ethers-signers", @@ -5253,7 +5589,7 @@ dependencies = [ [[package]] name = "nomad-merkle" version = "0.1.2" -source = "git+https://github.com/availproject/avail-core?tag=avail-core/v0.5.0#3e972524dce089d73140a2e32c83084e5c9c418c" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#b77ac42456d7e09b81d29c065ce8a20872ef596f" dependencies = [ "avail-core", "frame-support", @@ -5271,14 +5607,14 @@ dependencies = [ [[package]] name = "nomad-signature" version = "0.1.2" -source = "git+https://github.com/availproject/avail-core?tag=avail-core/v0.5.0#3e972524dce089d73140a2e32c83084e5c9c418c" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#b77ac42456d7e09b81d29c065ce8a20872ef596f" dependencies = [ - "elliptic-curve", + "elliptic-curve 0.12.3", "ethers-core", "frame-support", - "generic-array 0.14.6", + "generic-array 0.14.7", "hex", - "k256", + "k256 0.11.6", "parity-scale-codec", "scale-info", "serde", @@ -5334,7 +5670,7 @@ version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a652d9771a63711fd3c3deb670acfbe5c30a4072e664d7a3bf5a9e1056ac72c3" dependencies = [ - "arrayvec 0.7.2", + "arrayvec 0.7.4", "itoa", ] @@ -5362,41 +5698,46 @@ dependencies = [ [[package]] name = "num-traits" -version = "0.2.15" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd" +checksum = "f30b0abd723be7e2ffca1272140fac1a2f084c77ec3e123c192b66af1ee9e6c2" dependencies = [ "autocfg", - "libm 0.2.6", ] [[package]] name = "num_cpus" -version = "1.15.0" +version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" +checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" dependencies = [ - "hermit-abi 0.2.6", + "hermit-abi 0.3.2", "libc", ] +[[package]] +name = "number_prefix" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3" + [[package]] name = "object" -version = "0.29.0" +version = "0.30.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21158b2c33aa6d4561f1c0a6ea283ca92bc54802a93b263e910746d679a7eb53" +checksum = "03b4680b86d9cfafba8fc491dc9b6df26b68cf40e9e6cd73909194759a63c385" dependencies = [ "crc32fast", - "hashbrown 0.12.3", - "indexmap", + "hashbrown 0.13.2", + "indexmap 1.9.3", "memchr", ] [[package]] name = "object" -version = "0.30.3" +version = "0.31.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea86265d3d3dcb6a27fc51bd29a4bf387fae9d2986b823079d4986af253eb439" +checksum = "8bda667d9f2b5051b8833f59f3bf748b28ef54f850f4fcb389a252aa383866d1" dependencies = [ "memchr", ] @@ -5416,14 +5757,14 @@ version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9bedf36ffb6ba96c2eb7144ef6270557b52e54b20c0a8e1eb2ff99a6c6959bff" dependencies = [ - "asn1-rs 0.5.1", + "asn1-rs 0.5.2", ] [[package]] name = "once_cell" -version = "1.17.1" +version = "1.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3" +checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d" [[package]] name = "oorandom" @@ -5449,7 +5790,7 @@ version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "786393f80485445794f6043fd3138854dd109cc6c4bd1a6383db304c9ce9b9ce" dependencies = [ - "arrayvec 0.7.2", + "arrayvec 0.7.4", "auto_impl", "bytes", "ethereum-types", @@ -5476,9 +5817,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "os_str_bytes" -version = "6.4.1" +version = "6.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b7820b9daea5457c9f21c69448905d723fbd21136ccf521748f23fd49e723ee" +checksum = "4d5d9eb14b174ee9aa2ef96dc2b94637a2d4b6e7cb873c7e171f0c20c6cf3eac" [[package]] name = "p256" @@ -5486,9 +5827,9 @@ version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "51f44edd08f51e2ade572f141051021c5af22677e42b7dd28a88155151c33594" dependencies = [ - "ecdsa", - "elliptic-curve", - "sha2 0.10.6", + "ecdsa 0.14.8", + "elliptic-curve 0.12.3", + "sha2 0.10.7", ] [[package]] @@ -5497,9 +5838,9 @@ version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dfc8c5bf642dde52bb9e87c0ecd8ca5a76faac2eeed98dedb7c717997e1080aa" dependencies = [ - "ecdsa", - "elliptic-curve", - "sha2 0.10.6", + "ecdsa 0.14.8", + "elliptic-curve 0.12.3", + "sha2 0.10.7", ] [[package]] @@ -5509,13 +5850,13 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a1914cd452d8fccd6f9db48147b29fd4ae05bea9dc5d9ad578509f72415de282" dependencies = [ "cfg-if", - "libm 0.1.4", + "libm", ] [[package]] name = "pallet-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-support", "frame-system", @@ -5531,14 +5872,13 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-support", "frame-system", "impl-trait-for-tuples", "parity-scale-codec", "scale-info", - "sp-authorship", "sp-runtime", "sp-std", ] @@ -5546,7 +5886,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-benchmarking", "frame-support", @@ -5559,7 +5899,7 @@ dependencies = [ "scale-info", "sp-application-crypto", "sp-consensus-babe", - "sp-consensus-vrf", + "sp-core", "sp-io", "sp-runtime", "sp-session", @@ -5570,7 +5910,7 @@ dependencies = [ [[package]] name = "pallet-bags-list" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5590,7 +5930,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-benchmarking", "frame-support", @@ -5605,7 +5945,7 @@ dependencies = [ [[package]] name = "pallet-bounties" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-benchmarking", "frame-support", @@ -5623,7 +5963,7 @@ dependencies = [ [[package]] name = "pallet-child-bounties" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-benchmarking", "frame-support", @@ -5642,7 +5982,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-benchmarking", "frame-support", @@ -5659,7 +5999,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-benchmarking", "frame-support", @@ -5677,7 +6017,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-multi-phase" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5700,7 +6040,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-support-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5713,7 +6053,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-benchmarking", "frame-support", @@ -5725,13 +6065,14 @@ dependencies = [ "sp-io", "sp-npos-elections", "sp-runtime", + "sp-staking", "sp-std", ] [[package]] name = "pallet-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-benchmarking", "frame-support", @@ -5742,8 +6083,8 @@ dependencies = [ "parity-scale-codec", "scale-info", "sp-application-crypto", + "sp-consensus-grandpa", "sp-core", - "sp-finality-grandpa", "sp-io", "sp-runtime", "sp-session", @@ -5754,7 +6095,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-benchmarking", "frame-support", @@ -5774,7 +6115,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-benchmarking", "frame-support", @@ -5791,7 +6132,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-benchmarking", "frame-support", @@ -5808,7 +6149,7 @@ dependencies = [ [[package]] name = "pallet-mmr" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-benchmarking", "frame-support", @@ -5825,7 +6166,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-benchmarking", "frame-support", @@ -5841,7 +6182,7 @@ dependencies = [ [[package]] name = "pallet-nomination-pools" version = "1.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-support", "frame-system", @@ -5858,7 +6199,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-support", "frame-system", @@ -5875,7 +6216,7 @@ dependencies = [ [[package]] name = "pallet-preimage" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-benchmarking", "frame-support", @@ -5892,7 +6233,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-benchmarking", "frame-support", @@ -5909,7 +6250,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-support", "frame-system", @@ -5930,7 +6271,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5953,19 +6294,20 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.28", ] [[package]] name = "pallet-sudo" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ + "frame-benchmarking", "frame-support", "frame-system", "parity-scale-codec", @@ -5978,7 +6320,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-benchmarking", "frame-support", @@ -5996,7 +6338,7 @@ dependencies = [ [[package]] name = "pallet-tips" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-benchmarking", "frame-support", @@ -6015,7 +6357,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-support", "frame-system", @@ -6031,7 +6373,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "jsonrpsee", "pallet-transaction-payment-rpc-runtime-api", @@ -6047,7 +6389,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -6059,7 +6401,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-benchmarking", "frame-support", @@ -6076,7 +6418,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-benchmarking", "frame-support", @@ -6091,9 +6433,9 @@ dependencies = [ [[package]] name = "parity-db" -version = "0.4.3" +version = "0.4.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd684a725651d9588ef21f140a328b6b4f64e646b2e931f3e6f14f75eedf9980" +checksum = "78f19d20a0d2cc52327a88d131fa1c4ea81ea4a04714aedcfeca2dd410049cf8" dependencies = [ "blake2", "crc32fast", @@ -6105,16 +6447,17 @@ dependencies = [ "memmap2", "parking_lot 0.12.1", "rand 0.8.5", + "siphasher", "snap", ] [[package]] name = "parity-scale-codec" -version = "3.4.0" +version = "3.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "637935964ff85a605d114591d4d2c13c5d1ba2806dae97cea6bf180238a749ac" +checksum = "dd8e946cc0cc711189c0b0249fb8b599cbeeab9784d83c415719368bb8d4ac64" dependencies = [ - "arrayvec 0.7.2", + "arrayvec 0.7.4", "bitvec 1.0.1", "byte-slice-cast", "bytes", @@ -6125,9 +6468,9 @@ dependencies = [ [[package]] name = "parity-scale-codec-derive" -version = "3.1.4" +version = "3.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86b26a931f824dd4eca30b3e43bb4f31cd5f0d3a403c5f5ff27106b805bfde7b" +checksum = "2a296c3079b5fefbc499e1de58dc26c09b1b9a5952d26694ee89f04a43ebbb3e" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -6173,9 +6516,9 @@ checksum = "e1ad0aff30c1da14b1254fcb2af73e1fa9a28670e584a626f53a369d0e157304" [[package]] name = "parking" -version = "2.0.0" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "427c3892f9e783d91cc128285287e70a59e206ca452770ece88a76f7a3eddd72" +checksum = "14f2252c834a40ed9bb5422029649578e63aa341ac401f74e719dd1afda8394e" [[package]] name = "parking_lot" @@ -6195,7 +6538,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" dependencies = [ "lock_api", - "parking_lot_core 0.9.7", + "parking_lot_core 0.9.8", ] [[package]] @@ -6207,24 +6550,30 @@ dependencies = [ "cfg-if", "instant", "libc", - "redox_syscall", + "redox_syscall 0.2.16", "smallvec", "winapi", ] [[package]] name = "parking_lot_core" -version = "0.9.7" +version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9069cbb9f99e3a5083476ccb29ceb1de18b9118cafa53e90c9551235de2b9521" +checksum = "93f00c865fe7cabf650081affecd3871070f26767e7b2070a3ffae14c654b447" dependencies = [ "cfg-if", "libc", - "redox_syscall", + "redox_syscall 0.3.5", "smallvec", - "windows-sys 0.45.0", + "windows-targets 0.48.1", ] +[[package]] +name = "partial_sort" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7924d1d0ad836f665c9065e26d016c673ece3993f30d340068b16f282afc1156" + [[package]] name = "password-hash" version = "0.4.2" @@ -6238,9 +6587,9 @@ dependencies = [ [[package]] name = "paste" -version = "1.0.11" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d01a5bd0424d00070b0098dd17ebca6f961a959dead1dbcbbbc1d1cd8d3deeba" +checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" [[package]] name = "pbkdf2" @@ -6257,10 +6606,10 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "83a0692ec44e4cf1ef28ca317f14f8f07da2d95ec3fa01f86e4467b725e60917" dependencies = [ - "digest 0.10.6", + "digest 0.10.7", "hmac 0.12.1", "password-hash", - "sha2 0.10.6", + "sha2 0.10.7", ] [[package]] @@ -6289,15 +6638,15 @@ dependencies = [ [[package]] name = "percent-encoding" -version = "2.2.0" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e" +checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94" [[package]] name = "pest" -version = "2.5.5" +version = "2.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "028accff104c4e513bad663bbcd2ad7cfd5304144404c31ed0a77ac103d00660" +checksum = "1acb4a4365a13f749a93f1a094a7805e5cfa0955373a9de860d962eaa3a5fe5a" dependencies = [ "thiserror", "ucd-trie", @@ -6305,9 +6654,9 @@ dependencies = [ [[package]] name = "pest_derive" -version = "2.5.5" +version = "2.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ac3922aac69a40733080f53c1ce7f91dcf57e1a5f6c52f421fadec7fbdc4b69" +checksum = "666d00490d4ac815001da55838c500eafb0320019bbaa44444137c48b443a853" dependencies = [ "pest", "pest_generator", @@ -6315,26 +6664,26 @@ dependencies = [ [[package]] name = "pest_generator" -version = "2.5.5" +version = "2.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d06646e185566b5961b4058dd107e0a7f56e77c3f484549fb119867773c0f202" +checksum = "68ca01446f50dbda87c1786af8770d535423fa8a53aec03b8f4e3d7eb10e0929" dependencies = [ "pest", "pest_meta", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.28", ] [[package]] name = "pest_meta" -version = "2.5.5" +version = "2.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6f60b2ba541577e2a0c307c8f39d1439108120eb7903adeb6497fa880c59616" +checksum = "56af0a30af74d0445c0bf6d9d051c979b516a1a5af790d251daee76005420a48" dependencies = [ "once_cell", "pest", - "sha2 0.10.6", + "sha2 0.10.7", ] [[package]] @@ -6344,27 +6693,27 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4dd7d28ee937e54fe3080c91faa1c3a46c06de6252988a7f4592ba2310ef22a4" dependencies = [ "fixedbitset", - "indexmap", + "indexmap 1.9.3", ] [[package]] name = "pin-project" -version = "1.0.12" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad29a609b6bcd67fee905812e544992d216af9d755757c05ed2d0e15a74c6ecc" +checksum = "fda4ed1c6c173e3fc7a83629421152e01d7b1f9b7f65fb301e490e8cfc656422" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.0.12" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "069bdb1e05adc7a8990dce9cc75370895fbe4e3d58b9b73bf1aee56359344a55" +checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.28", ] [[package]] @@ -6375,9 +6724,9 @@ checksum = "257b64915a082f7811703966789728173279bdebb956b143dbcd23f6f970a777" [[package]] name = "pin-project-lite" -version = "0.2.9" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" +checksum = "2c516611246607d0c04186886dbb3a754368ef82c79e9827a802c6d836dd111c" [[package]] name = "pin-utils" @@ -6391,21 +6740,25 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9eca2c590a5f85da82668fa685c09ce2888b9430e83299debf1f34b65fd4a4ba" dependencies = [ - "der", - "spki", + "der 0.6.1", + "spki 0.6.0", ] [[package]] -name = "pkg-config" -version = "0.3.26" +name = "pkcs8" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ac9a59f73473f1b8d852421e59e64809f025994837ef743615c6d0c5b305160" +checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7" +dependencies = [ + "der 0.7.7", + "spki 0.7.2", +] [[package]] -name = "platforms" -version = "2.0.0" +name = "pkg-config" +version = "0.3.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8d0eef3571242013a0d5dc84861c3ae4a652e56e12adf8bdc26ff5f8cb34c94" +checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964" [[package]] name = "platforms" @@ -6415,9 +6768,9 @@ checksum = "e3d7ddaed09e0eb771a79ab0fd64609ba0afb0a8366421957936ad14cbd13630" [[package]] name = "plotters" -version = "0.3.4" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2538b639e642295546c50fcd545198c9d64ee2a38620a628724a3b266d5fbf97" +checksum = "d2c224ba00d7cadd4d5c660deaf2098e5e80e07846537c51f9cfa4be50c1fd45" dependencies = [ "num-traits", "plotters-backend", @@ -6428,31 +6781,33 @@ dependencies = [ [[package]] name = "plotters-backend" -version = "0.3.4" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "193228616381fecdc1224c62e96946dfbc73ff4384fba576e052ff8c1bea8142" +checksum = "9e76628b4d3a7581389a35d5b6e2139607ad7c75b17aed325f210aa91f4a9609" [[package]] name = "plotters-svg" -version = "0.3.3" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9a81d2759aae1dae668f783c308bc5c8ebd191ff4184aaa1b37f65a6ae5a56f" +checksum = "38f6d39893cca0701371e3c27294f09797214b86f1fb951b89ade8ec04e2abab" dependencies = [ "plotters-backend", ] [[package]] name = "polling" -version = "2.5.2" +version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22122d5ec4f9fe1b3916419b76be1e80bcb93f618d071d2edf841b137b2a2bd6" +checksum = "4b2d323e8ca7996b3e23126511a523f7e62924d93ecd5ae73b333815b0eb3dce" dependencies = [ "autocfg", + "bitflags 1.3.2", "cfg-if", + "concurrent-queue", "libc", "log", - "wepoll-ffi", - "windows-sys 0.42.0", + "pin-project-lite 0.2.11", + "windows-sys 0.48.0", ] [[package]] @@ -6478,32 +6833,39 @@ checksum = "048aeb476be11a4b6ca432ca569e375810de9294ae78f4774e78ea98a9246ede" dependencies = [ "cpufeatures", "opaque-debug 0.3.0", - "universal-hash", + "universal-hash 0.4.1", ] [[package]] name = "polyval" -version = "0.4.5" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eebcc4aa140b9abd2bc40d9c3f7ccec842679cd79045ac3a7ac698c1a064b7cd" +checksum = "8419d2b623c7c0896ff2d5d96e2cb4ede590fed28fcc34934f4c33c036e620a1" dependencies = [ - "cpuid-bool", + "cfg-if", + "cpufeatures", "opaque-debug 0.3.0", - "universal-hash", + "universal-hash 0.4.1", ] [[package]] name = "polyval" -version = "0.5.3" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8419d2b623c7c0896ff2d5d96e2cb4ede590fed28fcc34934f4c33c036e620a1" +checksum = "d52cff9d1d4dee5fe6d03729099f4a310a41179e0a10dbf542039873f2e826fb" dependencies = [ "cfg-if", "cpufeatures", "opaque-debug 0.3.0", - "universal-hash", + "universal-hash 0.5.1", ] +[[package]] +name = "portable-atomic" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f32154ba0af3a075eefa1eda8bb414ee928f62303a54ea85b8d6638ff1a6ee9e" + [[package]] name = "ppv-lite86" version = "0.2.17" @@ -6526,15 +6888,15 @@ dependencies = [ [[package]] name = "predicates-core" -version = "1.0.5" +version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72f883590242d3c6fc5bf50299011695fa6590c2c70eac95ee1bdb9a733ad1a2" +checksum = "b794032607612e7abeb4db69adb4e33590fa6cf1149e95fd7cb00e634b92f174" [[package]] name = "predicates-tree" -version = "1.0.7" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54ff541861505aabf6ea722d2131ee980b8276e10a1297b94e896dd8b621850d" +checksum = "368ba315fb8c5052ab692e68a0eefec6ec57b23a36959c14496f0b0df2c0cecf" dependencies = [ "predicates-core", "termtree", @@ -6542,14 +6904,24 @@ dependencies = [ [[package]] name = "prettyplease" -version = "0.1.23" +version = "0.1.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e97e3215779627f01ee256d2fad52f3d95e8e1c11e9fc6fd08f7cd455d5d5c78" +checksum = "6c8646e95016a7a6c4adea95bafa8a16baab64b583356217f2c85db4a39d9a86" dependencies = [ "proc-macro2", "syn 1.0.109", ] +[[package]] +name = "prettyplease" +version = "0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c64d9ba0963cdcea2e1b2230fbae2bab30eb25a174be395c41e764bfb65dd62" +dependencies = [ + "proc-macro2", + "syn 2.0.28", +] + [[package]] name = "primitive-types" version = "0.12.1" @@ -6571,7 +6943,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e17d47ce914bf4de440332250b0edd23ce48c005f59fab39d3335866b114f11a" dependencies = [ "thiserror", - "toml", + "toml 0.5.11", ] [[package]] @@ -6598,11 +6970,28 @@ dependencies = [ "version_check", ] +[[package]] +name = "proc-macro-hack" +version = "0.5.20+deprecated" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068" + +[[package]] +name = "proc-macro-warning" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70550716265d1ec349c41f70dd4f964b4fd88394efe4405f0c1da679c4799a07" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.28", +] + [[package]] name = "proc-macro2" -version = "1.0.56" +version = "1.0.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b63bdb0cd06f1f4dedf69b254734f9b45af66e4a031e42a7480257d9898b435" +checksum = "18fb31db3f9bddb2ea821cde30a9f70117e3f119938b5ee630b7403aa6e2ead9" dependencies = [ "unicode-ident", ] @@ -6623,21 +7012,21 @@ dependencies = [ [[package]] name = "prometheus-client" -version = "0.18.1" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83cd1b99916654a69008fd66b4f9397fbe08e6e51dfe23d4417acf5d3b8cb87c" +checksum = "5d6fa99d535dd930d1249e6c79cb3c2915f9172a540fe2b02a4c8f9ca954721e" dependencies = [ "dtoa", "itoa", "parking_lot 0.12.1", - "prometheus-client-derive-text-encode", + "prometheus-client-derive-encode", ] [[package]] -name = "prometheus-client-derive-text-encode" -version = "0.3.0" +name = "prometheus-client-derive-encode" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66a455fbcb954c1a7decf3c586e860fd7889cddf4b8e164be736dbac95a953cd" +checksum = "72b6a5217beb0ad503ee7fa752d451c905113d70721b937126158f3106a48cc1" dependencies = [ "proc-macro2", "quote", @@ -6646,9 +7035,9 @@ dependencies = [ [[package]] name = "prost" -version = "0.11.7" +version = "0.11.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3933d3ac2717077b3d5f42b40f59edfb1fb6a8c14e1c7de0f38075c4bac8e314" +checksum = "0b82eaa1d779e9a4bc1c3217db8ffbeabaae1dca241bf70183242128d48681cd" dependencies = [ "bytes", "prost-derive", @@ -6656,9 +7045,9 @@ dependencies = [ [[package]] name = "prost-build" -version = "0.11.7" +version = "0.11.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a24be1d23b4552a012093e1b93697b73d644ae9590e3253d878d0e77d411b614" +checksum = "119533552c9a7ffacc21e099c24a0ac8bb19c2a2a3f363de84cd9b844feab270" dependencies = [ "bytes", "heck", @@ -6667,7 +7056,7 @@ dependencies = [ "log", "multimap", "petgraph", - "prettyplease", + "prettyplease 0.1.25", "prost", "prost-types", "regex", @@ -6676,24 +7065,11 @@ dependencies = [ "which", ] -[[package]] -name = "prost-codec" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0dc34979ff898b6e141106178981ce2596c387ea6e62533facfc61a37fc879c0" -dependencies = [ - "asynchronous-codec", - "bytes", - "prost", - "thiserror", - "unsigned-varint", -] - [[package]] name = "prost-derive" -version = "0.11.7" +version = "0.11.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e9935362e8369bc3acd874caeeae814295c504c2bdbcde5c024089cf8b4dc12" +checksum = "e5d2d8d10f3c6ded6da8b05b5fb3b8a5082514344d56c9f871412d29b4e075b4" dependencies = [ "anyhow", "itertools 0.10.5", @@ -6704,9 +7080,9 @@ dependencies = [ [[package]] name = "prost-types" -version = "0.11.7" +version = "0.11.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7de56acd5cc9642cac2a9518d4c8c53818905398fe42d33235859e0d542a7695" +checksum = "213622a1460818959ac1181aaeb2dc9c7f63df720db7d788b3e24eacd1983e13" dependencies = [ "prost", ] @@ -6726,6 +7102,28 @@ version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" +[[package]] +name = "quick-protobuf" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d6da84cc204722a989e01ba2f6e1e276e190f22263d0cb6ce8526fcdb0d2e1f" +dependencies = [ + "byteorder", +] + +[[package]] +name = "quick-protobuf-codec" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1693116345026436eb2f10b677806169c1a1260c1c60eaaffe3fb5a29ae23d8b" +dependencies = [ + "asynchronous-codec", + "bytes", + "quick-protobuf", + "thiserror", + "unsigned-varint", +] + [[package]] name = "quicksink" version = "0.1.2" @@ -6739,9 +7137,9 @@ dependencies = [ [[package]] name = "quinn-proto" -version = "0.9.2" +version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72ef4ced82a24bb281af338b9e8f94429b6eca01b4e66d899f40031f074e74c9" +checksum = "f31999cfc7927c4e212e60fd50934ab40e8e8bfd2d493d6095d2d306bc0764d9" dependencies = [ "bytes", "rand 0.8.5", @@ -6757,9 +7155,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.27" +version = "1.0.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f4f29d145265ec1c483c7c654450edde0bfe043d3938d6972630663356d9500" +checksum = "50f3b39ccfb720540debaa0164757101c08ecb8d326b15358ce76a62c7e85965" dependencies = [ "proc-macro2", ] @@ -6835,17 +7233,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom 0.2.8", -] - -[[package]] -name = "rand_distr" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32cb0b9bc82b0a0876c2dd994a7e7a2683d3e7390ca40e6886785ef0c7e3ee31" -dependencies = [ - "num-traits", - "rand 0.8.5", + "getrandom 0.2.10", ] [[package]] @@ -6874,9 +7262,9 @@ checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3" [[package]] name = "rayon" -version = "1.6.1" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6db3a213adf02b3bcfd2d3846bb41cb22857d131789e01df434fb7e7bc0759b7" +checksum = "1d2df5196e37bcc87abebc0053e20787d73847bb33134a69841207dd0a47f03b" dependencies = [ "either", "rayon-core", @@ -6884,9 +7272,9 @@ dependencies = [ [[package]] name = "rayon-core" -version = "1.10.2" +version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "356a0625f1954f730c0201cdab48611198dc6ce21f4acff55089b5a78e6e835b" +checksum = "4b8f95bd6966f5c87776639160a66bd8ab9895d9d4ab01ddba9fc60661aebe8d" dependencies = [ "crossbeam-channel", "crossbeam-deque", @@ -6902,7 +7290,7 @@ checksum = "6413f3de1edee53342e6138e75b56d32e7bc6e332b3bd62d497b1929d4cfbcdd" dependencies = [ "pem", "ring", - "time 0.3.19", + "time 0.3.25", "x509-parser 0.13.2", "yasna", ] @@ -6915,7 +7303,7 @@ checksum = "ffbe84efe2f38dea12e9bfc1f65377fdf03e53a18cb3b995faedf7934c7e785b" dependencies = [ "pem", "ring", - "time 0.3.19", + "time 0.3.25", "yasna", ] @@ -6925,7 +7313,16 @@ version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" dependencies = [ - "bitflags", + "bitflags 1.3.2", +] + +[[package]] +name = "redox_syscall" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29" +dependencies = [ + "bitflags 1.3.2", ] [[package]] @@ -6934,36 +7331,36 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b033d837a7cf162d7993aded9304e30a83213c648b6e389db233191f891e5c2b" dependencies = [ - "getrandom 0.2.8", - "redox_syscall", + "getrandom 0.2.10", + "redox_syscall 0.2.16", "thiserror", ] [[package]] name = "ref-cast" -version = "1.0.14" +version = "1.0.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c78fb8c9293bcd48ef6fce7b4ca950ceaf21210de6e105a883ee280c0f7b9ed" +checksum = "61ef7e18e8841942ddb1cf845054f8008410030a3997875d9e49b7a363063df1" dependencies = [ "ref-cast-impl", ] [[package]] name = "ref-cast-impl" -version = "1.0.14" +version = "1.0.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f9c0c92af03644e4806106281fe2e068ac5bc0ae74a707266d06ea27bccee5f" +checksum = "2dfaf0c85b766276c797f3791f5bc6d5bd116b41d53049af2789666b0c0bc9fa" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.28", ] [[package]] name = "regalloc2" -version = "0.3.2" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d43a209257d978ef079f3d446331d0f1794f5e0fc19b306a199983857833a779" +checksum = "80535183cae11b149d618fbd3c37e38d7cda589d82d7769e196ca9a9042d7621" dependencies = [ "fxhash", "log", @@ -6973,13 +7370,14 @@ dependencies = [ [[package]] name = "regex" -version = "1.7.1" +version = "1.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48aaa5748ba571fb95cd2c85c09f629215d3a6ece942baa100950af03a34f733" +checksum = "81bc1d4caf89fac26a70747fe603c130093b53c773888797a6329091246d651a" dependencies = [ "aho-corasick", "memchr", - "regex-syntax", + "regex-automata 0.3.6", + "regex-syntax 0.7.4", ] [[package]] @@ -6988,23 +7386,31 @@ version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" dependencies = [ - "regex-syntax", + "regex-syntax 0.6.29", +] + +[[package]] +name = "regex-automata" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fed1ceff11a1dddaee50c9dc8e4938bd106e9d89ae372f192311e7da498e3b69" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax 0.7.4", ] [[package]] name = "regex-syntax" -version = "0.6.28" +version = "0.6.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848" +checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" [[package]] -name = "remove_dir_all" -version = "0.5.3" +name = "regex-syntax" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7" -dependencies = [ - "winapi", -] +checksum = "e5ea92a5b6195c6ef2a0295ea818b312502c6fc94dde986c5553242e18fd4ce2" [[package]] name = "resolv-conf" @@ -7022,11 +7428,21 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7743f17af12fa0b03b803ba12cd6a8d9483a587e89c69445e3909655c0b9fabb" dependencies = [ - "crypto-bigint", + "crypto-bigint 0.4.9", "hmac 0.12.1", "zeroize", ] +[[package]] +name = "rfc6979" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dd2a808d456c4a54e300a23e9f5a67e122c3024119acbfd73e3bf664491cb2" +dependencies = [ + "hmac 0.12.1", + "subtle", +] + [[package]] name = "ring" version = "0.16.20" @@ -7048,7 +7464,7 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bd124222d17ad93a644ed9d011a40f4fb64aa54275c08cc216524a9ea82fb09f" dependencies = [ - "digest 0.10.6", + "digest 0.10.7", ] [[package]] @@ -7073,9 +7489,9 @@ dependencies = [ [[package]] name = "rocksdb" -version = "0.19.0" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e9562ea1d70c0cc63a34a22d977753b50cca91cc6b6527750463bd5dd8697bc" +checksum = "bb6f170a4041d50a0ce04b0d2e14916d6ca863ea2e422689a5b694395d299ffe" dependencies = [ "libc", "librocksdb-sys", @@ -7094,12 +7510,11 @@ dependencies = [ [[package]] name = "rs_merkle" -version = "1.2.0" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a632a43487c1332be8e183588079f89b6820fab24e04db49521eacd536837372" +checksum = "05225752ca6ede4cb1b73aa37ce3904affd042e98f28246f56f438ebfd47a810" dependencies = [ - "micromath", - "sha2 0.10.6", + "sha2 0.10.7", ] [[package]] @@ -7154,9 +7569,9 @@ dependencies = [ [[package]] name = "rustc-demangle" -version = "0.1.21" +version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ef03e0a2b150c7a90d01faf6254c9c48a41e95fb2a8c2ac1c6f0d2b9aefc342" +checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" [[package]] name = "rustc-hash" @@ -7176,7 +7591,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" dependencies = [ - "semver 1.0.16", + "semver 1.0.18", ] [[package]] @@ -7190,30 +7605,43 @@ dependencies = [ [[package]] name = "rustix" -version = "0.35.13" +version = "0.36.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "727a1a6d65f786ec22df8a81ca3121107f235970dc1705ed681d3e6e8b9cd5f9" +checksum = "c37f1bd5ef1b5422177b7646cba67430579cfe2ace80f284fee876bca52ad941" dependencies = [ - "bitflags", + "bitflags 1.3.2", "errno", - "io-lifetimes 0.7.5", + "io-lifetimes", "libc", - "linux-raw-sys 0.0.46", - "windows-sys 0.42.0", + "linux-raw-sys 0.1.4", + "windows-sys 0.45.0", ] [[package]] name = "rustix" -version = "0.36.8" +version = "0.37.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f43abb88211988493c1abb44a70efa56ff0ce98f233b7b276146f1f3f7ba9644" +checksum = "4d69718bf81c6127a49dc64e44a742e8bb9213c0ff8869a22c308f84c1d4ab06" dependencies = [ - "bitflags", + "bitflags 1.3.2", "errno", - "io-lifetimes 1.0.5", + "io-lifetimes", "libc", - "linux-raw-sys 0.1.4", - "windows-sys 0.45.0", + "linux-raw-sys 0.3.8", + "windows-sys 0.48.0", +] + +[[package]] +name = "rustix" +version = "0.38.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "172891ebdceb05aa0005f533a6cbfca599ddd7d966f6f5d4d9b2e70478e70399" +dependencies = [ + "bitflags 2.3.3", + "errno", + "libc", + "linux-raw-sys 0.4.5", + "windows-sys 0.48.0", ] [[package]] @@ -7243,9 +7671,9 @@ dependencies = [ [[package]] name = "rustls-native-certs" -version = "0.6.2" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0167bac7a9f490495f3c33013e7722b53cb087ecbe082fb0c6387c96f634ea50" +checksum = "a9aace74cb666635c918e9c12bc0d348266037aa8eb599b5cba565709a8dff00" dependencies = [ "openssl-probe", "rustls-pemfile", @@ -7255,18 +7683,18 @@ dependencies = [ [[package]] name = "rustls-pemfile" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d194b56d58803a43635bdc398cd17e383d6f71f9182b9a192c127ca42494a59b" +checksum = "2d3987094b1d07b653b7dfdc3f70ce9a1da9c51ac18c1b06b662e4f9a0e9f4b2" dependencies = [ - "base64 0.21.0", + "base64 0.21.2", ] [[package]] name = "rustversion" -version = "1.0.11" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5583e89e108996506031660fe09baa5011b9dd0341b89029313006d1fb508d70" +checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4" [[package]] name = "rw-stream-sink" @@ -7281,9 +7709,9 @@ dependencies = [ [[package]] name = "ryu" -version = "1.0.12" +version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b4b9743ed687d4b4bcedf9ff5eaa7398495ae14e61cba0a295704edbc7decde" +checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741" [[package]] name = "safe_arch" @@ -7300,7 +7728,7 @@ version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97a22f5af31f73a954c10289c93e8a50cc23d971e80ee446f1f6f7137a088213" dependencies = [ - "cipher 0.4.3", + "cipher 0.4.4", ] [[package]] @@ -7315,7 +7743,7 @@ dependencies = [ [[package]] name = "sc-allocator" version = "4.1.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "log", "sp-core", @@ -7326,7 +7754,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "async-trait", "futures", @@ -7334,12 +7762,13 @@ dependencies = [ "ip_network", "libp2p", "log", + "multihash", "parity-scale-codec", "prost", "prost-build", "rand 0.8.5", "sc-client-api", - "sc-network-common", + "sc-network", "sp-api", "sp-authority-discovery", "sp-blockchain", @@ -7353,7 +7782,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "futures", "futures-timer", @@ -7376,7 +7805,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -7386,46 +7815,49 @@ dependencies = [ "sp-core", "sp-inherents", "sp-runtime", - "sp-state-machine", ] [[package]] name = "sc-chain-spec" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "memmap2", "sc-chain-spec-derive", - "sc-network-common", + "sc-client-api", + "sc-executor", + "sc-network", "sc-telemetry", "serde", "serde_json", + "sp-blockchain", "sp-core", "sp-runtime", + "sp-state-machine", ] [[package]] name = "sc-chain-spec-derive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.28", ] [[package]] name = "sc-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "array-bytes", "chrono", - "clap 4.1.6", + "clap 4.3.19", "fdlimit", "futures", - "libp2p", + "libp2p-identity", "log", "names", "parity-scale-codec", @@ -7436,7 +7868,6 @@ dependencies = [ "sc-client-db", "sc-keystore", "sc-network", - "sc-network-common", "sc-service", "sc-telemetry", "sc-tracing", @@ -7458,7 +7889,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "fnv", "futures", @@ -7474,9 +7905,9 @@ dependencies = [ "sp-core", "sp-database", "sp-externalities", - "sp-keystore", "sp-runtime", "sp-state-machine", + "sp-statement-store", "sp-storage", "substrate-prometheus-endpoint 0.10.0-dev", ] @@ -7484,7 +7915,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "hash-db", "kvdb", @@ -7497,6 +7928,7 @@ dependencies = [ "parking_lot 0.12.1", "sc-client-api", "sc-state-db", + "schnellru", "sp-arithmetic", "sp-blockchain", "sp-core", @@ -7509,12 +7941,12 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "async-trait", "futures", "futures-timer", - "libp2p", + "libp2p-identity", "log", "mockall", "parking_lot 0.12.1", @@ -7534,13 +7966,12 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "async-trait", "fork-tree", "futures", "log", - "merlin 2.0.1", "num-bigint", "num-rational", "num-traits", @@ -7550,9 +7981,9 @@ dependencies = [ "sc-consensus", "sc-consensus-epochs", "sc-consensus-slots", - "sc-keystore", "sc-telemetry", - "schnorrkel", + "sc-transaction-pool-api", + "scale-info", "sp-api", "sp-application-crypto", "sp-block-builder", @@ -7560,7 +7991,6 @@ dependencies = [ "sp-consensus", "sp-consensus-babe", "sp-consensus-slots", - "sp-consensus-vrf", "sp-core", "sp-inherents", "sp-keystore", @@ -7572,7 +8002,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "futures", "jsonrpsee", @@ -7594,7 +8024,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "fork-tree", "parity-scale-codec", @@ -7605,50 +8035,99 @@ dependencies = [ ] [[package]] -name = "sc-consensus-slots" +name = "sc-consensus-grandpa" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ + "ahash 0.8.3", + "array-bytes", "async-trait", + "dyn-clone", + "finality-grandpa", + "fork-tree", "futures", "futures-timer", "log", "parity-scale-codec", + "parking_lot 0.12.1", + "rand 0.8.5", + "sc-block-builder", + "sc-chain-spec", "sc-client-api", "sc-consensus", + "sc-network", + "sc-network-common", + "sc-network-gossip", "sc-telemetry", + "sc-transaction-pool-api", + "sc-utils", + "serde_json", + "sp-api", + "sp-application-crypto", "sp-arithmetic", "sp-blockchain", "sp-consensus", - "sp-consensus-slots", + "sp-consensus-grandpa", "sp-core", - "sp-inherents", + "sp-keystore", "sp-runtime", - "sp-state-machine", + "substrate-prometheus-endpoint 0.10.0-dev", + "thiserror", ] [[package]] -name = "sc-consensus-uncles" +name = "sc-consensus-grandpa-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ + "finality-grandpa", + "futures", + "jsonrpsee", + "log", + "parity-scale-codec", "sc-client-api", - "sp-authorship", + "sc-consensus-grandpa", + "sc-rpc", + "serde", + "sp-blockchain", + "sp-core", "sp-runtime", "thiserror", ] +[[package]] +name = "sc-consensus-slots" +version = "0.10.0-dev" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" +dependencies = [ + "async-trait", + "futures", + "futures-timer", + "log", + "parity-scale-codec", + "sc-client-api", + "sc-consensus", + "sc-telemetry", + "sp-arithmetic", + "sp-blockchain", + "sp-consensus", + "sp-consensus-slots", + "sp-core", + "sp-inherents", + "sp-runtime", + "sp-state-machine", +] + [[package]] name = "sc-executor" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ - "lru 0.8.1", "parity-scale-codec", "parking_lot 0.12.1", "sc-executor-common", - "sc-executor-wasmi", "sc-executor-wasmtime", + "schnellru", "sp-api", "sp-core", "sp-externalities", @@ -7659,45 +8138,30 @@ dependencies = [ "sp-version", "sp-wasm-interface", "tracing", - "wasmi", ] [[package]] name = "sc-executor-common" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "sc-allocator", - "sp-maybe-compressed-blob 4.1.0-dev", + "sp-maybe-compressed-blob", "sp-wasm-interface", "thiserror", "wasm-instrument", - "wasmi", -] - -[[package]] -name = "sc-executor-wasmi" -version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" -dependencies = [ - "log", - "sc-allocator", - "sc-executor-common", - "sp-runtime-interface", - "sp-wasm-interface", - "wasmi", ] [[package]] name = "sc-executor-wasmtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ + "anyhow", "cfg-if", "libc", "log", - "once_cell", - "rustix 0.35.13", + "rustix 0.36.15", "sc-allocator", "sc-executor-common", "sp-runtime-interface", @@ -7705,76 +8169,17 @@ dependencies = [ "wasmtime", ] -[[package]] -name = "sc-finality-grandpa" -version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" -dependencies = [ - "ahash 0.7.6", - "array-bytes", - "async-trait", - "dyn-clone", - "finality-grandpa", - "fork-tree", - "futures", - "futures-timer", - "log", - "parity-scale-codec", - "parking_lot 0.12.1", - "rand 0.8.5", - "sc-block-builder", - "sc-chain-spec", - "sc-client-api", - "sc-consensus", - "sc-network", - "sc-network-common", - "sc-network-gossip", - "sc-telemetry", - "sc-utils", - "serde_json", - "sp-api", - "sp-application-crypto", - "sp-arithmetic", - "sp-blockchain", - "sp-consensus", - "sp-core", - "sp-finality-grandpa", - "sp-keystore", - "sp-runtime", - "substrate-prometheus-endpoint 0.10.0-dev", - "thiserror", -] - -[[package]] -name = "sc-finality-grandpa-rpc" -version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" -dependencies = [ - "finality-grandpa", - "futures", - "jsonrpsee", - "log", - "parity-scale-codec", - "sc-client-api", - "sc-finality-grandpa", - "sc-rpc", - "serde", - "sp-blockchain", - "sp-core", - "sp-runtime", - "thiserror", -] - [[package]] name = "sc-informant" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "ansi_term", "futures", "futures-timer", "log", "sc-client-api", + "sc-network", "sc-network-common", "sp-blockchain", "sp-runtime", @@ -7783,10 +8188,9 @@ dependencies = [ [[package]] name = "sc-keystore" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "array-bytes", - "async-trait", "parking_lot 0.12.1", "serde_json", "sp-application-crypto", @@ -7798,12 +8202,12 @@ dependencies = [ [[package]] name = "sc-network" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "array-bytes", + "async-channel", "async-trait", "asynchronous-codec", - "backtrace", "bytes", "either", "fnv", @@ -7811,45 +8215,45 @@ dependencies = [ "futures-timer", "ip_network", "libp2p", + "linked_hash_set", "log", - "lru 0.8.1", + "mockall", "parity-scale-codec", "parking_lot 0.12.1", + "partial_sort", "pin-project", "rand 0.8.5", - "sc-block-builder", "sc-client-api", - "sc-consensus", "sc-network-common", - "sc-peerset", "sc-utils", "serde", "serde_json", "smallvec", "sp-arithmetic", "sp-blockchain", - "sp-consensus", "sp-core", "sp-runtime", "substrate-prometheus-endpoint 0.10.0-dev", "thiserror", "unsigned-varint", + "wasm-timer", "zeroize", ] [[package]] name = "sc-network-bitswap" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ + "async-channel", "cid", "futures", - "libp2p", + "libp2p-identity", "log", "prost", "prost-build", "sc-client-api", - "sc-network-common", + "sc-network", "sp-blockchain", "sp-runtime", "thiserror", @@ -7859,42 +8263,33 @@ dependencies = [ [[package]] name = "sc-network-common" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "async-trait", - "bitflags", - "bytes", + "bitflags 1.3.2", "futures", - "futures-timer", - "libp2p", - "linked_hash_set", + "libp2p-identity", "parity-scale-codec", "prost-build", "sc-consensus", - "sc-peerset", - "serde", - "smallvec", - "sp-blockchain", "sp-consensus", - "sp-finality-grandpa", + "sp-consensus-grandpa", "sp-runtime", - "substrate-prometheus-endpoint 0.10.0-dev", - "thiserror", ] [[package]] name = "sc-network-gossip" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ - "ahash 0.7.6", + "ahash 0.8.3", "futures", "futures-timer", "libp2p", "log", - "lru 0.8.1", + "sc-network", "sc-network-common", - "sc-peerset", + "schnellru", "sp-runtime", "substrate-prometheus-endpoint 0.10.0-dev", "tracing", @@ -7903,18 +8298,18 @@ dependencies = [ [[package]] name = "sc-network-light" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "array-bytes", + "async-channel", "futures", - "libp2p", + "libp2p-identity", "log", "parity-scale-codec", "prost", "prost-build", "sc-client-api", - "sc-network-common", - "sc-peerset", + "sc-network", "sp-blockchain", "sp-core", "sp-runtime", @@ -7924,30 +8319,32 @@ dependencies = [ [[package]] name = "sc-network-sync" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "array-bytes", + "async-channel", "async-trait", "fork-tree", "futures", + "futures-timer", "libp2p", "log", - "lru 0.8.1", "mockall", "parity-scale-codec", "prost", "prost-build", "sc-client-api", "sc-consensus", + "sc-network", "sc-network-common", - "sc-peerset", "sc-utils", + "schnellru", "smallvec", "sp-arithmetic", "sp-blockchain", "sp-consensus", + "sp-consensus-grandpa", "sp-core", - "sp-finality-grandpa", "sp-runtime", "substrate-prometheus-endpoint 0.10.0-dev", "thiserror", @@ -7956,69 +8353,25 @@ dependencies = [ [[package]] name = "sc-network-transactions" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "array-bytes", "futures", "libp2p", "log", - "parity-scale-codec", - "pin-project", - "sc-network-common", - "sc-peerset", - "sc-utils", - "sp-consensus", - "sp-runtime", - "substrate-prometheus-endpoint 0.10.0-dev", -] - -[[package]] -name = "sc-offchain" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" -dependencies = [ - "array-bytes", - "bytes", - "fnv", - "futures", - "futures-timer", - "hyper", - "hyper-rustls", - "libp2p", - "num_cpus", - "once_cell", - "parity-scale-codec", - "parking_lot 0.12.1", - "rand 0.8.5", - "sc-client-api", - "sc-network-common", - "sc-peerset", - "sc-utils", - "sp-api", - "sp-core", - "sp-offchain", - "sp-runtime", - "threadpool", - "tracing", -] - -[[package]] -name = "sc-peerset" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" -dependencies = [ - "futures", - "libp2p", - "log", + "parity-scale-codec", + "sc-network", + "sc-network-common", "sc-utils", - "serde_json", - "wasm-timer", + "sp-consensus", + "sp-runtime", + "substrate-prometheus-endpoint 0.10.0-dev", ] [[package]] name = "sc-proposer-metrics" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "log", "substrate-prometheus-endpoint 0.10.0-dev", @@ -8027,7 +8380,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "futures", "jsonrpsee", @@ -8050,13 +8403,15 @@ dependencies = [ "sp-rpc", "sp-runtime", "sp-session", + "sp-statement-store", "sp-version", + "tokio", ] [[package]] name = "sc-rpc-api" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "jsonrpsee", "parity-scale-codec", @@ -8075,7 +8430,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "http", "jsonrpsee", @@ -8090,7 +8445,7 @@ dependencies = [ [[package]] name = "sc-rpc-spec-v2" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "array-bytes", "futures", @@ -8116,7 +8471,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "async-trait", "directories", @@ -8143,7 +8498,6 @@ dependencies = [ "sc-network-light", "sc-network-sync", "sc-network-transactions", - "sc-offchain", "sc-rpc", "sc-rpc-server", "sc-rpc-spec-v2", @@ -8181,7 +8535,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "log", "parity-scale-codec", @@ -8192,7 +8546,7 @@ dependencies = [ [[package]] name = "sc-sync-state-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "jsonrpsee", "parity-scale-codec", @@ -8200,7 +8554,7 @@ dependencies = [ "sc-client-api", "sc-consensus-babe", "sc-consensus-epochs", - "sc-finality-grandpa", + "sc-consensus-grandpa", "serde", "serde_json", "sp-blockchain", @@ -8211,7 +8565,7 @@ dependencies = [ [[package]] name = "sc-sysinfo" version = "6.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "futures", "libc", @@ -8230,7 +8584,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "chrono", "futures", @@ -8249,7 +8603,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "ansi_term", "atty", @@ -8257,12 +8611,10 @@ dependencies = [ "lazy_static", "libc", "log", - "once_cell", "parking_lot 0.12.1", "regex", "rustc-hash", "sc-client-api", - "sc-rpc-server", "sc-tracing-proc-macro", "serde", "sp-api", @@ -8280,18 +8632,18 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.28", ] [[package]] name = "sc-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "async-trait", "futures", @@ -8317,13 +8669,15 @@ dependencies = [ [[package]] name = "sc-transaction-pool-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "async-trait", "futures", "log", + "parity-scale-codec", "serde", "sp-blockchain", + "sp-core", "sp-runtime", "thiserror", ] @@ -8331,22 +8685,23 @@ dependencies = [ [[package]] name = "sc-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ - "backtrace", + "async-channel", "futures", "futures-timer", "lazy_static", "log", "parking_lot 0.12.1", "prometheus", + "sp-arithmetic", ] [[package]] name = "scale-info" -version = "2.3.1" +version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "001cf62ece89779fd16105b5f515ad0e5cedcd5440d3dd806bb067978e7c3608" +checksum = "35c0a159d0c45c12b20c5a844feb1fe4bea86e28f17b92a5f0c42193634d3782" dependencies = [ "bitvec 1.0.1", "cfg-if", @@ -8358,9 +8713,9 @@ dependencies = [ [[package]] name = "scale-info-derive" -version = "2.3.1" +version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "303959cf613a6f6efd19ed4b4ad5bf79966a13352716299ad532cfb115f4205c" +checksum = "912e55f6d20e0e80d63733872b40e1227c0bce1e1ab81ba67d696339bfd7fd29" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -8370,11 +8725,22 @@ dependencies = [ [[package]] name = "schannel" -version = "0.1.21" +version = "0.1.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c3733bf4cf7ea0880754e19cb5a462007c4a8c1914bff372ccc95b464f1df88" +dependencies = [ + "windows-sys 0.48.0", +] + +[[package]] +name = "schnellru" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "713cfb06c7059f3588fb8044c0fad1d09e3c01d225e25b9220dbfdcf16dbb1b3" +checksum = "772575a524feeb803e5b0fcbc6dd9f367e579488197c94c6e4023aad2305774d" dependencies = [ - "windows-sys 0.42.0", + "ahash 0.8.3", + "cfg-if", + "hashbrown 0.13.2", ] [[package]] @@ -8397,15 +8763,15 @@ dependencies = [ [[package]] name = "scopeguard" -version = "1.1.0" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" [[package]] name = "scratch" -version = "1.0.3" +version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddccb15bcce173023b3fedd9436f882a0739b8dfb45e4f6b6002bee5929f61b2" +checksum = "a3cf7c11c38cb994f3d40e8a8cde3bbd1f72a435e4c49e85d6553d8312306152" [[package]] name = "scrypt" @@ -8416,7 +8782,7 @@ dependencies = [ "hmac 0.12.1", "pbkdf2 0.11.0", "salsa20", - "sha2 0.10.6", + "sha2 0.10.7", ] [[package]] @@ -8457,10 +8823,24 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3be24c1842290c45df0a7bf069e0c268a747ad05a192f2fd7dcfdbc1cba40928" dependencies = [ - "base16ct", - "der", - "generic-array 0.14.6", - "pkcs8", + "base16ct 0.1.1", + "der 0.6.1", + "generic-array 0.14.7", + "pkcs8 0.9.0", + "subtle", + "zeroize", +] + +[[package]] +name = "sec1" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc" +dependencies = [ + "base16ct 0.2.0", + "der 0.7.7", + "generic-array 0.14.7", + "pkcs8 0.10.2", "subtle", "zeroize", ] @@ -8494,11 +8874,11 @@ dependencies = [ [[package]] name = "security-framework" -version = "2.8.2" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a332be01508d814fed64bf28f798a146d73792121129962fdf335bb3c49a4254" +checksum = "05b64fb303737d99b81884b2c63433e9ae28abebe5eb5045dcdd175dc2ecf4de" dependencies = [ - "bitflags", + "bitflags 1.3.2", "core-foundation", "core-foundation-sys", "libc", @@ -8507,9 +8887,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.8.0" +version = "2.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31c9bb296072e961fcbd8853511dd39c2d8be2deb1e17c6860b1d30732b323b4" +checksum = "e932934257d3b408ed8f30db49d85ea163bfe74961f017f405b025af298f0c7a" dependencies = [ "core-foundation-sys", "libc", @@ -8526,9 +8906,9 @@ dependencies = [ [[package]] name = "semver" -version = "1.0.16" +version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58bc9567378fc7690d6b2addae4e60ac2eeea07becb2c64b9f218b53865cba2a" +checksum = "b0293b4b29daaf487284529cc2f5675b8e57c61f70167ba415a463651fd6a918" dependencies = [ "serde", ] @@ -8547,45 +8927,44 @@ checksum = "f638d531eccd6e23b980caf34876660d38e265409d8e99b397ab71eb3612fad0" [[package]] name = "serde" -version = "1.0.152" +version = "1.0.183" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb7d1f0d3021d347a83e556fc4683dea2ea09d87bccdf88ff5c12545d89d5efb" +checksum = "32ac8da02677876d532745a130fc9d8e6edfa81a269b107c5b00829b91d8eb3c" dependencies = [ "serde_derive", ] -[[package]] -name = "serde_cbor" -version = "0.11.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bef2ebfde456fb76bbcf9f59315333decc4fda0b2b44b420243c11e0f5ec1f5" -dependencies = [ - "half", - "serde", -] - [[package]] name = "serde_derive" -version = "1.0.152" +version = "1.0.183" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af487d118eecd09402d70a5d72551860e788df87b464af30e5ea6a38c75c541e" +checksum = "aafe972d60b0b9bee71a91b92fee2d4fb3c9d7e8f6b179aa99f27203d99a4816" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.28", ] [[package]] name = "serde_json" -version = "1.0.93" +version = "1.0.104" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cad406b69c91885b5107daf2c29572f6c8cdb3c66826821e286c533490c0bc76" +checksum = "076066c5f1078eac5b722a31827a8832fe108bed65dfa75e233c89f8206e976c" dependencies = [ "itoa", "ryu", "serde", ] +[[package]] +name = "serde_spanned" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96426c9936fd7a0124915f9185ea1d20aa9445cc9821142f0a73bc9207a2e186" +dependencies = [ + "serde", +] + [[package]] name = "sha-1" version = "0.9.8" @@ -8599,6 +8978,17 @@ dependencies = [ "opaque-debug 0.3.0", ] +[[package]] +name = "sha1" +version = "0.10.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f04293dc80c3993519f2d7f6f511707ee7094fe0c6d3406feb330cdb3540eba3" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest 0.10.7", +] + [[package]] name = "sha2" version = "0.8.2" @@ -8626,22 +9016,22 @@ dependencies = [ [[package]] name = "sha2" -version = "0.10.6" +version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82e6b795fe2e3b1e845bafcb27aa35405c4d47cdfc92af5fc8d3002f76cebdc0" +checksum = "479fb9d862239e610720565ca91403019f2f00410f1864c5aa7479b950a76ed8" dependencies = [ "cfg-if", "cpufeatures", - "digest 0.10.6", + "digest 0.10.7", ] [[package]] name = "sha3" -version = "0.10.6" +version = "0.10.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bdf0c33fae925bdc080598b84bc15c55e7b9a4a43b3c704da051f977469691c9" +checksum = "75872d278a8f37ef87fa0ddbda7802605cb18344497949862c0d4dcb291eba60" dependencies = [ - "digest 0.10.6", + "digest 0.10.7", "keccak", ] @@ -8675,20 +9065,18 @@ version = "1.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "74233d3b3b2f6d4b006dc19dee745e73e2a6bfb6f93607cd3b02bd5b00797d7c" dependencies = [ - "digest 0.10.6", + "digest 0.10.7", "rand_core 0.6.4", ] [[package]] -name = "simba" -version = "0.5.1" +name = "signature" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e82063457853d00243beda9952e910b82593e4b07ae9f721b9278a99a0d3d5c" +checksum = "5e1788eed21689f9cf370582dfc467ef36ed9c707f073528ddafa8d83e3b8500" dependencies = [ - "approx", - "num-complex", - "num-traits", - "paste", + "digest 0.10.7", + "rand_core 0.6.4", ] [[package]] @@ -8704,6 +9092,12 @@ dependencies = [ "wide", ] +[[package]] +name = "siphasher" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7bd3e3206899af3f8b12af284fafc038cc1dc2b41d1b89dd17297221c5d225de" + [[package]] name = "slab" version = "0.4.8" @@ -8715,15 +9109,15 @@ dependencies = [ [[package]] name = "slice-group-by" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03b634d87b960ab1a38c4fe143b508576f075e7c978bfad18217645ebfdfa2ec" +checksum = "826167069c09b99d56f31e9ae5c99049e932a98c9dc2dac47645b08dbbf76ba7" [[package]] name = "smallvec" -version = "1.10.0" +version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" +checksum = "62bb4feee49fdd9f707ef802e22365a35de4b7b299de4763d44bfea899442ff9" [[package]] name = "snap" @@ -8733,31 +9127,41 @@ checksum = "5e9f0ab6ef7eb7353d9119c170a436d1bf248eea575ac42d19d12f4e34130831" [[package]] name = "snow" -version = "0.9.1" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12ba5f4d4ff12bdb6a169ed51b7c48c0e0ac4b0b4b31012b2571e97d78d3201d" +checksum = "5ccba027ba85743e09d15c03296797cad56395089b832b48b5a5217880f57733" dependencies = [ "aes-gcm 0.9.4", "blake2", "chacha20poly1305", - "curve25519-dalek 4.0.0-rc.0", + "curve25519-dalek 4.0.0-rc.1", "rand_core 0.6.4", "ring", "rustc_version", - "sha2 0.10.6", + "sha2 0.10.7", "subtle", ] [[package]] name = "socket2" -version = "0.4.7" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02e2d2db9033d13a1567121ddd7a095ee144db4e1ca1b1bda3419bc0da294ebd" +checksum = "64a4a911eed85daf18834cfaa86a79b7d266ff93ff5ba14005426219480ed662" dependencies = [ "libc", "winapi", ] +[[package]] +name = "socket2" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2538b18701741680e0322a2302176d3253a35388e2e62f172f64f4f16605f877" +dependencies = [ + "libc", + "windows-sys 0.48.0", +] + [[package]] name = "soketto" version = "0.7.1" @@ -8778,13 +9182,16 @@ dependencies = [ [[package]] name = "sp-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#6fa7fe1326ecaab9921c2c3888530ad679cfbb87" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "hash-db", "log", "parity-scale-codec", + "scale-info", "sp-api-proc-macro", "sp-core", + "sp-externalities", + "sp-metadata-ir", "sp-runtime", "sp-state-machine", "sp-std", @@ -8796,19 +9203,21 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#6fa7fe1326ecaab9921c2c3888530ad679cfbb87" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ + "Inflector", "blake2", + "expander", "proc-macro-crate", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.28", ] [[package]] name = "sp-application-crypto" -version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#6fa7fe1326ecaab9921c2c3888530ad679cfbb87" +version = "23.0.0" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "parity-scale-codec", "scale-info", @@ -8820,8 +9229,8 @@ dependencies = [ [[package]] name = "sp-arithmetic" -version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#6fa7fe1326ecaab9921c2c3888530ad679cfbb87" +version = "16.0.0" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "integer-sqrt", "num-traits", @@ -8835,41 +9244,12 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" -dependencies = [ - "parity-scale-codec", - "scale-info", - "sp-api", - "sp-application-crypto", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "sp-authorship" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" -dependencies = [ - "async-trait", - "parity-scale-codec", - "sp-inherents", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "sp-beefy" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#6fa7fe1326ecaab9921c2c3888530ad679cfbb87" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "parity-scale-codec", "scale-info", - "serde", "sp-api", "sp-application-crypto", - "sp-core", - "sp-io", - "sp-mmr-primitives", "sp-runtime", "sp-std", ] @@ -8877,9 +9257,8 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ - "parity-scale-codec", "sp-api", "sp-inherents", "sp-runtime", @@ -8889,13 +9268,13 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "futures", "log", - "lru 0.8.1", "parity-scale-codec", "parking_lot 0.12.1", + "schnellru", "sp-api", "sp-consensus", "sp-database", @@ -8907,78 +9286,94 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "async-trait", "futures", "log", - "parity-scale-codec", "sp-core", "sp-inherents", "sp-runtime", "sp-state-machine", - "sp-std", - "sp-version", "thiserror", ] [[package]] -name = "sp-consensus-babe" +name = "sp-consensus-aura" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "async-trait", - "merlin 2.0.1", "parity-scale-codec", "scale-info", - "serde", "sp-api", "sp-application-crypto", - "sp-consensus", "sp-consensus-slots", - "sp-consensus-vrf", - "sp-core", "sp-inherents", - "sp-keystore", "sp-runtime", "sp-std", "sp-timestamp", ] [[package]] -name = "sp-consensus-slots" +name = "sp-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ + "async-trait", "parity-scale-codec", "scale-info", "serde", + "sp-api", + "sp-application-crypto", + "sp-consensus-slots", + "sp-core", + "sp-inherents", + "sp-runtime", "sp-std", "sp-timestamp", ] [[package]] -name = "sp-consensus-vrf" -version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +name = "sp-consensus-grandpa" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ + "finality-grandpa", + "log", "parity-scale-codec", "scale-info", - "schnorrkel", + "serde", + "sp-api", + "sp-application-crypto", "sp-core", + "sp-keystore", "sp-runtime", "sp-std", ] +[[package]] +name = "sp-consensus-slots" +version = "0.10.0-dev" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" +dependencies = [ + "parity-scale-codec", + "scale-info", + "serde", + "sp-std", + "sp-timestamp", +] + [[package]] name = "sp-core" -version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +version = "21.0.0" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "array-bytes", - "base58 0.2.0", - "bitflags", + "bitflags 1.3.2", "blake2", + "bounded-collections", + "bs58", "dyn-clonable", "ed25519-zebra", "futures", @@ -8991,6 +9386,7 @@ dependencies = [ "merlin 2.0.1", "parity-scale-codec", "parking_lot 0.12.1", + "paste", "primitive-types", "rand 0.8.5", "regex", @@ -9009,38 +9405,37 @@ dependencies = [ "substrate-bip39", "thiserror", "tiny-bip39", + "tracing", "zeroize", ] [[package]] name = "sp-core-hashing" -version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#6fa7fe1326ecaab9921c2c3888530ad679cfbb87" +version = "9.0.0" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ - "blake2", + "blake2b_simd", "byteorder", - "digest 0.10.6", - "sha2 0.10.6", + "digest 0.10.7", + "sha2 0.10.7", "sha3", - "sp-std", "twox-hash", ] [[package]] name = "sp-core-hashing-proc-macro" -version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#6fa7fe1326ecaab9921c2c3888530ad679cfbb87" +version = "9.0.0" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ - "proc-macro2", "quote", "sp-core-hashing", - "syn 1.0.109", + "syn 2.0.28", ] [[package]] name = "sp-database" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "kvdb", "parking_lot 0.12.1", @@ -9048,18 +9443,18 @@ dependencies = [ [[package]] name = "sp-debug-derive" -version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#6fa7fe1326ecaab9921c2c3888530ad679cfbb87" +version = "8.0.0" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.28", ] [[package]] name = "sp-externalities" -version = "0.13.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +version = "0.19.0" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "environmental", "parity-scale-codec", @@ -9067,33 +9462,15 @@ dependencies = [ "sp-storage", ] -[[package]] -name = "sp-finality-grandpa" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" -dependencies = [ - "finality-grandpa", - "log", - "parity-scale-codec", - "scale-info", - "serde", - "sp-api", - "sp-application-crypto", - "sp-core", - "sp-keystore", - "sp-runtime", - "sp-std", -] - [[package]] name = "sp-inherents" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#6fa7fe1326ecaab9921c2c3888530ad679cfbb87" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "async-trait", "impl-trait-for-tuples", "parity-scale-codec", - "sp-core", + "scale-info", "sp-runtime", "sp-std", "thiserror", @@ -9101,16 +9478,16 @@ dependencies = [ [[package]] name = "sp-io" -version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +version = "23.0.0" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "bytes", "ed25519", "ed25519-dalek", - "futures", "libsecp256k1", "log", "parity-scale-codec", + "rustversion", "secp256k1", "sp-core", "sp-externalities", @@ -9126,8 +9503,8 @@ dependencies = [ [[package]] name = "sp-keyring" -version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +version = "24.0.0" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "lazy_static", "sp-core", @@ -9137,16 +9514,11 @@ dependencies = [ [[package]] name = "sp-keystore" -version = "0.13.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +version = "0.27.0" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ - "async-trait", - "futures", - "merlin 2.0.1", "parity-scale-codec", "parking_lot 0.12.1", - "schnorrkel", - "serde", "sp-core", "sp-externalities", "thiserror", @@ -9155,26 +9527,27 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "4.1.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "thiserror", - "zstd", + "zstd 0.12.4", ] [[package]] -name = "sp-maybe-compressed-blob" -version = "4.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e6a11a57a0fb1de942e7ddbeba660754fcaee3bed3d37eea7b3e912a7325dbc" +name = "sp-metadata-ir" +version = "0.1.0" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ - "thiserror", - "zstd", + "frame-metadata", + "parity-scale-codec", + "scale-info", + "sp-std", ] [[package]] name = "sp-mmr-primitives" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#6fa7fe1326ecaab9921c2c3888530ad679cfbb87" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "ckb-merkle-mountain-range", "log", @@ -9192,7 +9565,7 @@ dependencies = [ [[package]] name = "sp-npos-elections" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "parity-scale-codec", "scale-info", @@ -9206,7 +9579,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "sp-api", "sp-core", @@ -9215,8 +9588,8 @@ dependencies = [ [[package]] name = "sp-panic-handler" -version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#6fa7fe1326ecaab9921c2c3888530ad679cfbb87" +version = "8.0.0" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "backtrace", "lazy_static", @@ -9226,7 +9599,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "rustc-hash", "serde", @@ -9235,8 +9608,8 @@ dependencies = [ [[package]] name = "sp-runtime" -version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +version = "24.0.0" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "either", "hash256-std-hasher", @@ -9257,8 +9630,8 @@ dependencies = [ [[package]] name = "sp-runtime-interface" -version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +version = "17.0.0" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "bytes", "impl-trait-for-tuples", @@ -9275,25 +9648,26 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" -version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#6fa7fe1326ecaab9921c2c3888530ad679cfbb87" +version = "11.0.0" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "Inflector", "proc-macro-crate", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.28", ] [[package]] name = "sp-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "parity-scale-codec", "scale-info", "sp-api", "sp-core", + "sp-keystore", "sp-runtime", "sp-staking", "sp-std", @@ -9302,10 +9676,12 @@ dependencies = [ [[package]] name = "sp-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#6fa7fe1326ecaab9921c2c3888530ad679cfbb87" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ + "impl-trait-for-tuples", "parity-scale-codec", "scale-info", + "serde", "sp-core", "sp-runtime", "sp-std", @@ -9313,8 +9689,8 @@ dependencies = [ [[package]] name = "sp-state-machine" -version = "0.13.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#6fa7fe1326ecaab9921c2c3888530ad679cfbb87" +version = "0.28.0" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "hash-db", "log", @@ -9329,17 +9705,35 @@ dependencies = [ "sp-trie", "thiserror", "tracing", + "trie-db", +] + +[[package]] +name = "sp-statement-store" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" +dependencies = [ + "parity-scale-codec", + "scale-info", + "sp-api", + "sp-application-crypto", + "sp-core", + "sp-externalities", + "sp-runtime", + "sp-runtime-interface", + "sp-std", + "thiserror", ] [[package]] name = "sp-std" -version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +version = "8.0.0" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" [[package]] name = "sp-storage" -version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#6fa7fe1326ecaab9921c2c3888530ad679cfbb87" +version = "13.0.0" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "impl-serde", "parity-scale-codec", @@ -9352,11 +9746,9 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "async-trait", - "futures-timer", - "log", "parity-scale-codec", "sp-inherents", "sp-runtime", @@ -9366,8 +9758,8 @@ dependencies = [ [[package]] name = "sp-tracing" -version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#6fa7fe1326ecaab9921c2c3888530ad679cfbb87" +version = "10.0.0" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "parity-scale-codec", "sp-std", @@ -9379,7 +9771,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "sp-api", "sp-runtime", @@ -9388,10 +9780,9 @@ dependencies = [ [[package]] name = "sp-transaction-storage-proof" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "async-trait", - "log", "parity-scale-codec", "scale-info", "sp-core", @@ -9403,19 +9794,19 @@ dependencies = [ [[package]] name = "sp-trie" -version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +version = "22.0.0" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ - "ahash 0.7.6", + "ahash 0.8.3", "hash-db", - "hashbrown 0.12.3", + "hashbrown 0.13.2", "lazy_static", - "lru 0.8.1", "memory-db", "nohash-hasher", "parity-scale-codec", "parking_lot 0.12.1", "scale-info", + "schnellru", "sp-core", "sp-std", "thiserror", @@ -9426,8 +9817,8 @@ dependencies = [ [[package]] name = "sp-version" -version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +version = "22.0.0" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "impl-serde", "parity-scale-codec", @@ -9443,32 +9834,32 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" -version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#6fa7fe1326ecaab9921c2c3888530ad679cfbb87" +version = "8.0.0" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "parity-scale-codec", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.28", ] [[package]] name = "sp-wasm-interface" -version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#6fa7fe1326ecaab9921c2c3888530ad679cfbb87" +version = "14.0.0" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ + "anyhow", "impl-trait-for-tuples", "log", "parity-scale-codec", "sp-std", - "wasmi", "wasmtime", ] [[package]] name = "sp-weights" -version = "4.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +version = "20.0.0" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "parity-scale-codec", "scale-info", @@ -9486,6 +9877,17 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" +[[package]] +name = "spinners" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08615eea740067d9899969bc2891c68a19c315cb1f66640af9a9ecb91b13bcab" +dependencies = [ + "lazy_static", + "maplit", + "strum", +] + [[package]] name = "spki" version = "0.6.0" @@ -9493,14 +9895,24 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "67cf02bbac7a337dc36e4f5a693db6c21e7863f45070f7064577eb4367a3212b" dependencies = [ "base64ct", - "der", + "der 0.6.1", +] + +[[package]] +name = "spki" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d1e996ef02c474957d681f1b05213dfb0abab947b446a62d37770b23500184a" +dependencies = [ + "base64ct", + "der 0.7.7", ] [[package]] name = "ss58-registry" -version = "1.39.0" +version = "1.41.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecf0bd63593ef78eca595a7fc25e9a443ca46fe69fd472f8f09f5245cdcd769d" +checksum = "bfc443bad666016e012538782d9e3006213a7db43e9fb1dda91657dc06a6fa08" dependencies = [ "Inflector", "num-format", @@ -9529,7 +9941,7 @@ version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a2a1c578e98c1c16fc3b8ec1328f7659a500737d7a0c6d625e73e830ff9c1f6" dependencies = [ - "bitflags", + "bitflags 1.3.2", "cfg_aliases", "libc", "parking_lot 0.11.2", @@ -9551,19 +9963,6 @@ dependencies = [ "syn 1.0.109", ] -[[package]] -name = "statrs" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05bdbb8e4e78216a85785a85d3ec3183144f98d0097b9281802c019bb07a6f05" -dependencies = [ - "approx", - "lazy_static", - "nalgebra 0.27.1", - "num-traits", - "rand 0.8.5", -] - [[package]] name = "strsim" version = "0.10.0" @@ -9627,15 +10026,12 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" -dependencies = [ - "platforms 2.0.0", -] +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" [[package]] name = "substrate-frame-rpc-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "frame-system-rpc-runtime-api", "futures", @@ -9654,7 +10050,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "hyper", "log", @@ -9680,7 +10076,7 @@ dependencies = [ [[package]] name = "substrate-rpc-client" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "async-trait", "jsonrpsee", @@ -9693,14 +10089,12 @@ dependencies = [ [[package]] name = "substrate-state-trie-migration-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "jsonrpsee", - "log", "parity-scale-codec", "sc-client-api", "sc-rpc-api", - "scale-info", "serde", "sp-core", "sp-runtime", @@ -9711,18 +10105,18 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" -version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "892684e5e3640dc5178c0388450f724058de24838ed6cbb8bc7f8dd3e956ea42" +version = "5.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "ansi_term", "build-helper", "cargo_metadata", "filetime", - "sp-maybe-compressed-blob 4.1.0", + "parity-wasm", + "sp-maybe-compressed-blob", "strum", "tempfile", - "toml", + "toml 0.7.6", "walkdir", "wasm-opt", ] @@ -9755,9 +10149,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.15" +version = "2.0.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a34fcf3e8b60f57e6a14301a2e916d323af98b0ea63c599441eec8558660c822" +checksum = "04361975b3f5e348b2189d8dc55bc942f278b2d482a6a0365de5bdd62d351567" dependencies = [ "proc-macro2", "quote", @@ -9778,11 +10172,11 @@ dependencies = [ [[package]] name = "system-configuration" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d75182f12f490e953596550b65ee31bda7c8e043d9386174b353bda50838c3fd" +checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7" dependencies = [ - "bitflags", + "bitflags 1.3.2", "core-foundation", "system-configuration-sys", ] @@ -9805,22 +10199,21 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" [[package]] name = "target-lexicon" -version = "0.12.6" +version = "0.12.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ae9980cab1db3fceee2f6c6f643d5d8de2997c58ee8d25fb0cc8a9e9e7348e5" +checksum = "9d0e916b1148c8e263850e1ebcbd046f333e0683c724876bb0da63ea4373dc8a" [[package]] name = "tempfile" -version = "3.3.0" +version = "3.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cdb1ef4eaeeaddc8fbd371e5017057064af0911902ef36b39801f67cc6d79e4" +checksum = "dc02fddf48964c42031a0b3fe0428320ecf3a73c401040fc0096f97794310651" dependencies = [ "cfg-if", - "fastrand", - "libc", - "redox_syscall", - "remove_dir_all", - "winapi", + "fastrand 2.0.0", + "redox_syscall 0.3.5", + "rustix 0.38.7", + "windows-sys 0.48.0", ] [[package]] @@ -9834,9 +10227,9 @@ dependencies = [ [[package]] name = "termtree" -version = "0.4.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95059e91184749cb66be6dc994f67f182b6d897cb3df74a5bf66b5e709295fd8" +checksum = "3369f5ac52d5eb6ab48c6b4ffdc8efbcad6b89c765749064ba298f2c68a16a76" [[package]] name = "test-case" @@ -9853,31 +10246,28 @@ dependencies = [ [[package]] name = "textwrap" -version = "0.11.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" -dependencies = [ - "unicode-width", -] +checksum = "222a222a5bfe1bba4a77b45ec488a741b3cb8872e5e499451fd7d0129c9c7c3d" [[package]] name = "thiserror" -version = "1.0.40" +version = "1.0.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "978c9a314bd8dc99be594bc3c175faaa9794be04a5a5e153caba6915336cebac" +checksum = "611040a08a0439f8248d1990b111c95baa9c704c805fa1f62104b39655fd7f90" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.40" +version = "1.0.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f" +checksum = "090198534930841fab3a5d1bb637cde49e339654e606195f8d9c76eeb081dc96" dependencies = [ "proc-macro2", "quote", - "syn 2.0.15", + "syn 2.0.28", ] [[package]] @@ -9927,9 +10317,9 @@ dependencies = [ [[package]] name = "tikv-jemalloc-sys" -version = "0.5.3+5.3.0-patched" +version = "0.5.4+5.3.0-patched" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a678df20055b43e57ef8cddde41cdfda9a3c1a060b67f4c5836dfb1d78543ba8" +checksum = "9402443cb8fd499b6f327e40565234ff34dbda27460c5b47db0db77443dd85d1" dependencies = [ "cc", "libc", @@ -9948,10 +10338,11 @@ dependencies = [ [[package]] name = "time" -version = "0.3.19" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53250a3b3fed8ff8fd988587d8925d26a83ac3845d9e03b220b37f34c2b8d6c2" +checksum = "b0fdd63d58b18d663fbdf70e049f00a22c8e42be082203be7f26589213cd75ea" dependencies = [ + "deranged", "itoa", "serde", "time-core", @@ -9960,15 +10351,15 @@ dependencies = [ [[package]] name = "time-core" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e153e1f1acaef8acc537e68b44906d2db6436e2b35ac2c6b42640fff91f00fd" +checksum = "7300fbefb4dadc1af235a9cef3737cea692a9d97e1b9cbcd4ebdae6f8868e6fb" [[package]] name = "time-macros" -version = "0.2.7" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a460aeb8de6dcb0f381e1ee05f1cd56fcf5a5f6eb8187ff3d8f0b11078d38b7c" +checksum = "eb71511c991639bb078fd5bf97757e03914361c48100d52878b8e52b46fb92cd" dependencies = [ "time-core", ] @@ -9985,7 +10376,7 @@ dependencies = [ "pbkdf2 0.11.0", "rand 0.8.5", "rustc-hash", - "sha2 0.10.6", + "sha2 0.10.7", "thiserror", "unicode-normalization", "wasm-bindgen", @@ -10028,33 +10419,44 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.25.0" +version = "1.29.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8e00990ebabbe4c14c08aca901caed183ecd5c09562a12c824bb53d3c3fd3af" +checksum = "532826ff75199d5833b9d2c5fe410f29235e25704ee5f0ef599fb51c21f4a4da" dependencies = [ "autocfg", + "backtrace", "bytes", "libc", - "memchr", "mio", "num_cpus", "parking_lot 0.12.1", - "pin-project-lite 0.2.9", + "pin-project-lite 0.2.11", "signal-hook-registry", - "socket2", + "socket2 0.4.9", "tokio-macros", - "windows-sys 0.42.0", + "windows-sys 0.48.0", ] [[package]] name = "tokio-macros" -version = "1.8.2" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d266c00fde287f55d3f1c3e96c500c362a2b8c695076ec180f27918820bc6df8" +checksum = "630bdcf245f78637c13ec01ffae6187cca34625e8c63150d424b59e55af2675e" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.28", +] + +[[package]] +name = "tokio-retry" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f57eb36ecbe0fc510036adff84824dd3c24bb781e21bfa67b69d556aa85214f" +dependencies = [ + "pin-project", + "rand 0.8.5", + "tokio", ] [[package]] @@ -10070,27 +10472,27 @@ dependencies = [ [[package]] name = "tokio-stream" -version = "0.1.12" +version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fb52b74f05dbf495a8fba459fdc331812b96aa086d9eb78101fa0d4569c3313" +checksum = "397c988d37662c7dda6d2208364a706264bf3d6138b11d436cbac0ad38832842" dependencies = [ "futures-core", - "pin-project-lite 0.2.9", + "pin-project-lite 0.2.11", "tokio", "tokio-util", ] [[package]] name = "tokio-util" -version = "0.7.7" +version = "0.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5427d89453009325de0d8f342c9490009f76e999cb7672d77e46267448f7e6b2" +checksum = "806fe8c2c87eccc8b3267cbae29ed3ab2d0bd37fca70ab622e46aaa9375ddb7d" dependencies = [ "bytes", "futures-core", "futures-io", "futures-sink", - "pin-project-lite 0.2.9", + "pin-project-lite 0.2.11", "tokio", "tracing", ] @@ -10104,6 +10506,40 @@ dependencies = [ "serde", ] +[[package]] +name = "toml" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c17e963a819c331dcacd7ab957d80bc2b9a9c1e71c804826d2f283dd65306542" +dependencies = [ + "serde", + "serde_spanned", + "toml_datetime", + "toml_edit", +] + +[[package]] +name = "toml_datetime" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cda73e2f1397b1262d6dfdcef8aafae14d1de7748d66822d3bfeeb6d03e5e4b" +dependencies = [ + "serde", +] + +[[package]] +name = "toml_edit" +version = "0.19.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8123f27e969974a3dfba720fdb560be359f57b44302d280ba72e76a74480e8a" +dependencies = [ + "indexmap 2.0.0", + "serde", + "serde_spanned", + "toml_datetime", + "winnow", +] + [[package]] name = "tower" version = "0.4.13" @@ -10117,18 +10553,18 @@ dependencies = [ [[package]] name = "tower-http" -version = "0.3.5" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f873044bf02dd1e8239e9c1293ea39dad76dc594ec16185d0a1bf31d8dc8d858" +checksum = "55ae70283aba8d2a8b411c695c437fe25b8b5e44e23e780662002fc72fb47a82" dependencies = [ - "bitflags", + "bitflags 2.3.3", "bytes", "futures-core", "futures-util", "http", "http-body", "http-range-header", - "pin-project-lite 0.2.9", + "pin-project-lite 0.2.11", "tower-layer", "tower-service", ] @@ -10153,27 +10589,27 @@ checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8" dependencies = [ "cfg-if", "log", - "pin-project-lite 0.2.9", + "pin-project-lite 0.2.11", "tracing-attributes", "tracing-core", ] [[package]] name = "tracing-attributes" -version = "0.1.23" +version = "0.1.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4017f8f45139870ca7e672686113917c71c7a6e02d4924eda67186083c03081a" +checksum = "5f4f31f56159e98206da9efd823404b79b6ef3143b4a7ab76e67b1751b25a4ab" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.28", ] [[package]] name = "tracing-core" -version = "0.1.30" +version = "0.1.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24eb03ba0eab1fd845050058ce5e616558e8f8d8fca633e6b163fe25c797213a" +checksum = "0955b8137a1df6f1a2e9a37d8a6656291ff0297c1a97c24e0d8425fe2312f79a" dependencies = [ "once_cell", "valuable", @@ -10235,12 +10671,12 @@ dependencies = [ [[package]] name = "trie-db" -version = "0.24.0" +version = "0.27.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "004e1e8f92535694b4cb1444dc5a8073ecf0815e3357f729638b9f8fc4062908" +checksum = "767abe6ffed88a1889671a102c2861ae742726f52e0a5a425b92c9fbfa7e9c85" dependencies = [ "hash-db", - "hashbrown 0.12.3", + "hashbrown 0.13.2", "log", "rustc-hex", "smallvec", @@ -10248,9 +10684,9 @@ dependencies = [ [[package]] name = "trie-root" -version = "0.17.0" +version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a36c5ca3911ed3c9a5416ee6c679042064b93fc637ded67e25f92e68d783891" +checksum = "d4ed310ef5ab98f5fa467900ed906cb9232dd5376597e00fd4cba2a449d06c0b" dependencies = [ "hash-db", ] @@ -10273,7 +10709,7 @@ dependencies = [ "lazy_static", "rand 0.8.5", "smallvec", - "socket2", + "socket2 0.4.9", "thiserror", "tinyvec", "tokio", @@ -10310,9 +10746,10 @@ checksum = "3528ecfd12c466c6f163363caf2d02a71161dd5e1cc6ae7b34207ea2d42d81ed" [[package]] name = "try-runtime-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#f38bd6671d460293c93062cc1e4fe9e9e490cb29" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ - "clap 4.1.6", + "async-trait", + "clap 4.3.19", "frame-remote-externalities", "frame-try-runtime", "hex", @@ -10320,22 +10757,26 @@ dependencies = [ "parity-scale-codec", "sc-cli", "sc-executor", - "sc-service", "serde", "serde_json", "sp-api", + "sp-consensus-aura", + "sp-consensus-babe", "sp-core", "sp-debug-derive", "sp-externalities", + "sp-inherents", "sp-io", "sp-keystore", "sp-rpc", "sp-runtime", "sp-state-machine", + "sp-timestamp", + "sp-transaction-storage-proof", "sp-version", "sp-weights", "substrate-rpc-client", - "zstd", + "zstd 0.12.4", ] [[package]] @@ -10370,7 +10811,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" dependencies = [ "cfg-if", - "digest 0.10.6", + "digest 0.10.7", "rand 0.8.5", "static_assertions", ] @@ -10383,9 +10824,9 @@ checksum = "497961ef93d974e23eb6f433eb5fe1b7930b659f06d12dec6fc44a8f554c0bba" [[package]] name = "ucd-trie" -version = "0.1.5" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e79c4d996edb816c91e4308506774452e55e95c3c9de07b6729e17e15a5ef81" +checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9" [[package]] name = "uint" @@ -10400,15 +10841,15 @@ dependencies = [ [[package]] name = "unicode-bidi" -version = "0.3.10" +version = "0.3.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d54675592c1dbefd78cbd98db9bacd89886e1ca50692a0692baefffdeb92dd58" +checksum = "92888ba5573ff080736b3648696b70cafad7d250551175acbaa4e0385b3e1460" [[package]] name = "unicode-ident" -version = "1.0.6" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc" +checksum = "301abaae475aa91687eb82514b328ab47a211a533026cb25fc3e519b86adfc3c" [[package]] name = "unicode-normalization" @@ -10443,7 +10884,17 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9f214e8f697e925001e66ec2c6e37a4ef93f0f78c2eed7814394e10c62025b05" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", + "subtle", +] + +[[package]] +name = "universal-hash" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc1de2c688dc15305988b563c3854064043356019f97a4b46276fe734c4f07ea" +dependencies = [ + "crypto-common", "subtle", ] @@ -10467,32 +10918,38 @@ checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" [[package]] name = "url" -version = "2.3.1" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d68c799ae75762b8c3fe375feb6600ef5602c883c5d21eb51c09f22b83c4643" +checksum = "50bff7831e19200a85b17131d085c25d7811bc4e186efdaf54bbd132994a88cb" dependencies = [ "form_urlencoded", - "idna 0.3.0", + "idna 0.4.0", "percent-encoding", ] +[[package]] +name = "utf8parse" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" + [[package]] name = "uuid" version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7" dependencies = [ - "getrandom 0.2.8", + "getrandom 0.2.10", "serde", ] [[package]] name = "uuid" -version = "1.3.0" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1674845326ee10d37ca60470760d4288a6f80f304007d92e5c53bab78c9cfd79" +checksum = "79daa5ed5740825c40b389c5e50312b9c86df53fccd33f281df655642b43869d" dependencies = [ - "getrandom 0.2.8", + "getrandom 0.2.10", ] [[package]] @@ -10536,22 +10993,20 @@ checksum = "9d5b2c62b4012a3e1eca5a7e077d13b3bf498c4073e33ccd58626607748ceeca" [[package]] name = "walkdir" -version = "2.3.2" +version = "2.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "808cf2735cd4b6866113f648b791c6adc5714537bc222d9347bb203386ffda56" +checksum = "36df944cda56c7d8d8b7496af378e6b16de9284591917d307c9b4d313c44e698" dependencies = [ "same-file", - "winapi", "winapi-util", ] [[package]] name = "want" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" dependencies = [ - "log", "try-lock", ] @@ -10575,9 +11030,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.84" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31f8dcbc21f30d9b8f2ea926ecb58f6b91192c17e9d33594b3df58b2007ca53b" +checksum = "7706a72ab36d8cb1f80ffbf0e071533974a60d0a308d01a5d0375bf60499a342" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -10585,24 +11040,24 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.84" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95ce90fd5bcc06af55a641a86428ee4229e44e07033963a2290a8e241607ccb9" +checksum = "5ef2b6d3c510e9625e5fe6f509ab07d66a760f0885d858736483c32ed7809abd" dependencies = [ "bumpalo", "log", "once_cell", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.28", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-futures" -version = "0.4.34" +version = "0.4.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f219e0d211ba40266969f6dbdd90636da12f75bee4fc9d6c23d1260dadb51454" +checksum = "c02dbc21516f9f1f04f187958890d7e6026df8d16540b7ad9492bc34a67cea03" dependencies = [ "cfg-if", "js-sys", @@ -10612,9 +11067,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.84" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c21f77c0bedc37fd5dc21f897894a5ca01e7bb159884559461862ae90c0b4c5" +checksum = "dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -10622,22 +11077,22 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.84" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2aff81306fcac3c7515ad4e177f521b5c9a15f2b08f4e32d823066102f35a5f6" +checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.28", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.84" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0046fef7e28c3804e5e38bfa31ea2a0f73905319b677e57ebe37e49358989b5d" +checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1" [[package]] name = "wasm-instrument" @@ -10650,9 +11105,9 @@ dependencies = [ [[package]] name = "wasm-opt" -version = "0.110.2" +version = "0.112.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b68e8037b4daf711393f4be2056246d12d975651b14d581520ad5d1f19219cec" +checksum = "87fef6d0d508f08334e0ab0e6877feb4c0ecb3956bcf2cb950699b22fedf3e9c" dependencies = [ "anyhow", "libc", @@ -10666,9 +11121,9 @@ dependencies = [ [[package]] name = "wasm-opt-cxx-sys" -version = "0.110.2" +version = "0.112.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91adbad477e97bba3fbd21dd7bfb594e7ad5ceb9169ab1c93ab9cb0ada636b6f" +checksum = "bc816bbc1596c8f2e8127e137a760c798023ef3d378f2ae51f0f1840e2dfa445" dependencies = [ "anyhow", "cxx", @@ -10678,15 +11133,14 @@ dependencies = [ [[package]] name = "wasm-opt-sys" -version = "0.110.2" +version = "0.112.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec4fa5a322a4e6ac22fd141f498d56afbdbf9df5debeac32380d2dcaa3e06941" +checksum = "40199e4f68ef1071b3c6d0bd8026a12b481865d4b9e49c156932ea9a6234dd14" dependencies = [ "anyhow", "cc", "cxx", "cxx-build", - "regex", ] [[package]] @@ -10704,61 +11158,29 @@ dependencies = [ "web-sys", ] -[[package]] -name = "wasmi" -version = "0.13.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06c326c93fbf86419608361a2c925a31754cf109da1b8b55737070b4d6669422" -dependencies = [ - "parity-wasm", - "wasmi-validation", - "wasmi_core", -] - -[[package]] -name = "wasmi-validation" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91ff416ad1ff0c42e5a926ed5d5fab74c0f098749aa0ad8b2a34b982ce0e867b" -dependencies = [ - "parity-wasm", -] - -[[package]] -name = "wasmi_core" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57d20cb3c59b788653d99541c646c561c9dd26506f25c0cebfe810659c54c6d7" -dependencies = [ - "downcast-rs", - "libm 0.2.6", - "memory_units", - "num-rational", - "num-traits", -] - [[package]] name = "wasmparser" -version = "0.89.1" +version = "0.102.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab5d3e08b13876f96dd55608d03cd4883a0545884932d5adf11925876c96daef" +checksum = "48134de3d7598219ab9eaf6b91b15d8e50d31da76b8519fe4ecfcec2cf35104b" dependencies = [ - "indexmap", + "indexmap 1.9.3", + "url", ] [[package]] name = "wasmtime" -version = "1.0.2" +version = "8.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ad5af6ba38311282f2a21670d96e78266e8c8e2f38cbcd52c254df6ccbc7731" +checksum = "f907fdead3153cb9bfb7a93bbd5b62629472dc06dee83605358c64c52ed3dda9" dependencies = [ "anyhow", "bincode", "cfg-if", - "indexmap", + "indexmap 1.9.3", "libc", "log", - "object 0.29.0", + "object 0.30.4", "once_cell", "paste", "psm", @@ -10771,43 +11193,43 @@ dependencies = [ "wasmtime-environ", "wasmtime-jit", "wasmtime-runtime", - "windows-sys 0.36.1", + "windows-sys 0.45.0", ] [[package]] name = "wasmtime-asm-macros" -version = "1.0.2" +version = "8.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45de63ddfc8b9223d1adc8f7b2ee5f35d1f6d112833934ad7ea66e4f4339e597" +checksum = "d3b9daa7c14cd4fa3edbf69de994408d5f4b7b0959ac13fa69d465f6597f810d" dependencies = [ "cfg-if", ] [[package]] name = "wasmtime-cache" -version = "1.0.2" +version = "8.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bcd849399d17d2270141cfe47fa0d91ee52d5f8ea9b98cf7ddde0d53e5f79882" +checksum = "c86437fa68626fe896e5afc69234bb2b5894949083586535f200385adfd71213" dependencies = [ "anyhow", - "base64 0.13.1", + "base64 0.21.2", "bincode", "directories-next", "file-per-thread-logger", "log", - "rustix 0.35.13", + "rustix 0.36.15", "serde", - "sha2 0.9.9", - "toml", - "windows-sys 0.36.1", - "zstd", + "sha2 0.10.7", + "toml 0.5.11", + "windows-sys 0.45.0", + "zstd 0.11.2+zstd.1.5.2", ] [[package]] name = "wasmtime-cranelift" -version = "1.0.2" +version = "8.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bd91339b742ff20bfed4532a27b73c86b5bcbfedd6bea2dcdf2d64471e1b5c6" +checksum = "b1cefde0cce8cb700b1b21b6298a3837dba46521affd7b8c38a9ee2c869eee04" dependencies = [ "anyhow", "cranelift-codegen", @@ -10815,27 +11237,43 @@ dependencies = [ "cranelift-frontend", "cranelift-native", "cranelift-wasm", - "gimli 0.26.2", + "gimli", "log", - "object 0.29.0", + "object 0.30.4", "target-lexicon", "thiserror", "wasmparser", + "wasmtime-cranelift-shared", + "wasmtime-environ", +] + +[[package]] +name = "wasmtime-cranelift-shared" +version = "8.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd041e382ef5aea1b9fc78442394f1a4f6d676ce457e7076ca4cb3f397882f8b" +dependencies = [ + "anyhow", + "cranelift-codegen", + "cranelift-native", + "gimli", + "object 0.30.4", + "target-lexicon", "wasmtime-environ", ] [[package]] name = "wasmtime-environ" -version = "1.0.2" +version = "8.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebb881c61f4f627b5d45c54e629724974f8a8890d455bcbe634330cc27309644" +checksum = "a990198cee4197423045235bf89d3359e69bd2ea031005f4c2d901125955c949" dependencies = [ "anyhow", "cranelift-entity", - "gimli 0.26.2", - "indexmap", + "gimli", + "indexmap 1.9.3", "log", - "object 0.29.0", + "object 0.30.4", "serde", "target-lexicon", "thiserror", @@ -10845,70 +11283,79 @@ dependencies = [ [[package]] name = "wasmtime-jit" -version = "1.0.2" +version = "8.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1985c628011fe26adf5e23a5301bdc79b245e0e338f14bb58b39e4e25e4d8681" +checksum = "0de48df552cfca1c9b750002d3e07b45772dd033b0b206d5c0968496abf31244" dependencies = [ - "addr2line 0.17.0", + "addr2line 0.19.0", "anyhow", "bincode", "cfg-if", "cpp_demangle", - "gimli 0.26.2", + "gimli", "log", - "object 0.29.0", + "object 0.30.4", "rustc-demangle", - "rustix 0.35.13", "serde", "target-lexicon", - "thiserror", "wasmtime-environ", "wasmtime-jit-debug", + "wasmtime-jit-icache-coherence", "wasmtime-runtime", - "windows-sys 0.36.1", + "windows-sys 0.45.0", ] [[package]] name = "wasmtime-jit-debug" -version = "1.0.2" +version = "8.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f671b588486f5ccec8c5a3dba6b4c07eac2e66ab8c60e6f4e53717c77f709731" +checksum = "6e0554b84c15a27d76281d06838aed94e13a77d7bf604bbbaf548aa20eb93846" dependencies = [ - "object 0.29.0", + "object 0.30.4", "once_cell", - "rustix 0.35.13", + "rustix 0.36.15", +] + +[[package]] +name = "wasmtime-jit-icache-coherence" +version = "8.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aecae978b13f7f67efb23bd827373ace4578f2137ec110bbf6a4a7cde4121bbd" +dependencies = [ + "cfg-if", + "libc", + "windows-sys 0.45.0", ] [[package]] name = "wasmtime-runtime" -version = "1.0.2" +version = "8.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee8f92ad4b61736339c29361da85769ebc200f184361959d1792832e592a1afd" +checksum = "658cf6f325232b6760e202e5255d823da5e348fdea827eff0a2a22319000b441" dependencies = [ "anyhow", "cc", "cfg-if", - "indexmap", + "indexmap 1.9.3", "libc", "log", "mach", "memfd", - "memoffset 0.6.5", + "memoffset 0.8.0", "paste", "rand 0.8.5", - "rustix 0.35.13", - "thiserror", + "rustix 0.36.15", "wasmtime-asm-macros", "wasmtime-environ", "wasmtime-jit-debug", - "windows-sys 0.36.1", + "windows-sys 0.45.0", ] [[package]] name = "wasmtime-types" -version = "1.0.2" +version = "8.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d23d61cb4c46e837b431196dd06abb11731541021916d03476a178b54dc07aeb" +checksum = "a4f6fffd2a1011887d57f07654dd112791e872e3ff4a2e626aee8059ee17f06f" dependencies = [ "cranelift-entity", "serde", @@ -10918,9 +11365,9 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.61" +version = "0.3.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e33b99f4b23ba3eec1a53ac264e35a755f00e966e0065077d6027c0f575b0b97" +checksum = "9b85cbef8c220a6abc02aefd892dfc0fc23afb1c6a426316ec33253a3877249b" dependencies = [ "js-sys", "wasm-bindgen", @@ -10978,10 +11425,10 @@ dependencies = [ "sdp", "serde", "serde_json", - "sha2 0.10.6", + "sha2 0.10.7", "stun", "thiserror", - "time 0.3.19", + "time 0.3.25", "tokio", "turn", "url", @@ -11013,22 +11460,22 @@ dependencies = [ [[package]] name = "webrtc-dtls" -version = "0.7.0" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7021987ae0a2ed6c8cd33f68e98e49bb6e74ffe9543310267b48a1bbe3900e5f" +checksum = "942be5bd85f072c3128396f6e5a9bfb93ca8c1939ded735d177b7bcba9a13d05" dependencies = [ "aes 0.6.0", - "aes-gcm 0.8.0", + "aes-gcm 0.10.2", "async-trait", "bincode", "block-modes", "byteorder", "ccm", "curve25519-dalek 3.2.0", - "der-parser 8.1.0", - "elliptic-curve", + "der-parser 8.2.0", + "elliptic-curve 0.12.3", "hkdf", - "hmac 0.10.1", + "hmac 0.12.1", "log", "oid-registry 0.6.1", "p256", @@ -11038,11 +11485,11 @@ dependencies = [ "rcgen 0.9.3", "ring", "rustls 0.19.1", - "sec1", + "sec1 0.3.0", "serde", - "sha-1", - "sha2 0.9.9", - "signature", + "sha1", + "sha2 0.10.7", + "signature 1.6.4", "subtle", "thiserror", "tokio", @@ -11070,7 +11517,7 @@ dependencies = [ "tokio", "turn", "url", - "uuid 1.3.0", + "uuid 1.4.1", "waitgroup", "webrtc-mdns", "webrtc-util", @@ -11083,7 +11530,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f08dfd7a6e3987e255c4dbe710dde5d94d0f0574f8a21afa95d171376c143106" dependencies = [ "log", - "socket2", + "socket2 0.4.9", "thiserror", "tokio", "webrtc-util", @@ -11091,18 +11538,15 @@ dependencies = [ [[package]] name = "webrtc-media" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee2a3c157a040324e5049bcbd644ffc9079e6738fa2cfab2bcff64e5cc4c00d7" +checksum = "f72e1650a8ae006017d1a5280efb49e2610c19ccc3c0905b03b648aee9554991" dependencies = [ "byteorder", "bytes", - "derive_builder", - "displaydoc", "rand 0.8.5", "rtp", "thiserror", - "webrtc-util", ] [[package]] @@ -11153,7 +11597,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "93f1db1727772c05cf7a2cfece52c3aca8045ca1e176cd517d323489aa3c6d87" dependencies = [ "async-trait", - "bitflags", + "bitflags 1.3.2", "bytes", "cc", "ipnet", @@ -11167,15 +11611,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "wepoll-ffi" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d743fdedc5c64377b5fc2bc036b01c7fd642205a0d96356034ae3404d49eb7fb" -dependencies = [ - "cc", -] - [[package]] name = "which" version = "4.4.0" @@ -11199,9 +11634,9 @@ dependencies = [ [[package]] name = "widestring" -version = "0.5.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17882f045410753661207383517a6f62ec3dbeb6a4ed2acce01f0728238d1983" +checksum = "653f141f39ec16bba3c5abe400a0c60da7468261cc2cbf36805022876bc721a8" [[package]] name = "winapi" @@ -11248,62 +11683,73 @@ dependencies = [ ] [[package]] -name = "windows-sys" -version = "0.36.1" +name = "windows" +version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2" +checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f" dependencies = [ - "windows_aarch64_msvc 0.36.1", - "windows_i686_gnu 0.36.1", - "windows_i686_msvc 0.36.1", - "windows_x86_64_gnu 0.36.1", - "windows_x86_64_msvc 0.36.1", + "windows-targets 0.48.1", ] [[package]] name = "windows-sys" -version = "0.42.0" +version = "0.45.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" +checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" dependencies = [ - "windows_aarch64_gnullvm", - "windows_aarch64_msvc 0.42.1", - "windows_i686_gnu 0.42.1", - "windows_i686_msvc 0.42.1", - "windows_x86_64_gnu 0.42.1", - "windows_x86_64_gnullvm", - "windows_x86_64_msvc 0.42.1", + "windows-targets 0.42.2", ] [[package]] name = "windows-sys" -version = "0.45.0" +version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" +checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" dependencies = [ - "windows-targets", + "windows-targets 0.48.1", ] [[package]] name = "windows-targets" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e2522491fbfcd58cc84d47aeb2958948c4b8982e9a2d8a2a35bbaed431390e7" +checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" dependencies = [ - "windows_aarch64_gnullvm", - "windows_aarch64_msvc 0.42.1", - "windows_i686_gnu 0.42.1", - "windows_i686_msvc 0.42.1", - "windows_x86_64_gnu 0.42.1", - "windows_x86_64_gnullvm", - "windows_x86_64_msvc 0.42.1", + "windows_aarch64_gnullvm 0.42.2", + "windows_aarch64_msvc 0.42.2", + "windows_i686_gnu 0.42.2", + "windows_i686_msvc 0.42.2", + "windows_x86_64_gnu 0.42.2", + "windows_x86_64_gnullvm 0.42.2", + "windows_x86_64_msvc 0.42.2", ] +[[package]] +name = "windows-targets" +version = "0.48.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05d4b17490f70499f20b9e791dcf6a299785ce8af4d709018206dc5b4953e95f" +dependencies = [ + "windows_aarch64_gnullvm 0.48.0", + "windows_aarch64_msvc 0.48.0", + "windows_i686_gnu 0.48.0", + "windows_i686_msvc 0.48.0", + "windows_x86_64_gnu 0.48.0", + "windows_x86_64_gnullvm 0.48.0", + "windows_x86_64_msvc 0.48.0", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" + [[package]] name = "windows_aarch64_gnullvm" -version = "0.42.1" +version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c9864e83243fdec7fc9c5444389dcbbfd258f745e7853198f365e3c4968a608" +checksum = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc" [[package]] name = "windows_aarch64_msvc" @@ -11313,15 +11759,15 @@ checksum = "17cffbe740121affb56fad0fc0e421804adf0ae00891205213b5cecd30db881d" [[package]] name = "windows_aarch64_msvc" -version = "0.36.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47" +checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" [[package]] name = "windows_aarch64_msvc" -version = "0.42.1" +version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c8b1b673ffc16c47a9ff48570a9d85e25d265735c503681332589af6253c6c7" +checksum = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3" [[package]] name = "windows_i686_gnu" @@ -11331,15 +11777,15 @@ checksum = "2564fde759adb79129d9b4f54be42b32c89970c18ebf93124ca8870a498688ed" [[package]] name = "windows_i686_gnu" -version = "0.36.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6" +checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" [[package]] name = "windows_i686_gnu" -version = "0.42.1" +version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de3887528ad530ba7bdbb1faa8275ec7a1155a45ffa57c37993960277145d640" +checksum = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241" [[package]] name = "windows_i686_msvc" @@ -11349,15 +11795,15 @@ checksum = "9cd9d32ba70453522332c14d38814bceeb747d80b3958676007acadd7e166956" [[package]] name = "windows_i686_msvc" -version = "0.36.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024" +checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" [[package]] name = "windows_i686_msvc" -version = "0.42.1" +version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf4d1122317eddd6ff351aa852118a2418ad4214e6613a50e0191f7004372605" +checksum = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00" [[package]] name = "windows_x86_64_gnu" @@ -11367,21 +11813,27 @@ checksum = "cfce6deae227ee8d356d19effc141a509cc503dfd1f850622ec4b0f84428e1f4" [[package]] name = "windows_x86_64_gnu" -version = "0.36.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1" +checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" [[package]] name = "windows_x86_64_gnu" -version = "0.42.1" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca2b8a661f7628cbd23440e50b05d705db3686f894fc9580820623656af974b1" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1040f221285e17ebccbc2591ffdc2d44ee1f9186324dd3e84e99ac68d699c45" +checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" [[package]] name = "windows_x86_64_gnullvm" -version = "0.42.1" +version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "628bfdf232daa22b0d64fdb62b09fcc36bb01f05a3939e20ab73aaf9470d0463" +checksum = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953" [[package]] name = "windows_x86_64_msvc" @@ -11391,23 +11843,33 @@ checksum = "d19538ccc21819d01deaf88d6a17eae6596a12e9aafdbb97916fb49896d89de9" [[package]] name = "windows_x86_64_msvc" -version = "0.36.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680" +checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" [[package]] name = "windows_x86_64_msvc" -version = "0.42.1" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a" + +[[package]] +name = "winnow" +version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "447660ad36a13288b1db4d4248e857b510e8c3a225c822ba4fb748c0aafecffd" +checksum = "acaaa1190073b2b101e15083c38ee8ec891b5e05cbee516521e94ec008f61e64" +dependencies = [ + "memchr", +] [[package]] name = "winreg" -version = "0.10.1" +version = "0.50.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80d0f4e272c85def139476380b12f9ac60926689dd2e01d4923222f40580869d" +checksum = "524e57b2c537c0f9b1e69f1965311ec12182b4122e45035b1508cd24d2adadb1" dependencies = [ - "winapi", + "cfg-if", + "windows-sys 0.48.0", ] [[package]] @@ -11457,7 +11919,7 @@ dependencies = [ "ring", "rusticata-macros", "thiserror", - "time 0.3.19", + "time 0.3.25", ] [[package]] @@ -11466,16 +11928,16 @@ version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e0ecbeb7b67ce215e40e3cc7f2ff902f94a223acf44995934763467e7b1febc8" dependencies = [ - "asn1-rs 0.5.1", + "asn1-rs 0.5.2", "base64 0.13.1", "data-encoding", - "der-parser 8.1.0", + "der-parser 8.2.0", "lazy_static", "nom", "oid-registry 0.6.1", "rusticata-macros", "thiserror", - "time 0.3.19", + "time 0.3.25", ] [[package]] @@ -11494,32 +11956,31 @@ dependencies = [ [[package]] name = "yasna" -version = "0.5.1" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aed2e7a52e3744ab4d0c05c20aa065258e84c49fd4226f5191b2ed29712710b4" +checksum = "e17bb3549cc1321ae1296b9cdc2698e2b6cb1992adfa19a8c72e5b7a738f44cd" dependencies = [ - "time 0.3.19", + "time 0.3.25", ] [[package]] name = "zeroize" -version = "1.5.7" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c394b5bd0c6f669e7275d9c20aa90ae064cb22e75a1cad54e1b34088034b149f" +checksum = "2a0956f1ba7c7909bfb66c2e9e4124ab6f6482560f6628b5aaeba39207c9aad9" dependencies = [ "zeroize_derive", ] [[package]] name = "zeroize_derive" -version = "1.3.3" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44bf07cb3e50ea2003396695d58bf46bc9887a1f362260446fad6bc4e79bd36c" +checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", - "synstructure", + "syn 2.0.28", ] [[package]] @@ -11528,7 +11989,16 @@ version = "0.11.2+zstd.1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "20cc960326ece64f010d2d2107537f26dc589a6573a316bd5b1dba685fa5fde4" dependencies = [ - "zstd-safe", + "zstd-safe 5.0.2+zstd.1.5.2", +] + +[[package]] +name = "zstd" +version = "0.12.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a27595e173641171fc74a1232b7b1c7a7cb6e18222c11e9dfb9888fa424c53c" +dependencies = [ + "zstd-safe 6.0.6", ] [[package]] @@ -11541,18 +12011,23 @@ dependencies = [ "zstd-sys", ] +[[package]] +name = "zstd-safe" +version = "6.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee98ffd0b48ee95e6c5168188e44a54550b1564d9d530ee21d5f0eaed1069581" +dependencies = [ + "libc", + "zstd-sys", +] + [[package]] name = "zstd-sys" -version = "2.0.7+zstd.1.5.4" +version = "2.0.8+zstd.1.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94509c3ba2fe55294d752b79842c530ccfab760192521df74a081a78d2b3c7f5" +checksum = "5556e6ee25d32df2586c098bbfa278803692a20d0ab9565e049480d52707ec8c" dependencies = [ "cc", "libc", "pkg-config", ] - -[[patch.unused]] -name = "substrate-wasm-builder" -version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v0.9.37#6fa7fe1326ecaab9921c2c3888530ad679cfbb87" diff --git a/Cargo.toml b/Cargo.toml index b680705d3..c59115b93 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,136 +22,140 @@ frame-system-rpc-runtime-api = { path = "pallets/system/rpc/runtime-api" } frame-system-benchmarking = { path = "pallets/system/benchmarking" } # DA Primitives -avail-core = { version = "0.5", git="https://github.com/availproject/avail-core", tag = "avail-core/v0.5.0" } -kate = { version = "0.8", git="https://github.com/availproject/avail-core", tag = "avail-core/v0.5.0" } -kate-recovery = { version = "0.9", git="https://github.com/availproject/avail-core", tag = "avail-core/v0.5.0" } +avail-core = { version = "0.5", git="https://github.com/availproject/avail-core", branch = "substrate/upgrade-v1.0.0" } +kate = { version = "0.8", git="https://github.com/availproject/avail-core", branch = "substrate/upgrade-v1.0.0" } +kate-recovery = { version = "0.9", git="https://github.com/availproject/avail-core", branch = "substrate/upgrade-v1.0.0" } # Nomad -nomad-signature = { version = "0.1", git="https://github.com/availproject/avail-core", tag = "avail-core/v0.5.0" } -nomad-merkle = { version = "0.1", git="https://github.com/availproject/avail-core", tag = "avail-core/v0.5.0" } -nomad-base = { version = "0.1", git="https://github.com/availproject/avail-core", tag = "avail-core/v0.5.0" } -nomad-core = { version = "0.1", git="https://github.com/availproject/avail-core", tag = "avail-core/v0.5.0" } +nomad-signature = { version = "0.1", git="https://github.com/availproject/avail-core", branch = "substrate/upgrade-v1.0.0" } +nomad-merkle = { version = "0.1", git="https://github.com/availproject/avail-core", branch = "substrate/upgrade-v1.0.0" } +nomad-base = { version = "0.1", git="https://github.com/availproject/avail-core", branch = "substrate/upgrade-v1.0.0" } +nomad-core = { version = "0.1", git="https://github.com/availproject/avail-core", branch = "substrate/upgrade-v1.0.0" } # Other stuff uint = { git = "https://github.com/paritytech/parity-common.git", tag = "rlp-v0.5.2" } rlp = { git = "https://github.com/paritytech/parity-common.git", tag = "rlp-v0.5.2" } -# Substrate (polkadot-v0.9.37). -beefy-merkle-tree = { git = "https://github.com/paritytech/substrate.git/", branch = "polkadot-v0.9.37" } -sc-cli = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-io = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-std = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sc-executor = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sc-service = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sc-telemetry = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sc-keystore = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sc-transaction-pool = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sc-transaction-pool-api = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-consensus = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sc-consensus = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sc-finality-grandpa = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-finality-grandpa = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sc-client-api = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sc-client-db = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-runtime-interface = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-timestamp = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-version = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-arithmetic = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-authority-discovery = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sc-authority-discovery = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-consensus-babe = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-inherents = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-offchain = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-session = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-staking = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-transaction-pool = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-transaction-storage-proof = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-keystore = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-state-machine = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-trie = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-externalities = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-npos-elections = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sc-consensus-babe = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sc-consensus-epochs = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sc-consensus-babe-rpc = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sc-network = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sc-network-common = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sc-chain-spec = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sc-consensus-slots = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sc-consensus-uncles = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-authorship = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-tracing = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-weights = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sc-sysinfo = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } +# Substrate (polkadot-v1.0.0). +# Renamed in the upstream (https://github.com/paritytech/substrate/pull/13076) +# TODO: use the updated name +beefy-merkle-tree = { git = "https://github.com/paritytech/substrate.git/", branch = "polkadot-v1.0.0", package = "binary-merkle-tree" } +sc-cli = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-io = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-std = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-executor = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-service = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-telemetry = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-keystore = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-transaction-pool = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-transaction-pool-api = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-consensus = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-consensus = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +# Renamed: (https://github.com/paritytech/substrate/pull/13458) +# sp-finality-grandpa -> sp-consensus-grandpa +# sc-finality-grandpa -> sc-consensus-grandpa +sc-finality-grandpa = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0", package = "sp-consensus-grandpa" } +sp-finality-grandpa = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0", package = "sc-consensus-grandpa" } +sc-client-api = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-client-db = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-runtime-interface = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-timestamp = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-version = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-arithmetic = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-authority-discovery = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-authority-discovery = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-consensus-babe = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-inherents = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-offchain = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-session = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-staking = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-transaction-pool = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-transaction-storage-proof = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-keystore = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-state-machine = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-trie = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-externalities = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-npos-elections = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-consensus-babe = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-consensus-epochs = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-consensus-babe-rpc = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-network = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-network-common = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-chain-spec = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-consensus-slots = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +# Removed: https://github.com/paritytech/substrate/pull/13216 +# sc-consensus-uncles = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +# sp-authorship = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-tracing = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-weights = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-sysinfo = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } ## Frame -frame-executive = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -frame-support = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -frame-try-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-balances = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-session = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-im-online = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-grandpa = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-timestamp = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-transaction-payment = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-staking = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-staking-reward-curve = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-utility = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-scheduler = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-babe = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-authorship = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-indices = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-offences = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-treasury = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-collective = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-bounties = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-sudo = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-authority-discovery = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-tips = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-membership = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-elections-phragmen = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-bags-list = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-election-provider-multi-phase = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -frame-election-provider-support = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-democracy = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-mmr = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-multisig = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-child-bounties = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-preimage = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-nomination-pools = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-election-provider-support-benchmarking = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -substrate-wasm-builder = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } - - +frame-executive = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +frame-support = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +frame-try-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-balances = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-session = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-im-online = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-grandpa = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-timestamp = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-transaction-payment = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-staking = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-staking-reward-curve = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-utility = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-scheduler = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-babe = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-authorship = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-indices = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-offences = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-treasury = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-collective = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-bounties = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-sudo = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-authority-discovery = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-tips = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-membership = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-elections-phragmen = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-bags-list = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-election-provider-multi-phase = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +frame-election-provider-support = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-democracy = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-mmr = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-multisig = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-child-bounties = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-preimage = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-nomination-pools = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-election-provider-support-benchmarking = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +substrate-wasm-builder = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } ## RPCs -sc-rpc = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-rpc = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-api = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sc-rpc-api = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-blockchain = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sp-block-builder = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sc-basic-authorship = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sc-finality-grandpa-rpc = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sc-sync-state-rpc = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -mmr-rpc = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } - -substrate-frame-rpc-system = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -sc-rpc-spec-v2 = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -substrate-state-trie-migration-rpc = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } - +sc-rpc = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-rpc = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-api = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-rpc-api = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-blockchain = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-block-builder = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-basic-authorship = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +# Renamed to sc-consensus-grandpa-rpc +# sc-finality-grandpa-rpc = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-sync-state-rpc = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +mmr-rpc = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } + +substrate-frame-rpc-system = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-rpc-spec-v2 = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +substrate-state-trie-migration-rpc = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } ## These dependencies are used for runtime benchmarking -frame-benchmarking = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -frame-benchmarking-cli = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } +frame-benchmarking = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +frame-benchmarking-cli = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } ## CLI -try-runtime-cli = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } -substrate-build-script-utils = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.37" } +try-runtime-cli = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +substrate-build-script-utils = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } # The list of dependencies below (which can be both direct and indirect dependencies) are crates @@ -210,7 +214,6 @@ smallvec = { opt-level = 3 } snow = { opt-level = 3 } twox-hash = { opt-level = 3 } uint = { opt-level = 3 } -wasmi = { opt-level = 3 } x25519-dalek = { opt-level = 3 } yamux = { opt-level = 3 } zeroize = { opt-level = 3 } diff --git a/avail-subxt/Cargo.toml b/avail-subxt/Cargo.toml index 3292898d6..e0e63fc42 100644 --- a/avail-subxt/Cargo.toml +++ b/avail-subxt/Cargo.toml @@ -28,11 +28,11 @@ schnorrkel = "0.9.1" # Substrate subxt = "0.29" -sp-core = { version = "*", default-features = false } +sp-core = { version = "21.0.0", default-features = false } codec = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive", "full", "bit-vec"] } serde = { version = "1", features = ["derive"] } serde-hex = "0.1" -scale-info = { version = "2", features = ["bit-vec"] } +scale-info = { version = "2.5.0", features = ["bit-vec"] } [dev-dependencies] @@ -48,7 +48,7 @@ indicatif = "0.17" # Substrate -sp-keyring = "*" +sp-keyring = "24.0.0" [features] default = ["api-dev", "std"] diff --git a/base/Cargo.toml b/base/Cargo.toml index 6d34331f8..5b1d8616b 100644 --- a/base/Cargo.toml +++ b/base/Cargo.toml @@ -12,7 +12,7 @@ kate = { version = "0.8", default-features = false } # Substrate related substrate-prometheus-endpoint = { version = "0.10.0-dev", optional = true } -sp-std = { version = "5.0.0", default-features = false } +sp-std = { version = "8.0.0", default-features = false } # 3rd-party log = "0.4.17" diff --git a/node/Cargo.toml b/node/Cargo.toml index 8fe01b769..e9714405d 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -47,14 +47,14 @@ async-trait = "0.1.60" # Substrate ## Primitives sc-cli = "0.10.0-dev" -sp-io = "7.0.0" -sp-core = "7.0.0" +sp-io = "23.0.0" +sp-core = "21.0.0" sc-executor = "0.10.0-dev" sc-service = "0.10.0-dev" sc-telemetry = "4.0.0-dev" sc-keystore = "4.0.0-dev" -sp-keystore = "0.13.0" -sp-keyring = "7.0.0" +sp-keystore = "0.27.0" +sp-keyring = "24.0.0" sc-transaction-pool = "4.0.0-dev" sp-transaction-pool = "4.0.0-dev" sp-inherents = "4.0.0-dev" @@ -64,18 +64,20 @@ sc-consensus-babe-rpc = "0.10.0-dev" sp-consensus-babe = "0.10.0-dev" sp-consensus = "0.10.0-dev" sc-consensus = "0.10.0-dev" -sc-finality-grandpa = "0.10.0-dev" -sc-finality-grandpa-rpc = "0.10.0-dev" -sp-finality-grandpa = "4.0.0-dev" +# Renamed: (https://github.com/paritytech/substrate/pull/13458) +sc-finality-grandpa = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v1.0.0", package = "sp-consensus-grandpa" } +sc-finality-grandpa-rpc = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v1.0.0", package = "sc-consensus-grandpa-rpc" } +sp-finality-grandpa = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v1.0.0", package = "sc-consensus-grandpa" } sc-client-api = "4.0.0-dev" -sp-runtime = "7.0.0" +sp-runtime = "24.0.0" sp-timestamp = "4.0.0-dev" sc-consensus-babe = "0.10.0-dev" sc-consensus-epochs = "0.10.0-dev" sc-consensus-slots = "0.10.0-dev" -sc-consensus-uncles = "0.10.0-dev" +# Removed https://github.com/paritytech/substrate/pull/13216 +# sc-consensus-uncles = "0.10.0-dev" sc-network = "0.10.0-dev" -sp-authorship = "4.0.0-dev" +# sp-authorship = "4.0.0-dev" sp-authority-discovery = "4.0.0-dev" sc-authority-discovery = "0.10.0-dev" sc-chain-spec = "4.0.0-dev" @@ -121,7 +123,7 @@ clap_complete = { version = "4.0.2", optional = true } frame-benchmarking-cli = { version = "4.0.0-dev", optional = true } [dev-dependencies] -sp-tracing = "6.0.0" +sp-tracing = "10.0.0" tempfile = "3.1.0" [features] diff --git a/pallets/bridges/nomad/da-bridge/Cargo.toml b/pallets/bridges/nomad/da-bridge/Cargo.toml index 331528095..905bb6e3f 100644 --- a/pallets/bridges/nomad/da-bridge/Cargo.toml +++ b/pallets/bridges/nomad/da-bridge/Cargo.toml @@ -19,10 +19,10 @@ nomad-home = { path = "../home", default-features = false } # Substrate codec = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] } -scale-info = { version = "2", default-features = false, features = ["derive"] } -sp-core = { version = "7", default-features = false } -sp-std = { version = "5", default-features = false } -sp-runtime = { version = "7", default-features = false } +scale-info = { version = "2.5.0", default-features = false, features = ["derive"] } +sp-core = { version = "21.0.0", default-features = false } +sp-std = { version = "8.0.0", default-features = false } +sp-runtime = { version = "24.0.0", default-features = false } frame-support = { version = "4.0.0-dev", default-features = false } frame-system = { version = "4.0.0-dev", default-features = false } frame-benchmarking = { version = "4.0.0-dev", default-features = false, optional = true } @@ -35,7 +35,7 @@ nomad-base = "0.1" nomad-merkle = "0.1" nomad-updater-manager = { path = "../updater-manager" } -sp-io = { version = "7" } +sp-io = { version = "23.0.0" } [features] default = ["std"] diff --git a/pallets/bridges/nomad/home/Cargo.toml b/pallets/bridges/nomad/home/Cargo.toml index f1dd3e970..7cf2118ec 100644 --- a/pallets/bridges/nomad/home/Cargo.toml +++ b/pallets/bridges/nomad/home/Cargo.toml @@ -22,10 +22,10 @@ nomad-updater-manager = { path = "../updater-manager", default-features = false # Substrate codec = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] } -scale-info = { version = "2", default-features = false, features = ["derive"] } -sp-core = { version = "7", default-features = false } - -sp-std = { version = "5", default-features = false } +scale-info = { version = "2.5.0", default-features = false, features = ["derive"] } +sp-core = { version = "21.0.0", default-features = false } +sp-runtime = { version = "24.0.0", default-features = false } +sp-std = { version = "8.0.0", default-features = false } frame-support = { version = "4.0.0-dev", default-features = false } frame-system = { version = "4.0.0-dev", default-features = false } frame-benchmarking = { version = "4.0.0-dev", default-features = false, optional = true } @@ -35,11 +35,8 @@ hex-literal = { version = "0.3.4", optional = true } [dev-dependencies] avail-core = { version = "0.5", features = ["runtime"] } - -sp-runtime = { version = "7" } frame-benchmarking = { version = "4.0.0-dev" } -sp-io = { version = "7" } - +sp-io = { version = "23.0.0" } test-case = "1.2.3" [features] @@ -48,6 +45,7 @@ std = [ "codec/std", "scale-info/std", "sp-core/std", + "sp-runtime/std", "sp-std/std", "frame-support/std", "frame-system/std", diff --git a/pallets/bridges/nomad/updater-manager/Cargo.toml b/pallets/bridges/nomad/updater-manager/Cargo.toml index b6b5f2d0f..6ecf3081a 100644 --- a/pallets/bridges/nomad/updater-manager/Cargo.toml +++ b/pallets/bridges/nomad/updater-manager/Cargo.toml @@ -14,11 +14,11 @@ targets = ["x86_64-unknown-linux-gnu"] [dependencies] # Substrate codec = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] } -scale-info = { version = "2", default-features = false, features = ["derive"] } +scale-info = { version = "2.5.0", default-features = false, features = ["derive"] } -sp-core = { version = "7", default-features = false } -sp-io = { version = "7", default-features = false, optional = true } -sp-runtime = { version = "7", default-features = false, optional = true } +sp-core = { version = "21.0.0", default-features = false } +sp-io = { version = "23.0.0", default-features = false, optional = true } +sp-runtime = { version = "24.0.0", default-features = false, optional = true } frame-support = { version = "4.0.0-dev", default-features = false } frame-system = { version = "4.0.0-dev", default-features = false } diff --git a/pallets/dactr/Cargo.toml b/pallets/dactr/Cargo.toml index c69493346..34228cdd7 100644 --- a/pallets/dactr/Cargo.toml +++ b/pallets/dactr/Cargo.toml @@ -21,12 +21,12 @@ static_assertions = "1.1.0" # Substrate serde = { version = "1.0.126", optional = true, features = ["derive"] } codec = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] } -scale-info = { version = "2", default-features = false, features = ["derive"] } -sp-core = { version = "7", default-features = false } -sp-std = { version = "5", default-features = false } -sp-io = { version = "7", default-features = false } -sp-runtime = { version = "7", default-features = false } -sp-arithmetic = { version = "6", default-features = false } +scale-info = { version = "2.5.0", default-features = false, features = ["derive"] } +sp-core = { version = "21.0.0", default-features = false } +sp-std = { version = "8.0.0", default-features = false } +sp-io = { version = "23.0.0", default-features = false } +sp-runtime = { version = "24.0.0", default-features = false } +sp-arithmetic = { version = "16.0.0", default-features = false } frame-support = { version = "4.0.0-dev", default-features = false } frame-system = { version = "4.0.0-dev", default-features = false } frame-benchmarking = { version = "4.0.0-dev", default-features = false, optional = true } diff --git a/pallets/mocked_runtime/Cargo.toml b/pallets/mocked_runtime/Cargo.toml index a4d354ddf..43c499d85 100644 --- a/pallets/mocked_runtime/Cargo.toml +++ b/pallets/mocked_runtime/Cargo.toml @@ -6,27 +6,27 @@ edition = "2021" license = "Apache-2.0" homepage = "" repository = "" -description = "Mokend Runtime for Testing" +description = "Mokcked Runtime for Testing" [dependencies] avail-core = { version = "0.5", default-features = false, features = ["runtime"] } kate = { version = "0.8", default-features = false } da-control = { path = "../dactr" } -scale-info = { version = "2.1.1", features = ["derive"] } +scale-info = { version = "2.5.0", features = ["derive"] } codec = { package = "parity-scale-codec", version = "3", features = ["derive"] } parity-util-mem = { version = "0.12.0", features = ["primitive-types"] } derive_more = "0.99.17" serde = { version = "1.0.121", features = ["derive"] } frame-support = "4.0.0-dev" -sp-runtime = "7.0.0" -sp-core = "7.0.0" +sp-runtime = { version = "24.0.0" } +sp-core = { version = "21.0.0" } sp-staking = "4.0.0-dev" -sp-io = "7.0.0" -sp-version = "5" +sp-io = "23.0.0" +sp-version = { version = "22.0.0" } sp-inherents = "4.0.0-dev" -sp-std = "5.0.0" +sp-std = "8.0.0" # Pallets frame-system = { path = "../system" } diff --git a/pallets/system/Cargo.toml b/pallets/system/Cargo.toml index c8b0a3031..131a8f809 100644 --- a/pallets/system/Cargo.toml +++ b/pallets/system/Cargo.toml @@ -30,12 +30,12 @@ codec = { package = "parity-scale-codec", version = "3.6.1", default-features = scale-info = { version = "2.5.0", default-features = false, features = ["derive", "serde"] } serde = { version = "1.0.163", default-features = false, features = ["derive", "alloc"] } frame-support = { version = "4.0.0-dev", default-features = false } -sp-core = { version = "21.0.0", default-features = false } +sp-core = { version = "21.0.0", default-features = false, features = ["serde"] } sp-io = { version = "23.0.0", default-features = false } -sp-runtime = { version = "24.0.0", default-features = false } +sp-runtime = { version = "24.0.0", default-features = false, features = ["serde"] } sp-std = { version = "8.0.0", default-features = false } -sp-version = { version = "22.0.0", default-features = false } -sp-weights = { version = "20.0.0", default-features = false } +sp-version = { version = "22.0.0", default-features = false, features = ["serde"] } +sp-weights = { version = "20.0.0", default-features = false, features = ["serde"] } sp-runtime-interface = { version = "17", default-features = false } beefy-merkle-tree = { version = "4.0.0-dev", default-features = false, package = "binary-merkle-tree" } diff --git a/rpc/kate-rpc/Cargo.toml b/rpc/kate-rpc/Cargo.toml index a81e6514b..7eb34ddd9 100644 --- a/rpc/kate-rpc/Cargo.toml +++ b/rpc/kate-rpc/Cargo.toml @@ -27,7 +27,7 @@ sc-client-db = "0.10.0-dev" codec = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] } sc-client-api = "4.0.0-dev" sp-blockchain = "4.0.0-dev" -sp-runtime = { version = "7.0.0", default-features = false } +sp-runtime = { version = "24.0.0", default-features = false } [features] default = ["std"] diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 7690804f5..8b7d80091 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -31,17 +31,17 @@ log = { version = "0.4.17", default-features = false } hex-literal = { version = "0.3.4", optional = true } # Substrate -scale-info = { version = "2.1.1", default-features = false, features = ["derive"] } +scale-info = { version = "2.5.0", default-features = false, features = ["derive"] } parity-util-mem = { version = "0.12.0", default-features = false, features = ["primitive-types"] } codec = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] } ## primitives -sp-io = { version = "7.0.0", default-features = false } -sp-core = { version = "7.0.0", default-features = false } +sp-io = { version = "23.0.0", default-features = false } +sp-core = { version = "21.0.0", default-features = false } sp-api = { version = "4.0.0-dev", default-features = false } -sp-runtime = { version = "7.0.0", default-features = false } +sp-runtime = { version = "24.0.0", default-features = false } sp-authority-discovery = { version = "4.0.0-dev", default-features = false } -sp-version = { version = "5", default-features = false } +sp-version = { version = "22.0.0", default-features = false } sp-consensus-babe = { version = "0.10.0-dev", default-features = false } sp-staking = {version = "4.0.0-dev", default-features = false } sp-transaction-pool = { version = "4.0.0-dev", default-features = false } @@ -50,7 +50,7 @@ sp-session = { version = "4.0.0-dev", default-features = false } sp-block-builder = { version = "4.0.0-dev", default-features = false } sp-inherents = { version = "4.0.0-dev", default-features = false } sp-npos-elections = { version = "4.0.0-dev", default-features = false } -sp-std = { version = "5.0.0", default-features = false } +sp-std = { version = "8.0.0", default-features = false } ## frame dependencies frame-support = { version = "4.0.0-dev", default-features = false } @@ -109,7 +109,7 @@ test-case = "1.2.3" hex = "0.4" hex-literal = "0.3.4" serde_json = "1.0" -sp-keyring = "7.0.0" +sp-keyring = "24.0.0" env_logger = "0.9.1" [features] @@ -118,7 +118,7 @@ with-tracing = ["frame-executive/with-tracing"] fast-runtime = [] header_commitment_corruption = [ "frame-system/header_commitment_corruption"] std = [ - "serde", + "serde/std", #"parity-util-mem/std", "frame-system-benchmarking?/std", "frame-election-provider-support/std", @@ -176,7 +176,6 @@ std = [ "frame-try-runtime?/std", "sp-io/std", "pallet-child-bounties/std", - "da-control/std", "kate/std", "nomad-updater-manager/std", @@ -194,7 +193,6 @@ runtime-benchmarks = [ "nomad-home/runtime-benchmarks", "nomad-da-bridge/runtime-benchmarks", "hex-literal", - "pallet-babe/runtime-benchmarks", "pallet-bags-list/runtime-benchmarks", "pallet-balances/runtime-benchmarks", From 098b5d018a58bb6453e1d3bc819570d8bde3f9ed Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Mon, 7 Aug 2023 18:28:03 +0530 Subject: [PATCH 04/58] Removed uncles & deprecated GenesisConfig --- node/src/service.rs | 12 ++----- pallets/bridges/nomad/da-bridge/src/lib.rs | 15 ++++---- pallets/bridges/nomad/home/src/lib.rs | 3 +- .../bridges/nomad/updater-manager/src/lib.rs | 4 +-- pallets/dactr/src/lib.rs | 35 +++++++++---------- pallets/system/src/lib.rs | 16 --------- runtime/src/lib.rs | 6 ---- 7 files changed, 28 insertions(+), 63 deletions(-) diff --git a/node/src/service.rs b/node/src/service.rs index 61df6d879..135877faf 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -257,10 +257,7 @@ pub fn new_partial( slot_duration, ); - let uncles = - sp_authorship::InherentDataProvider::<::Header>::check_inherents(); - - Ok((slot, timestamp, uncles)) + Ok((slot, timestamp)) }, &task_manager.spawn_essential_handle(), config.prometheus_registry(), @@ -478,11 +475,6 @@ pub fn new_full_base( create_inherent_data_providers: move |parent, ()| { let client_clone = client_clone.clone(); async move { - let uncles = sc_consensus_uncles::create_uncles_inherent_data_provider( - &*client_clone, - parent, - )?; - let timestamp = sp_timestamp::InherentDataProvider::from_system_time(); let slot = @@ -497,7 +489,7 @@ pub fn new_full_base( &parent, )?; - Ok((slot, timestamp, uncles, storage_proof)) + Ok((slot, timestamp, storage_proof)) } }, force_authoring, diff --git a/pallets/bridges/nomad/da-bridge/src/lib.rs b/pallets/bridges/nomad/da-bridge/src/lib.rs index 7369e7fab..f3767756a 100644 --- a/pallets/bridges/nomad/da-bridge/src/lib.rs +++ b/pallets/bridges/nomad/da-bridge/src/lib.rs @@ -43,7 +43,6 @@ pub mod pallet { } #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] pub struct Pallet(_); // Genesis config @@ -52,7 +51,7 @@ pub mod pallet { pub struct GenesisConfig {} #[pallet::genesis_build] - impl GenesisBuild for GenesisConfig { + impl BuildGenesisConfig for GenesisConfig { fn build(&self) {} } @@ -62,7 +61,7 @@ pub mod pallet { DataRootDispatched { destination_domain: u32, recipient_address: H256, - block_number: T::BlockNumber, + block_number: BlockNumberFor, data_root: H256, }, } @@ -79,7 +78,7 @@ pub mod pallet { where [u8; 32]: From, H256: From, - u32: From, + u32: From>, { /// Dispatch a data root message to the home if the header is valid. #[pallet::call_index(0)] @@ -88,7 +87,7 @@ pub mod pallet { origin: OriginFor, #[pallet::compact] destination_domain: u32, recipient_address: H256, - header: Box, + header: Box>, ) -> DispatchResultWithPostInfo { ensure_signed(origin)?; Self::ensure_valid_header(&header)?; @@ -100,13 +99,13 @@ pub mod pallet { where [u8; 32]: From, H256: From, - u32: From, + u32: From>, { /// Dispatch a data root message for a valid header. fn do_dispatch_data_root( destination_domain: u32, recipient_address: H256, - header: &T::Header, + header: &HeaderFor, ) -> DispatchResultWithPostInfo { let block_number = *header.number(); let data_root = header.extension().data_root(); @@ -141,7 +140,7 @@ pub mod pallet { /// Ensure a given header's hash has been recorded in the block hash /// mapping. - fn ensure_valid_header(header: &T::Header) -> DispatchResultWithPostInfo { + fn ensure_valid_header(header: &HeaderFor) -> DispatchResultWithPostInfo { // Ensure header's block number is in the mapping let number = header.number(); let stored_hash = frame_system::Pallet::::block_hash(number); diff --git a/pallets/bridges/nomad/home/src/lib.rs b/pallets/bridges/nomad/home/src/lib.rs index e007b9b7c..f3135b803 100644 --- a/pallets/bridges/nomad/home/src/lib.rs +++ b/pallets/bridges/nomad/home/src/lib.rs @@ -45,7 +45,6 @@ pub mod pallet { } #[pallet::pallet] - #[pallet::generate_store(pub (super) trait Store)] pub struct Pallet(_); // Nomad base @@ -95,7 +94,7 @@ pub mod pallet { } #[pallet::genesis_build] - impl GenesisBuild for GenesisConfig { + impl BuildGenesisConfig for GenesisConfig { fn build(&self) { >::put(NomadBase::new( self.local_domain, diff --git a/pallets/bridges/nomad/updater-manager/src/lib.rs b/pallets/bridges/nomad/updater-manager/src/lib.rs index 9a3949e20..bfee73305 100644 --- a/pallets/bridges/nomad/updater-manager/src/lib.rs +++ b/pallets/bridges/nomad/updater-manager/src/lib.rs @@ -4,7 +4,6 @@ /// Learn more about FRAME and the core library of Substrate FRAME pallets: /// pub use pallet::*; - #[cfg(test)] mod mock; @@ -25,7 +24,6 @@ pub mod pallet { } #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] pub struct Pallet(_); // Updater @@ -51,7 +49,7 @@ pub mod pallet { } #[pallet::genesis_build] - impl GenesisBuild for GenesisConfig { + impl BuildGenesisConfig for GenesisConfig { fn build(&self) { >::put(self.updater); } } diff --git a/pallets/dactr/src/lib.rs b/pallets/dactr/src/lib.rs index 4b6d22ac1..93a8aef0a 100644 --- a/pallets/dactr/src/lib.rs +++ b/pallets/dactr/src/lib.rs @@ -82,7 +82,6 @@ pub mod pallet { } #[pallet::pallet] - #[pallet::generate_store(pub (super) trait Store)] pub struct Pallet(_); /// Last application ID @@ -227,7 +226,7 @@ pub mod pallet { } #[pallet::genesis_build] - impl GenesisBuild for GenesisConfig { + impl BuildGenesisConfig for GenesisConfig { fn build(&self) { // Ensure app ids are unique. let mut ids = self @@ -265,22 +264,22 @@ pub mod pallet { } } - #[cfg(feature = "std")] - impl GenesisConfig { - /// Direct implementation of `GenesisBuild::build_storage`. - /// - /// Kept in order not to break dependency. - pub fn build_storage(&self) -> Result { - >::build_storage(self) - } - - /// Direct implementation of `GenesisBuild::assimilate_storage`. - /// - /// Kept in order not to break dependency. - pub fn assimilate_storage(&self, storage: &mut sp_runtime::Storage) -> Result<(), String> { - >::assimilate_storage(self, storage) - } - } + // #[cfg(feature = "std")] + // impl GenesisConfig { + // /// Direct implementation of `GenesisBuild::build_storage`. + // /// + // /// Kept in order not to break dependency. + // pub fn build_storage(&self) -> Result { + // >::build_storage(self) + // } + + // /// Direct implementation of `GenesisBuild::assimilate_storage`. + // /// + // /// Kept in order not to break dependency. + // pub fn assimilate_storage(&self, storage: &mut sp_runtime::Storage) -> Result<(), String> { + // >::assimilate_storage(self, storage) + // } + // } } impl Pallet { diff --git a/pallets/system/src/lib.rs b/pallets/system/src/lib.rs index 79cdcbebf..32e824332 100644 --- a/pallets/system/src/lib.rs +++ b/pallets/system/src/lib.rs @@ -71,7 +71,6 @@ use avail_core::{ }; use codec::{Decode, Encode, EncodeLike, FullCodec, MaxEncodedLen}; #[cfg(feature = "std")] -use frame_support::traits::BuildGenesisConfig; use frame_support::{ dispatch::{ extract_actual_pays_fee, extract_actual_weight, DispatchClass, DispatchInfo, @@ -303,21 +302,6 @@ pub mod pallet { + Copy + MaxEncodedLen; - // /// The block number type used by the runtime. - // type BlockNumber: Parameter - // + Member - // + MaybeSerializeDeserialize - // + Debug - // + MaybeDisplay - // + AtLeast32BitUnsigned - // + Default - // + Bounded - // + Copy - // + sp_std::hash::Hash - // + sp_std::str::FromStr - // + MaxEncodedLen - // + TypeInfo; - /// The output of the `Hashing` function. type Hash: Parameter + Member diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 05e4a9fa8..b583e421c 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -409,15 +409,9 @@ impl pallet_timestamp::Config for Runtime { type WeightInfo = pallet_timestamp::weights::SubstrateWeight; } -parameter_types! { - pub const UncleGenerations: BlockNumber = 5; -} - impl pallet_authorship::Config for Runtime { type EventHandler = (Staking, ImOnline); - type FilterUncle = (); type FindAuthor = pallet_session::FindAccountFromAuthorIndex; - type UncleGenerations = UncleGenerations; } impl pallet_session::Config for Runtime { From dc152dffe3cb2c17fe5736f23a38b4b7f3150e55 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Mon, 7 Aug 2023 18:28:58 +0530 Subject: [PATCH 05/58] wip: weights v2 & fixed system pallet tests --- .../bridges/nomad/da-bridge/src/weights.rs | 4 +- pallets/bridges/nomad/home/src/mock.rs | 6 +- pallets/bridges/nomad/home/src/weights.rs | 20 +++---- pallets/dactr/src/mock.rs | 20 ++++--- pallets/dactr/src/weights.rs | 56 +++++++++---------- pallets/mocked_runtime/src/custom.rs | 1 - pallets/system/src/tests.rs | 15 ++++- 7 files changed, 64 insertions(+), 58 deletions(-) diff --git a/pallets/bridges/nomad/da-bridge/src/weights.rs b/pallets/bridges/nomad/da-bridge/src/weights.rs index b7af8bce1..f1fc0aba3 100644 --- a/pallets/bridges/nomad/da-bridge/src/weights.rs +++ b/pallets/bridges/nomad/da-bridge/src/weights.rs @@ -61,7 +61,7 @@ impl WeightInfo for SubstrateWeight { // Storage: NomadHome RootToIndex (r:0 w:1) fn try_dispatch_data_root() -> Weight { // Minimum execution time: 86_831 nanoseconds. - Weight::from_ref_time(87_904_000_u64) + Weight::from_parts(87_904_000, 0) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -77,7 +77,7 @@ impl WeightInfo for () { // Storage: NomadHome RootToIndex (r:0 w:1) fn try_dispatch_data_root() -> Weight { // Minimum execution time: 86_831 nanoseconds. - Weight::from_ref_time(87_904_000_u64) + Weight::from_parts(87_904_000, 0) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } diff --git a/pallets/bridges/nomad/home/src/mock.rs b/pallets/bridges/nomad/home/src/mock.rs index c5329cc0b..135fccec3 100644 --- a/pallets/bridges/nomad/home/src/mock.rs +++ b/pallets/bridges/nomad/home/src/mock.rs @@ -1,9 +1,5 @@ use avail_core::header::Header; -use frame_support::{ - parameter_types, - traits::{ConstU32, GenesisBuild}, - weights::Weight, -}; +use frame_support::{parameter_types, traits::ConstU32, weights::Weight}; use frame_system::{self as system, header_builder::da, test_utils::TestRandomness}; use nomad_base::NomadBase; use sp_core::{H160, H256}; diff --git a/pallets/bridges/nomad/home/src/weights.rs b/pallets/bridges/nomad/home/src/weights.rs index 69390a61b..320e6ed3b 100644 --- a/pallets/bridges/nomad/home/src/weights.rs +++ b/pallets/bridges/nomad/home/src/weights.rs @@ -48,7 +48,7 @@ impl WeightInfo for SubstrateWeight { // Storage: NomadHome RootToIndex (r:1 w:0) fn improper_update() -> Weight { // Minimum execution time: 495_656 nanoseconds. - Weight::from_ref_time(513_119_000u64) + Weight::from_parts(513_119_000, 0) .saturating_add(T::DbWeight::get().reads(2u64)) .saturating_add(T::DbWeight::get().writes(1u64)) } @@ -60,9 +60,9 @@ impl WeightInfo for SubstrateWeight { /// The range of component `b` is `[1, 2048]`. fn dispatch(b: u32, ) -> Weight { // Minimum execution time: 114_230 nanoseconds. - Weight::from_ref_time(117_260_068u64) + Weight::from_parts(117_260_068, 0) // Standard Error: 1_140 - .saturating_add(Weight::from_ref_time(9_021u64).saturating_mul(b as u64)) + .saturating_add(Weight::from_parts(9_021, 0).saturating_mul(b as u64)) .saturating_add(T::DbWeight::get().reads(3u64)) .saturating_add(T::DbWeight::get().writes(4u64)) } @@ -71,7 +71,7 @@ impl WeightInfo for SubstrateWeight { // Storage: NomadHome IndexToRoot (r:31 w:32) fn update() -> Weight { // Minimum execution time: 845_072 nanoseconds. - Weight::from_ref_time(881_385_000u64) + Weight::from_parts(881_385_000, 0) .saturating_add(T::DbWeight::get().reads(64u64)) .saturating_add(T::DbWeight::get().writes(65u64)) } @@ -79,7 +79,7 @@ impl WeightInfo for SubstrateWeight { // Storage: UpdaterManager Updater (r:1 w:1) fn set_updater() -> Weight { // Minimum execution time: 45_128 nanoseconds. - Weight::from_ref_time(46_213_000u64) + Weight::from_parts(46_213_000, 0) .saturating_add(T::DbWeight::get().reads(2u64)) .saturating_add(T::DbWeight::get().writes(2u64)) } @@ -91,7 +91,7 @@ impl WeightInfo for () { // Storage: NomadHome RootToIndex (r:1 w:0) fn improper_update() -> Weight { // Minimum execution time: 495_656 nanoseconds. - Weight::from_ref_time(513_119_000u64) + Weight::from_parts(513_119_000, 0) .saturating_add(RocksDbWeight::get().reads(2u64)) .saturating_add(RocksDbWeight::get().writes(1u64)) } @@ -103,9 +103,9 @@ impl WeightInfo for () { /// The range of component `b` is `[1, 2048]`. fn dispatch(b: u32, ) -> Weight { // Minimum execution time: 114_230 nanoseconds. - Weight::from_ref_time(117_260_068u64) + Weight::from_parts(117_260_068, 0) // Standard Error: 1_140 - .saturating_add(Weight::from_ref_time(9_021u64).saturating_mul(b as u64)) + .saturating_add(Weight::from_parts(9_021, 0).saturating_mul(b as u64)) .saturating_add(RocksDbWeight::get().reads(3u64)) .saturating_add(RocksDbWeight::get().writes(4u64)) } @@ -114,7 +114,7 @@ impl WeightInfo for () { // Storage: NomadHome IndexToRoot (r:31 w:32) fn update() -> Weight { // Minimum execution time: 845_072 nanoseconds. - Weight::from_ref_time(881_385_000u64) + Weight::from_parts(881_385_000, 0) .saturating_add(RocksDbWeight::get().reads(64u64)) .saturating_add(RocksDbWeight::get().writes(65u64)) } @@ -122,7 +122,7 @@ impl WeightInfo for () { // Storage: UpdaterManager Updater (r:1 w:1) fn set_updater() -> Weight { // Minimum execution time: 45_128 nanoseconds. - Weight::from_ref_time(46_213_000u64) + Weight::from_parts(46_213_000, 0) .saturating_add(RocksDbWeight::get().reads(2u64)) .saturating_add(RocksDbWeight::get().writes(2u64)) } diff --git a/pallets/dactr/src/mock.rs b/pallets/dactr/src/mock.rs index f24d98a43..b600b7dd3 100644 --- a/pallets/dactr/src/mock.rs +++ b/pallets/dactr/src/mock.rs @@ -23,15 +23,16 @@ use crate::{self as da_control, *}; type UncheckedExtrinsic = MockUncheckedExtrinsic; /// An implementation of `sp_runtime::traits::Block` to be used in tests. -type Block = frame_system::mocking::MockBlock; +type Block = frame_system::mocking::MockDaBlock; type BlockNumber = u32; frame_support::construct_runtime!( - pub enum Test where - Block = Block, - NodeBlock = Block, - UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Test + // where + // Block = Block, + // NodeBlock = Block, + // UncheckedExtrinsic = UncheckedExtrinsic, { System: frame_system, Utility: pallet_utility, @@ -52,14 +53,15 @@ impl frame_system::Config for Test { type AccountData = pallet_balances::AccountData; type AccountId = u64; type BaseCallFilter = frame_support::traits::Everything; + type Block = Block; type BlockHashCount = BlockHashCount; type BlockLength = (); - type BlockNumber = BlockNumber; + // type BlockNumber = BlockNumber; type BlockWeights = (); type DbWeight = (); type Hash = H256; type Hashing = BlakeTwo256; - type Header = Header; + // type Header = Header; type HeaderExtensionBuilder = HeaderExtensionBuilder; type Index = u64; type Lookup = IdentityLookup; @@ -138,8 +140,8 @@ impl da_control::Config for Test { /// Create new externalities for `System` module tests. pub fn new_test_ext() -> sp_io::TestExternalities { - let mut storage = frame_system::GenesisConfig::default() - .build_storage::() + let mut storage = frame_system::GenesisConfig::::default() + .build_storage() .unwrap(); pallet_balances::GenesisConfig:: { diff --git a/pallets/dactr/src/weights.rs b/pallets/dactr/src/weights.rs index d7f23e301..5ec3d96f8 100644 --- a/pallets/dactr/src/weights.rs +++ b/pallets/dactr/src/weights.rs @@ -64,58 +64,58 @@ impl WeightInfo for SubstrateWeight { // Storage: DataAvailability NextAppId (r:1 w:1) fn create_application_key() -> Weight { // Minimum execution time: 26_706 nanoseconds. - Weight::from_ref_time(27_653_000_u64) + Weight::from_parts(27_653_000, 0) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } // Storage: System DynamicBlockLength (r:1 w:1) fn submit_block_length_proposal() -> Weight { // Minimum execution time: 22_841 nanoseconds. - Weight::from_ref_time(23_486_000_u64) + Weight::from_parts(23_486_000, 0) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// The range of component `i` is `[1, 524288]`. fn submit_data(i: u32, ) -> Weight { // Minimum execution time: 17_107 nanoseconds. - Weight::from_ref_time(9_816_023_u64) + Weight::from_parts(9_816_023, 0) // Standard Error: 1 - .saturating_add(Weight::from_ref_time(287_u64).saturating_mul(i as u64)) + .saturating_add(Weight::from_parts(287, 0).saturating_mul(i as u64)) } /// The range of component `i` is `[0, 524288]`. fn data_root(i: u32, ) -> Weight { // Minimum execution time: 609 nanoseconds. - Weight::from_ref_time(672_000_u64) + Weight::from_parts(672_000, 0) // Standard Error: 12 - .saturating_add(Weight::from_ref_time(4_321_u64).saturating_mul(i as u64)) + .saturating_add(Weight::from_parts(4_321, 0).saturating_mul(i as u64)) } /// The range of component `i` is `[32, 1024]`. fn commitment_builder_32(i: u32, ) -> Weight { // Minimum execution time: 1_674_133 nanoseconds. - Weight::from_ref_time(1_782_369_000_u64) + Weight::from_parts(1_782_369_000, 0) // Standard Error: 33_902_431 - .saturating_add(Weight::from_ref_time(214_276_156_u64).saturating_mul(i as u64)) + .saturating_add(Weight::from_parts(214_276_156, 0).saturating_mul(i as u64)) } /// The range of component `i` is `[32, 1024]`. fn commitment_builder_64(i: u32, ) -> Weight { // Minimum execution time: 1_669_019 nanoseconds. - Weight::from_ref_time(1_742_205_000_u64) + Weight::from_parts(1_742_205_000, 0) // Standard Error: 46_184_424 - .saturating_add(Weight::from_ref_time(2_679_720_641_u64).saturating_mul(i as u64)) + .saturating_add(Weight::from_parts(2_679_720_641, 0).saturating_mul(i as u64)) } /// The range of component `i` is `[32, 1024]`. fn commitment_builder_128(i: u32, ) -> Weight { // Minimum execution time: 1_843_601 nanoseconds. - Weight::from_ref_time(1_942_890_000_u64) + Weight::from_parts(1_942_890_000, 0) // Standard Error: 43_871_963 - .saturating_add(Weight::from_ref_time(4_222_032_369_u64).saturating_mul(i as u64)) + .saturating_add(Weight::from_parts(4_222_032_369, 0).saturating_mul(i as u64)) } /// The range of component `i` is `[32, 1024]`. fn commitment_builder_256(i: u32, ) -> Weight { // Minimum execution time: 1_864_952 nanoseconds. - Weight::from_ref_time(459_958_961_086_u64) + Weight::from_parts(459_958_961_086, 0) // Standard Error: 102_554_927 - .saturating_add(Weight::from_ref_time(5_707_004_205_u64).saturating_mul(i as u64)) + .saturating_add(Weight::from_parts(5_707_004_205, 0).saturating_mul(i as u64)) } } @@ -125,57 +125,57 @@ impl WeightInfo for () { // Storage: DataAvailability NextAppId (r:1 w:1) fn create_application_key() -> Weight { // Minimum execution time: 26_706 nanoseconds. - Weight::from_ref_time(27_653_000_u64) + Weight::from_parts(27_653_000, 0) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } // Storage: System DynamicBlockLength (r:1 w:1) fn submit_block_length_proposal() -> Weight { // Minimum execution time: 22_841 nanoseconds. - Weight::from_ref_time(23_486_000_u64) + Weight::from_parts(23_486_000, 0) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// The range of component `i` is `[1, 524288]`. fn submit_data(i: u32, ) -> Weight { // Minimum execution time: 17_107 nanoseconds. - Weight::from_ref_time(9_816_023_u64) + Weight::from_parts(9_816_023, 0) // Standard Error: 1 - .saturating_add(Weight::from_ref_time(287_u64).saturating_mul(i as u64)) + .saturating_add(Weight::from_parts(287, 0).saturating_mul(i as u64)) } /// The range of component `i` is `[0, 524288]`. fn data_root(i: u32, ) -> Weight { // Minimum execution time: 609 nanoseconds. - Weight::from_ref_time(672_000_u64) + Weight::from_parts(672_000, 0) // Standard Error: 12 - .saturating_add(Weight::from_ref_time(4_321_u64).saturating_mul(i as u64)) + .saturating_add(Weight::from_parts(4_321, 0).saturating_mul(i as u64)) } /// The range of component `i` is `[32, 1024]`. fn commitment_builder_32(i: u32, ) -> Weight { // Minimum execution time: 1_674_133 nanoseconds. - Weight::from_ref_time(1_782_369_000_u64) + Weight::from_parts(1_782_369_000, 0) // Standard Error: 33_902_431 - .saturating_add(Weight::from_ref_time(214_276_156_u64).saturating_mul(i as u64)) + .saturating_add(Weight::from_parts(214_276_156, 0).saturating_mul(i as u64)) } /// The range of component `i` is `[32, 1024]`. fn commitment_builder_64(i: u32, ) -> Weight { // Minimum execution time: 1_669_019 nanoseconds. - Weight::from_ref_time(1_742_205_000_u64) + Weight::from_parts(1_742_205_000, 0) // Standard Error: 46_184_424 - .saturating_add(Weight::from_ref_time(2_679_720_641_u64).saturating_mul(i as u64)) + .saturating_add(Weight::from_parts(2_679_720_641, 0).saturating_mul(i as u64)) } /// The range of component `i` is `[32, 1024]`. fn commitment_builder_128(i: u32, ) -> Weight { // Minimum execution time: 1_843_601 nanoseconds. - Weight::from_ref_time(1_942_890_000_u64) + Weight::from_parts(1_942_890_000, 0) // Standard Error: 43_871_963 - .saturating_add(Weight::from_ref_time(4_222_032_369_u64).saturating_mul(i as u64)) + .saturating_add(Weight::from_parts(4_222_032_369, 0).saturating_mul(i as u64)) } /// The range of component `i` is `[32, 1024]`. fn commitment_builder_256(i: u32, ) -> Weight { // Minimum execution time: 1_864_952 nanoseconds. - Weight::from_ref_time(459_958_961_086_u64) + Weight::from_parts(459_958_961_086, 0) // Standard Error: 102_554_927 - .saturating_add(Weight::from_ref_time(5_707_004_205_u64).saturating_mul(i as u64)) + .saturating_add(Weight::from_parts(5_707_004_205, 0).saturating_mul(i as u64)) } } diff --git a/pallets/mocked_runtime/src/custom.rs b/pallets/mocked_runtime/src/custom.rs index fe4f5cfb0..7e62234da 100644 --- a/pallets/mocked_runtime/src/custom.rs +++ b/pallets/mocked_runtime/src/custom.rs @@ -6,7 +6,6 @@ pub mod custom { use frame_system::pallet_prelude::*; #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] pub struct Pallet(_); #[pallet::config] diff --git a/pallets/system/src/tests.rs b/pallets/system/src/tests.rs index d69dcd406..5942a830d 100644 --- a/pallets/system/src/tests.rs +++ b/pallets/system/src/tests.rs @@ -276,7 +276,10 @@ fn deposit_event_uses_actual_weight_and_pays_fee() { let normal_base = ::BlockWeights::get() .get(DispatchClass::Normal) .base_extrinsic; - let pre_info = DispatchInfo { weight: Weight::from_parts(1000, 0), ..Default::default() }; + let pre_info = DispatchInfo { + weight: Weight::from_parts(1000, 0), + ..Default::default() + }; System::note_applied_extrinsic(&Ok(from_actual_ref_time(Some(300))), pre_info); System::note_applied_extrinsic(&Ok(from_actual_ref_time(Some(1000))), pre_info); System::note_applied_extrinsic( @@ -301,7 +304,10 @@ fn deposit_event_uses_actual_weight_and_pays_fee() { System::note_applied_extrinsic( &Err(DispatchErrorWithPostInfo { - post_info: PostDispatchInfo { actual_weight: None, pays_fee: Pays::Yes }, + post_info: PostDispatchInfo { + actual_weight: None, + pays_fee: Pays::Yes, + }, error: DispatchError::BadOrigin, }), pre_info, @@ -330,7 +336,10 @@ fn deposit_event_uses_actual_weight_and_pays_fee() { let operational_base = ::BlockWeights::get() .get(DispatchClass::Operational) .base_extrinsic; - assert!(normal_base != operational_base, "Test pre-condition violated"); + assert!( + normal_base != operational_base, + "Test pre-condition violated" + ); let pre_info = DispatchInfo { weight: Weight::from_parts(1000, 0), class: DispatchClass::Operational, From 91f9701303bf24631e307912c0afca76d1b2225f Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Tue, 8 Aug 2023 08:33:01 +0530 Subject: [PATCH 06/58] Updated mocks with new frame-system configs --- pallets/bridges/nomad/da-bridge/src/mock.rs | 18 ++++++++++-------- pallets/bridges/nomad/home/src/mock.rs | 16 +++++++++------- .../bridges/nomad/updater-manager/src/mock.rs | 16 +++++++++------- pallets/system/benches/bench.rs | 16 +++++++++------- pallets/system/benchmarking/src/mock.rs | 16 +++++++++------- runtime/Cargo.toml | 2 +- 6 files changed, 47 insertions(+), 37 deletions(-) diff --git a/pallets/bridges/nomad/da-bridge/src/mock.rs b/pallets/bridges/nomad/da-bridge/src/mock.rs index 7eef3862a..2e2354e58 100644 --- a/pallets/bridges/nomad/da-bridge/src/mock.rs +++ b/pallets/bridges/nomad/da-bridge/src/mock.rs @@ -12,16 +12,17 @@ use crate::{self as da_bridge}; // type TestXt = sp_runtime::testing::TestXt; type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; -pub type Block = frame_system::mocking::MockBlock; -pub type BlockNumber = u32; +type Block = frame_system::mocking::MockDaBlock; +// pub type BlockNumber = u32; // TODO: add proper config once frame executive mocking has been demonstrated // Configure a mock runtime to test the pallet. frame_support::construct_runtime!( - pub enum Test where - Block = Block, - NodeBlock = Block, - UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Test + // where + // Block = Block, + // NodeBlock = Block, + // UncheckedExtrinsic = UncheckedExtrinsic, { System: frame_system::{Pallet, Call, Config, Storage, Event}, UpdaterManager: nomad_updater_manager::{Pallet, Call, Storage, Event}, @@ -43,12 +44,13 @@ impl system::Config for Test { type BaseCallFilter = frame_support::traits::Everything; type BlockHashCount = BlockHashCount; type BlockLength = (); - type BlockNumber = BlockNumber; + // type BlockNumber = BlockNumber; type BlockWeights = (); type DbWeight = (); type Hash = H256; type Hashing = BlakeTwo256; - type Header = Header; + type Block = Block; + // type Header = Header; type HeaderExtensionBuilder = da::HeaderExtensionBuilder; type Index = u64; type Lookup = IdentityLookup; diff --git a/pallets/bridges/nomad/home/src/mock.rs b/pallets/bridges/nomad/home/src/mock.rs index 135fccec3..7ac1e2971 100644 --- a/pallets/bridges/nomad/home/src/mock.rs +++ b/pallets/bridges/nomad/home/src/mock.rs @@ -11,14 +11,15 @@ use sp_runtime::{ use crate as home; type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; -type Block = frame_system::mocking::MockBlock; +type Block = frame_system::mocking::MockDaBlock; // Configure a mock runtime to test the pallet. frame_support::construct_runtime!( - pub enum Test where - Block = Block, - NodeBlock = Block, - UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Test + // where + // Block = Block, + // NodeBlock = Block, + // UncheckedExtrinsic = UncheckedExtrinsic, { System: frame_system, Home: home, @@ -39,12 +40,13 @@ impl system::Config for Test { type BaseCallFilter = frame_support::traits::Everything; type BlockHashCount = BlockHashCount; type BlockLength = (); - type BlockNumber = u32; + // type BlockNumber = u32; type BlockWeights = (); type DbWeight = (); type Hash = H256; type Hashing = BlakeTwo256; - type Header = Header; + type Block = Block; + // type Header = Header; type HeaderExtensionBuilder = da::HeaderExtensionBuilder; type Index = u64; type Lookup = IdentityLookup; diff --git a/pallets/bridges/nomad/updater-manager/src/mock.rs b/pallets/bridges/nomad/updater-manager/src/mock.rs index 707ac5628..239cac358 100644 --- a/pallets/bridges/nomad/updater-manager/src/mock.rs +++ b/pallets/bridges/nomad/updater-manager/src/mock.rs @@ -7,14 +7,15 @@ use sp_runtime::traits::{BlakeTwo256, IdentityLookup}; use crate as updater_manager; type UncheckedExtrinsic = MockUncheckedExtrinsic; -type Block = frame_system::mocking::MockBlock; +type Block = frame_system::mocking::MockDaBlock; // Configure a mock runtime to test the pallet. frame_support::construct_runtime!( - pub enum Test where - Block = Block, - NodeBlock = Block, - UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Test + // where + // Block = Block, + // NodeBlock = Block, + // UncheckedExtrinsic = UncheckedExtrinsic, { System: frame_system::{Pallet, Call, Config, Storage, Event}, UpdaterManager: updater_manager::{Pallet, Call, Storage, Event}, @@ -34,12 +35,13 @@ impl system::Config for Test { type BaseCallFilter = frame_support::traits::Everything; type BlockHashCount = BlockHashCount; type BlockLength = (); - type BlockNumber = u32; + // type BlockNumber = u32; type BlockWeights = (); type DbWeight = (); type Hash = H256; type Hashing = BlakeTwo256; - type Header = Header; + type Block = Block; + // type Header = Header; type HeaderExtensionBuilder = frame_system::header_builder::da::HeaderExtensionBuilder; type Index = u64; type Lookup = IdentityLookup; diff --git a/pallets/system/benches/bench.rs b/pallets/system/benches/bench.rs index 3aa7f80a8..6251d0883 100644 --- a/pallets/system/benches/bench.rs +++ b/pallets/system/benches/bench.rs @@ -53,13 +53,14 @@ mod module { } type UncheckedExtrinsic = MockUncheckedExtrinsic; -type Block = MockBlock; +type Block = mocking::MockDaBlock; frame_support::construct_runtime!( - pub enum Runtime where - Block = Block, - NodeBlock = Block, - UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Runtime + // where + // Block = Block, + // NodeBlock = Block, + // UncheckedExtrinsic = UncheckedExtrinsic, { System: frame_system::{Pallet, Call, Config, Storage, Event}, Module: module::{Pallet, Event}, @@ -83,12 +84,13 @@ impl frame_system::Config for Runtime { type BaseCallFilter = frame_support::traits::Everything; type BlockHashCount = ConstU64<250>; type BlockLength = BlockLength; - type BlockNumber = u64; + // type BlockNumber = u64; type BlockWeights = (); type DbWeight = (); type Hash = H256; type Hashing = BlakeTwo256; - type Header = DaHeader; + type Block = Block; + // type Header = DaHeader; type HeaderExtensionBuilder = HeaderExtensionBuilder; type Index = u64; type Lookup = IdentityLookup; diff --git a/pallets/system/benchmarking/src/mock.rs b/pallets/system/benchmarking/src/mock.rs index 1f4a8c260..590fc093e 100644 --- a/pallets/system/benchmarking/src/mock.rs +++ b/pallets/system/benchmarking/src/mock.rs @@ -33,13 +33,14 @@ type AccountIndex = u32; type BlockNumber = u32; type UncheckedExtrinsic = MockUncheckedExtrinsic; -type Block = frame_system::mocking::MockBlock; +type Block = mocking::MockDaBlock; frame_support::construct_runtime!( - pub enum Test where - Block = Block, - NodeBlock = Block, - UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Test + // where + // Block = Block, + // NodeBlock = Block, + // UncheckedExtrinsic = UncheckedExtrinsic, { System: frame_system, } @@ -51,12 +52,13 @@ impl frame_system::Config for Test { type BaseCallFilter = frame_support::traits::Everything; type BlockHashCount = (); type BlockLength = (); - type BlockNumber = BlockNumber; + // type BlockNumber = BlockNumber; type BlockWeights = (); type DbWeight = (); type Hash = H256; type Hashing = BlakeTwo256; - type Header = DaHeader; + type Block = Block; + // type Header = DaHeader; type HeaderExtensionBuilder = HeaderExtensionBuilder; type Index = AccountIndex; type Lookup = IdentityLookup; diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 8b7d80091..7c6c17c1f 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -118,7 +118,7 @@ with-tracing = ["frame-executive/with-tracing"] fast-runtime = [] header_commitment_corruption = [ "frame-system/header_commitment_corruption"] std = [ - "serde/std", + "serde", #"parity-util-mem/std", "frame-system-benchmarking?/std", "frame-election-provider-support/std", From 8326e832c4b6c7a2c8f6f3a06309dd93e818e05b Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Wed, 9 Aug 2023 09:23:09 +0530 Subject: [PATCH 07/58] wip: Added ExtendedBlock with frame & da headers --- pallets/bridges/nomad/da-bridge/src/lib.rs | 23 +++--- pallets/bridges/nomad/da-bridge/src/mock.rs | 15 ++-- pallets/bridges/nomad/home/src/mock.rs | 12 +--- .../bridges/nomad/updater-manager/src/mock.rs | 14 ++-- pallets/dactr/src/mock.rs | 4 +- pallets/mocked_runtime/src/lib.rs | 13 ++-- pallets/system/benches/bench.rs | 19 ++--- pallets/system/benchmarking/src/mock.rs | 14 ++-- pallets/system/src/lib.rs | 71 +++++-------------- pallets/system/src/mocking.rs | 2 +- runtime/src/lib.rs | 15 ++-- runtime/src/primitives.rs | 7 +- 12 files changed, 69 insertions(+), 140 deletions(-) diff --git a/pallets/bridges/nomad/da-bridge/src/lib.rs b/pallets/bridges/nomad/da-bridge/src/lib.rs index f3767756a..cd512bae8 100644 --- a/pallets/bridges/nomad/da-bridge/src/lib.rs +++ b/pallets/bridges/nomad/da-bridge/src/lib.rs @@ -25,7 +25,7 @@ pub mod pallet { use nomad_core::TypedMessage; use nomad_home::Pallet as Home; use sp_core::{bounded::BoundedVec, Get, H256}; - use sp_runtime::traits::Header as _; + use sp_runtime::{traits::Header as _, SaturatedConversion}; use sp_std::boxed::Box; use super::weights::WeightInfo; @@ -87,7 +87,7 @@ pub mod pallet { origin: OriginFor, #[pallet::compact] destination_domain: u32, recipient_address: H256, - header: Box>, + header: Box>, ) -> DispatchResultWithPostInfo { ensure_signed(origin)?; Self::ensure_valid_header(&header)?; @@ -99,19 +99,19 @@ pub mod pallet { where [u8; 32]: From, H256: From, - u32: From>, { /// Dispatch a data root message for a valid header. fn do_dispatch_data_root( destination_domain: u32, recipient_address: H256, - header: &HeaderFor, + header: &DaHeaderFor, ) -> DispatchResultWithPostInfo { - let block_number = *header.number(); + // TODO: avoid saturating values + let block_number: u32 = (*header.number()).saturated_into(); let data_root = header.extension().data_root(); let message: DABridgeMessages = DataRootMessage { - block_number: block_number.into(), + block_number, data_root, } .into(); @@ -131,7 +131,7 @@ pub mod pallet { Self::deposit_event(Event::::DataRootDispatched { destination_domain, recipient_address, - block_number, + block_number: block_number.into(), data_root, }); @@ -140,10 +140,13 @@ pub mod pallet { /// Ensure a given header's hash has been recorded in the block hash /// mapping. - fn ensure_valid_header(header: &HeaderFor) -> DispatchResultWithPostInfo { + fn ensure_valid_header(header: &DaHeaderFor) -> DispatchResultWithPostInfo { // Ensure header's block number is in the mapping - let number = header.number(); - let stored_hash = frame_system::Pallet::::block_hash(number); + // TODO: Even though we're sure that the block number is of type u32, we should probably avoid saturating values + // Temporary type conversions until we fix the interoperatibility across header block numbers + let number: u32 = (*header.number()).saturated_into(); + let stored_hash = + frame_system::Pallet::::block_hash::>(number.into()); // Ensure header's hash matches that in the block number to hash // mapping diff --git a/pallets/bridges/nomad/da-bridge/src/mock.rs b/pallets/bridges/nomad/da-bridge/src/mock.rs index 2e2354e58..3ac49ea53 100644 --- a/pallets/bridges/nomad/da-bridge/src/mock.rs +++ b/pallets/bridges/nomad/da-bridge/src/mock.rs @@ -13,18 +13,13 @@ use crate::{self as da_bridge}; // type TestXt = sp_runtime::testing::TestXt; type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; type Block = frame_system::mocking::MockDaBlock; -// pub type BlockNumber = u32; // TODO: add proper config once frame executive mocking has been demonstrated // Configure a mock runtime to test the pallet. frame_support::construct_runtime!( - pub enum Test - // where - // Block = Block, - // NodeBlock = Block, - // UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Test { - System: frame_system::{Pallet, Call, Config, Storage, Event}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, UpdaterManager: nomad_updater_manager::{Pallet, Call, Storage, Event}, Home: nomad_home::{Pallet, Call, Storage, Event}, DABridge: da_bridge::{Pallet, Call, Storage, Event}, @@ -42,19 +37,17 @@ impl system::Config for Test { type AccountData = (); type AccountId = AccountId32; type BaseCallFilter = frame_support::traits::Everything; + type Block = Block; type BlockHashCount = BlockHashCount; type BlockLength = (); - // type BlockNumber = BlockNumber; type BlockWeights = (); type DbWeight = (); type Hash = H256; type Hashing = BlakeTwo256; - type Block = Block; - // type Header = Header; type HeaderExtensionBuilder = da::HeaderExtensionBuilder; - type Index = u64; type Lookup = IdentityLookup; type MaxConsumers = ConstU32<16>; + type Nonce = u64; type OnKilledAccount = (); type OnNewAccount = (); type OnSetCode = (); diff --git a/pallets/bridges/nomad/home/src/mock.rs b/pallets/bridges/nomad/home/src/mock.rs index 7ac1e2971..f5883344c 100644 --- a/pallets/bridges/nomad/home/src/mock.rs +++ b/pallets/bridges/nomad/home/src/mock.rs @@ -15,11 +15,7 @@ type Block = frame_system::mocking::MockDaBlock; // Configure a mock runtime to test the pallet. frame_support::construct_runtime!( - pub enum Test - // where - // Block = Block, - // NodeBlock = Block, - // UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Test { System: frame_system, Home: home, @@ -38,19 +34,17 @@ impl system::Config for Test { type AccountData = (); type AccountId = AccountId32; type BaseCallFilter = frame_support::traits::Everything; + type Block = Block; type BlockHashCount = BlockHashCount; type BlockLength = (); - // type BlockNumber = u32; type BlockWeights = (); type DbWeight = (); type Hash = H256; type Hashing = BlakeTwo256; - type Block = Block; - // type Header = Header; type HeaderExtensionBuilder = da::HeaderExtensionBuilder; - type Index = u64; type Lookup = IdentityLookup; type MaxConsumers = ConstU32<16>; + type Nonce = u64; type OnKilledAccount = (); type OnNewAccount = (); type OnSetCode = (); diff --git a/pallets/bridges/nomad/updater-manager/src/mock.rs b/pallets/bridges/nomad/updater-manager/src/mock.rs index 239cac358..890ce24ec 100644 --- a/pallets/bridges/nomad/updater-manager/src/mock.rs +++ b/pallets/bridges/nomad/updater-manager/src/mock.rs @@ -11,13 +11,9 @@ type Block = frame_system::mocking::MockDaBlock; // Configure a mock runtime to test the pallet. frame_support::construct_runtime!( - pub enum Test - // where - // Block = Block, - // NodeBlock = Block, - // UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Test { - System: frame_system::{Pallet, Call, Config, Storage, Event}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, UpdaterManager: updater_manager::{Pallet, Call, Storage, Event}, } ); @@ -33,19 +29,17 @@ impl system::Config for Test { type AccountData = (); type AccountId = u64; type BaseCallFilter = frame_support::traits::Everything; + type Block = Block; type BlockHashCount = BlockHashCount; type BlockLength = (); - // type BlockNumber = u32; type BlockWeights = (); type DbWeight = (); type Hash = H256; type Hashing = BlakeTwo256; - type Block = Block; - // type Header = Header; type HeaderExtensionBuilder = frame_system::header_builder::da::HeaderExtensionBuilder; - type Index = u64; type Lookup = IdentityLookup; type MaxConsumers = ConstU32<16>; + type Nonce = u64; type OnKilledAccount = (); type OnNewAccount = (); type OnSetCode = (); diff --git a/pallets/dactr/src/mock.rs b/pallets/dactr/src/mock.rs index b600b7dd3..03bf0c6fb 100644 --- a/pallets/dactr/src/mock.rs +++ b/pallets/dactr/src/mock.rs @@ -56,16 +56,14 @@ impl frame_system::Config for Test { type Block = Block; type BlockHashCount = BlockHashCount; type BlockLength = (); - // type BlockNumber = BlockNumber; type BlockWeights = (); type DbWeight = (); type Hash = H256; type Hashing = BlakeTwo256; - // type Header = Header; type HeaderExtensionBuilder = HeaderExtensionBuilder; - type Index = u64; type Lookup = IdentityLookup; type MaxConsumers = ConstU32<16>; + type Nonce = u64; type OnKilledAccount = (); type OnNewAccount = (); type OnSetCode = (); diff --git a/pallets/mocked_runtime/src/lib.rs b/pallets/mocked_runtime/src/lib.rs index 2a7344fca..cb8109dc5 100644 --- a/pallets/mocked_runtime/src/lib.rs +++ b/pallets/mocked_runtime/src/lib.rs @@ -10,7 +10,6 @@ use frame_support::{ use frame_system::{CheckEra, CheckNonce, CheckWeight}; use pallet_transaction_payment::CurrencyAdapter; use sp_runtime::{ - generic::Block as SPBlock, traits::{BlakeTwo256, ConstU32, IdentityLookup, TrailingZeroInput}, }; use sp_std::marker::PhantomData; @@ -29,7 +28,7 @@ pub type Header = avail_core::header::Header; pub type Signature = sp_runtime::testing::sr25519::Signature; pub type TestXt = test_xt::TestXt; pub type UncheckedExtrinsic = TestXt; -pub type Block = SPBlock; +type Block = frame_system::mocking::MockDaBlock; pub type SignedExtra = ( CheckEra, CheckNonce, @@ -135,14 +134,13 @@ impl frame_system::Config for Runtime { type BaseCallFilter = frame_support::traits::Everything; type BlockHashCount = BlockHashCount; type BlockLength = (); - type BlockNumber = BlockNumber; + type Block = Block; type BlockWeights = BlockWeights; type DbWeight = (); type Hash = sp_core::H256; type Hashing = BlakeTwo256; - type Header = avail_core::header::Header; type HeaderExtensionBuilder = frame_system::header_builder::da::HeaderExtensionBuilder; - type Index = u64; + type Nonce = u64; type Lookup = IdentityLookup; type MaxConsumers = ConstU32<16>; type OnKilledAccount = (); @@ -195,10 +193,7 @@ impl da_control::Config for Runtime { impl custom::custom::Config for Runtime {} construct_runtime!( - pub enum Runtime where - Block = Block, - NodeBlock = Block, - UncheckedExtrinsic = UncheckedExtrinsic + pub enum Runtime { System: frame_system, Balances: pallet_balances, diff --git a/pallets/system/benches/bench.rs b/pallets/system/benches/bench.rs index 6251d0883..28dc87ae5 100644 --- a/pallets/system/benches/bench.rs +++ b/pallets/system/benches/bench.rs @@ -23,7 +23,7 @@ use frame_support::{ }; use frame_system::{ header_builder::da::HeaderExtensionBuilder, - mocking::{MockBlock, MockUncheckedExtrinsic}, + mocking::{MockDaBlock, MockUncheckedExtrinsic}, test_utils::TestRandomness, }; use sp_core::H256; @@ -37,7 +37,6 @@ mod module { use frame_support::pallet_prelude::*; #[pallet::pallet] - #[pallet::generate_store(pub(super) trait Store)] pub struct Pallet(_); #[pallet::config] @@ -53,16 +52,12 @@ mod module { } type UncheckedExtrinsic = MockUncheckedExtrinsic; -type Block = mocking::MockDaBlock; +type Block = MockDaBlock; frame_support::construct_runtime!( - pub enum Runtime - // where - // Block = Block, - // NodeBlock = Block, - // UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Runtime { - System: frame_system::{Pallet, Call, Config, Storage, Event}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, Module: module::{Pallet, Event}, } ); @@ -82,19 +77,17 @@ impl frame_system::Config for Runtime { type AccountData = (); type AccountId = u64; type BaseCallFilter = frame_support::traits::Everything; + type Block = Block; type BlockHashCount = ConstU64<250>; type BlockLength = BlockLength; - // type BlockNumber = u64; type BlockWeights = (); type DbWeight = (); type Hash = H256; type Hashing = BlakeTwo256; - type Block = Block; - // type Header = DaHeader; type HeaderExtensionBuilder = HeaderExtensionBuilder; - type Index = u64; type Lookup = IdentityLookup; type MaxConsumers = ConstU32<16>; + type Nonce = u64; type OnKilledAccount = (); type OnNewAccount = (); type OnSetCode = (); diff --git a/pallets/system/benchmarking/src/mock.rs b/pallets/system/benchmarking/src/mock.rs index 590fc093e..eb2873b1d 100644 --- a/pallets/system/benchmarking/src/mock.rs +++ b/pallets/system/benchmarking/src/mock.rs @@ -33,14 +33,10 @@ type AccountIndex = u32; type BlockNumber = u32; type UncheckedExtrinsic = MockUncheckedExtrinsic; -type Block = mocking::MockDaBlock; +type Block = frame_system::mocking::MockDaBlock; frame_support::construct_runtime!( - pub enum Test - // where - // Block = Block, - // NodeBlock = Block, - // UncheckedExtrinsic = UncheckedExtrinsic, + pub enum Test { System: frame_system, } @@ -50,19 +46,17 @@ impl frame_system::Config for Test { type AccountData = (); type AccountId = AccountId; type BaseCallFilter = frame_support::traits::Everything; + type Block = Block; type BlockHashCount = (); type BlockLength = (); - // type BlockNumber = BlockNumber; type BlockWeights = (); type DbWeight = (); type Hash = H256; type Hashing = BlakeTwo256; - type Block = Block; - // type Header = DaHeader; type HeaderExtensionBuilder = HeaderExtensionBuilder; - type Index = AccountIndex; type Lookup = IdentityLookup; type MaxConsumers = frame_support::traits::ConstU32<16>; + type Nonce = AccountIndex; type OnKilledAccount = (); type OnNewAccount = (); type OnSetCode = (); diff --git a/pallets/system/src/lib.rs b/pallets/system/src/lib.rs index 32e824332..dfc8a1921 100644 --- a/pallets/system/src/lib.rs +++ b/pallets/system/src/lib.rs @@ -66,8 +66,9 @@ #![feature(result_option_inspect)] use avail_core::{ - header::HeaderExtension, traits::ExtendedHeader, AppExtrinsic, OpaqueExtrinsic, - BLOCK_CHUNK_SIZE, + header::HeaderExtension, + traits::{ExtendedBlock, ExtendedHeader}, + AppExtrinsic, OpaqueExtrinsic, BLOCK_CHUNK_SIZE, }; use codec::{Decode, Encode, EncodeLike, FullCodec, MaxEncodedLen}; #[cfg(feature = "std")] @@ -86,7 +87,7 @@ use frame_support::{ Parameter, }; use kate::Seed; -use pallet_prelude::{BlockNumberFor, HeaderFor}; +use pallet_prelude::{BlockNumberFor, DaHeaderFor}; use scale_info::TypeInfo; #[cfg(feature = "std")] use serde::Serialize; @@ -99,9 +100,9 @@ use sp_runtime::traits::TrailingZeroInput; use sp_runtime::{ generic, traits::{ - self, AtLeast32Bit, BadOrigin, BlockNumberProvider, Bounded, CheckEqual, Dispatchable, - Hash, Lookup, LookupError, MaybeDisplay, Member, One, Saturating, SimpleBitOps, - StaticLookup, UniqueSaturatedInto, Zero, + AtLeast32Bit, BadOrigin, BlockNumberProvider, Bounded, CheckEqual, Dispatchable, Hash, + Lookup, LookupError, MaybeDisplay, Member, One, Saturating, SimpleBitOps, StaticLookup, + UniqueSaturatedInto, Zero, }, DispatchError, RuntimeDebug, }; @@ -223,43 +224,6 @@ pub mod pallet { use crate::{self as frame_system, pallet_prelude::*, *}; - // /// Contains default types suitable for various environments - // pub mod config_preludes { - // use super::DefaultConfig; - - // /// Provides a viable default config that can be used with - // /// [`derive_impl`](`frame_support::derive_impl`) to derive a testing pallet config - // /// based on this one. - // /// - // /// See `Test` in the `default-config` example pallet's `test.rs` for an example of - // /// a downstream user of this particular `TestDefaultConfig` - // pub struct TestDefaultConfig; - - // #[frame_support::register_default_impl(TestDefaultConfig)] - // impl DefaultConfig for TestDefaultConfig { - // type AccountData = (); - // type AccountId = u64; - // type BlockLength = (); - // type BlockWeights = (); - // type DbWeight = (); - // type BlockNumber = u32; - // type Header = (); - // type HeaderExtensionBuilder = (); - // type Hash = sp_core::hash::H256; - // type Hashing = sp_runtime::traits::BlakeTwo256; - // type Lookup = sp_runtime::traits::IdentityLookup; - // type MaxConsumers = frame_support::traits::ConstU32<16>; - // type Nonce = u32; - // type OnKilledAccount = (); - // type OnNewAccount = (); - // type Randomness = (); - // type SS58Prefix = (); - // type SystemWeightInfo = (); - // type UncheckedExtrinsic = (); - // type Version = (); - // } - // } - /// System configuration trait. Implemented by runtime. #[pallet::config(with_default)] #[pallet::disable_frame_system_supertrait_check] @@ -339,11 +303,6 @@ pub mod pallet { /// functional/efficient alternatives. type Lookup: StaticLookup; - // /// The block header. - // type Header: Parameter - // + traits::Header, Hash = Self::Hash> - // + ExtendedHeader, Self::Hash, generic::Digest, HeaderExtension>; - /// Header builder type HeaderExtensionBuilder: header_builder::HeaderExtensionBuilder; @@ -361,7 +320,7 @@ pub mod pallet { /// The Block type used by the runtime. This is used by `construct_runtime` to retrieve the /// extrinsics or other block specific data as needed. #[pallet::no_default] - type Block: Parameter + Member + traits::Block; + type Block: Parameter + Member + ExtendedBlock; /// Maximum number of block number to block hash mappings to keep (oldest pruned first). #[pallet::constant] @@ -1463,7 +1422,9 @@ impl Pallet { /// Remove temporary "environment" entries in storage, compute the storage root and return the /// resulting header for this block. - pub fn finalize() -> HeaderFor where <::Block as sp_runtime::traits::Block>::Header: avail_core::traits::ExtendedHeader<<<::Block as sp_runtime::traits::Block>::Header as sp_runtime::traits::Header>::Number, ::Hash, sp_runtime::Digest, avail_core::header::HeaderExtension>{ + pub fn finalize() -> DaHeaderFor +// <::Block as sp_runtime::traits::Block>::Header: avail_core::traits::ExtendedHeader<<<::Block as sp_runtime::traits::Block>::Header as sp_runtime::traits::Header>::Number, ::Hash, sp_runtime::Digest, avail_core::header::HeaderExtension> + { log::debug!( target: LOG_TARGET, "[{:?}] {} extrinsics, length: {} (normal {}%, op: {}%, mandatory {}%) / normal weight:\ @@ -1569,7 +1530,7 @@ impl Pallet { ); let extrinsics_root = extrinsics_data_root::(extrinsics); - let header = as ExtendedHeader< + let header = as ExtendedHeader< BlockNumberFor, T::Hash, generic::Digest, @@ -1953,15 +1914,21 @@ impl Lookup for ChainContext { /// Prelude to be used alongside pallet macro, for ease of use. pub mod pallet_prelude { + use avail_core::header::HeaderExtension; + pub use crate::{ensure_none, ensure_root, ensure_signed, ensure_signed_or_root}; /// Type alias for the `Origin` associated type of system config. pub type OriginFor = ::RuntimeOrigin; - /// Type alias for the `Header`. + /// Type alias for the substrate `Header`. pub type HeaderFor = <::Block as sp_runtime::traits::HeaderProvider>::HeaderT; + /// Type alias for the DA Header + pub type DaHeaderFor = + <::Block as avail_core::traits::ExtendedBlock>::Header; + /// Type alias for the `BlockNumber` associated type of system config. pub type BlockNumberFor = as sp_runtime::traits::Header>::Number; } diff --git a/pallets/system/src/mocking.rs b/pallets/system/src/mocking.rs index a1f546fa1..633ac02fa 100644 --- a/pallets/system/src/mocking.rs +++ b/pallets/system/src/mocking.rs @@ -131,7 +131,7 @@ pub type MockBlock = generic::Block< >; /// An implementation of `sp_runtime::traits::Block` with DA header to be used in tests -pub type MockDaBlock = generic::Block< +pub type MockDaBlock = avail_core::DaBlock< avail_core::header::Header, MockUncheckedExtrinsic, >; diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index b583e421c..e326731a9 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -226,11 +226,11 @@ impl frame_system::Config for Runtime { type AccountId = AccountId; /// The basic call filter to use in dispatchable. type BaseCallFilter = Everything; + /// The Block type used by the runtime + type Block = Block; /// Maximum number of block number to block hash mappings to keep (oldest pruned first). type BlockHashCount = BlockHashCount; type BlockLength = RuntimeBlockLength; - /// The index type for blocks. - type BlockNumber = BlockNumber; /// Block & extrinsics weights: base values and limits. type BlockWeights = constants::system::RuntimeBlockWeights; /// The weight of database operations that the runtime can invoke. @@ -239,15 +239,13 @@ impl frame_system::Config for Runtime { type Hash = Hash; /// The hashing algorithm used. type Hashing = BlakeTwo256; - /// The header type. - type Header = DaHeader; /// The header builder type. type HeaderExtensionBuilder = frame_system::header_builder::da::HeaderExtensionBuilder; - /// The index type for storing how many extrinsics an account has signed. - type Index = Index; /// The lookup mechanism to get account ID from whatever is passed in dispatchers. type Lookup = Indices; type MaxConsumers = constants::system::MaxConsumers; + /// The index type for storing how many extrinsics an account has signed. + type Nonce = Index; /// What to do if an account is fully reaped from the system. type OnKilledAccount = (); /// What to do if a new account is created. @@ -960,10 +958,7 @@ impl nomad_da_bridge::Config for Runtime { // TODO @miguel Aline this with previous order and ID to keep the compatibility. // Create the runtime by composing the FRAME pallets that were previously configured. construct_runtime!( - pub enum Runtime where - Block = Block, - NodeBlock = NodeBlock, - UncheckedExtrinsic = UncheckedExtrinsic + pub enum Runtime { System: frame_system = 0, Utility: pallet_utility = 1, diff --git a/runtime/src/primitives.rs b/runtime/src/primitives.rs index a59f44126..e55cc8206 100644 --- a/runtime/src/primitives.rs +++ b/runtime/src/primitives.rs @@ -33,8 +33,11 @@ pub type Address = sp_runtime::MultiAddress; pub type Header = DaHeader; /// Unchecked extrinsic type as expected by this runtime. pub type UncheckedExtrinsic = AppUncheckedExtrinsic; -/// Block type as expected by this runtime. -pub type Block = generic::Block; +/// DA Block type as expected by this runtime. +pub type Block = avail_core::DaBlock< + avail_core::header::Header, + UncheckedExtrinsic, +>; /// Block type for the node pub type NodeBlock = generic::Block; /// A Block signed with a Justification From f0568004c9de8fc702f3d4ba1a721ee8e6273d2f Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Wed, 9 Aug 2023 10:23:05 +0530 Subject: [PATCH 08/58] Updated weights to v2 --- pallets/mocked_runtime/src/custom.rs | 6 +++--- runtime/src/impls.rs | 20 ++++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/pallets/mocked_runtime/src/custom.rs b/pallets/mocked_runtime/src/custom.rs index 7e62234da..dc0f5e640 100644 --- a/pallets/mocked_runtime/src/custom.rs +++ b/pallets/mocked_runtime/src/custom.rs @@ -17,12 +17,12 @@ pub mod custom { // one with block number arg and one without fn on_initialize(n: T::BlockNumber) -> Weight { println!("on_initialize({})", n); - Weight::from_ref_time(175) + Weight::from_parts(175, 0) } fn on_idle(n: T::BlockNumber, remaining_weight: Weight) -> Weight { println!("on_idle{}, {})", n, remaining_weight); - Weight::from_ref_time(175) + Weight::from_parts(175, 0) } fn on_finalize(n: T::BlockNumber) { @@ -31,7 +31,7 @@ pub mod custom { fn on_runtime_upgrade() -> Weight { sp_io::storage::set(super::TEST_KEY, "module".as_bytes()); - Weight::from_ref_time(200) + Weight::from_parts(200, 0) } fn offchain_worker(n: T::BlockNumber) { diff --git a/runtime/src/impls.rs b/runtime/src/impls.rs index b6bd91c6d..d949af565 100644 --- a/runtime/src/impls.rs +++ b/runtime/src/impls.rs @@ -193,8 +193,8 @@ mod multiplier_tests { let fm = Multiplier::saturating_from_rational(1, 2); let test_set = vec![ (Weight::zero(), fm), - (Weight::from_ref_time(100), fm), - (Weight::from_ref_time(1000), fm), + (Weight::from_parts(100, 0), fm), + (Weight::from_parts(1000, 0), fm), (target(), fm), (max_normal() / 2, fm), (max_normal(), fm), @@ -298,7 +298,7 @@ mod multiplier_tests { let block_weight = BlockWeights::get() .get(DispatchClass::Normal) .max_total - .unwrap() - Weight::from_ref_time(100); + .unwrap() - Weight::from_parts(100, 0); // Default substrate weight. let tx_weight = frame_support::weights::constants::ExtrinsicBaseWeight::get(); @@ -422,23 +422,23 @@ mod multiplier_tests { #[test] fn weight_to_fee_should_not_overflow_on_large_weights() { - let kb = Weight::from_ref_time(1024); + let kb = Weight::from_parts(1024, 0); let mb = 1024u64 * kb; let max_fm = Multiplier::saturating_from_integer(i128::MAX); // check that for all values it can compute, correctly. vec![ Weight::zero(), - Weight::from_ref_time(1), - Weight::from_ref_time(10), - Weight::from_ref_time(1000), + Weight::from_parts(1, 0), + Weight::from_parts(10, 0), + Weight::from_parts(1000, 0), kb, 10u64 * kb, 100u64 * kb, mb, 10u64 * mb, - Weight::from_ref_time(2147483647), - Weight::from_ref_time(4294967295), + Weight::from_parts(2147483647, 0), + Weight::from_parts(4294967295, 0), BlockWeights::get().max_block / 2, BlockWeights::get().max_block, Weight::MAX / 2, @@ -455,7 +455,7 @@ mod multiplier_tests { // Some values that are all above the target and will cause an increase. let t = target(); - vec![t + Weight::from_ref_time(100), t * 2, t * 4] + vec![t + Weight::from_parts(100, 0), t * 2, t * 4] .into_iter() .for_each(|i| { run_with_system_weight(i, || { From f6b286d6b1d6db470d6a5510dc176516f3a7a97e Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Wed, 9 Aug 2023 10:23:56 +0530 Subject: [PATCH 09/58] Updated da control mocks to fix tests --- pallets/dactr/src/mock.rs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/pallets/dactr/src/mock.rs b/pallets/dactr/src/mock.rs index 03bf0c6fb..2f50627bc 100644 --- a/pallets/dactr/src/mock.rs +++ b/pallets/dactr/src/mock.rs @@ -2,7 +2,6 @@ use avail_core::{ currency::{Balance, AVL}, - header::Header, AppId, }; use frame_support::{ @@ -15,7 +14,10 @@ use frame_system::{ }; use pallet_transaction_payment::CurrencyAdapter; use sp_core::H256; -use sp_runtime::traits::{BlakeTwo256, ConstU32, IdentityLookup}; +use sp_runtime::{ + traits::{BlakeTwo256, ConstU32, IdentityLookup}, + BuildStorage, +}; use crate::{self as da_control, *}; @@ -29,10 +31,6 @@ type BlockNumber = u32; frame_support::construct_runtime!( pub enum Test - // where - // Block = Block, - // NodeBlock = Block, - // UncheckedExtrinsic = UncheckedExtrinsic, { System: frame_system, Utility: pallet_utility, @@ -45,8 +43,8 @@ frame_support::construct_runtime!( parameter_types! { pub const BlockHashCount: BlockNumber = 250; pub BlockWeights: frame_system::limits::BlockWeights = - frame_system::limits::BlockWeights::simple_max(Weight::from_ref_time(1_024)); - pub static ExistentialDeposit: u64 = 0; + frame_system::limits::BlockWeights::simple_max(Weight::from_parts(1_024, 0)); + pub static ExistentialDeposit: u64 = 1; } impl frame_system::Config for Test { @@ -101,10 +99,14 @@ impl pallet_balances::Config for Test { type Balance = Balance; type DustRemoval = (); type ExistentialDeposit = ExistentialDeposit; + type FreezeIdentifier = [u8; 8]; + type MaxFreezes = ConstU32<2>; + type MaxHolds = ConstU32<2>; type MaxLocks = (); type MaxReserves = MaxReserves; type ReserveIdentifier = [u8; 8]; type RuntimeEvent = RuntimeEvent; + type RuntimeHoldReason = [u8; 8]; type WeightInfo = (); } From 1019bdf68ac1ba86140181419f30a06dc1c5cd27 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Wed, 9 Aug 2023 10:25:04 +0530 Subject: [PATCH 10/58] Updated nomad-updater-manager mocks to fix tests --- pallets/bridges/nomad/updater-manager/src/mock.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pallets/bridges/nomad/updater-manager/src/mock.rs b/pallets/bridges/nomad/updater-manager/src/mock.rs index 890ce24ec..0e993a14e 100644 --- a/pallets/bridges/nomad/updater-manager/src/mock.rs +++ b/pallets/bridges/nomad/updater-manager/src/mock.rs @@ -1,8 +1,10 @@ -use avail_core::header::Header; use frame_support::{parameter_types, weights::Weight}; use frame_system::{self as system, mocking::MockUncheckedExtrinsic, test_utils::TestRandomness}; use sp_core::{ConstU32, H256}; -use sp_runtime::traits::{BlakeTwo256, IdentityLookup}; +use sp_runtime::{ + traits::{BlakeTwo256, IdentityLookup}, + BuildStorage, +}; use crate as updater_manager; @@ -21,7 +23,7 @@ frame_support::construct_runtime!( parameter_types! { pub const BlockHashCount: u32 = 250; pub BlockWeights: frame_system::limits::BlockWeights = - frame_system::limits::BlockWeights::simple_max(Weight::from_ref_time(1_024)); + frame_system::limits::BlockWeights::simple_max(Weight::from_parts(1_024, 0)); pub static ExistentialDeposit: u64 = 0; } @@ -61,8 +63,9 @@ impl updater_manager::Config for Test { // Build genesis storage according to the mock runtime. pub fn new_test_ext() -> sp_io::TestExternalities { - let t = system::GenesisConfig::default() - .build_storage::() + let t = RuntimeGenesisConfig::default() + .system + .build_storage() .unwrap() .into(); let mut ext = sp_io::TestExternalities::new(t); From 22684856a86bd7f68633c1d118db5a573fe856cd Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Wed, 9 Aug 2023 10:28:43 +0530 Subject: [PATCH 11/58] Updated nomad-home mocks --- pallets/bridges/nomad/home/src/mock.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pallets/bridges/nomad/home/src/mock.rs b/pallets/bridges/nomad/home/src/mock.rs index f5883344c..fd7df6e58 100644 --- a/pallets/bridges/nomad/home/src/mock.rs +++ b/pallets/bridges/nomad/home/src/mock.rs @@ -1,11 +1,10 @@ -use avail_core::header::Header; use frame_support::{parameter_types, traits::ConstU32, weights::Weight}; use frame_system::{self as system, header_builder::da, test_utils::TestRandomness}; use nomad_base::NomadBase; use sp_core::{H160, H256}; use sp_runtime::{ traits::{BlakeTwo256, IdentityLookup}, - AccountId32, + AccountId32, BuildStorage, }; use crate as home; @@ -26,7 +25,7 @@ frame_support::construct_runtime!( parameter_types! { pub const BlockHashCount: u32 = 250; pub BlockWeights: frame_system::limits::BlockWeights = - frame_system::limits::BlockWeights::simple_max(Weight::from_ref_time(1_024)); + frame_system::limits::BlockWeights::simple_max(Weight::from_parts(1_024, 0)); pub static ExistentialDeposit: u64 = 0; } @@ -99,9 +98,11 @@ impl ExtBuilder { } pub(crate) fn build(self) -> sp_io::TestExternalities { - let mut t = frame_system::GenesisConfig::default() - .build_storage::() - .expect("Frame system builds valid default genesis config"); + let mut t = RuntimeGenesisConfig::default() + .system + .build_storage() + .unwrap() + .into(); home::GenesisConfig:: { updater: self.updater, From 2233d60b15550fc5245835243d9c53dfe4b0ff3d Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Wed, 9 Aug 2023 10:41:30 +0530 Subject: [PATCH 12/58] Fixed system benchmarkings --- pallets/system/benches/bench.rs | 17 +++++++---------- pallets/system/benchmarking/src/mock.rs | 15 +++++++++------ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/pallets/system/benches/bench.rs b/pallets/system/benches/bench.rs index 28dc87ae5..000030045 100644 --- a/pallets/system/benches/bench.rs +++ b/pallets/system/benches/bench.rs @@ -15,12 +15,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -use avail_core::header::Header as DaHeader; use criterion::{black_box, criterion_group, criterion_main, Criterion}; -use frame_support::{ - traits::{ConstU32, ConstU64}, - weights::Weight, -}; +use frame_support::{traits::ConstU32, weights::Weight}; use frame_system::{ header_builder::da::HeaderExtensionBuilder, mocking::{MockDaBlock, MockUncheckedExtrinsic}, @@ -29,7 +25,7 @@ use frame_system::{ use sp_core::H256; use sp_runtime::{ traits::{BlakeTwo256, IdentityLookup}, - Perbill, + BuildStorage, Perbill, }; #[frame_support::pallet] @@ -66,7 +62,7 @@ frame_support::parameter_types! { pub const BlockHashCount: u64 = 250; pub BlockWeights: frame_system::limits::BlockWeights = frame_system::limits::BlockWeights::with_sensible_defaults( - Weight::from_ref_time(4 * 1024 * 1024), Perbill::from_percent(75), + Weight::from_parts(4 * 1024 * 1024, 0), Perbill::from_percent(75), ); pub BlockLength: frame_system::limits::BlockLength = frame_system::limits::BlockLength::max_with_normal_ratio( @@ -78,7 +74,7 @@ impl frame_system::Config for Runtime { type AccountId = u64; type BaseCallFilter = frame_support::traits::Everything; type Block = Block; - type BlockHashCount = ConstU64<250>; + type BlockHashCount = ConstU32<250>; type BlockLength = BlockLength; type BlockWeights = (); type DbWeight = (); @@ -108,8 +104,9 @@ impl module::Config for Runtime { } fn new_test_ext() -> sp_io::TestExternalities { - frame_system::GenesisConfig::default() - .build_storage::() + RuntimeGenesisConfig::default() + .system + .build_storage() .unwrap() .into() } diff --git a/pallets/system/benchmarking/src/mock.rs b/pallets/system/benchmarking/src/mock.rs index eb2873b1d..660932aff 100644 --- a/pallets/system/benchmarking/src/mock.rs +++ b/pallets/system/benchmarking/src/mock.rs @@ -19,18 +19,19 @@ #![cfg(test)] -use avail_core::header::Header as DaHeader; use codec::Encode; use frame_system::{ header_builder::da::HeaderExtensionBuilder, mocking::MockUncheckedExtrinsic, test_utils::TestRandomness, }; use sp_core::H256; -use sp_runtime::traits::{BlakeTwo256, IdentityLookup}; +use sp_runtime::{ + traits::{BlakeTwo256, IdentityLookup}, + BuildStorage, +}; type AccountId = u64; type AccountIndex = u32; -type BlockNumber = u32; type UncheckedExtrinsic = MockUncheckedExtrinsic; type Block = frame_system::mocking::MockDaBlock; @@ -87,9 +88,11 @@ impl sp_core::traits::ReadRuntimeVersion for MockedReadRuntimeVersion { } pub fn new_test_ext() -> sp_io::TestExternalities { - let t = frame_system::GenesisConfig::default() - .build_storage::() - .unwrap(); + let t = RuntimeGenesisConfig::default() + .system + .build_storage() + .unwrap() + .into(); let version = sp_version::RuntimeVersion { spec_name: "".into(), From 829b666114c9979094f6389de451a275397fd432 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Wed, 9 Aug 2023 21:20:36 +0530 Subject: [PATCH 13/58] fmt & refactor --- pallets/bridges/nomad/da-bridge/src/mock.rs | 3 +-- pallets/bridges/nomad/da-bridge/src/tests.rs | 24 ++++++++++---------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/pallets/bridges/nomad/da-bridge/src/mock.rs b/pallets/bridges/nomad/da-bridge/src/mock.rs index 3ac49ea53..23be80646 100644 --- a/pallets/bridges/nomad/da-bridge/src/mock.rs +++ b/pallets/bridges/nomad/da-bridge/src/mock.rs @@ -1,5 +1,4 @@ -use avail_core::header::Header; -use frame_support::{traits::GenesisBuild, weights::Weight}; +use frame_support::weights::Weight; use frame_system::{self as system, header_builder::da, test_utils::TestRandomness}; use nomad_base::NomadBase; use sp_core::{H160, H256}; diff --git a/pallets/bridges/nomad/da-bridge/src/tests.rs b/pallets/bridges/nomad/da-bridge/src/tests.rs index 5fcb54c3b..15e554bc0 100644 --- a/pallets/bridges/nomad/da-bridge/src/tests.rs +++ b/pallets/bridges/nomad/da-bridge/src/tests.rs @@ -1,6 +1,5 @@ use avail_core::header::{Header, HeaderExtension}; use frame_support::assert_ok; -use frame_system::Config; use hex_literal::hex; use nomad_base::testing::*; use nomad_merkle::Merkle; @@ -25,17 +24,18 @@ fn it_accepts_valid_extrinsic_root() { let extension = HeaderExtension::default(); // Create block header for block 10 - let header = Header::<::BlockNumber, BlakeTwo256> { - parent_hash: [1u8; 32].into(), - number: 10 as u32, - state_root: [2u8; 32].into(), - extrinsics_root: hex!( - "03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c111314" - ) - .into(), - digest: Digest { logs: vec![] }, - extension, - }; + let header = + Header::<::Header::BlockNumber, BlakeTwo256> { + parent_hash: [1u8; 32].into(), + number: 10 as u32, + state_root: [2u8; 32].into(), + extrinsics_root: hex!( + "03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c111314" + ) + .into(), + digest: Digest { logs: vec![] }, + extension, + }; // Insert 10th block's hash into block number --> hash mapping so // submitting 10th block's header is accepted by pallet From ebca3a7c51af8e6d3b10b505cf7a4377b114c0c7 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Wed, 9 Aug 2023 21:21:53 +0530 Subject: [PATCH 14/58] Added frame-executive as local dep to patch --- Cargo.lock | 20 +- Cargo.toml | 5 +- pallets/executive/Cargo.toml | 53 ++ pallets/executive/README.md | 73 ++ pallets/executive/src/lib.rs | 1737 ++++++++++++++++++++++++++++++++++ 5 files changed, 1878 insertions(+), 10 deletions(-) create mode 100644 pallets/executive/Cargo.toml create mode 100644 pallets/executive/README.md create mode 100644 pallets/executive/src/lib.rs diff --git a/Cargo.lock b/Cargo.lock index 50c3a7249..ac890b2a8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -619,7 +619,7 @@ dependencies = [ [[package]] name = "avail-core" version = "0.5.0" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#b77ac42456d7e09b81d29c065ce8a20872ef596f" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#2babbb8ee37d64fd7a34e96ad061d72da68c01af" dependencies = [ "binary-merkle-tree", "derive_more", @@ -3020,18 +3020,22 @@ dependencies = [ [[package]] name = "frame-executive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ + "array-bytes", "frame-support", "frame-system", "frame-try-runtime", + "pallet-balances", + "pallet-transaction-payment", "parity-scale-codec", "scale-info", "sp-core", + "sp-inherents", "sp-io", "sp-runtime", "sp-std", "sp-tracing", + "sp-version", ] [[package]] @@ -4283,7 +4287,7 @@ dependencies = [ [[package]] name = "kate" version = "0.8.0" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#b77ac42456d7e09b81d29c065ce8a20872ef596f" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#2babbb8ee37d64fd7a34e96ad061d72da68c01af" dependencies = [ "avail-core", "derive_more", @@ -4311,7 +4315,7 @@ dependencies = [ [[package]] name = "kate-recovery" version = "0.9.0" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#b77ac42456d7e09b81d29c065ce8a20872ef596f" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#2babbb8ee37d64fd7a34e96ad061d72da68c01af" dependencies = [ "avail-core", "derive_more", @@ -5510,7 +5514,7 @@ dependencies = [ [[package]] name = "nomad-base" version = "0.1.4" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#b77ac42456d7e09b81d29c065ce8a20872ef596f" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#2babbb8ee37d64fd7a34e96ad061d72da68c01af" dependencies = [ "ethers-signers", "nomad-core", @@ -5526,7 +5530,7 @@ dependencies = [ [[package]] name = "nomad-core" version = "0.1.4" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#b77ac42456d7e09b81d29c065ce8a20872ef596f" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#2babbb8ee37d64fd7a34e96ad061d72da68c01af" dependencies = [ "ethers-core", "ethers-signers", @@ -5589,7 +5593,7 @@ dependencies = [ [[package]] name = "nomad-merkle" version = "0.1.2" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#b77ac42456d7e09b81d29c065ce8a20872ef596f" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#2babbb8ee37d64fd7a34e96ad061d72da68c01af" dependencies = [ "avail-core", "frame-support", @@ -5607,7 +5611,7 @@ dependencies = [ [[package]] name = "nomad-signature" version = "0.1.2" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#b77ac42456d7e09b81d29c065ce8a20872ef596f" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#2babbb8ee37d64fd7a34e96ad061d72da68c01af" dependencies = [ "elliptic-curve 0.12.3", "ethers-core", diff --git a/Cargo.toml b/Cargo.toml index c59115b93..77d7317f6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,6 @@ [workspace] members = [ + "pallets/executive", "pallets/system", "pallets/dactr", "pallets/bridges/nomad/updater-manager", @@ -11,12 +12,14 @@ members = [ [patch."https://github.com/paritytech/substrate.git"] +frame-executive = { path = "pallets/executive" } frame-system = { path = "pallets/system" } frame-system-benchmarking = { path = "pallets/system/benchmarking" } frame-system-rpc-runtime-api = { path = "pallets/system/rpc/runtime-api" } [patch.crates-io] # Customized Local pallets +frame-executive = { path = "pallets/executive" } frame-system = { path = "pallets/system" } frame-system-rpc-runtime-api = { path = "pallets/system/rpc/runtime-api" } frame-system-benchmarking = { path = "pallets/system/benchmarking" } @@ -94,7 +97,6 @@ sp-weights = { git = "https://github.com/paritytech/substrate.git", branch = "po sc-sysinfo = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } ## Frame -frame-executive = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } frame-support = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } frame-try-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } pallet-balances = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } @@ -175,7 +177,6 @@ substrate-build-script-utils = { git = "https://github.com/paritytech/substrate. # This list is ordered alphabetically. [profile.dev.package] blake2 = { opt-level = 3 } -blake2-rfc = { opt-level = 3 } blake2b_simd = { opt-level = 3 } chacha20poly1305 = { opt-level = 3 } cranelift-codegen = { opt-level = 3 } diff --git a/pallets/executive/Cargo.toml b/pallets/executive/Cargo.toml new file mode 100644 index 000000000..ec5ef29a5 --- /dev/null +++ b/pallets/executive/Cargo.toml @@ -0,0 +1,53 @@ +[package] +name = "frame-executive" +version = "4.0.0-dev" +authors = ["Parity Technologies "] +edition = "2021" +license = "Apache-2.0" +homepage = "https://substrate.io" +repository = "https://github.com/paritytech/substrate/" +description = "FRAME executives engine" +readme = "README.md" + +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[dependencies] +codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = [ + "derive", +] } +scale-info = { version = "2.5.0", default-features = false, features = ["derive"] } +frame-support = { version = "4.0.0-dev", default-features = false } +frame-system = { version = "4.0.0-dev", default-features = false } +frame-try-runtime = { version = "0.10.0-dev", default-features = false, optional = true } +sp-core = { version = "21.0.0", default-features = false } +sp-io = { version = "23.0.0", default-features = false } +sp-runtime = { version = "24.0.0", default-features = false } +sp-std = { version = "8.0.0", default-features = false } +sp-tracing = { version = "10.0.0", default-features = false } + +[dev-dependencies] +array-bytes = "6.1" +pallet-balances = { version = "4.0.0-dev" } +pallet-transaction-payment = { version = "4.0.0-dev" } +sp-core = { version = "21.0.0" } +sp-inherents = { version = "4.0.0-dev" } +sp-io = { version = "23.0.0" } +sp-version = { version = "22.0.0" } + +[features] +default = ["std"] +with-tracing = ["sp-tracing/with-tracing"] +std = [ + "codec/std", + "frame-support/std", + "frame-system/std", + "frame-try-runtime/std", + "scale-info/std", + "sp-core/std", + "sp-io/std", + "sp-runtime/std", + "sp-std/std", + "sp-tracing/std", +] +try-runtime = ["frame-support/try-runtime", "frame-try-runtime/try-runtime", "sp-runtime/try-runtime"] diff --git a/pallets/executive/README.md b/pallets/executive/README.md new file mode 100644 index 000000000..c14c3912b --- /dev/null +++ b/pallets/executive/README.md @@ -0,0 +1,73 @@ +# Executive Module + +The Executive module acts as the orchestration layer for the runtime. It dispatches incoming +extrinsic calls to the respective modules in the runtime. + +## Overview + +The executive module is not a typical pallet providing functionality around a specific feature. +It is a cross-cutting framework component for the FRAME. It works in conjunction with the +[FRAME System module](https://docs.rs/frame-system/latest/frame_system/) to perform these cross-cutting functions. + +The Executive module provides functions to: + +- Check transaction validity. +- Initialize a block. +- Apply extrinsics. +- Execute a block. +- Finalize a block. +- Start an off-chain worker. + +### Implementations + +The Executive module provides the following implementations: + +- `Executive`: Type that can be used to make the FRAME available from the runtime. + +## Usage + +The default Substrate node template declares the [`Executive`](https://docs.rs/frame-executive/latest/frame_executive/struct.Executive.html) type in its library. + +### Example + +`Executive` type declaration from the node template. + +```rust +# +/// Executive: handles dispatch to the various modules. +pub type Executive = executive::Executive< + Runtime, + Block, + Context, + Runtime, + AllPallets, +>; +``` + +### Custom `OnRuntimeUpgrade` logic + +You can add custom logic that should be called in your runtime on a runtime upgrade. This is +done by setting an optional generic parameter. The custom logic will be called before +the on runtime upgrade logic of all modules is called. + +```rust +# +struct CustomOnRuntimeUpgrade; +impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade { + fn on_runtime_upgrade() -> frame_support::weights::Weight { + // Do whatever you want. + frame_support::weights::Weight::zero() + } +} + +pub type Executive = executive::Executive< + Runtime, + Block, + Context, + Runtime, + AllPallets, + CustomOnRuntimeUpgrade, +>; +``` + +License: Apache-2.0 diff --git a/pallets/executive/src/lib.rs b/pallets/executive/src/lib.rs new file mode 100644 index 000000000..30aa276e1 --- /dev/null +++ b/pallets/executive/src/lib.rs @@ -0,0 +1,1737 @@ +// This file is part of Substrate. + +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! # Executive Module +//! +//! The Executive module acts as the orchestration layer for the runtime. It dispatches incoming +//! extrinsic calls to the respective modules in the runtime. +//! +//! ## Overview +//! +//! The executive module is not a typical pallet providing functionality around a specific feature. +//! It is a cross-cutting framework component for the FRAME. It works in conjunction with the +//! [FRAME System module](../frame_system/index.html) to perform these cross-cutting functions. +//! +//! The Executive module provides functions to: +//! +//! - Check transaction validity. +//! - Initialize a block. +//! - Apply extrinsics. +//! - Execute a block. +//! - Finalize a block. +//! - Start an off-chain worker. +//! +//! ### Implementations +//! +//! The Executive module provides the following implementations: +//! +//! - `ExecuteBlock`: Trait that can be used to execute a block. +//! - `Executive`: Type that can be used to make the FRAME available from the runtime. +//! +//! ## Usage +//! +//! The default Substrate node template declares the [`Executive`](./struct.Executive.html) type in +//! its library. +//! +//! ### Example +//! +//! `Executive` type declaration from the node template. +//! +//! ``` +//! # use sp_runtime::generic; +//! # use frame_executive as executive; +//! # pub struct UncheckedExtrinsic {}; +//! # pub struct Header {}; +//! # type Context = frame_system::ChainContext; +//! # pub type Block = generic::Block; +//! # pub type Balances = u64; +//! # pub type AllPalletsWithSystem = u64; +//! # pub enum Runtime {}; +//! # use sp_runtime::transaction_validity::{ +//! # TransactionValidity, UnknownTransaction, TransactionSource, +//! # }; +//! # use sp_runtime::traits::ValidateUnsigned; +//! # impl ValidateUnsigned for Runtime { +//! # type Call = (); +//! # +//! # fn validate_unsigned(_source: TransactionSource, _call: &Self::Call) -> TransactionValidity { +//! # UnknownTransaction::NoUnsignedValidator.into() +//! # } +//! # } +//! /// Executive: handles dispatch to the various modules. +//! pub type Executive = executive::Executive; +//! ``` +//! +//! ### Custom `OnRuntimeUpgrade` logic +//! +//! You can add custom logic that should be called in your runtime on a runtime upgrade. This is +//! done by setting an optional generic parameter. The custom logic will be called before +//! the on runtime upgrade logic of all modules is called. +//! +//! ``` +//! # use sp_runtime::generic; +//! # use frame_executive as executive; +//! # pub struct UncheckedExtrinsic {}; +//! # pub struct Header {}; +//! # type Context = frame_system::ChainContext; +//! # pub type Block = generic::Block; +//! # pub type Balances = u64; +//! # pub type AllPalletsWithSystem = u64; +//! # pub enum Runtime {}; +//! # use sp_runtime::transaction_validity::{ +//! # TransactionValidity, UnknownTransaction, TransactionSource, +//! # }; +//! # use sp_runtime::traits::ValidateUnsigned; +//! # impl ValidateUnsigned for Runtime { +//! # type Call = (); +//! # +//! # fn validate_unsigned(_source: TransactionSource, _call: &Self::Call) -> TransactionValidity { +//! # UnknownTransaction::NoUnsignedValidator.into() +//! # } +//! # } +//! struct CustomOnRuntimeUpgrade; +//! impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade { +//! fn on_runtime_upgrade() -> frame_support::weights::Weight { +//! // Do whatever you want. +//! frame_support::weights::Weight::zero() +//! } +//! } +//! +//! pub type Executive = executive::Executive; +//! ``` + +#![cfg_attr(not(feature = "std"), no_std)] + +use codec::{Codec, Encode}; +use frame_support::{ + dispatch::{DispatchClass, DispatchInfo, GetDispatchInfo, PostDispatchInfo}, + pallet_prelude::InvalidTransaction, + traits::{ + EnsureInherentsAreFirst, ExecuteBlock, OffchainWorker, OnFinalize, OnIdle, OnInitialize, + OnRuntimeUpgrade, + }, + weights::Weight, +}; +use frame_system::pallet_prelude::BlockNumberFor; +#[cfg(feature = "try-runtime")] +use sp_runtime::TryRuntimeError; +use sp_runtime::{ + generic::Digest, + traits::{ + self, Applyable, CheckEqual, Checkable, Dispatchable, Header, NumberFor, One, + ValidateUnsigned, Zero, + }, + transaction_validity::{TransactionSource, TransactionValidity}, + ApplyExtrinsicResult, +}; +use sp_std::{marker::PhantomData, prelude::*}; + +#[allow(dead_code)] +const LOG_TARGET: &str = "runtime::executive"; + +pub type CheckedOf = >::Checked; +pub type CallOf = as Applyable>::Call; +pub type OriginOf = as Dispatchable>::RuntimeOrigin; + +/// Main entry point for certain runtime actions as e.g. `execute_block`. +/// +/// Generic parameters: +/// - `System`: Something that implements `frame_system::Config` +/// - `Block`: The block type of the runtime +/// - `Context`: The context that is used when checking an extrinsic. +/// - `UnsignedValidator`: The unsigned transaction validator of the runtime. +/// - `AllPalletsWithSystem`: Tuple that contains all pallets including frame system pallet. Will be +/// used to call hooks e.g. `on_initialize`. +/// - `OnRuntimeUpgrade`: Custom logic that should be called after a runtime upgrade. Modules are +/// already called by `AllPalletsWithSystem`. It will be called before all modules will be called. +pub struct Executive< + System, + Block, + Context, + UnsignedValidator, + AllPalletsWithSystem, + OnRuntimeUpgrade = (), +>( + PhantomData<( + System, + Block, + Context, + UnsignedValidator, + AllPalletsWithSystem, + OnRuntimeUpgrade, + )>, +); + +impl< + System: frame_system::Config + EnsureInherentsAreFirst, + Block: traits::Block< + Header = frame_system::pallet_prelude::HeaderFor, + Hash = System::Hash, + >, + Context: Default, + UnsignedValidator, + AllPalletsWithSystem: OnRuntimeUpgrade + + OnInitialize> + + OnIdle> + + OnFinalize> + + OffchainWorker>, + COnRuntimeUpgrade: OnRuntimeUpgrade, + > ExecuteBlock + for Executive +where + Block::Extrinsic: Checkable + Codec, + CheckedOf: Applyable + GetDispatchInfo, + CallOf: + Dispatchable, + OriginOf: From>, + UnsignedValidator: ValidateUnsigned>, +{ + fn execute_block(block: Block) { + Executive::< + System, + Block, + Context, + UnsignedValidator, + AllPalletsWithSystem, + COnRuntimeUpgrade, + >::execute_block(block); + } +} + +#[cfg(feature = "try-runtime")] +impl< + System: frame_system::Config + EnsureInherentsAreFirst, + Block: traits::Block< + Header = frame_system::pallet_prelude::HeaderFor, + Hash = System::Hash, + >, + Context: Default, + UnsignedValidator, + AllPalletsWithSystem: OnRuntimeUpgrade + + OnInitialize> + + OnIdle> + + OnFinalize> + + OffchainWorker> + + frame_support::traits::TryState>, + COnRuntimeUpgrade: OnRuntimeUpgrade, + > Executive +where + Block::Extrinsic: Checkable + Codec, + CheckedOf: Applyable + GetDispatchInfo, + CallOf: + Dispatchable, + OriginOf: From>, + UnsignedValidator: ValidateUnsigned>, +{ + /// Execute given block, but don't as strict is the normal block execution. + /// + /// Some checks can be disabled via: + /// + /// - `state_root_check` + /// - `signature_check` + /// + /// Should only be used for testing ONLY. + pub fn try_execute_block( + block: Block, + state_root_check: bool, + signature_check: bool, + select: frame_try_runtime::TryStateSelect, + ) -> Result { + frame_support::log::info!( + target: LOG_TARGET, + "try-runtime: executing block #{:?} / state root check: {:?} / signature check: {:?} / try-state-select: {:?}", + block.header().number(), + state_root_check, + signature_check, + select, + ); + + Self::initialize_block(block.header()); + Self::initial_checks(&block); + + let (header, extrinsics) = block.deconstruct(); + + let try_apply_extrinsic = |uxt: Block::Extrinsic| -> ApplyExtrinsicResult { + sp_io::init_tracing(); + let encoded = uxt.encode(); + let encoded_len = encoded.len(); + + // skip signature verification. + let xt = if signature_check { + uxt.check(&Default::default()) + } else { + uxt.unchecked_into_checked_i_know_what_i_am_doing(&Default::default()) + }?; + >::note_extrinsic(encoded); + + let dispatch_info = xt.get_dispatch_info(); + let r = Applyable::apply::(xt, &dispatch_info, encoded_len)?; + + >::note_applied_extrinsic(&r, dispatch_info); + + Ok(r.map(|_| ()).map_err(|e| e.error)) + }; + + for e in extrinsics { + if let Err(err) = try_apply_extrinsic(e.clone()) { + frame_support::log::error!( + target: LOG_TARGET, "executing transaction {:?} failed due to {:?}. Aborting the rest of the block execution.", + e, + err, + ); + break; + } + } + + // post-extrinsics book-keeping + >::note_finished_extrinsics(); + Self::idle_and_finalize_hook(*header.number()); + + // run the try-state checks of all pallets, ensuring they don't alter any state. + let _guard = frame_support::StorageNoopGuard::default(); + , + >>::try_state(*header.number(), select) + .map_err(|e| { + frame_support::log::error!(target: LOG_TARGET, "failure: {:?}", e); + e + })?; + drop(_guard); + + // do some of the checks that would normally happen in `final_checks`, but perhaps skip + // the state root check. + { + let new_header = >::finalize(); + let items_zip = header + .digest() + .logs() + .iter() + .zip(new_header.digest().logs().iter()); + for (header_item, computed_item) in items_zip { + header_item.check_equal(computed_item); + assert!( + header_item == computed_item, + "Digest item must match that calculated." + ); + } + + if state_root_check { + let storage_root = new_header.state_root(); + header.state_root().check_equal(storage_root); + assert!( + header.state_root() == storage_root, + "Storage root must match that calculated." + ); + } + + assert!( + header.extrinsics_root() == new_header.extrinsics_root(), + "Transaction trie root must be valid.", + ); + } + + frame_support::log::info!( + target: LOG_TARGET, + "try-runtime: Block #{:?} successfully executed", + header.number(), + ); + + Ok(frame_system::Pallet::::block_weight().total()) + } + + /// Execute all `OnRuntimeUpgrade` of this runtime, including the pre and post migration checks. + /// + /// Runs the try-state code both before and after the migration function if `checks` is set to + /// `true`. Also, if set to `true`, it runs the `pre_upgrade` and `post_upgrade` hooks. + pub fn try_runtime_upgrade( + checks: frame_try_runtime::UpgradeCheckSelect, + ) -> Result { + if checks.try_state() { + let _guard = frame_support::StorageNoopGuard::default(); + , + >>::try_state( + frame_system::Pallet::::block_number(), + frame_try_runtime::TryStateSelect::All, + )?; + } + + let weight = + <(COnRuntimeUpgrade, AllPalletsWithSystem) as OnRuntimeUpgrade>::try_on_runtime_upgrade( + checks.pre_and_post(), + )?; + + if checks.try_state() { + let _guard = frame_support::StorageNoopGuard::default(); + , + >>::try_state( + frame_system::Pallet::::block_number(), + frame_try_runtime::TryStateSelect::All, + )?; + } + + Ok(weight) + } +} + +impl< + System: frame_system::Config + EnsureInherentsAreFirst, + Block: traits::Block< + Header = frame_system::pallet_prelude::HeaderFor, + Hash = System::Hash, + >, + Context: Default, + UnsignedValidator, + AllPalletsWithSystem: OnRuntimeUpgrade + + OnInitialize> + + OnIdle> + + OnFinalize> + + OffchainWorker>, + COnRuntimeUpgrade: OnRuntimeUpgrade, + > Executive +where + Block::Extrinsic: Checkable + Codec, + CheckedOf: Applyable + GetDispatchInfo, + CallOf: + Dispatchable, + OriginOf: From>, + UnsignedValidator: ValidateUnsigned>, +{ + /// Execute all `OnRuntimeUpgrade` of this runtime, and return the aggregate weight. + pub fn execute_on_runtime_upgrade() -> Weight { + <(COnRuntimeUpgrade, AllPalletsWithSystem) as OnRuntimeUpgrade>::on_runtime_upgrade() + } + + /// Start the execution of a particular block. + pub fn initialize_block(header: &frame_system::pallet_prelude::HeaderFor) { + sp_io::init_tracing(); + sp_tracing::enter_span!(sp_tracing::Level::TRACE, "init_block"); + let digests = Self::extract_pre_digest(header); + Self::initialize_block_impl(header.number(), header.parent_hash(), &digests); + } + + fn extract_pre_digest(header: &frame_system::pallet_prelude::HeaderFor) -> Digest { + let mut digest = ::default(); + header.digest().logs().iter().for_each(|d| { + if d.as_pre_runtime().is_some() { + digest.push(d.clone()) + } + }); + digest + } + + fn initialize_block_impl( + block_number: &BlockNumberFor, + parent_hash: &System::Hash, + digest: &Digest, + ) { + // Reset events before apply runtime upgrade hook. + // This is required to preserve events from runtime upgrade hook. + // This means the format of all the event related storages must always be compatible. + >::reset_events(); + + let mut weight = Weight::zero(); + if Self::runtime_upgraded() { + weight = weight.saturating_add(Self::execute_on_runtime_upgrade()); + } + >::initialize(block_number, parent_hash, digest); + weight = weight.saturating_add(, + >>::on_initialize(*block_number)); + weight = weight.saturating_add( + >::get().base_block, + ); + >::register_extra_weight_unchecked( + weight, + DispatchClass::Mandatory, + ); + + frame_system::Pallet::::note_finished_initialize(); + } + + /// Returns if the runtime was upgraded since the last time this function was called. + fn runtime_upgraded() -> bool { + let last = frame_system::LastRuntimeUpgrade::::get(); + let current = >::get(); + + if last.map(|v| v.was_upgraded(¤t)).unwrap_or(true) { + frame_system::LastRuntimeUpgrade::::put( + frame_system::LastRuntimeUpgradeInfo::from(current), + ); + true + } else { + false + } + } + + fn initial_checks(block: &Block) { + sp_tracing::enter_span!(sp_tracing::Level::TRACE, "initial_checks"); + let header = block.header(); + + // Check that `parent_hash` is correct. + let n = *header.number(); + assert!( + n > BlockNumberFor::::zero() + && >::block_hash(n - BlockNumberFor::::one()) + == *header.parent_hash(), + "Parent hash should be valid.", + ); + + if let Err(i) = System::ensure_inherents_are_first(block) { + panic!("Invalid inherent position for extrinsic at index {}", i); + } + } + + /// Actually execute all transitions for `block`. + pub fn execute_block(block: Block) { + sp_io::init_tracing(); + sp_tracing::within_span! { + sp_tracing::info_span!("execute_block", ?block); + + Self::initialize_block(block.header()); + + // any initial checks + Self::initial_checks(&block); + + // execute extrinsics + let (header, extrinsics) = block.deconstruct(); + Self::execute_extrinsics_with_book_keeping(extrinsics, *header.number()); + + // any final checks + Self::final_checks(&header); + } + } + + /// Execute given extrinsics and take care of post-extrinsics book-keeping. + fn execute_extrinsics_with_book_keeping( + extrinsics: Vec, + block_number: NumberFor, + ) { + extrinsics.into_iter().for_each(|e| { + if let Err(e) = Self::apply_extrinsic(e) { + let err: &'static str = e.into(); + panic!("{}", err) + } + }); + + // post-extrinsics book-keeping + >::note_finished_extrinsics(); + + Self::idle_and_finalize_hook(block_number); + } + + /// Finalize the block - it is up the caller to ensure that all header fields are valid + /// except state-root. + // Note: Only change for avail is this function's return type + // TODO: Find a work around for this outside of this pallet to avoid the patching + pub fn finalize_block() -> frame_system::pallet_prelude::DaHeaderFor { + sp_io::init_tracing(); + sp_tracing::enter_span!(sp_tracing::Level::TRACE, "finalize_block"); + >::note_finished_extrinsics(); + let block_number = >::block_number(); + + Self::idle_and_finalize_hook(block_number); + + >::finalize() + } + + fn idle_and_finalize_hook(block_number: NumberFor) { + let weight = >::block_weight(); + let max_weight = >::get().max_block; + let remaining_weight = max_weight.saturating_sub(weight.total()); + + if remaining_weight.all_gt(Weight::zero()) { + let used_weight = >>::on_idle( + block_number, + remaining_weight, + ); + >::register_extra_weight_unchecked( + used_weight, + DispatchClass::Mandatory, + ); + } + + >>::on_finalize(block_number); + } + + /// Apply extrinsic outside of the block execution function. + /// + /// This doesn't attempt to validate anything regarding the block, but it builds a list of uxt + /// hashes. + pub fn apply_extrinsic(uxt: Block::Extrinsic) -> ApplyExtrinsicResult { + sp_io::init_tracing(); + let encoded = uxt.encode(); + let encoded_len = encoded.len(); + sp_tracing::enter_span!(sp_tracing::info_span!("apply_extrinsic", + ext=?sp_core::hexdisplay::HexDisplay::from(&encoded))); + // Verify that the signature is good. + let xt = uxt.check(&Default::default())?; + + // We don't need to make sure to `note_extrinsic` only after we know it's going to be + // executed to prevent it from leaking in storage since at this point, it will either + // execute or panic (and revert storage changes). + >::note_extrinsic(encoded); + + // AUDIT: Under no circumstances may this function panic from here onwards. + + // Decode parameters and dispatch + let dispatch_info = xt.get_dispatch_info(); + let r = Applyable::apply::(xt, &dispatch_info, encoded_len)?; + + // Mandatory(inherents) are not allowed to fail. + // + // The entire block should be discarded if an inherent fails to apply. Otherwise + // it may open an attack vector. + if r.is_err() && dispatch_info.class == DispatchClass::Mandatory { + return Err(InvalidTransaction::BadMandatory.into()); + } + + >::note_applied_extrinsic(&r, dispatch_info); + + Ok(r.map(|_| ()).map_err(|e| e.error)) + } + + fn final_checks(header: &frame_system::pallet_prelude::HeaderFor) { + sp_tracing::enter_span!(sp_tracing::Level::TRACE, "final_checks"); + // remove temporaries + let new_header = >::finalize(); + + // check digest + assert_eq!( + header.digest().logs().len(), + new_header.digest().logs().len(), + "Number of digest items must match that calculated." + ); + let items_zip = header + .digest() + .logs() + .iter() + .zip(new_header.digest().logs().iter()); + for (header_item, computed_item) in items_zip { + header_item.check_equal(computed_item); + assert!( + header_item == computed_item, + "Digest item must match that calculated." + ); + } + + // check storage root. + let storage_root = new_header.state_root(); + header.state_root().check_equal(storage_root); + assert!( + header.state_root() == storage_root, + "Storage root must match that calculated." + ); + + assert!( + header.extrinsics_root() == new_header.extrinsics_root(), + "Transaction trie root must be valid.", + ); + } + + /// Check a given signed transaction for validity. This doesn't execute any + /// side-effects; it merely checks whether the transaction would panic if it were included or + /// not. + /// + /// Changes made to storage should be discarded. + pub fn validate_transaction( + source: TransactionSource, + uxt: Block::Extrinsic, + block_hash: Block::Hash, + ) -> TransactionValidity { + sp_io::init_tracing(); + use sp_tracing::{enter_span, within_span}; + + >::initialize( + &(frame_system::Pallet::::block_number() + One::one()), + &block_hash, + &Default::default(), + ); + + enter_span! { sp_tracing::Level::TRACE, "validate_transaction" }; + + let encoded_len = within_span! { sp_tracing::Level::TRACE, "using_encoded"; + uxt.using_encoded(|d| d.len()) + }; + + let xt = within_span! { sp_tracing::Level::TRACE, "check"; + uxt.check(&Default::default()) + }?; + + let dispatch_info = within_span! { sp_tracing::Level::TRACE, "dispatch_info"; + xt.get_dispatch_info() + }; + + if dispatch_info.class == DispatchClass::Mandatory { + return Err(InvalidTransaction::MandatoryValidation.into()); + } + + within_span! { + sp_tracing::Level::TRACE, "validate"; + xt.validate::(source, &dispatch_info, encoded_len) + } + } + + /// Start an offchain worker and generate extrinsics. + pub fn offchain_worker(header: &frame_system::pallet_prelude::HeaderFor) { + sp_io::init_tracing(); + // We need to keep events available for offchain workers, + // hence we initialize the block manually. + // OffchainWorker RuntimeApi should skip initialization. + let digests = header.digest().clone(); + + >::initialize(header.number(), header.parent_hash(), &digests); + + // Frame system only inserts the parent hash into the block hashes as normally we don't know + // the hash for the header before. However, here we are aware of the hash and we can add it + // as well. + frame_system::BlockHash::::insert(header.number(), header.hash()); + + >>::offchain_worker( + *header.number(), + ) + } +} + +#[cfg(test)] +mod tests { + use frame_support::{ + assert_err, parameter_types, + traits::{fungible, ConstU32, ConstU64, ConstU8, Currency}, + weights::{ConstantMultiplier, IdentityFee, RuntimeDbWeight, Weight, WeightToFee}, + }; + use frame_system::{ChainContext, LastRuntimeUpgradeInfo}; + use pallet_balances::Call as BalancesCall; + use pallet_transaction_payment::CurrencyAdapter; + use sp_core::H256; + use sp_runtime::{ + generic::{DigestItem, Era}, + testing::{Block, Digest, Header}, + traits::{BlakeTwo256, Block as BlockT, Header as HeaderT, IdentityLookup}, + transaction_validity::{ + InvalidTransaction, TransactionValidityError, UnknownTransaction, ValidTransaction, + }, + BuildStorage, DispatchError, + }; + + use super::*; + + const TEST_KEY: &[u8] = b":test:key:"; + + #[frame_support::pallet(dev_mode)] + mod custom { + use frame_support::pallet_prelude::*; + use frame_system::pallet_prelude::*; + + #[pallet::pallet] + pub struct Pallet(_); + + #[pallet::config] + pub trait Config: frame_system::Config {} + + #[pallet::hooks] + impl Hooks> for Pallet { + // module hooks. + // one with block number arg and one without + fn on_initialize(n: BlockNumberFor) -> Weight { + println!("on_initialize({})", n); + Weight::from_parts(175, 0) + } + + fn on_idle(n: BlockNumberFor, remaining_weight: Weight) -> Weight { + println!("on_idle{}, {})", n, remaining_weight); + Weight::from_parts(175, 0) + } + + fn on_finalize(n: BlockNumberFor) { + println!("on_finalize({})", n); + } + + fn on_runtime_upgrade() -> Weight { + sp_io::storage::set(super::TEST_KEY, "module".as_bytes()); + Weight::from_parts(200, 0) + } + + fn offchain_worker(n: BlockNumberFor) { + assert_eq!(BlockNumberFor::::from(1u32), n); + } + } + + #[pallet::call] + impl Pallet { + pub fn some_function(origin: OriginFor) -> DispatchResult { + // NOTE: does not make any different. + frame_system::ensure_signed(origin)?; + Ok(()) + } + + #[pallet::weight((200, DispatchClass::Operational))] + pub fn some_root_operation(origin: OriginFor) -> DispatchResult { + frame_system::ensure_root(origin)?; + Ok(()) + } + + pub fn some_unsigned_message(origin: OriginFor) -> DispatchResult { + frame_system::ensure_none(origin)?; + Ok(()) + } + + pub fn allowed_unsigned(origin: OriginFor) -> DispatchResult { + frame_system::ensure_root(origin)?; + Ok(()) + } + + pub fn unallowed_unsigned(origin: OriginFor) -> DispatchResult { + frame_system::ensure_root(origin)?; + Ok(()) + } + + #[pallet::weight((0, DispatchClass::Mandatory))] + pub fn inherent_call(origin: OriginFor) -> DispatchResult { + frame_system::ensure_none(origin)?; + Ok(()) + } + + pub fn calculate_storage_root(_origin: OriginFor) -> DispatchResult { + let root = sp_io::storage::root(sp_runtime::StateVersion::V1); + sp_io::storage::set("storage_root".as_bytes(), &root); + Ok(()) + } + } + + #[pallet::inherent] + impl ProvideInherent for Pallet { + type Call = Call; + type Error = sp_inherents::MakeFatalError<()>; + + const INHERENT_IDENTIFIER: [u8; 8] = *b"test1234"; + + fn create_inherent(_data: &InherentData) -> Option { None } + + fn is_inherent(call: &Self::Call) -> bool { *call == Call::::inherent_call {} } + } + + #[pallet::validate_unsigned] + impl ValidateUnsigned for Pallet { + type Call = Call; + + // Inherent call is accepted for being dispatched + fn pre_dispatch(call: &Self::Call) -> Result<(), TransactionValidityError> { + match call { + Call::allowed_unsigned { .. } => Ok(()), + Call::inherent_call { .. } => Ok(()), + _ => Err(UnknownTransaction::NoUnsignedValidator.into()), + } + } + + // Inherent call is not validated as unsigned + fn validate_unsigned( + _source: TransactionSource, + call: &Self::Call, + ) -> TransactionValidity { + match call { + Call::allowed_unsigned { .. } => Ok(Default::default()), + _ => UnknownTransaction::NoUnsignedValidator.into(), + } + } + } + } + + frame_support::construct_runtime!( + pub struct Runtime + { + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage, Event}, + Custom: custom::{Pallet, Call, ValidateUnsigned, Inherent}, + } + ); + + parameter_types! { + pub BlockWeights: frame_system::limits::BlockWeights = + frame_system::limits::BlockWeights::builder() + .base_block(Weight::from_parts(10, 0)) + .for_class(DispatchClass::all(), |weights| weights.base_extrinsic = Weight::from_parts(5, 0)) + .for_class(DispatchClass::non_mandatory(), |weights| weights.max_total = Weight::from_parts(1024, u64::MAX).into()) + .build_or_panic(); + pub const DbWeight: RuntimeDbWeight = RuntimeDbWeight { + read: 10, + write: 100, + }; + } + impl frame_system::Config for Runtime { + type AccountData = pallet_balances::AccountData; + type AccountId = u64; + type BaseCallFilter = frame_support::traits::Everything; + type Block = TestBlock; + type BlockHashCount = ConstU64<250>; + type BlockLength = (); + type BlockWeights = BlockWeights; + type DbWeight = (); + type Hash = sp_core::H256; + type Hashing = BlakeTwo256; + type Lookup = IdentityLookup; + type MaxConsumers = ConstU32<16>; + type Nonce = u64; + type OnKilledAccount = (); + type OnNewAccount = (); + type OnSetCode = (); + type PalletInfo = PalletInfo; + type RuntimeCall = RuntimeCall; + type RuntimeEvent = RuntimeEvent; + type RuntimeOrigin = RuntimeOrigin; + type SS58Prefix = (); + type SystemWeightInfo = (); + type Version = RuntimeVersion; + } + + type Balance = u64; + impl pallet_balances::Config for Runtime { + type AccountStore = System; + type Balance = Balance; + type DustRemoval = (); + type ExistentialDeposit = ConstU64<1>; + type FreezeIdentifier = (); + type MaxFreezes = ConstU32<1>; + type MaxHolds = ConstU32<1>; + type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; + type RuntimeEvent = RuntimeEvent; + type RuntimeHoldReason = (); + type WeightInfo = (); + } + + parameter_types! { + pub const TransactionByteFee: Balance = 0; + } + impl pallet_transaction_payment::Config for Runtime { + type FeeMultiplierUpdate = (); + type LengthToFee = ConstantMultiplier; + type OnChargeTransaction = CurrencyAdapter; + type OperationalFeeMultiplier = ConstU8<5>; + type RuntimeEvent = RuntimeEvent; + type WeightToFee = IdentityFee; + } + impl custom::Config for Runtime {} + + pub struct RuntimeVersion; + impl frame_support::traits::Get for RuntimeVersion { + fn get() -> sp_version::RuntimeVersion { RuntimeVersionTestValues::get().clone() } + } + + parameter_types! { + pub static RuntimeVersionTestValues: sp_version::RuntimeVersion = + Default::default(); + } + + type SignedExtra = ( + frame_system::CheckEra, + frame_system::CheckNonce, + frame_system::CheckWeight, + pallet_transaction_payment::ChargeTransactionPayment, + ); + type TestXt = sp_runtime::testing::TestXt; + type TestBlock = Block; + + // Will contain `true` when the custom runtime logic was called. + const CUSTOM_ON_RUNTIME_KEY: &[u8] = b":custom:on_runtime"; + + struct CustomOnRuntimeUpgrade; + impl OnRuntimeUpgrade for CustomOnRuntimeUpgrade { + fn on_runtime_upgrade() -> Weight { + sp_io::storage::set(TEST_KEY, "custom_upgrade".as_bytes()); + sp_io::storage::set(CUSTOM_ON_RUNTIME_KEY, &true.encode()); + System::deposit_event(frame_system::Event::CodeUpdated); + Weight::from_parts(100, 0) + } + } + + type Executive = super::Executive< + Runtime, + Block, + ChainContext, + Runtime, + AllPalletsWithSystem, + CustomOnRuntimeUpgrade, + >; + + fn extra(nonce: u64, fee: Balance) -> SignedExtra { + ( + frame_system::CheckEra::from(Era::Immortal), + frame_system::CheckNonce::from(nonce), + frame_system::CheckWeight::new(), + pallet_transaction_payment::ChargeTransactionPayment::from(fee), + ) + } + + fn sign_extra(who: u64, nonce: u64, fee: Balance) -> Option<(u64, SignedExtra)> { + Some((who, extra(nonce, fee))) + } + + fn call_transfer(dest: u64, value: u64) -> RuntimeCall { + RuntimeCall::Balances(BalancesCall::transfer_allow_death { dest, value }) + } + + #[test] + fn balance_transfer_dispatch_works() { + let mut t = frame_system::GenesisConfig::::default() + .build_storage() + .unwrap(); + pallet_balances::GenesisConfig:: { + balances: vec![(1, 211)], + } + .assimilate_storage(&mut t) + .unwrap(); + let xt = TestXt::new(call_transfer(2, 69), sign_extra(1, 0, 0)); + let weight = xt.get_dispatch_info().weight + + ::BlockWeights::get() + .get(DispatchClass::Normal) + .base_extrinsic; + let fee: Balance = + ::WeightToFee::weight_to_fee(&weight); + let mut t = sp_io::TestExternalities::new(t); + t.execute_with(|| { + Executive::initialize_block(&Header::new( + 1, + H256::default(), + H256::default(), + [69u8; 32].into(), + Digest::default(), + )); + let r = Executive::apply_extrinsic(xt); + assert!(r.is_ok()); + assert_eq!( + >::total_balance(&1), + 142 - fee + ); + assert_eq!(>::total_balance(&2), 69); + }); + } + + fn new_test_ext(balance_factor: Balance) -> sp_io::TestExternalities { + let mut t = frame_system::GenesisConfig::::default() + .build_storage() + .unwrap(); + pallet_balances::GenesisConfig:: { + balances: vec![(1, 111 * balance_factor)], + } + .assimilate_storage(&mut t) + .unwrap(); + t.into() + } + + fn new_test_ext_v0(balance_factor: Balance) -> sp_io::TestExternalities { + let mut t = frame_system::GenesisConfig::::default() + .build_storage() + .unwrap(); + pallet_balances::GenesisConfig:: { + balances: vec![(1, 111 * balance_factor)], + } + .assimilate_storage(&mut t) + .unwrap(); + (t, sp_runtime::StateVersion::V0).into() + } + + #[test] + fn block_import_works() { + block_import_works_inner( + new_test_ext_v0(1), + array_bytes::hex_n_into_unchecked( + "65e953676859e7a33245908af7ad3637d6861eb90416d433d485e95e2dd174a1", + ), + ); + block_import_works_inner( + new_test_ext(1), + array_bytes::hex_n_into_unchecked( + "5a19b3d6fdb7241836349fdcbe2d9df4d4f945b949d979e31ad50bff1cbcd1c2", + ), + ); + } + fn block_import_works_inner(mut ext: sp_io::TestExternalities, state_root: H256) { + ext.execute_with(|| { + Executive::execute_block(Block { + header: Header { + parent_hash: [69u8; 32].into(), + number: 1, + state_root, + extrinsics_root: array_bytes::hex_n_into_unchecked( + "03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c111314", + ), + digest: Digest { logs: vec![] }, + }, + extrinsics: vec![], + }); + }); + } + + #[test] + #[should_panic] + fn block_import_of_bad_state_root_fails() { + new_test_ext(1).execute_with(|| { + Executive::execute_block(Block { + header: Header { + parent_hash: [69u8; 32].into(), + number: 1, + state_root: [0u8; 32].into(), + extrinsics_root: array_bytes::hex_n_into_unchecked( + "03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c111314", + ), + digest: Digest { logs: vec![] }, + }, + extrinsics: vec![], + }); + }); + } + + #[test] + #[should_panic] + fn block_import_of_bad_extrinsic_root_fails() { + new_test_ext(1).execute_with(|| { + Executive::execute_block(Block { + header: Header { + parent_hash: [69u8; 32].into(), + number: 1, + state_root: array_bytes::hex_n_into_unchecked( + "75e7d8f360d375bbe91bcf8019c01ab6362448b4a89e3b329717eb9d910340e5", + ), + extrinsics_root: [0u8; 32].into(), + digest: Digest { logs: vec![] }, + }, + extrinsics: vec![], + }); + }); + } + + #[test] + fn bad_extrinsic_not_inserted() { + let mut t = new_test_ext(1); + // bad nonce check! + let xt = TestXt::new(call_transfer(33, 69), sign_extra(1, 30, 0)); + t.execute_with(|| { + Executive::initialize_block(&Header::new( + 1, + H256::default(), + H256::default(), + [69u8; 32].into(), + Digest::default(), + )); + assert_err!( + Executive::apply_extrinsic(xt), + TransactionValidityError::Invalid(InvalidTransaction::Future) + ); + assert_eq!(>::extrinsic_index(), Some(0)); + }); + } + + #[test] + fn block_weight_limit_enforced() { + let mut t = new_test_ext(10000); + // given: TestXt uses the encoded len as fixed Len: + let xt = TestXt::new( + RuntimeCall::Balances(BalancesCall::transfer_allow_death { dest: 33, value: 0 }), + sign_extra(1, 0, 0), + ); + let encoded = xt.encode(); + let encoded_len = encoded.len() as u64; + // on_initialize weight + base block execution weight + let block_weights = ::BlockWeights::get(); + let base_block_weight = Weight::from_parts(175, 0) + block_weights.base_block; + let limit = block_weights.get(DispatchClass::Normal).max_total.unwrap() - base_block_weight; + let num_to_exhaust_block = limit.ref_time() / (encoded_len + 5); + t.execute_with(|| { + Executive::initialize_block(&Header::new( + 1, + H256::default(), + H256::default(), + [69u8; 32].into(), + Digest::default(), + )); + // Base block execution weight + `on_initialize` weight from the custom module. + assert_eq!( + >::block_weight().total(), + base_block_weight + ); + + for nonce in 0..=num_to_exhaust_block { + let xt = TestXt::new( + RuntimeCall::Balances(BalancesCall::transfer_allow_death { + dest: 33, + value: 0, + }), + sign_extra(1, nonce.into(), 0), + ); + let res = Executive::apply_extrinsic(xt); + if nonce != num_to_exhaust_block { + assert!(res.is_ok()); + assert_eq!( + >::block_weight().total(), + //--------------------- on_initialize + block_execution + extrinsic_base weight + Weight::from_parts((encoded_len + 5) * (nonce + 1), 0) + base_block_weight, + ); + assert_eq!( + >::extrinsic_index(), + Some(nonce as u32 + 1) + ); + } else { + assert_eq!(res, Err(InvalidTransaction::ExhaustsResources.into())); + } + } + }); + } + + #[test] + fn block_weight_and_size_is_stored_per_tx() { + let xt = TestXt::new( + RuntimeCall::Balances(BalancesCall::transfer_allow_death { dest: 33, value: 0 }), + sign_extra(1, 0, 0), + ); + let x1 = TestXt::new( + RuntimeCall::Balances(BalancesCall::transfer_allow_death { dest: 33, value: 0 }), + sign_extra(1, 1, 0), + ); + let x2 = TestXt::new( + RuntimeCall::Balances(BalancesCall::transfer_allow_death { dest: 33, value: 0 }), + sign_extra(1, 2, 0), + ); + let len = xt.clone().encode().len() as u32; + let mut t = new_test_ext(1); + t.execute_with(|| { + // Block execution weight + on_initialize weight from custom module + let base_block_weight = Weight::from_parts(175, 0) + + ::BlockWeights::get().base_block; + + Executive::initialize_block(&Header::new( + 1, + H256::default(), + H256::default(), + [69u8; 32].into(), + Digest::default(), + )); + + assert_eq!( + >::block_weight().total(), + base_block_weight + ); + assert_eq!(>::all_extrinsics_len(), 0); + + assert!(Executive::apply_extrinsic(xt.clone()).unwrap().is_ok()); + assert!(Executive::apply_extrinsic(x1.clone()).unwrap().is_ok()); + assert!(Executive::apply_extrinsic(x2.clone()).unwrap().is_ok()); + + // default weight for `TestXt` == encoded length. + let extrinsic_weight = Weight::from_parts(len as u64, 0) + + ::BlockWeights::get() + .get(DispatchClass::Normal) + .base_extrinsic; + assert_eq!( + >::block_weight().total(), + base_block_weight + 3u64 * extrinsic_weight, + ); + assert_eq!( + >::all_extrinsics_len(), + 3 * len + ); + + let _ = >::finalize(); + // All extrinsics length cleaned on `System::finalize` + assert_eq!(>::all_extrinsics_len(), 0); + + // New Block + Executive::initialize_block(&Header::new( + 2, + H256::default(), + H256::default(), + [69u8; 32].into(), + Digest::default(), + )); + + // Block weight cleaned up on `System::initialize` + assert_eq!( + >::block_weight().total(), + base_block_weight + ); + }); + } + + #[test] + fn validate_unsigned() { + let valid = TestXt::new(RuntimeCall::Custom(custom::Call::allowed_unsigned {}), None); + let invalid = TestXt::new( + RuntimeCall::Custom(custom::Call::unallowed_unsigned {}), + None, + ); + let mut t = new_test_ext(1); + + t.execute_with(|| { + assert_eq!( + Executive::validate_transaction( + TransactionSource::InBlock, + valid.clone(), + Default::default(), + ), + Ok(ValidTransaction::default()), + ); + assert_eq!( + Executive::validate_transaction( + TransactionSource::InBlock, + invalid.clone(), + Default::default(), + ), + Err(TransactionValidityError::Unknown( + UnknownTransaction::NoUnsignedValidator + )), + ); + assert_eq!( + Executive::apply_extrinsic(valid), + Ok(Err(DispatchError::BadOrigin)) + ); + assert_eq!( + Executive::apply_extrinsic(invalid), + Err(TransactionValidityError::Unknown( + UnknownTransaction::NoUnsignedValidator + )) + ); + }); + } + + #[test] + fn can_not_pay_for_tx_fee_on_full_lock() { + let mut t = new_test_ext(1); + t.execute_with(|| { + as fungible::MutateFreeze>::set_freeze( + &(), + &1, + 110, + ) + .unwrap(); + let xt = TestXt::new( + RuntimeCall::System(frame_system::Call::remark { remark: vec![1u8] }), + sign_extra(1, 0, 0), + ); + Executive::initialize_block(&Header::new( + 1, + H256::default(), + H256::default(), + [69u8; 32].into(), + Digest::default(), + )); + + assert_eq!( + Executive::apply_extrinsic(xt), + Err(InvalidTransaction::Payment.into()), + ); + assert_eq!(>::total_balance(&1), 111); + }); + } + + #[test] + fn block_hooks_weight_is_stored() { + new_test_ext(1).execute_with(|| { + Executive::initialize_block(&Header::new_from_number(1)); + Executive::finalize_block(); + // NOTE: might need updates over time if new weights are introduced. + // For now it only accounts for the base block execution weight and + // the `on_initialize` weight defined in the custom test module. + assert_eq!( + >::block_weight().total(), + Weight::from_parts(175 + 175 + 10, 0) + ); + }) + } + + #[test] + fn runtime_upgraded_should_work() { + new_test_ext(1).execute_with(|| { + RuntimeVersionTestValues::mutate(|v| *v = Default::default()); + // It should be added at genesis + assert!(frame_system::LastRuntimeUpgrade::::exists()); + assert!(!Executive::runtime_upgraded()); + + RuntimeVersionTestValues::mutate(|v| { + *v = sp_version::RuntimeVersion { + spec_version: 1, + ..Default::default() + } + }); + assert!(Executive::runtime_upgraded()); + assert_eq!( + Some(LastRuntimeUpgradeInfo { + spec_version: 1.into(), + spec_name: "".into() + }), + frame_system::LastRuntimeUpgrade::::get(), + ); + + RuntimeVersionTestValues::mutate(|v| { + *v = sp_version::RuntimeVersion { + spec_version: 1, + spec_name: "test".into(), + ..Default::default() + } + }); + assert!(Executive::runtime_upgraded()); + assert_eq!( + Some(LastRuntimeUpgradeInfo { + spec_version: 1.into(), + spec_name: "test".into() + }), + frame_system::LastRuntimeUpgrade::::get(), + ); + + RuntimeVersionTestValues::mutate(|v| { + *v = sp_version::RuntimeVersion { + spec_version: 1, + spec_name: "test".into(), + impl_version: 2, + ..Default::default() + } + }); + assert!(!Executive::runtime_upgraded()); + + frame_system::LastRuntimeUpgrade::::take(); + assert!(Executive::runtime_upgraded()); + assert_eq!( + Some(LastRuntimeUpgradeInfo { + spec_version: 1.into(), + spec_name: "test".into() + }), + frame_system::LastRuntimeUpgrade::::get(), + ); + }) + } + + #[test] + fn last_runtime_upgrade_was_upgraded_works() { + let test_data = vec![ + (0, "", 1, "", true), + (1, "", 1, "", false), + (1, "", 1, "test", true), + (1, "", 0, "", false), + (1, "", 0, "test", true), + ]; + + for (spec_version, spec_name, c_spec_version, c_spec_name, result) in test_data { + let current = sp_version::RuntimeVersion { + spec_version: c_spec_version, + spec_name: c_spec_name.into(), + ..Default::default() + }; + + let last = LastRuntimeUpgradeInfo { + spec_version: spec_version.into(), + spec_name: spec_name.into(), + }; + + assert_eq!(result, last.was_upgraded(¤t)); + } + } + + #[test] + fn custom_runtime_upgrade_is_called_before_modules() { + new_test_ext(1).execute_with(|| { + // Make sure `on_runtime_upgrade` is called. + RuntimeVersionTestValues::mutate(|v| { + *v = sp_version::RuntimeVersion { + spec_version: 1, + ..Default::default() + } + }); + + Executive::initialize_block(&Header::new( + 1, + H256::default(), + H256::default(), + [69u8; 32].into(), + Digest::default(), + )); + + assert_eq!(&sp_io::storage::get(TEST_KEY).unwrap()[..], *b"module"); + assert_eq!( + sp_io::storage::get(CUSTOM_ON_RUNTIME_KEY).unwrap(), + true.encode() + ); + }); + } + + #[test] + fn event_from_runtime_upgrade_is_included() { + new_test_ext(1).execute_with(|| { + // Make sure `on_runtime_upgrade` is called. + RuntimeVersionTestValues::mutate(|v| { + *v = sp_version::RuntimeVersion { + spec_version: 1, + ..Default::default() + } + }); + + // set block number to non zero so events are not excluded + System::set_block_number(1); + + Executive::initialize_block(&Header::new( + 2, + H256::default(), + H256::default(), + [69u8; 32].into(), + Digest::default(), + )); + + System::assert_last_event(frame_system::Event::::CodeUpdated.into()); + }); + } + + /// Regression test that ensures that the custom on runtime upgrade is called when executive is + /// used through the `ExecuteBlock` trait. + #[test] + fn custom_runtime_upgrade_is_called_when_using_execute_block_trait() { + let xt = TestXt::new( + RuntimeCall::Balances(BalancesCall::transfer_allow_death { dest: 33, value: 0 }), + sign_extra(1, 0, 0), + ); + + let header = new_test_ext(1).execute_with(|| { + // Make sure `on_runtime_upgrade` is called. + RuntimeVersionTestValues::mutate(|v| { + *v = sp_version::RuntimeVersion { + spec_version: 1, + ..Default::default() + } + }); + + // Let's build some fake block. + Executive::initialize_block(&Header::new( + 1, + H256::default(), + H256::default(), + [69u8; 32].into(), + Digest::default(), + )); + + Executive::apply_extrinsic(xt.clone()).unwrap().unwrap(); + + Executive::finalize_block() + }); + + // Reset to get the correct new genesis below. + RuntimeVersionTestValues::mutate(|v| { + *v = sp_version::RuntimeVersion { + spec_version: 0, + ..Default::default() + } + }); + + new_test_ext(1).execute_with(|| { + // Make sure `on_runtime_upgrade` is called. + RuntimeVersionTestValues::mutate(|v| { + *v = sp_version::RuntimeVersion { + spec_version: 1, + ..Default::default() + } + }); + + >>::execute_block(Block::new(header, vec![xt])); + + assert_eq!(&sp_io::storage::get(TEST_KEY).unwrap()[..], *b"module"); + assert_eq!( + sp_io::storage::get(CUSTOM_ON_RUNTIME_KEY).unwrap(), + true.encode() + ); + }); + } + + #[test] + fn all_weights_are_recorded_correctly() { + new_test_ext(1).execute_with(|| { + // Make sure `on_runtime_upgrade` is called for maximum complexity + RuntimeVersionTestValues::mutate(|v| { + *v = sp_version::RuntimeVersion { + spec_version: 1, + ..Default::default() + } + }); + + let block_number = 1; + + Executive::initialize_block(&Header::new( + block_number, + H256::default(), + H256::default(), + [69u8; 32].into(), + Digest::default(), + )); + + // All weights that show up in the `initialize_block_impl` + let custom_runtime_upgrade_weight = CustomOnRuntimeUpgrade::on_runtime_upgrade(); + let runtime_upgrade_weight = + ::on_runtime_upgrade(); + let on_initialize_weight = + >::on_initialize(block_number); + let base_block_weight = + ::BlockWeights::get().base_block; + + // Weights are recorded correctly + assert_eq!( + frame_system::Pallet::::block_weight().total(), + custom_runtime_upgrade_weight + + runtime_upgrade_weight + + on_initialize_weight + + base_block_weight, + ); + }); + } + + #[test] + fn offchain_worker_works_as_expected() { + new_test_ext(1).execute_with(|| { + let parent_hash = sp_core::H256::from([69u8; 32]); + let mut digest = Digest::default(); + digest.push(DigestItem::Seal([1, 2, 3, 4], vec![5, 6, 7, 8])); + + let header = Header::new( + 1, + H256::default(), + H256::default(), + parent_hash, + digest.clone(), + ); + + Executive::offchain_worker(&header); + + assert_eq!(digest, System::digest()); + assert_eq!(parent_hash, System::block_hash(0)); + assert_eq!(header.hash(), System::block_hash(1)); + }); + } + + #[test] + fn calculating_storage_root_twice_works() { + let call = RuntimeCall::Custom(custom::Call::calculate_storage_root {}); + let xt = TestXt::new(call, sign_extra(1, 0, 0)); + + let header = new_test_ext(1).execute_with(|| { + // Let's build some fake block. + Executive::initialize_block(&Header::new( + 1, + H256::default(), + H256::default(), + [69u8; 32].into(), + Digest::default(), + )); + + Executive::apply_extrinsic(xt.clone()).unwrap().unwrap(); + + Executive::finalize_block() + }); + + new_test_ext(1).execute_with(|| { + Executive::execute_block(Block::new(header, vec![xt])); + }); + } + + #[test] + #[should_panic(expected = "Invalid inherent position for extrinsic at index 1")] + fn invalid_inherent_position_fail() { + let xt1 = TestXt::new( + RuntimeCall::Balances(BalancesCall::transfer_allow_death { dest: 33, value: 0 }), + sign_extra(1, 0, 0), + ); + let xt2 = TestXt::new(RuntimeCall::Custom(custom::Call::inherent_call {}), None); + + let header = new_test_ext(1).execute_with(|| { + // Let's build some fake block. + Executive::initialize_block(&Header::new( + 1, + H256::default(), + H256::default(), + [69u8; 32].into(), + Digest::default(), + )); + + Executive::apply_extrinsic(xt1.clone()).unwrap().unwrap(); + Executive::apply_extrinsic(xt2.clone()).unwrap().unwrap(); + + Executive::finalize_block() + }); + + new_test_ext(1).execute_with(|| { + Executive::execute_block(Block::new(header, vec![xt1, xt2])); + }); + } + + #[test] + fn valid_inherents_position_works() { + let xt1 = TestXt::new(RuntimeCall::Custom(custom::Call::inherent_call {}), None); + let xt2 = TestXt::new(call_transfer(33, 0), sign_extra(1, 0, 0)); + + let header = new_test_ext(1).execute_with(|| { + // Let's build some fake block. + Executive::initialize_block(&Header::new( + 1, + H256::default(), + H256::default(), + [69u8; 32].into(), + Digest::default(), + )); + + Executive::apply_extrinsic(xt1.clone()).unwrap().unwrap(); + Executive::apply_extrinsic(xt2.clone()).unwrap().unwrap(); + + Executive::finalize_block() + }); + + new_test_ext(1).execute_with(|| { + Executive::execute_block(Block::new(header, vec![xt1, xt2])); + }); + } + + #[test] + #[should_panic(expected = "A call was labelled as mandatory, but resulted in an Error.")] + fn invalid_inherents_fail_block_execution() { + let xt1 = TestXt::new( + RuntimeCall::Custom(custom::Call::inherent_call {}), + sign_extra(1, 0, 0), + ); + + new_test_ext(1).execute_with(|| { + Executive::execute_block(Block::new( + Header::new( + 1, + H256::default(), + H256::default(), + [69u8; 32].into(), + Digest::default(), + ), + vec![xt1], + )); + }); + } + + // Inherents are created by the runtime and don't need to be validated. + #[test] + fn inherents_fail_validate_block() { + let xt1 = TestXt::new(RuntimeCall::Custom(custom::Call::inherent_call {}), None); + + new_test_ext(1).execute_with(|| { + assert_eq!( + Executive::validate_transaction(TransactionSource::External, xt1, H256::random()) + .unwrap_err(), + InvalidTransaction::MandatoryValidation.into() + ); + }) + } +} From 87c52452930df6076d03a569bd6808b4ea81b761 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Thu, 10 Aug 2023 09:36:47 +0530 Subject: [PATCH 15/58] fmt fix --- pallets/executive/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pallets/executive/src/lib.rs b/pallets/executive/src/lib.rs index 30aa276e1..2d2f281f3 100644 --- a/pallets/executive/src/lib.rs +++ b/pallets/executive/src/lib.rs @@ -536,7 +536,7 @@ where } /// Finalize the block - it is up the caller to ensure that all header fields are valid - /// except state-root. + /// except state-root. // Note: Only change for avail is this function's return type // TODO: Find a work around for this outside of this pallet to avoid the patching pub fn finalize_block() -> frame_system::pallet_prelude::DaHeaderFor { From b7ecdcc6b6a4a30aa9a99af8086a1358d4ac01e3 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Fri, 11 Aug 2023 10:12:30 +0530 Subject: [PATCH 16/58] Updated pallet configs --- runtime/src/constants.rs | 1 + runtime/src/lib.rs | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/runtime/src/constants.rs b/runtime/src/constants.rs index a46fb0f4a..04d8a4b51 100644 --- a/runtime/src/constants.rs +++ b/runtime/src/constants.rs @@ -188,6 +188,7 @@ pub mod council { pub type MaxProposals = ConstU32<128>; parameter_types! { + pub MaxProposalWeight: Weight = Perbill::from_percent(50) * SystemBlockWeights::get().max_block; pub const MaxMembers: u32 = 32; } } diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index e326731a9..cb6c5278d 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -364,6 +364,10 @@ impl pallet_balances::Config for Runtime { type Balance = Balance; type DustRemoval = (); type ExistentialDeposit = constants::balances::ExistentialDeposit; + type FreezeIdentifier = (); + type HoldIdentifier = ReserveIdentifier; + type MaxFreezes = (); + type MaxHolds = constants::balances::MaxReserves; type MaxLocks = constants::balances::MaxLocks; type MaxReserves = constants::balances::MaxReserves; type ReserveIdentifier = ReserveIdentifier; @@ -448,6 +452,7 @@ impl pallet_staking::Config for Runtime { type CurrencyToVote = U128CurrencyToVote; type ElectionProvider = ElectionProviderMultiPhase; type EraPayout = pallet_staking::ConvertCurve; + type EventListeners = NominationPools; type GenesisElectionProvider = onchain::OnChainExecution; type HistoryDepth = constants::staking::HistoryDepth; type MaxNominations = constants::staking::MaxNominations; @@ -455,7 +460,6 @@ impl pallet_staking::Config for Runtime { type MaxUnlockingChunks = constants::staking::MaxUnlockingChunks; type NextNewSession = Session; type OffendingValidatorsThreshold = constants::staking::OffendingValidatorsThreshold; - type OnStakerSlash = NominationPools; // send the slashed funds to the treasury. type Reward = (); type RewardRemainder = Treasury; @@ -683,6 +687,7 @@ type CouncilCollective = pallet_collective::Instance1; impl pallet_collective::Config for Runtime { type DefaultVote = pallet_collective::MoreThanMajorityThenPrimeDefaultVote; type MaxMembers = constants::council::MaxMembers; + type MaxProposalWeight = constants::council::MaxProposalWeight; type MaxProposals = constants::council::MaxProposals; type MotionDuration = constants::council::MotionDuration; type Proposal = RuntimeCall; @@ -717,6 +722,7 @@ type TechnicalCollective = pallet_collective::Instance2; impl pallet_collective::Config for Runtime { type DefaultVote = pallet_collective::MoreThanMajorityThenPrimeDefaultVote; type MaxMembers = constants::technical::TechnicalMaxMembers; + type MaxProposalWeight = constants::council::MaxProposalWeight; type MaxProposals = constants::technical::TechnicalMaxProposals; type MotionDuration = constants::technical::TechnicalMotionDuration; type Proposal = RuntimeCall; From cbc7220b2dbf4c05a385c24d265ddc4d880fc0c7 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Wed, 16 Aug 2023 14:42:08 +0530 Subject: [PATCH 17/58] Added code comment for rust bug --- pallets/bridges/nomad/da-bridge/src/mock.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pallets/bridges/nomad/da-bridge/src/mock.rs b/pallets/bridges/nomad/da-bridge/src/mock.rs index 23be80646..fd50cb764 100644 --- a/pallets/bridges/nomad/da-bridge/src/mock.rs +++ b/pallets/bridges/nomad/da-bridge/src/mock.rs @@ -15,6 +15,8 @@ type Block = frame_system::mocking::MockDaBlock; // TODO: add proper config once frame executive mocking has been demonstrated // Configure a mock runtime to test the pallet. +// NOTE: We're getting a error E0275 here beacuse of https://github.com/rust-lang/rust/issues/96634 in rust compiler. +// We may need to comment out the tests for this pallet until the above issue is fixed or we find an alternative to GAT for Block. frame_support::construct_runtime!( pub enum Test { @@ -28,7 +30,7 @@ frame_support::construct_runtime!( frame_support::parameter_types! { pub const BlockHashCount: u32 = 250; pub BlockWeights: frame_system::limits::BlockWeights = - frame_system::limits::BlockWeights::simple_max(Weight::from_ref_time(1_024)); + frame_system::limits::BlockWeights::simple_max(Weight::from_parts(1_024, 0)); pub static ExistentialDeposit: u64 = 0; } @@ -111,8 +113,8 @@ impl ExtBuilder { } pub(crate) fn build(self) -> sp_io::TestExternalities { - let mut t = frame_system::GenesisConfig::default() - .build_storage::() + let mut t = frame_system::GenesisConfig::::default() + .build_storage() .expect("Frame system builds valid default genesis config"); nomad_home::GenesisConfig:: { From 20e6a7225d4126ea2e41e6d8226c842b3cfedfab Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Wed, 16 Aug 2023 14:54:36 +0530 Subject: [PATCH 18/58] commented nomad-da-bridge tests --- pallets/bridges/nomad/da-bridge/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pallets/bridges/nomad/da-bridge/src/lib.rs b/pallets/bridges/nomad/da-bridge/src/lib.rs index cd512bae8..779d490bb 100644 --- a/pallets/bridges/nomad/da-bridge/src/lib.rs +++ b/pallets/bridges/nomad/da-bridge/src/lib.rs @@ -8,11 +8,11 @@ pub use pallet::*; mod message; pub mod weights; -#[cfg(test)] -mod mock; +// #[cfg(test)] +// mod mock; -#[cfg(test)] -mod tests; +// #[cfg(test)] +// mod tests; #[cfg(feature = "runtime-benchmarks")] mod benchmarking; From 04925d08519880f356843de2bc970a8a4a8acd2d Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Thu, 17 Aug 2023 23:07:54 +0530 Subject: [PATCH 19/58] Removed unintended std feature gate on imports --- pallets/system/src/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/pallets/system/src/lib.rs b/pallets/system/src/lib.rs index dfc8a1921..f3d96dc87 100644 --- a/pallets/system/src/lib.rs +++ b/pallets/system/src/lib.rs @@ -71,7 +71,6 @@ use avail_core::{ AppExtrinsic, OpaqueExtrinsic, BLOCK_CHUNK_SIZE, }; use codec::{Decode, Encode, EncodeLike, FullCodec, MaxEncodedLen}; -#[cfg(feature = "std")] use frame_support::{ dispatch::{ extract_actual_pays_fee, extract_actual_weight, DispatchClass, DispatchInfo, From 968fd27b83e06e6c3e13ece802098f2e041f2e55 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Thu, 17 Aug 2023 23:26:29 +0530 Subject: [PATCH 20/58] Updated runtime configs --- runtime/Cargo.toml | 1 + runtime/src/constants.rs | 3 ++- runtime/src/lib.rs | 50 ++++++++++++++++----------------------- runtime/src/primitives.rs | 4 ++-- 4 files changed, 26 insertions(+), 32 deletions(-) diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 7c6c17c1f..f7363f3b4 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -181,6 +181,7 @@ std = [ "nomad-updater-manager/std", "nomad-home/std", "nomad-da-bridge/std", + "sp-npos-elections/std" ] runtime-benchmarks = [ diff --git a/runtime/src/constants.rs b/runtime/src/constants.rs index 04d8a4b51..adb34c7c2 100644 --- a/runtime/src/constants.rs +++ b/runtime/src/constants.rs @@ -174,6 +174,7 @@ pub mod balances { pub mod council { use super::*; + use crate::constants::system::RuntimeBlockWeights; #[cfg(not(feature = "fast-runtime"))] parameter_types! { @@ -188,7 +189,7 @@ pub mod council { pub type MaxProposals = ConstU32<128>; parameter_types! { - pub MaxProposalWeight: Weight = Perbill::from_percent(50) * SystemBlockWeights::get().max_block; + pub MaxProposalWeight: Weight = Perbill::from_percent(50) * RuntimeBlockWeights::get().max_block; pub const MaxMembers: u32 = 32; } } diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index cb6c5278d..affb1eec1 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -35,7 +35,7 @@ pub use frame_support::{ parameter_types, traits::{ ConstU32, Currency, EitherOfDiverse, EqualPrivilegeOnly, Everything, ExtrinsicCall, - Imbalance, KeyOwnerProofSystem, OnUnbalanced, Randomness, U128CurrencyToVote, + Imbalance, KeyOwnerProofSystem, OnUnbalanced, Randomness, }, weights::{ constants::{ @@ -227,7 +227,7 @@ impl frame_system::Config for Runtime { /// The basic call filter to use in dispatchable. type BaseCallFilter = Everything; /// The Block type used by the runtime - type Block = Block; + type Block = Block; /// Maximum number of block number to block hash mappings to keep (oldest pruned first). type BlockHashCount = BlockHashCount; type BlockLength = RuntimeBlockLength; @@ -331,21 +331,15 @@ impl pallet_babe::Config for Runtime { type DisabledValidators = Session; type EpochChangeTrigger = pallet_babe::ExternalTrigger; type EpochDuration = constants::time::EpochDuration; - type ExpectedBlockTime = constants::time::ExpectedBlockTime; - type HandleEquivocation = pallet_babe::EquivocationHandler< - Self::KeyOwnerIdentification, + type EquivocationReportSystem = pallet_babe::EquivocationReportSystem< + Self, Offences, + Historical, constants::babe::ReportLongevity, >; - type KeyOwnerIdentification = >::IdentificationTuple; - type KeyOwnerProof = >::Proof; - type KeyOwnerProofSystem = Historical; + type ExpectedBlockTime = constants::time::ExpectedBlockTime; + type KeyOwnerProof = + >::Proof; type MaxAuthorities = constants::system::MaxAuthorities; type WeightInfo = (); } @@ -365,13 +359,13 @@ impl pallet_balances::Config for Runtime { type DustRemoval = (); type ExistentialDeposit = constants::balances::ExistentialDeposit; type FreezeIdentifier = (); - type HoldIdentifier = ReserveIdentifier; type MaxFreezes = (); type MaxHolds = constants::balances::MaxReserves; type MaxLocks = constants::balances::MaxLocks; type MaxReserves = constants::balances::MaxReserves; type ReserveIdentifier = ReserveIdentifier; type RuntimeEvent = RuntimeEvent; + type RuntimeHoldReason = RuntimeHoldReason; type WeightInfo = pallet_balances::weights::SubstrateWeight; } @@ -449,7 +443,7 @@ impl pallet_staking::Config for Runtime { type BondingDuration = constants::staking::BondingDuration; type Currency = Balances; type CurrencyBalance = Balance; - type CurrencyToVote = U128CurrencyToVote; + type CurrencyToVote = sp_staking::currency_to_vote::U128CurrencyToVote; type ElectionProvider = ElectionProviderMultiPhase; type EraPayout = pallet_staking::ConvertCurve; type EventListeners = NominationPools; @@ -700,7 +694,7 @@ impl pallet_elections_phragmen::Config for Runtime { type CandidacyBond = constants::elections::CandidacyBond; type ChangeMembers = Council; type Currency = Balances; - type CurrencyToVote = U128CurrencyToVote; + type CurrencyToVote = sp_staking::currency_to_vote::U128CurrencyToVote; type DesiredMembers = constants::elections::DesiredMembers; type DesiredRunnersUp = constants::elections::DesiredRunnersUp; // NOTE: this implies that council's genesis members cannot be set directly and must come from @@ -885,7 +879,6 @@ where impl pallet_im_online::Config for Runtime { type AuthorityId = ImOnlineId; type MaxKeys = constants::im::MaxKeys; - type MaxPeerDataEncodingSize = constants::im::MaxPeerDataEncodingSize; type MaxPeerInHeartbeats = constants::im::MaxPeerInHeartbeats; type NextSessionRotation = Babe; type ReportUnresponsiveness = Offences; @@ -905,26 +898,25 @@ impl pallet_authority_discovery::Config for Runtime { type MaxAuthorities = constants::system::MaxAuthorities; } +parameter_types! { + pub const MaxSetIdSessionEntries: u32 = constants::staking::BondingDuration::get() * constants::staking::SessionsPerEra::get(); +} + impl pallet_grandpa::Config for Runtime { - type HandleEquivocation = pallet_grandpa::EquivocationHandler< - Self::KeyOwnerIdentification, + type EquivocationReportSystem = pallet_grandpa::EquivocationReportSystem< + Self, Offences, + Historical, constants::babe::ReportLongevity, >; - type KeyOwnerIdentification = >::IdentificationTuple; - type KeyOwnerProof = - >::Proof; - type KeyOwnerProofSystem = Historical; + type KeyOwnerProof = >::Proof; type MaxAuthorities = constants::system::MaxAuthorities; + type MaxSetIdSessionEntries = MaxSetIdSessionEntries; type RuntimeEvent = RuntimeEvent; type WeightInfo = (); } impl pallet_mmr::Config for Runtime { - type Hash = ::Hash; type Hashing = ::Hashing; type LeafData = pallet_mmr::ParentNumberAndHash; type OnNewRoot = (); @@ -1021,7 +1013,7 @@ pub(crate) mod mmr { use super::Runtime; pub type Leaf = <::LeafData as LeafDataProvider>::LeafData; - pub type Hash = ::Hash; + pub type Hash = ::Output; pub type Hashing = ::Hashing; } diff --git a/runtime/src/primitives.rs b/runtime/src/primitives.rs index e55cc8206..644c01b8a 100644 --- a/runtime/src/primitives.rs +++ b/runtime/src/primitives.rs @@ -34,9 +34,9 @@ pub type Header = DaHeader; /// Unchecked extrinsic type as expected by this runtime. pub type UncheckedExtrinsic = AppUncheckedExtrinsic; /// DA Block type as expected by this runtime. -pub type Block = avail_core::DaBlock< +pub type Block = avail_core::DaBlock< avail_core::header::Header, - UncheckedExtrinsic, + UncheckedExtrinsic, >; /// Block type for the node pub type NodeBlock = generic::Block; From 0d99a725c757582a44ccbbe37aed6581d0e7e543 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Mon, 21 Aug 2023 18:00:57 +0530 Subject: [PATCH 21/58] pallets: implement for in --- Cargo.lock | 401 +++++++++--------- pallets/bridges/nomad/da-bridge/src/lib.rs | 2 +- pallets/bridges/nomad/home/src/lib.rs | 15 +- .../bridges/nomad/updater-manager/src/lib.rs | 17 +- pallets/dactr/src/lib.rs | 13 +- pallets/system/src/lib.rs | 32 +- runtime/src/lib.rs | 1 + runtime/src/primitives.rs | 5 +- 8 files changed, 220 insertions(+), 266 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ac890b2a8..c52708680 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -178,9 +178,9 @@ dependencies = [ [[package]] name = "aho-corasick" -version = "1.0.2" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43f6cb1bf222025340178f382c426f13757b2960e89779dfcb319c32542a5a41" +checksum = "6748e8def348ed4d14996fa801f4122cd763fff530258cdc03f64b25f89d3a5a" dependencies = [ "memchr", ] @@ -256,9 +256,9 @@ dependencies = [ [[package]] name = "anstyle-wincon" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "180abfa45703aebe0093f79badacc01b8fd4ea2e35118747e5811127f926e188" +checksum = "c677ab05e09154296dd37acecd46420c17b9713e8366facafa8fc0885167cf4c" dependencies = [ "anstyle", "windows-sys 0.48.0", @@ -266,9 +266,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.72" +version = "1.0.75" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b13c32d80ecc7ab747b80c3784bce54ee8a7a0cc4fbda9bf4cda2cf6fe90854" +checksum = "a4668cab20f66d8d020e1fbc0ebe47217433c1b6c8f2040faf858554e394ace6" [[package]] name = "approx" @@ -527,9 +527,9 @@ dependencies = [ [[package]] name = "async-lock" -version = "2.7.0" +version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa24f727524730b077666307f2734b4a1a1c57acb79193127dcc8914d5242dd7" +checksum = "287272293e9d8c41773cec55e365490fe034813a2f172f502d6ddcf75b2f582b" dependencies = [ "event-listener", ] @@ -542,18 +542,18 @@ checksum = "0e97ce7de6cf12de5d7226c73f5ba9811622f4db3a5b91b55c53e987e5f91cba" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] name = "async-trait" -version = "0.1.72" +version = "0.1.73" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc6dde6e4ed435a4c1ee4e73592f5ba9da2151af10076cc04858746af9352d09" +checksum = "bc00ceb34980c03614e35a3a4e218276a0a824e911d07651cd0d858a51e8c0f0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -566,7 +566,7 @@ dependencies = [ "futures-sink", "futures-util", "memchr", - "pin-project-lite 0.2.11", + "pin-project-lite 0.2.12", ] [[package]] @@ -619,7 +619,7 @@ dependencies = [ [[package]] name = "avail-core" version = "0.5.0" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#2babbb8ee37d64fd7a34e96ad061d72da68c01af" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d25ef65c77792a47a9b4297bb29022a66f42a7dc" dependencies = [ "binary-merkle-tree", "derive_more", @@ -765,7 +765,7 @@ dependencies = [ "regex", "rustc-hash", "shlex", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -776,9 +776,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.3.3" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "630be753d4e58660abd17930c71b647fe46c27ea6b63cc59e1e3851406972e42" +checksum = "b4682ae6287fcf752ecaabbfcc7b6f9b72aa33933dc23a554d853aea8eea8635" [[package]] name = "bitvec" @@ -1039,9 +1039,9 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5" [[package]] name = "cc" -version = "1.0.82" +version = "1.0.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "305fe645edc1442a0fa8b6726ba61d422798d37a52e12eaecf4b022ebbb88f01" +checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0" dependencies = [ "jobserver", "libc", @@ -1230,9 +1230,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.3.19" +version = "4.3.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fd304a20bff958a57f04c4e96a2e7594cc4490a0e809cbd48bb6437edaa452d" +checksum = "03aef18ddf7d879c15ce20f04826ef8418101c7e528014c3eeea13321047dca3" dependencies = [ "clap_builder", "clap_derive", @@ -1241,9 +1241,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.3.19" +version = "4.3.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01c6a3f08f1fe5662a35cfe393aec09c4df95f60ee93b7556505260f75eee9e1" +checksum = "f8ce6fffb678c9b80a70b6b6de0aad31df727623a70fd9a842c30cd573e2fa98" dependencies = [ "anstream", "anstyle", @@ -1257,7 +1257,7 @@ version = "4.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5fc443334c81a804575546c5a8a79b4913b50e28d69232903604cada1de817ce" dependencies = [ - "clap 4.3.19", + "clap 4.3.23", ] [[package]] @@ -1269,7 +1269,7 @@ dependencies = [ "heck", "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -1395,9 +1395,9 @@ dependencies = [ [[package]] name = "const-oid" -version = "0.9.4" +version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "795bc6e66a8e340f075fcf6227e417a2dc976b92b91f3cdc778bb858778b6747" +checksum = "28c122c3980598d243d63d9a704629a2d748d101f278052ff068be5a4423ab6f" [[package]] name = "const-random" @@ -1799,23 +1799,36 @@ dependencies = [ [[package]] name = "curve25519-dalek" -version = "4.0.0-rc.1" +version = "4.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d4ba9852b42210c7538b75484f9daa0655e9a3ac04f693747bb0f02cf3cfe16" +checksum = "f711ade317dd348950a9910f81c5947e3d8907ebd2b83f76203ff1807e6a2bc2" dependencies = [ "cfg-if", + "cpufeatures", + "curve25519-dalek-derive", "fiat-crypto", - "packed_simd_2", "platforms", + "rustc_version", "subtle", "zeroize", ] +[[package]] +name = "curve25519-dalek-derive" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83fdaf97f4804dcebfa5862639bc9ce4121e82140bec2a987ac5140294865b5b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.29", +] + [[package]] name = "cxx" -version = "1.0.104" +version = "1.0.106" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba1ba0a82363c553ecb7b4cd58ba6e1c017baef8e3cca4e7d66ca17879201144" +checksum = "28403c86fc49e3401fdf45499ba37fad6493d9329449d6449d7f0e10f4654d28" dependencies = [ "cc", "cxxbridge-flags", @@ -1825,9 +1838,9 @@ dependencies = [ [[package]] name = "cxx-build" -version = "1.0.104" +version = "1.0.106" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac9ec8372f860c6ee7c6463b96a26d08dd590bcbcd9bf2d1894db09ae81410d3" +checksum = "78da94fef01786dc3e0c76eafcd187abcaa9972c78e05ff4041e24fdf059c285" dependencies = [ "cc", "codespan-reporting", @@ -1835,24 +1848,24 @@ dependencies = [ "proc-macro2", "quote", "scratch", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] name = "cxxbridge-flags" -version = "1.0.104" +version = "1.0.106" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "409667bbb937bae87f7cfa91ca29e1415bb92d415371e3344b5269c10d90d595" +checksum = "e2a6f5e1dfb4b34292ad4ea1facbfdaa1824705b231610087b00b17008641809" [[package]] name = "cxxbridge-macro" -version = "1.0.104" +version = "1.0.106" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fb2a9757fb085d6d97856b28d4f049141ca4a61a64c697f4426433b5f6caa1f" +checksum = "50c49547d73ba8dcfd4ad7325d64c6d5391ff4224d498fc39a6f3f49825a530d" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -2001,7 +2014,7 @@ dependencies = [ "async-trait", "avail-base", "avail-core", - "clap 4.3.19", + "clap 4.3.23", "clap_complete", "da-control", "da-runtime", @@ -2121,9 +2134,9 @@ dependencies = [ [[package]] name = "der" -version = "0.7.7" +version = "0.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c7ed52955ce76b1554f509074bb357d3fb8ac9b51288a65a3fd480d1dfba946" +checksum = "fffa369a668c8af7dbf8b5e56c9f744fbd399949ed171606040001947de40b1c" dependencies = [ "const-oid", "zeroize", @@ -2159,9 +2172,9 @@ dependencies = [ [[package]] name = "deranged" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7684a49fb1af197853ef7b2ee694bc1f5b4179556f1e5710e1760c5db6f5e929" +checksum = "f2696e8a945f658fd14dc3b87242e6b80cd0f36ff04ea560fa39082368847946" [[package]] name = "derivative" @@ -2325,7 +2338,7 @@ checksum = "487585f4d0c6655fe74905e2504d8ad6908e4db67f744eb140876906c2f3175d" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -2413,9 +2426,9 @@ dependencies = [ [[package]] name = "dyn-clone" -version = "1.0.12" +version = "1.0.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "304e6508efa593091e97a9abbc10f90aa7ca635b6d2784feff3c89d41dd12272" +checksum = "bbfc4744c1b8f2a09adc0e55242f60b1af195d88596bd8700be74418c056c555" [[package]] name = "ecdsa" @@ -2435,7 +2448,7 @@ version = "0.16.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a4b1e0c257a9e9f25f90ff76d7a68360ed497ee519c8e428d1825ef0000799d4" dependencies = [ - "der 0.7.7", + "der 0.7.8", "digest 0.10.7", "elliptic-curve 0.13.5", "rfc6979 0.4.0", @@ -2746,7 +2759,7 @@ dependencies = [ "fs-err", "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -2869,9 +2882,9 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "flate2" -version = "1.0.26" +version = "1.0.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b9429470923de8e8cbd4d2dc513535400b4b3fef0319fb5c4e1f520a7bef743" +checksum = "c6c98ee8095e9d1dcbf2fcc6d95acccb90d1c81db1e44725c6a984b1dbdfb010" dependencies = [ "crc32fast", "libz-sys", @@ -2949,7 +2962,7 @@ dependencies = [ "Inflector", "array-bytes", "chrono", - "clap 4.3.19", + "clap 4.3.23", "comfy-table", "frame-benchmarking", "frame-support", @@ -2997,7 +3010,7 @@ dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -3120,7 +3133,7 @@ dependencies = [ "proc-macro-warning", "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -3132,7 +3145,7 @@ dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -3142,7 +3155,7 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -3296,7 +3309,7 @@ dependencies = [ "futures-io", "memchr", "parking", - "pin-project-lite 0.2.11", + "pin-project-lite 0.2.12", "waker-fn", ] @@ -3308,7 +3321,7 @@ checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -3357,7 +3370,7 @@ dependencies = [ "futures-sink", "futures-task", "memchr", - "pin-project-lite 0.2.11", + "pin-project-lite 0.2.12", "pin-utils", "slab", ] @@ -3744,7 +3757,7 @@ checksum = "d5f38f16d184e36f2408a55281cd658ecbd3ca05cce6d6510a176eca393e26d1" dependencies = [ "bytes", "http", - "pin-project-lite 0.2.11", + "pin-project-lite 0.2.12", ] [[package]] @@ -3761,9 +3774,9 @@ checksum = "d897f394bad6a705d5f4104762e116a75639e470d80901eed05a860a95cb1904" [[package]] name = "httpdate" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421" +checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" [[package]] name = "humantime" @@ -3787,7 +3800,7 @@ dependencies = [ "httparse", "httpdate", "itoa", - "pin-project-lite 0.2.11", + "pin-project-lite 0.2.12", "socket2 0.4.9", "tokio", "tower-service", @@ -4050,7 +4063,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b" dependencies = [ "hermit-abi 0.3.2", - "rustix 0.38.7", + "rustix 0.38.8", "windows-sys 0.48.0", ] @@ -4287,7 +4300,7 @@ dependencies = [ [[package]] name = "kate" version = "0.8.0" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#2babbb8ee37d64fd7a34e96ad061d72da68c01af" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d25ef65c77792a47a9b4297bb29022a66f42a7dc" dependencies = [ "avail-core", "derive_more", @@ -4315,7 +4328,7 @@ dependencies = [ [[package]] name = "kate-recovery" version = "0.9.0" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#2babbb8ee37d64fd7a34e96ad061d72da68c01af" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d25ef65c77792a47a9b4297bb29022a66f42a7dc" dependencies = [ "avail-core", "derive_more", @@ -4425,12 +4438,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "libm" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fc7aa29613bd6a620df431842069224d8bc9011086b1db4c0e0cd47fa03ec9a" - [[package]] name = "libp2p" version = "0.51.3" @@ -4993,9 +5000,12 @@ dependencies = [ [[package]] name = "log" -version = "0.4.19" +version = "0.4.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b06a4cde4c0f271a446782e3eff8de789548ce57dbc8eca9292c27f4a42004b4" +checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" +dependencies = [ + "serde", +] [[package]] name = "lru" @@ -5062,7 +5072,7 @@ dependencies = [ "macro_magic_core", "macro_magic_macros", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -5076,7 +5086,7 @@ dependencies = [ "macro_magic_core_macros", "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -5087,7 +5097,7 @@ checksum = "c12469fc165526520dff2807c2975310ab47cf7190a45b99b49a7dc8befab17b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -5098,7 +5108,7 @@ checksum = "b8fb85ec1620619edf2984a7693497d4ec88a9665d8b87e942856884c92dbf2a" dependencies = [ "macro_magic_core", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -5514,7 +5524,7 @@ dependencies = [ [[package]] name = "nomad-base" version = "0.1.4" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#2babbb8ee37d64fd7a34e96ad061d72da68c01af" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d25ef65c77792a47a9b4297bb29022a66f42a7dc" dependencies = [ "ethers-signers", "nomad-core", @@ -5530,7 +5540,7 @@ dependencies = [ [[package]] name = "nomad-core" version = "0.1.4" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#2babbb8ee37d64fd7a34e96ad061d72da68c01af" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d25ef65c77792a47a9b4297bb29022a66f42a7dc" dependencies = [ "ethers-core", "ethers-signers", @@ -5593,7 +5603,7 @@ dependencies = [ [[package]] name = "nomad-merkle" version = "0.1.2" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#2babbb8ee37d64fd7a34e96ad061d72da68c01af" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d25ef65c77792a47a9b4297bb29022a66f42a7dc" dependencies = [ "avail-core", "frame-support", @@ -5611,7 +5621,7 @@ dependencies = [ [[package]] name = "nomad-signature" version = "0.1.2" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#2babbb8ee37d64fd7a34e96ad061d72da68c01af" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d25ef65c77792a47a9b4297bb29022a66f42a7dc" dependencies = [ "elliptic-curve 0.12.3", "ethers-core", @@ -5661,9 +5671,9 @@ dependencies = [ [[package]] name = "num-complex" -version = "0.4.3" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02e0d21255c828d6f128a1e41534206671e8c3ea0c62f32291e808dc82cff17d" +checksum = "1ba157ca0885411de85d6ca030ba7e2a83a28636056c7c699b07c8b6f7383214" dependencies = [ "num-traits", ] @@ -5847,16 +5857,6 @@ dependencies = [ "sha2 0.10.7", ] -[[package]] -name = "packed_simd_2" -version = "0.3.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1914cd452d8fccd6f9db48147b29fd4ae05bea9dc5d9ad578509f72415de282" -dependencies = [ - "cfg-if", - "libm", -] - [[package]] name = "pallet-authority-discovery" version = "4.0.0-dev" @@ -6303,7 +6303,7 @@ dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -6569,7 +6569,7 @@ dependencies = [ "libc", "redox_syscall 0.3.5", "smallvec", - "windows-targets 0.48.1", + "windows-targets 0.48.5", ] [[package]] @@ -6676,7 +6676,7 @@ dependencies = [ "pest_meta", "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -6717,7 +6717,7 @@ checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -6728,9 +6728,9 @@ checksum = "257b64915a082f7811703966789728173279bdebb956b143dbcd23f6f970a777" [[package]] name = "pin-project-lite" -version = "0.2.11" +version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c516611246607d0c04186886dbb3a754368ef82c79e9827a802c6d836dd111c" +checksum = "12cc1b0bf1727a77a54b6654e7b5f1af8604923edc8b81885f8ec92f9e3f0a05" [[package]] name = "pin-utils" @@ -6754,7 +6754,7 @@ version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7" dependencies = [ - "der 0.7.7", + "der 0.7.8", "spki 0.7.2", ] @@ -6810,7 +6810,7 @@ dependencies = [ "concurrent-queue", "libc", "log", - "pin-project-lite 0.2.11", + "pin-project-lite 0.2.12", "windows-sys 0.48.0", ] @@ -6923,7 +6923,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c64d9ba0963cdcea2e1b2230fbae2bab30eb25a174be395c41e764bfb65dd62" dependencies = [ "proc-macro2", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -6988,7 +6988,7 @@ checksum = "70550716265d1ec349c41f70dd4f964b4fd88394efe4405f0c1da679c4799a07" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -7028,13 +7028,13 @@ dependencies = [ [[package]] name = "prometheus-client-derive-encode" -version = "0.4.1" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72b6a5217beb0ad503ee7fa752d451c905113d70721b937126158f3106a48cc1" +checksum = "440f724eba9f6996b75d63681b0a92b06947f1457076d503a4d2e2c8f56442b8" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.29", ] [[package]] @@ -7159,9 +7159,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.32" +version = "1.0.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50f3b39ccfb720540debaa0164757101c08ecb8d326b15358ce76a62c7e85965" +checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae" dependencies = [ "proc-macro2", ] @@ -7342,22 +7342,22 @@ dependencies = [ [[package]] name = "ref-cast" -version = "1.0.19" +version = "1.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61ef7e18e8841942ddb1cf845054f8008410030a3997875d9e49b7a363063df1" +checksum = "acde58d073e9c79da00f2b5b84eed919c8326832648a5b109b3fce1bb1175280" dependencies = [ "ref-cast-impl", ] [[package]] name = "ref-cast-impl" -version = "1.0.19" +version = "1.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dfaf0c85b766276c797f3791f5bc6d5bd116b41d53049af2789666b0c0bc9fa" +checksum = "7f7473c2cfcf90008193dd0e3e16599455cb601a9fce322b5bb55de799664925" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -7637,11 +7637,11 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.7" +version = "0.38.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "172891ebdceb05aa0005f533a6cbfca599ddd7d966f6f5d4d9b2e70478e70399" +checksum = "19ed4fa021d81c8392ce04db050a3da9a60299050b7ae1cf482d862b54a7218f" dependencies = [ - "bitflags 2.3.3", + "bitflags 2.4.0", "errno", "libc", "linux-raw-sys 0.4.5", @@ -7848,7 +7848,7 @@ dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -7858,7 +7858,7 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "array-bytes", "chrono", - "clap 4.3.19", + "clap 4.3.23", "fdlimit", "futures", "libp2p-identity", @@ -8641,7 +8641,7 @@ dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -8842,7 +8842,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc" dependencies = [ "base16ct 0.2.0", - "der 0.7.7", + "der 0.7.8", "generic-array 0.14.7", "pkcs8 0.10.2", "subtle", @@ -8931,29 +8931,29 @@ checksum = "f638d531eccd6e23b980caf34876660d38e265409d8e99b397ab71eb3612fad0" [[package]] name = "serde" -version = "1.0.183" +version = "1.0.185" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32ac8da02677876d532745a130fc9d8e6edfa81a269b107c5b00829b91d8eb3c" +checksum = "be9b6f69f1dfd54c3b568ffa45c310d6973a5e5148fd40cf515acaf38cf5bc31" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.183" +version = "1.0.185" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aafe972d60b0b9bee71a91b92fee2d4fb3c9d7e8f6b179aa99f27203d99a4816" +checksum = "dc59dfdcbad1437773485e0367fea4b090a2e0a16d9ffc46af47764536a298ec" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] name = "serde_json" -version = "1.0.104" +version = "1.0.105" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "076066c5f1078eac5b722a31827a8832fe108bed65dfa75e233c89f8206e976c" +checksum = "693151e1ac27563d6dbcec9dee9fbd5da8539b20fa14ad3752b2e6d363ace360" dependencies = [ "itoa", "ryu", @@ -9131,14 +9131,14 @@ checksum = "5e9f0ab6ef7eb7353d9119c170a436d1bf248eea575ac42d19d12f4e34130831" [[package]] name = "snow" -version = "0.9.2" +version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ccba027ba85743e09d15c03296797cad56395089b832b48b5a5217880f57733" +checksum = "0c9d1425eb528a21de2755c75af4c9b5d57f50a0d4c3b7f1828a4cd03f8ba155" dependencies = [ "aes-gcm 0.9.4", "blake2", "chacha20poly1305", - "curve25519-dalek 4.0.0-rc.1", + "curve25519-dalek 4.0.0", "rand_core 0.6.4", "ring", "rustc_version", @@ -9215,7 +9215,7 @@ dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -9433,7 +9433,7 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "quote", "sp-core-hashing", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -9452,7 +9452,7 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -9659,7 +9659,7 @@ dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -9844,7 +9844,7 @@ dependencies = [ "parity-scale-codec", "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -9909,14 +9909,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d1e996ef02c474957d681f1b05213dfb0abab947b446a62d37770b23500184a" dependencies = [ "base64ct", - "der 0.7.7", + "der 0.7.8", ] [[package]] name = "ss58-registry" -version = "1.41.0" +version = "1.43.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfc443bad666016e012538782d9e3006213a7db43e9fb1dda91657dc06a6fa08" +checksum = "5e6915280e2d0db8911e5032a5c275571af6bdded2916abd691a659be25d3439" dependencies = [ "Inflector", "num-format", @@ -10153,9 +10153,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.28" +version = "2.0.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04361975b3f5e348b2189d8dc55bc942f278b2d482a6a0365de5bdd62d351567" +checksum = "c324c494eba9d92503e6f1ef2e6df781e78f6a7705a0202d9801b198807d518a" dependencies = [ "proc-macro2", "quote", @@ -10209,14 +10209,14 @@ checksum = "9d0e916b1148c8e263850e1ebcbd046f333e0683c724876bb0da63ea4373dc8a" [[package]] name = "tempfile" -version = "3.7.1" +version = "3.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc02fddf48964c42031a0b3fe0428320ecf3a73c401040fc0096f97794310651" +checksum = "cb94d2f3cc536af71caac6b6fcebf65860b347e7ce0cc9ebe8f70d3e521054ef" dependencies = [ "cfg-if", "fastrand 2.0.0", "redox_syscall 0.3.5", - "rustix 0.38.7", + "rustix 0.38.8", "windows-sys 0.48.0", ] @@ -10256,22 +10256,22 @@ checksum = "222a222a5bfe1bba4a77b45ec488a741b3cb8872e5e499451fd7d0129c9c7c3d" [[package]] name = "thiserror" -version = "1.0.44" +version = "1.0.47" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "611040a08a0439f8248d1990b111c95baa9c704c805fa1f62104b39655fd7f90" +checksum = "97a802ec30afc17eee47b2855fc72e0c4cd62be9b4efe6591edde0ec5bd68d8f" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.44" +version = "1.0.47" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "090198534930841fab3a5d1bb637cde49e339654e606195f8d9c76eeb081dc96" +checksum = "6bb623b56e39ab7dcd4b1b98bb6c8f8d907ed255b18de254088016b27a8ee19b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -10423,20 +10423,19 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.29.1" +version = "1.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "532826ff75199d5833b9d2c5fe410f29235e25704ee5f0ef599fb51c21f4a4da" +checksum = "17ed6077ed6cd6c74735e21f37eb16dc3935f96878b1fe961074089cc80893f9" dependencies = [ - "autocfg", "backtrace", "bytes", "libc", "mio", "num_cpus", "parking_lot 0.12.1", - "pin-project-lite 0.2.11", + "pin-project-lite 0.2.12", "signal-hook-registry", - "socket2 0.4.9", + "socket2 0.5.3", "tokio-macros", "windows-sys 0.48.0", ] @@ -10449,7 +10448,7 @@ checksum = "630bdcf245f78637c13ec01ffae6187cca34625e8c63150d424b59e55af2675e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -10481,7 +10480,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "397c988d37662c7dda6d2208364a706264bf3d6138b11d436cbac0ad38832842" dependencies = [ "futures-core", - "pin-project-lite 0.2.11", + "pin-project-lite 0.2.12", "tokio", "tokio-util", ] @@ -10496,7 +10495,7 @@ dependencies = [ "futures-core", "futures-io", "futures-sink", - "pin-project-lite 0.2.11", + "pin-project-lite 0.2.12", "tokio", "tracing", ] @@ -10561,14 +10560,14 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "55ae70283aba8d2a8b411c695c437fe25b8b5e44e23e780662002fc72fb47a82" dependencies = [ - "bitflags 2.3.3", + "bitflags 2.4.0", "bytes", "futures-core", "futures-util", "http", "http-body", "http-range-header", - "pin-project-lite 0.2.11", + "pin-project-lite 0.2.12", "tower-layer", "tower-service", ] @@ -10593,7 +10592,7 @@ checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8" dependencies = [ "cfg-if", "log", - "pin-project-lite 0.2.11", + "pin-project-lite 0.2.12", "tracing-attributes", "tracing-core", ] @@ -10606,7 +10605,7 @@ checksum = "5f4f31f56159e98206da9efd823404b79b6ef3143b4a7ab76e67b1751b25a4ab" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -10753,7 +10752,7 @@ version = "0.10.0-dev" source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "async-trait", - "clap 4.3.19", + "clap 4.3.23", "frame-remote-externalities", "frame-try-runtime", "hex", @@ -11053,7 +11052,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", "wasm-bindgen-shared", ] @@ -11087,7 +11086,7 @@ checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -11464,9 +11463,9 @@ dependencies = [ [[package]] name = "webrtc-dtls" -version = "0.7.1" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "942be5bd85f072c3128396f6e5a9bfb93ca8c1939ded735d177b7bcba9a13d05" +checksum = "c4a00f4242f2db33307347bd5be53263c52a0331c96c14292118c9a6bb48d267" dependencies = [ "aes 0.6.0", "aes-gcm 0.10.2", @@ -11481,12 +11480,11 @@ dependencies = [ "hkdf", "hmac 0.12.1", "log", - "oid-registry 0.6.1", "p256", "p384", "rand 0.8.5", "rand_core 0.6.4", - "rcgen 0.9.3", + "rcgen 0.10.0", "ring", "rustls 0.19.1", "sec1 0.3.0", @@ -11499,7 +11497,7 @@ dependencies = [ "tokio", "webpki 0.21.4", "webrtc-util", - "x25519-dalek 2.0.0-pre.1", + "x25519-dalek 2.0.0", "x509-parser 0.13.2", ] @@ -11692,7 +11690,7 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f" dependencies = [ - "windows-targets 0.48.1", + "windows-targets 0.48.5", ] [[package]] @@ -11710,7 +11708,7 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" dependencies = [ - "windows-targets 0.48.1", + "windows-targets 0.48.5", ] [[package]] @@ -11730,17 +11728,17 @@ dependencies = [ [[package]] name = "windows-targets" -version = "0.48.1" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05d4b17490f70499f20b9e791dcf6a299785ce8af4d709018206dc5b4953e95f" +checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" dependencies = [ - "windows_aarch64_gnullvm 0.48.0", - "windows_aarch64_msvc 0.48.0", - "windows_i686_gnu 0.48.0", - "windows_i686_msvc 0.48.0", - "windows_x86_64_gnu 0.48.0", - "windows_x86_64_gnullvm 0.48.0", - "windows_x86_64_msvc 0.48.0", + "windows_aarch64_gnullvm 0.48.5", + "windows_aarch64_msvc 0.48.5", + "windows_i686_gnu 0.48.5", + "windows_i686_msvc 0.48.5", + "windows_x86_64_gnu 0.48.5", + "windows_x86_64_gnullvm 0.48.5", + "windows_x86_64_msvc 0.48.5", ] [[package]] @@ -11751,9 +11749,9 @@ checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" [[package]] name = "windows_aarch64_gnullvm" -version = "0.48.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc" +checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" [[package]] name = "windows_aarch64_msvc" @@ -11769,9 +11767,9 @@ checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" [[package]] name = "windows_aarch64_msvc" -version = "0.48.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3" +checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" [[package]] name = "windows_i686_gnu" @@ -11787,9 +11785,9 @@ checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" [[package]] name = "windows_i686_gnu" -version = "0.48.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241" +checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" [[package]] name = "windows_i686_msvc" @@ -11805,9 +11803,9 @@ checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" [[package]] name = "windows_i686_msvc" -version = "0.48.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00" +checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" [[package]] name = "windows_x86_64_gnu" @@ -11823,9 +11821,9 @@ checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" [[package]] name = "windows_x86_64_gnu" -version = "0.48.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca2b8a661f7628cbd23440e50b05d705db3686f894fc9580820623656af974b1" +checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" [[package]] name = "windows_x86_64_gnullvm" @@ -11835,9 +11833,9 @@ checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" [[package]] name = "windows_x86_64_gnullvm" -version = "0.48.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953" +checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" [[package]] name = "windows_x86_64_msvc" @@ -11853,15 +11851,15 @@ checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" [[package]] name = "windows_x86_64_msvc" -version = "0.48.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a" +checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" [[package]] name = "winnow" -version = "0.5.4" +version = "0.5.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acaaa1190073b2b101e15083c38ee8ec891b5e05cbee516521e94ec008f61e64" +checksum = "d09770118a7eb1ccaf4a594a221334119a44a814fcb0d31c5b85e83e97227a97" dependencies = [ "memchr", ] @@ -11898,12 +11896,13 @@ dependencies = [ [[package]] name = "x25519-dalek" -version = "2.0.0-pre.1" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5da623d8af10a62342bcbbb230e33e58a63255a58012f8653c578e54bab48df" +checksum = "fb66477291e7e8d2b0ff1bcb900bf29489a9692816d79874bea351e7a8b6de96" dependencies = [ - "curve25519-dalek 3.2.0", + "curve25519-dalek 4.0.0", "rand_core 0.6.4", + "serde", "zeroize", ] @@ -11984,7 +11983,7 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] diff --git a/pallets/bridges/nomad/da-bridge/src/lib.rs b/pallets/bridges/nomad/da-bridge/src/lib.rs index 779d490bb..22f488d33 100644 --- a/pallets/bridges/nomad/da-bridge/src/lib.rs +++ b/pallets/bridges/nomad/da-bridge/src/lib.rs @@ -47,7 +47,7 @@ pub mod pallet { // Genesis config #[pallet::genesis_config] - #[cfg_attr(feature = "std", derive(Default))] + #[derive(Default)] pub struct GenesisConfig {} #[pallet::genesis_build] diff --git a/pallets/bridges/nomad/home/src/lib.rs b/pallets/bridges/nomad/home/src/lib.rs index f3135b803..db1308df1 100644 --- a/pallets/bridges/nomad/home/src/lib.rs +++ b/pallets/bridges/nomad/home/src/lib.rs @@ -21,7 +21,7 @@ pub mod pallet { use frame_support::{ pallet_prelude::{ValueQuery, *}, sp_runtime::ArithmeticError::Overflow, - transactional, + transactional, DefaultNoBound, }; use frame_system::pallet_prelude::{OriginFor, *}; use nomad_base::NomadBase; @@ -74,6 +74,7 @@ pub mod pallet { // Genesis config #[pallet::genesis_config] + #[derive(DefaultNoBound)] pub struct GenesisConfig { pub local_domain: u32, pub committed_root: H256, @@ -81,18 +82,6 @@ pub mod pallet { pub _phantom: PhantomData, } - #[cfg(feature = "std")] - impl Default for GenesisConfig { - fn default() -> Self { - Self { - local_domain: Default::default(), - committed_root: Default::default(), - updater: Default::default(), - _phantom: Default::default(), - } - } - } - #[pallet::genesis_build] impl BuildGenesisConfig for GenesisConfig { fn build(&self) { diff --git a/pallets/bridges/nomad/updater-manager/src/lib.rs b/pallets/bridges/nomad/updater-manager/src/lib.rs index bfee73305..59a53ce42 100644 --- a/pallets/bridges/nomad/updater-manager/src/lib.rs +++ b/pallets/bridges/nomad/updater-manager/src/lib.rs @@ -15,9 +15,11 @@ mod benchmarking; #[frame_support::pallet] pub mod pallet { - use frame_support::pallet_prelude::{ValueQuery, *}; + use frame_support::{ + pallet_prelude::{ValueQuery, *}, + DefaultNoBound, + }; use sp_core::H160; - #[pallet::config] pub trait Config: frame_system::Config { type RuntimeEvent: From> + IsType<::RuntimeEvent>; @@ -33,21 +35,12 @@ pub mod pallet { // Genesis config #[pallet::genesis_config] + #[derive(DefaultNoBound)] pub struct GenesisConfig { pub updater: H160, pub _phantom: PhantomData, } - #[cfg(feature = "std")] - impl Default for GenesisConfig { - fn default() -> Self { - Self { - updater: Default::default(), - _phantom: Default::default(), - } - } - } - #[pallet::genesis_build] impl BuildGenesisConfig for GenesisConfig { fn build(&self) { >::put(self.updater); } diff --git a/pallets/dactr/src/lib.rs b/pallets/dactr/src/lib.rs index 93a8aef0a..82597e581 100644 --- a/pallets/dactr/src/lib.rs +++ b/pallets/dactr/src/lib.rs @@ -10,7 +10,7 @@ use frame_system::{limits::BlockLength, pallet::DynamicBlockLength}; #[cfg(feature = "std")] use serde::{Deserialize, Serialize}; use sp_arithmetic::traits::{CheckedAdd, One, SaturatedConversion}; -use sp_std::mem::replace; +use sp_std::{mem::replace, vec, vec::Vec}; pub use crate::{pallet::*, weights::WeightInfo}; @@ -26,7 +26,7 @@ pub mod weights; #[frame_support::pallet] pub mod pallet { - use frame_support::pallet_prelude::*; + use frame_support::{pallet_prelude::*, DefaultNoBound}; use frame_system::pallet_prelude::*; use super::*; @@ -216,15 +216,14 @@ pub mod pallet { } #[pallet::genesis_config] + #[derive(DefaultNoBound)] pub struct GenesisConfig { + #[serde(skip)] + pub _config: sp_std::marker::PhantomData, + #[serde(skip)] pub app_keys: Vec<(Vec, AppKeyInfoFor)>, } - #[cfg(feature = "std")] - impl Default for GenesisConfig { - fn default() -> Self { Self { app_keys: vec![] } } - } - #[pallet::genesis_build] impl BuildGenesisConfig for GenesisConfig { fn build(&self) { diff --git a/pallets/system/src/lib.rs b/pallets/system/src/lib.rs index f3d96dc87..b3a0c1a6a 100644 --- a/pallets/system/src/lib.rs +++ b/pallets/system/src/lib.rs @@ -219,7 +219,7 @@ impl Default for ExtrinsicLen { #[frame_support::pallet] pub mod pallet { - use frame_support::pallet_prelude::*; + use frame_support::{pallet_prelude::*, DefaultNoBound}; use crate::{self as frame_system, pallet_prelude::*, *}; @@ -682,7 +682,7 @@ pub mod pallet { #[pallet::getter(fn block_length)] pub type DynamicBlockLength = StorageValue<_, limits::BlockLength, ValueQuery>; - // #[derive(frame_support::DefaultNoBound)] + #[derive(DefaultNoBound)] #[pallet::genesis_config] pub struct GenesisConfig { #[serde(with = "sp_core::bytes")] @@ -691,35 +691,11 @@ pub mod pallet { pub _config: sp_std::marker::PhantomData, #[serde(with = "sp_core::bytes")] pub kc_public_params: Vec, + // TODO: Add serialiization support for BlockLength in no_std + #[serde(skip)] pub block_length: limits::BlockLength, } - #[cfg(feature = "std")] - impl Default for GenesisConfig { - fn default() -> Self { - use kate::config::{MAX_BLOCK_COLUMNS, MAX_BLOCK_ROWS}; - - let normal = sp_runtime::Perbill::from_percent(90); - let block_length = limits::BlockLength::with_normal_ratio( - MAX_BLOCK_ROWS, - MAX_BLOCK_COLUMNS, - BLOCK_CHUNK_SIZE, - normal, - ) - .expect("Valid BlockLength at genesis .qed"); - - let kc_public_params = - kate::testnet::public_params(MAX_BLOCK_COLUMNS).to_raw_var_bytes(); - - Self { - code: Default::default(), - _config: Default::default(), - kc_public_params, - block_length, - } - } - } - #[pallet::genesis_build] impl BuildGenesisConfig for GenesisConfig { fn build(&self) { diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index affb1eec1..a0ee34bf2 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -21,6 +21,7 @@ #![cfg_attr(not(feature = "std"), no_std)] // `construct_runtime!` does a lot of recursion and requires us to increase the limit to 512. #![recursion_limit = "512"] +#![feature(trivial_bounds)] #![feature(result_option_inspect)] #![allow(macro_expanded_macro_exports_accessed_by_absolute_paths)] diff --git a/runtime/src/primitives.rs b/runtime/src/primitives.rs index 644c01b8a..9c86fbf51 100644 --- a/runtime/src/primitives.rs +++ b/runtime/src/primitives.rs @@ -34,10 +34,7 @@ pub type Header = DaHeader; /// Unchecked extrinsic type as expected by this runtime. pub type UncheckedExtrinsic = AppUncheckedExtrinsic; /// DA Block type as expected by this runtime. -pub type Block = avail_core::DaBlock< - avail_core::header::Header, - UncheckedExtrinsic, ->; +pub type Block = avail_core::DaBlock; /// Block type for the node pub type NodeBlock = generic::Block; /// A Block signed with a Justification From 9e555bcb3f69373a53ab1b1fdf0b62e894f8f253 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Mon, 21 Aug 2023 18:00:57 +0530 Subject: [PATCH 22/58] pallets: implement `Default` for `GenesisConfig` in `no_std` --- Cargo.lock | 401 +++++++++--------- pallets/bridges/nomad/da-bridge/src/lib.rs | 2 +- pallets/bridges/nomad/home/src/lib.rs | 15 +- .../bridges/nomad/updater-manager/src/lib.rs | 17 +- pallets/dactr/src/lib.rs | 13 +- pallets/system/src/lib.rs | 32 +- runtime/src/lib.rs | 1 + runtime/src/primitives.rs | 5 +- 8 files changed, 220 insertions(+), 266 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ac890b2a8..c52708680 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -178,9 +178,9 @@ dependencies = [ [[package]] name = "aho-corasick" -version = "1.0.2" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43f6cb1bf222025340178f382c426f13757b2960e89779dfcb319c32542a5a41" +checksum = "6748e8def348ed4d14996fa801f4122cd763fff530258cdc03f64b25f89d3a5a" dependencies = [ "memchr", ] @@ -256,9 +256,9 @@ dependencies = [ [[package]] name = "anstyle-wincon" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "180abfa45703aebe0093f79badacc01b8fd4ea2e35118747e5811127f926e188" +checksum = "c677ab05e09154296dd37acecd46420c17b9713e8366facafa8fc0885167cf4c" dependencies = [ "anstyle", "windows-sys 0.48.0", @@ -266,9 +266,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.72" +version = "1.0.75" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b13c32d80ecc7ab747b80c3784bce54ee8a7a0cc4fbda9bf4cda2cf6fe90854" +checksum = "a4668cab20f66d8d020e1fbc0ebe47217433c1b6c8f2040faf858554e394ace6" [[package]] name = "approx" @@ -527,9 +527,9 @@ dependencies = [ [[package]] name = "async-lock" -version = "2.7.0" +version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa24f727524730b077666307f2734b4a1a1c57acb79193127dcc8914d5242dd7" +checksum = "287272293e9d8c41773cec55e365490fe034813a2f172f502d6ddcf75b2f582b" dependencies = [ "event-listener", ] @@ -542,18 +542,18 @@ checksum = "0e97ce7de6cf12de5d7226c73f5ba9811622f4db3a5b91b55c53e987e5f91cba" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] name = "async-trait" -version = "0.1.72" +version = "0.1.73" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc6dde6e4ed435a4c1ee4e73592f5ba9da2151af10076cc04858746af9352d09" +checksum = "bc00ceb34980c03614e35a3a4e218276a0a824e911d07651cd0d858a51e8c0f0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -566,7 +566,7 @@ dependencies = [ "futures-sink", "futures-util", "memchr", - "pin-project-lite 0.2.11", + "pin-project-lite 0.2.12", ] [[package]] @@ -619,7 +619,7 @@ dependencies = [ [[package]] name = "avail-core" version = "0.5.0" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#2babbb8ee37d64fd7a34e96ad061d72da68c01af" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d25ef65c77792a47a9b4297bb29022a66f42a7dc" dependencies = [ "binary-merkle-tree", "derive_more", @@ -765,7 +765,7 @@ dependencies = [ "regex", "rustc-hash", "shlex", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -776,9 +776,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.3.3" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "630be753d4e58660abd17930c71b647fe46c27ea6b63cc59e1e3851406972e42" +checksum = "b4682ae6287fcf752ecaabbfcc7b6f9b72aa33933dc23a554d853aea8eea8635" [[package]] name = "bitvec" @@ -1039,9 +1039,9 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5" [[package]] name = "cc" -version = "1.0.82" +version = "1.0.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "305fe645edc1442a0fa8b6726ba61d422798d37a52e12eaecf4b022ebbb88f01" +checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0" dependencies = [ "jobserver", "libc", @@ -1230,9 +1230,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.3.19" +version = "4.3.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fd304a20bff958a57f04c4e96a2e7594cc4490a0e809cbd48bb6437edaa452d" +checksum = "03aef18ddf7d879c15ce20f04826ef8418101c7e528014c3eeea13321047dca3" dependencies = [ "clap_builder", "clap_derive", @@ -1241,9 +1241,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.3.19" +version = "4.3.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01c6a3f08f1fe5662a35cfe393aec09c4df95f60ee93b7556505260f75eee9e1" +checksum = "f8ce6fffb678c9b80a70b6b6de0aad31df727623a70fd9a842c30cd573e2fa98" dependencies = [ "anstream", "anstyle", @@ -1257,7 +1257,7 @@ version = "4.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5fc443334c81a804575546c5a8a79b4913b50e28d69232903604cada1de817ce" dependencies = [ - "clap 4.3.19", + "clap 4.3.23", ] [[package]] @@ -1269,7 +1269,7 @@ dependencies = [ "heck", "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -1395,9 +1395,9 @@ dependencies = [ [[package]] name = "const-oid" -version = "0.9.4" +version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "795bc6e66a8e340f075fcf6227e417a2dc976b92b91f3cdc778bb858778b6747" +checksum = "28c122c3980598d243d63d9a704629a2d748d101f278052ff068be5a4423ab6f" [[package]] name = "const-random" @@ -1799,23 +1799,36 @@ dependencies = [ [[package]] name = "curve25519-dalek" -version = "4.0.0-rc.1" +version = "4.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d4ba9852b42210c7538b75484f9daa0655e9a3ac04f693747bb0f02cf3cfe16" +checksum = "f711ade317dd348950a9910f81c5947e3d8907ebd2b83f76203ff1807e6a2bc2" dependencies = [ "cfg-if", + "cpufeatures", + "curve25519-dalek-derive", "fiat-crypto", - "packed_simd_2", "platforms", + "rustc_version", "subtle", "zeroize", ] +[[package]] +name = "curve25519-dalek-derive" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83fdaf97f4804dcebfa5862639bc9ce4121e82140bec2a987ac5140294865b5b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.29", +] + [[package]] name = "cxx" -version = "1.0.104" +version = "1.0.106" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba1ba0a82363c553ecb7b4cd58ba6e1c017baef8e3cca4e7d66ca17879201144" +checksum = "28403c86fc49e3401fdf45499ba37fad6493d9329449d6449d7f0e10f4654d28" dependencies = [ "cc", "cxxbridge-flags", @@ -1825,9 +1838,9 @@ dependencies = [ [[package]] name = "cxx-build" -version = "1.0.104" +version = "1.0.106" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac9ec8372f860c6ee7c6463b96a26d08dd590bcbcd9bf2d1894db09ae81410d3" +checksum = "78da94fef01786dc3e0c76eafcd187abcaa9972c78e05ff4041e24fdf059c285" dependencies = [ "cc", "codespan-reporting", @@ -1835,24 +1848,24 @@ dependencies = [ "proc-macro2", "quote", "scratch", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] name = "cxxbridge-flags" -version = "1.0.104" +version = "1.0.106" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "409667bbb937bae87f7cfa91ca29e1415bb92d415371e3344b5269c10d90d595" +checksum = "e2a6f5e1dfb4b34292ad4ea1facbfdaa1824705b231610087b00b17008641809" [[package]] name = "cxxbridge-macro" -version = "1.0.104" +version = "1.0.106" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fb2a9757fb085d6d97856b28d4f049141ca4a61a64c697f4426433b5f6caa1f" +checksum = "50c49547d73ba8dcfd4ad7325d64c6d5391ff4224d498fc39a6f3f49825a530d" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -2001,7 +2014,7 @@ dependencies = [ "async-trait", "avail-base", "avail-core", - "clap 4.3.19", + "clap 4.3.23", "clap_complete", "da-control", "da-runtime", @@ -2121,9 +2134,9 @@ dependencies = [ [[package]] name = "der" -version = "0.7.7" +version = "0.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c7ed52955ce76b1554f509074bb357d3fb8ac9b51288a65a3fd480d1dfba946" +checksum = "fffa369a668c8af7dbf8b5e56c9f744fbd399949ed171606040001947de40b1c" dependencies = [ "const-oid", "zeroize", @@ -2159,9 +2172,9 @@ dependencies = [ [[package]] name = "deranged" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7684a49fb1af197853ef7b2ee694bc1f5b4179556f1e5710e1760c5db6f5e929" +checksum = "f2696e8a945f658fd14dc3b87242e6b80cd0f36ff04ea560fa39082368847946" [[package]] name = "derivative" @@ -2325,7 +2338,7 @@ checksum = "487585f4d0c6655fe74905e2504d8ad6908e4db67f744eb140876906c2f3175d" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -2413,9 +2426,9 @@ dependencies = [ [[package]] name = "dyn-clone" -version = "1.0.12" +version = "1.0.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "304e6508efa593091e97a9abbc10f90aa7ca635b6d2784feff3c89d41dd12272" +checksum = "bbfc4744c1b8f2a09adc0e55242f60b1af195d88596bd8700be74418c056c555" [[package]] name = "ecdsa" @@ -2435,7 +2448,7 @@ version = "0.16.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a4b1e0c257a9e9f25f90ff76d7a68360ed497ee519c8e428d1825ef0000799d4" dependencies = [ - "der 0.7.7", + "der 0.7.8", "digest 0.10.7", "elliptic-curve 0.13.5", "rfc6979 0.4.0", @@ -2746,7 +2759,7 @@ dependencies = [ "fs-err", "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -2869,9 +2882,9 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "flate2" -version = "1.0.26" +version = "1.0.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b9429470923de8e8cbd4d2dc513535400b4b3fef0319fb5c4e1f520a7bef743" +checksum = "c6c98ee8095e9d1dcbf2fcc6d95acccb90d1c81db1e44725c6a984b1dbdfb010" dependencies = [ "crc32fast", "libz-sys", @@ -2949,7 +2962,7 @@ dependencies = [ "Inflector", "array-bytes", "chrono", - "clap 4.3.19", + "clap 4.3.23", "comfy-table", "frame-benchmarking", "frame-support", @@ -2997,7 +3010,7 @@ dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -3120,7 +3133,7 @@ dependencies = [ "proc-macro-warning", "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -3132,7 +3145,7 @@ dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -3142,7 +3155,7 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -3296,7 +3309,7 @@ dependencies = [ "futures-io", "memchr", "parking", - "pin-project-lite 0.2.11", + "pin-project-lite 0.2.12", "waker-fn", ] @@ -3308,7 +3321,7 @@ checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -3357,7 +3370,7 @@ dependencies = [ "futures-sink", "futures-task", "memchr", - "pin-project-lite 0.2.11", + "pin-project-lite 0.2.12", "pin-utils", "slab", ] @@ -3744,7 +3757,7 @@ checksum = "d5f38f16d184e36f2408a55281cd658ecbd3ca05cce6d6510a176eca393e26d1" dependencies = [ "bytes", "http", - "pin-project-lite 0.2.11", + "pin-project-lite 0.2.12", ] [[package]] @@ -3761,9 +3774,9 @@ checksum = "d897f394bad6a705d5f4104762e116a75639e470d80901eed05a860a95cb1904" [[package]] name = "httpdate" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421" +checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" [[package]] name = "humantime" @@ -3787,7 +3800,7 @@ dependencies = [ "httparse", "httpdate", "itoa", - "pin-project-lite 0.2.11", + "pin-project-lite 0.2.12", "socket2 0.4.9", "tokio", "tower-service", @@ -4050,7 +4063,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b" dependencies = [ "hermit-abi 0.3.2", - "rustix 0.38.7", + "rustix 0.38.8", "windows-sys 0.48.0", ] @@ -4287,7 +4300,7 @@ dependencies = [ [[package]] name = "kate" version = "0.8.0" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#2babbb8ee37d64fd7a34e96ad061d72da68c01af" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d25ef65c77792a47a9b4297bb29022a66f42a7dc" dependencies = [ "avail-core", "derive_more", @@ -4315,7 +4328,7 @@ dependencies = [ [[package]] name = "kate-recovery" version = "0.9.0" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#2babbb8ee37d64fd7a34e96ad061d72da68c01af" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d25ef65c77792a47a9b4297bb29022a66f42a7dc" dependencies = [ "avail-core", "derive_more", @@ -4425,12 +4438,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "libm" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fc7aa29613bd6a620df431842069224d8bc9011086b1db4c0e0cd47fa03ec9a" - [[package]] name = "libp2p" version = "0.51.3" @@ -4993,9 +5000,12 @@ dependencies = [ [[package]] name = "log" -version = "0.4.19" +version = "0.4.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b06a4cde4c0f271a446782e3eff8de789548ce57dbc8eca9292c27f4a42004b4" +checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" +dependencies = [ + "serde", +] [[package]] name = "lru" @@ -5062,7 +5072,7 @@ dependencies = [ "macro_magic_core", "macro_magic_macros", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -5076,7 +5086,7 @@ dependencies = [ "macro_magic_core_macros", "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -5087,7 +5097,7 @@ checksum = "c12469fc165526520dff2807c2975310ab47cf7190a45b99b49a7dc8befab17b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -5098,7 +5108,7 @@ checksum = "b8fb85ec1620619edf2984a7693497d4ec88a9665d8b87e942856884c92dbf2a" dependencies = [ "macro_magic_core", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -5514,7 +5524,7 @@ dependencies = [ [[package]] name = "nomad-base" version = "0.1.4" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#2babbb8ee37d64fd7a34e96ad061d72da68c01af" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d25ef65c77792a47a9b4297bb29022a66f42a7dc" dependencies = [ "ethers-signers", "nomad-core", @@ -5530,7 +5540,7 @@ dependencies = [ [[package]] name = "nomad-core" version = "0.1.4" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#2babbb8ee37d64fd7a34e96ad061d72da68c01af" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d25ef65c77792a47a9b4297bb29022a66f42a7dc" dependencies = [ "ethers-core", "ethers-signers", @@ -5593,7 +5603,7 @@ dependencies = [ [[package]] name = "nomad-merkle" version = "0.1.2" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#2babbb8ee37d64fd7a34e96ad061d72da68c01af" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d25ef65c77792a47a9b4297bb29022a66f42a7dc" dependencies = [ "avail-core", "frame-support", @@ -5611,7 +5621,7 @@ dependencies = [ [[package]] name = "nomad-signature" version = "0.1.2" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#2babbb8ee37d64fd7a34e96ad061d72da68c01af" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d25ef65c77792a47a9b4297bb29022a66f42a7dc" dependencies = [ "elliptic-curve 0.12.3", "ethers-core", @@ -5661,9 +5671,9 @@ dependencies = [ [[package]] name = "num-complex" -version = "0.4.3" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02e0d21255c828d6f128a1e41534206671e8c3ea0c62f32291e808dc82cff17d" +checksum = "1ba157ca0885411de85d6ca030ba7e2a83a28636056c7c699b07c8b6f7383214" dependencies = [ "num-traits", ] @@ -5847,16 +5857,6 @@ dependencies = [ "sha2 0.10.7", ] -[[package]] -name = "packed_simd_2" -version = "0.3.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1914cd452d8fccd6f9db48147b29fd4ae05bea9dc5d9ad578509f72415de282" -dependencies = [ - "cfg-if", - "libm", -] - [[package]] name = "pallet-authority-discovery" version = "4.0.0-dev" @@ -6303,7 +6303,7 @@ dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -6569,7 +6569,7 @@ dependencies = [ "libc", "redox_syscall 0.3.5", "smallvec", - "windows-targets 0.48.1", + "windows-targets 0.48.5", ] [[package]] @@ -6676,7 +6676,7 @@ dependencies = [ "pest_meta", "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -6717,7 +6717,7 @@ checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -6728,9 +6728,9 @@ checksum = "257b64915a082f7811703966789728173279bdebb956b143dbcd23f6f970a777" [[package]] name = "pin-project-lite" -version = "0.2.11" +version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c516611246607d0c04186886dbb3a754368ef82c79e9827a802c6d836dd111c" +checksum = "12cc1b0bf1727a77a54b6654e7b5f1af8604923edc8b81885f8ec92f9e3f0a05" [[package]] name = "pin-utils" @@ -6754,7 +6754,7 @@ version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7" dependencies = [ - "der 0.7.7", + "der 0.7.8", "spki 0.7.2", ] @@ -6810,7 +6810,7 @@ dependencies = [ "concurrent-queue", "libc", "log", - "pin-project-lite 0.2.11", + "pin-project-lite 0.2.12", "windows-sys 0.48.0", ] @@ -6923,7 +6923,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c64d9ba0963cdcea2e1b2230fbae2bab30eb25a174be395c41e764bfb65dd62" dependencies = [ "proc-macro2", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -6988,7 +6988,7 @@ checksum = "70550716265d1ec349c41f70dd4f964b4fd88394efe4405f0c1da679c4799a07" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -7028,13 +7028,13 @@ dependencies = [ [[package]] name = "prometheus-client-derive-encode" -version = "0.4.1" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72b6a5217beb0ad503ee7fa752d451c905113d70721b937126158f3106a48cc1" +checksum = "440f724eba9f6996b75d63681b0a92b06947f1457076d503a4d2e2c8f56442b8" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.29", ] [[package]] @@ -7159,9 +7159,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.32" +version = "1.0.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50f3b39ccfb720540debaa0164757101c08ecb8d326b15358ce76a62c7e85965" +checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae" dependencies = [ "proc-macro2", ] @@ -7342,22 +7342,22 @@ dependencies = [ [[package]] name = "ref-cast" -version = "1.0.19" +version = "1.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61ef7e18e8841942ddb1cf845054f8008410030a3997875d9e49b7a363063df1" +checksum = "acde58d073e9c79da00f2b5b84eed919c8326832648a5b109b3fce1bb1175280" dependencies = [ "ref-cast-impl", ] [[package]] name = "ref-cast-impl" -version = "1.0.19" +version = "1.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dfaf0c85b766276c797f3791f5bc6d5bd116b41d53049af2789666b0c0bc9fa" +checksum = "7f7473c2cfcf90008193dd0e3e16599455cb601a9fce322b5bb55de799664925" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -7637,11 +7637,11 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.7" +version = "0.38.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "172891ebdceb05aa0005f533a6cbfca599ddd7d966f6f5d4d9b2e70478e70399" +checksum = "19ed4fa021d81c8392ce04db050a3da9a60299050b7ae1cf482d862b54a7218f" dependencies = [ - "bitflags 2.3.3", + "bitflags 2.4.0", "errno", "libc", "linux-raw-sys 0.4.5", @@ -7848,7 +7848,7 @@ dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -7858,7 +7858,7 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "array-bytes", "chrono", - "clap 4.3.19", + "clap 4.3.23", "fdlimit", "futures", "libp2p-identity", @@ -8641,7 +8641,7 @@ dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -8842,7 +8842,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc" dependencies = [ "base16ct 0.2.0", - "der 0.7.7", + "der 0.7.8", "generic-array 0.14.7", "pkcs8 0.10.2", "subtle", @@ -8931,29 +8931,29 @@ checksum = "f638d531eccd6e23b980caf34876660d38e265409d8e99b397ab71eb3612fad0" [[package]] name = "serde" -version = "1.0.183" +version = "1.0.185" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32ac8da02677876d532745a130fc9d8e6edfa81a269b107c5b00829b91d8eb3c" +checksum = "be9b6f69f1dfd54c3b568ffa45c310d6973a5e5148fd40cf515acaf38cf5bc31" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.183" +version = "1.0.185" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aafe972d60b0b9bee71a91b92fee2d4fb3c9d7e8f6b179aa99f27203d99a4816" +checksum = "dc59dfdcbad1437773485e0367fea4b090a2e0a16d9ffc46af47764536a298ec" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] name = "serde_json" -version = "1.0.104" +version = "1.0.105" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "076066c5f1078eac5b722a31827a8832fe108bed65dfa75e233c89f8206e976c" +checksum = "693151e1ac27563d6dbcec9dee9fbd5da8539b20fa14ad3752b2e6d363ace360" dependencies = [ "itoa", "ryu", @@ -9131,14 +9131,14 @@ checksum = "5e9f0ab6ef7eb7353d9119c170a436d1bf248eea575ac42d19d12f4e34130831" [[package]] name = "snow" -version = "0.9.2" +version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ccba027ba85743e09d15c03296797cad56395089b832b48b5a5217880f57733" +checksum = "0c9d1425eb528a21de2755c75af4c9b5d57f50a0d4c3b7f1828a4cd03f8ba155" dependencies = [ "aes-gcm 0.9.4", "blake2", "chacha20poly1305", - "curve25519-dalek 4.0.0-rc.1", + "curve25519-dalek 4.0.0", "rand_core 0.6.4", "ring", "rustc_version", @@ -9215,7 +9215,7 @@ dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -9433,7 +9433,7 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "quote", "sp-core-hashing", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -9452,7 +9452,7 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -9659,7 +9659,7 @@ dependencies = [ "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -9844,7 +9844,7 @@ dependencies = [ "parity-scale-codec", "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -9909,14 +9909,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d1e996ef02c474957d681f1b05213dfb0abab947b446a62d37770b23500184a" dependencies = [ "base64ct", - "der 0.7.7", + "der 0.7.8", ] [[package]] name = "ss58-registry" -version = "1.41.0" +version = "1.43.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfc443bad666016e012538782d9e3006213a7db43e9fb1dda91657dc06a6fa08" +checksum = "5e6915280e2d0db8911e5032a5c275571af6bdded2916abd691a659be25d3439" dependencies = [ "Inflector", "num-format", @@ -10153,9 +10153,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.28" +version = "2.0.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04361975b3f5e348b2189d8dc55bc942f278b2d482a6a0365de5bdd62d351567" +checksum = "c324c494eba9d92503e6f1ef2e6df781e78f6a7705a0202d9801b198807d518a" dependencies = [ "proc-macro2", "quote", @@ -10209,14 +10209,14 @@ checksum = "9d0e916b1148c8e263850e1ebcbd046f333e0683c724876bb0da63ea4373dc8a" [[package]] name = "tempfile" -version = "3.7.1" +version = "3.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc02fddf48964c42031a0b3fe0428320ecf3a73c401040fc0096f97794310651" +checksum = "cb94d2f3cc536af71caac6b6fcebf65860b347e7ce0cc9ebe8f70d3e521054ef" dependencies = [ "cfg-if", "fastrand 2.0.0", "redox_syscall 0.3.5", - "rustix 0.38.7", + "rustix 0.38.8", "windows-sys 0.48.0", ] @@ -10256,22 +10256,22 @@ checksum = "222a222a5bfe1bba4a77b45ec488a741b3cb8872e5e499451fd7d0129c9c7c3d" [[package]] name = "thiserror" -version = "1.0.44" +version = "1.0.47" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "611040a08a0439f8248d1990b111c95baa9c704c805fa1f62104b39655fd7f90" +checksum = "97a802ec30afc17eee47b2855fc72e0c4cd62be9b4efe6591edde0ec5bd68d8f" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.44" +version = "1.0.47" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "090198534930841fab3a5d1bb637cde49e339654e606195f8d9c76eeb081dc96" +checksum = "6bb623b56e39ab7dcd4b1b98bb6c8f8d907ed255b18de254088016b27a8ee19b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -10423,20 +10423,19 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.29.1" +version = "1.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "532826ff75199d5833b9d2c5fe410f29235e25704ee5f0ef599fb51c21f4a4da" +checksum = "17ed6077ed6cd6c74735e21f37eb16dc3935f96878b1fe961074089cc80893f9" dependencies = [ - "autocfg", "backtrace", "bytes", "libc", "mio", "num_cpus", "parking_lot 0.12.1", - "pin-project-lite 0.2.11", + "pin-project-lite 0.2.12", "signal-hook-registry", - "socket2 0.4.9", + "socket2 0.5.3", "tokio-macros", "windows-sys 0.48.0", ] @@ -10449,7 +10448,7 @@ checksum = "630bdcf245f78637c13ec01ffae6187cca34625e8c63150d424b59e55af2675e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -10481,7 +10480,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "397c988d37662c7dda6d2208364a706264bf3d6138b11d436cbac0ad38832842" dependencies = [ "futures-core", - "pin-project-lite 0.2.11", + "pin-project-lite 0.2.12", "tokio", "tokio-util", ] @@ -10496,7 +10495,7 @@ dependencies = [ "futures-core", "futures-io", "futures-sink", - "pin-project-lite 0.2.11", + "pin-project-lite 0.2.12", "tokio", "tracing", ] @@ -10561,14 +10560,14 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "55ae70283aba8d2a8b411c695c437fe25b8b5e44e23e780662002fc72fb47a82" dependencies = [ - "bitflags 2.3.3", + "bitflags 2.4.0", "bytes", "futures-core", "futures-util", "http", "http-body", "http-range-header", - "pin-project-lite 0.2.11", + "pin-project-lite 0.2.12", "tower-layer", "tower-service", ] @@ -10593,7 +10592,7 @@ checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8" dependencies = [ "cfg-if", "log", - "pin-project-lite 0.2.11", + "pin-project-lite 0.2.12", "tracing-attributes", "tracing-core", ] @@ -10606,7 +10605,7 @@ checksum = "5f4f31f56159e98206da9efd823404b79b6ef3143b4a7ab76e67b1751b25a4ab" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] @@ -10753,7 +10752,7 @@ version = "0.10.0-dev" source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "async-trait", - "clap 4.3.19", + "clap 4.3.23", "frame-remote-externalities", "frame-try-runtime", "hex", @@ -11053,7 +11052,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", "wasm-bindgen-shared", ] @@ -11087,7 +11086,7 @@ checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -11464,9 +11463,9 @@ dependencies = [ [[package]] name = "webrtc-dtls" -version = "0.7.1" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "942be5bd85f072c3128396f6e5a9bfb93ca8c1939ded735d177b7bcba9a13d05" +checksum = "c4a00f4242f2db33307347bd5be53263c52a0331c96c14292118c9a6bb48d267" dependencies = [ "aes 0.6.0", "aes-gcm 0.10.2", @@ -11481,12 +11480,11 @@ dependencies = [ "hkdf", "hmac 0.12.1", "log", - "oid-registry 0.6.1", "p256", "p384", "rand 0.8.5", "rand_core 0.6.4", - "rcgen 0.9.3", + "rcgen 0.10.0", "ring", "rustls 0.19.1", "sec1 0.3.0", @@ -11499,7 +11497,7 @@ dependencies = [ "tokio", "webpki 0.21.4", "webrtc-util", - "x25519-dalek 2.0.0-pre.1", + "x25519-dalek 2.0.0", "x509-parser 0.13.2", ] @@ -11692,7 +11690,7 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f" dependencies = [ - "windows-targets 0.48.1", + "windows-targets 0.48.5", ] [[package]] @@ -11710,7 +11708,7 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" dependencies = [ - "windows-targets 0.48.1", + "windows-targets 0.48.5", ] [[package]] @@ -11730,17 +11728,17 @@ dependencies = [ [[package]] name = "windows-targets" -version = "0.48.1" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05d4b17490f70499f20b9e791dcf6a299785ce8af4d709018206dc5b4953e95f" +checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" dependencies = [ - "windows_aarch64_gnullvm 0.48.0", - "windows_aarch64_msvc 0.48.0", - "windows_i686_gnu 0.48.0", - "windows_i686_msvc 0.48.0", - "windows_x86_64_gnu 0.48.0", - "windows_x86_64_gnullvm 0.48.0", - "windows_x86_64_msvc 0.48.0", + "windows_aarch64_gnullvm 0.48.5", + "windows_aarch64_msvc 0.48.5", + "windows_i686_gnu 0.48.5", + "windows_i686_msvc 0.48.5", + "windows_x86_64_gnu 0.48.5", + "windows_x86_64_gnullvm 0.48.5", + "windows_x86_64_msvc 0.48.5", ] [[package]] @@ -11751,9 +11749,9 @@ checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" [[package]] name = "windows_aarch64_gnullvm" -version = "0.48.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc" +checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" [[package]] name = "windows_aarch64_msvc" @@ -11769,9 +11767,9 @@ checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" [[package]] name = "windows_aarch64_msvc" -version = "0.48.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3" +checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" [[package]] name = "windows_i686_gnu" @@ -11787,9 +11785,9 @@ checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" [[package]] name = "windows_i686_gnu" -version = "0.48.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241" +checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" [[package]] name = "windows_i686_msvc" @@ -11805,9 +11803,9 @@ checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" [[package]] name = "windows_i686_msvc" -version = "0.48.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00" +checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" [[package]] name = "windows_x86_64_gnu" @@ -11823,9 +11821,9 @@ checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" [[package]] name = "windows_x86_64_gnu" -version = "0.48.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca2b8a661f7628cbd23440e50b05d705db3686f894fc9580820623656af974b1" +checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" [[package]] name = "windows_x86_64_gnullvm" @@ -11835,9 +11833,9 @@ checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" [[package]] name = "windows_x86_64_gnullvm" -version = "0.48.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953" +checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" [[package]] name = "windows_x86_64_msvc" @@ -11853,15 +11851,15 @@ checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" [[package]] name = "windows_x86_64_msvc" -version = "0.48.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a" +checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" [[package]] name = "winnow" -version = "0.5.4" +version = "0.5.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acaaa1190073b2b101e15083c38ee8ec891b5e05cbee516521e94ec008f61e64" +checksum = "d09770118a7eb1ccaf4a594a221334119a44a814fcb0d31c5b85e83e97227a97" dependencies = [ "memchr", ] @@ -11898,12 +11896,13 @@ dependencies = [ [[package]] name = "x25519-dalek" -version = "2.0.0-pre.1" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5da623d8af10a62342bcbbb230e33e58a63255a58012f8653c578e54bab48df" +checksum = "fb66477291e7e8d2b0ff1bcb900bf29489a9692816d79874bea351e7a8b6de96" dependencies = [ - "curve25519-dalek 3.2.0", + "curve25519-dalek 4.0.0", "rand_core 0.6.4", + "serde", "zeroize", ] @@ -11984,7 +11983,7 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.28", + "syn 2.0.29", ] [[package]] diff --git a/pallets/bridges/nomad/da-bridge/src/lib.rs b/pallets/bridges/nomad/da-bridge/src/lib.rs index 779d490bb..22f488d33 100644 --- a/pallets/bridges/nomad/da-bridge/src/lib.rs +++ b/pallets/bridges/nomad/da-bridge/src/lib.rs @@ -47,7 +47,7 @@ pub mod pallet { // Genesis config #[pallet::genesis_config] - #[cfg_attr(feature = "std", derive(Default))] + #[derive(Default)] pub struct GenesisConfig {} #[pallet::genesis_build] diff --git a/pallets/bridges/nomad/home/src/lib.rs b/pallets/bridges/nomad/home/src/lib.rs index f3135b803..db1308df1 100644 --- a/pallets/bridges/nomad/home/src/lib.rs +++ b/pallets/bridges/nomad/home/src/lib.rs @@ -21,7 +21,7 @@ pub mod pallet { use frame_support::{ pallet_prelude::{ValueQuery, *}, sp_runtime::ArithmeticError::Overflow, - transactional, + transactional, DefaultNoBound, }; use frame_system::pallet_prelude::{OriginFor, *}; use nomad_base::NomadBase; @@ -74,6 +74,7 @@ pub mod pallet { // Genesis config #[pallet::genesis_config] + #[derive(DefaultNoBound)] pub struct GenesisConfig { pub local_domain: u32, pub committed_root: H256, @@ -81,18 +82,6 @@ pub mod pallet { pub _phantom: PhantomData, } - #[cfg(feature = "std")] - impl Default for GenesisConfig { - fn default() -> Self { - Self { - local_domain: Default::default(), - committed_root: Default::default(), - updater: Default::default(), - _phantom: Default::default(), - } - } - } - #[pallet::genesis_build] impl BuildGenesisConfig for GenesisConfig { fn build(&self) { diff --git a/pallets/bridges/nomad/updater-manager/src/lib.rs b/pallets/bridges/nomad/updater-manager/src/lib.rs index bfee73305..59a53ce42 100644 --- a/pallets/bridges/nomad/updater-manager/src/lib.rs +++ b/pallets/bridges/nomad/updater-manager/src/lib.rs @@ -15,9 +15,11 @@ mod benchmarking; #[frame_support::pallet] pub mod pallet { - use frame_support::pallet_prelude::{ValueQuery, *}; + use frame_support::{ + pallet_prelude::{ValueQuery, *}, + DefaultNoBound, + }; use sp_core::H160; - #[pallet::config] pub trait Config: frame_system::Config { type RuntimeEvent: From> + IsType<::RuntimeEvent>; @@ -33,21 +35,12 @@ pub mod pallet { // Genesis config #[pallet::genesis_config] + #[derive(DefaultNoBound)] pub struct GenesisConfig { pub updater: H160, pub _phantom: PhantomData, } - #[cfg(feature = "std")] - impl Default for GenesisConfig { - fn default() -> Self { - Self { - updater: Default::default(), - _phantom: Default::default(), - } - } - } - #[pallet::genesis_build] impl BuildGenesisConfig for GenesisConfig { fn build(&self) { >::put(self.updater); } diff --git a/pallets/dactr/src/lib.rs b/pallets/dactr/src/lib.rs index 93a8aef0a..82597e581 100644 --- a/pallets/dactr/src/lib.rs +++ b/pallets/dactr/src/lib.rs @@ -10,7 +10,7 @@ use frame_system::{limits::BlockLength, pallet::DynamicBlockLength}; #[cfg(feature = "std")] use serde::{Deserialize, Serialize}; use sp_arithmetic::traits::{CheckedAdd, One, SaturatedConversion}; -use sp_std::mem::replace; +use sp_std::{mem::replace, vec, vec::Vec}; pub use crate::{pallet::*, weights::WeightInfo}; @@ -26,7 +26,7 @@ pub mod weights; #[frame_support::pallet] pub mod pallet { - use frame_support::pallet_prelude::*; + use frame_support::{pallet_prelude::*, DefaultNoBound}; use frame_system::pallet_prelude::*; use super::*; @@ -216,15 +216,14 @@ pub mod pallet { } #[pallet::genesis_config] + #[derive(DefaultNoBound)] pub struct GenesisConfig { + #[serde(skip)] + pub _config: sp_std::marker::PhantomData, + #[serde(skip)] pub app_keys: Vec<(Vec, AppKeyInfoFor)>, } - #[cfg(feature = "std")] - impl Default for GenesisConfig { - fn default() -> Self { Self { app_keys: vec![] } } - } - #[pallet::genesis_build] impl BuildGenesisConfig for GenesisConfig { fn build(&self) { diff --git a/pallets/system/src/lib.rs b/pallets/system/src/lib.rs index f3d96dc87..b3a0c1a6a 100644 --- a/pallets/system/src/lib.rs +++ b/pallets/system/src/lib.rs @@ -219,7 +219,7 @@ impl Default for ExtrinsicLen { #[frame_support::pallet] pub mod pallet { - use frame_support::pallet_prelude::*; + use frame_support::{pallet_prelude::*, DefaultNoBound}; use crate::{self as frame_system, pallet_prelude::*, *}; @@ -682,7 +682,7 @@ pub mod pallet { #[pallet::getter(fn block_length)] pub type DynamicBlockLength = StorageValue<_, limits::BlockLength, ValueQuery>; - // #[derive(frame_support::DefaultNoBound)] + #[derive(DefaultNoBound)] #[pallet::genesis_config] pub struct GenesisConfig { #[serde(with = "sp_core::bytes")] @@ -691,35 +691,11 @@ pub mod pallet { pub _config: sp_std::marker::PhantomData, #[serde(with = "sp_core::bytes")] pub kc_public_params: Vec, + // TODO: Add serialiization support for BlockLength in no_std + #[serde(skip)] pub block_length: limits::BlockLength, } - #[cfg(feature = "std")] - impl Default for GenesisConfig { - fn default() -> Self { - use kate::config::{MAX_BLOCK_COLUMNS, MAX_BLOCK_ROWS}; - - let normal = sp_runtime::Perbill::from_percent(90); - let block_length = limits::BlockLength::with_normal_ratio( - MAX_BLOCK_ROWS, - MAX_BLOCK_COLUMNS, - BLOCK_CHUNK_SIZE, - normal, - ) - .expect("Valid BlockLength at genesis .qed"); - - let kc_public_params = - kate::testnet::public_params(MAX_BLOCK_COLUMNS).to_raw_var_bytes(); - - Self { - code: Default::default(), - _config: Default::default(), - kc_public_params, - block_length, - } - } - } - #[pallet::genesis_build] impl BuildGenesisConfig for GenesisConfig { fn build(&self) { diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index affb1eec1..a0ee34bf2 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -21,6 +21,7 @@ #![cfg_attr(not(feature = "std"), no_std)] // `construct_runtime!` does a lot of recursion and requires us to increase the limit to 512. #![recursion_limit = "512"] +#![feature(trivial_bounds)] #![feature(result_option_inspect)] #![allow(macro_expanded_macro_exports_accessed_by_absolute_paths)] diff --git a/runtime/src/primitives.rs b/runtime/src/primitives.rs index 644c01b8a..9c86fbf51 100644 --- a/runtime/src/primitives.rs +++ b/runtime/src/primitives.rs @@ -34,10 +34,7 @@ pub type Header = DaHeader; /// Unchecked extrinsic type as expected by this runtime. pub type UncheckedExtrinsic = AppUncheckedExtrinsic; /// DA Block type as expected by this runtime. -pub type Block = avail_core::DaBlock< - avail_core::header::Header, - UncheckedExtrinsic, ->; +pub type Block = avail_core::DaBlock; /// Block type for the node pub type NodeBlock = generic::Block; /// A Block signed with a Justification From 096c4876d79ad3037dc27a023528aada8effd8a0 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Tue, 22 Aug 2023 15:23:31 +0530 Subject: [PATCH 23/58] Added missing configs & functions to runtime --- Cargo.toml | 1 - pallets/dactr/src/mock.rs | 1 + runtime/src/apis.rs | 31 ++++++++++++++++++++++++++++--- runtime/src/constants.rs | 14 ++++---------- runtime/src/impls.rs | 6 +++--- runtime/src/lib.rs | 10 ++++++++-- 6 files changed, 44 insertions(+), 19 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 77d7317f6..0dab25891 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -196,7 +196,6 @@ hmac = { opt-level = 3 } httparse = { opt-level = 3 } integer-sqrt = { opt-level = 3 } keccak = { opt-level = 3 } -libm = { opt-level = 3 } librocksdb-sys = { opt-level = 3 } libsecp256k1 = { opt-level = 3 } libz-sys = { opt-level = 3 } diff --git a/pallets/dactr/src/mock.rs b/pallets/dactr/src/mock.rs index 2f50627bc..582a4a885 100644 --- a/pallets/dactr/src/mock.rs +++ b/pallets/dactr/src/mock.rs @@ -151,6 +151,7 @@ pub fn new_test_ext() -> sp_io::TestExternalities { .unwrap(); da_control::GenesisConfig:: { + _config: Default::default(), app_keys: vec![ (b"Data Avail".to_vec(), AppKeyInfo { owner: 1, diff --git a/runtime/src/apis.rs b/runtime/src/apis.rs index 931d2b8ab..7bffed9cd 100644 --- a/runtime/src/apis.rs +++ b/runtime/src/apis.rs @@ -1,7 +1,8 @@ use avail_core::{header::HeaderExtension, well_known_keys::KATE_PUBLIC_PARAMS, OpaqueExtrinsic}; -use frame_support::traits::{KeyOwnerProofSystem, Randomness}; -#[cfg(feature = "try-runtime")] -use frame_support::weights::Weight; +use frame_support::{ + traits::{KeyOwnerProofSystem, Randomness}, + weights::Weight, +}; use frame_system::limits::BlockLength; use pallet_grandpa::{ fg_primitives, AuthorityId as GrandpaId, AuthorityList as GrandpaAuthorityList, @@ -69,6 +70,14 @@ impl_runtime_apis! { fn metadata() -> OpaqueMetadata { OpaqueMetadata::new(Runtime::metadata().into()) } + + fn metadata_at_version(version: u32) -> Option { + Runtime::metadata_at_version(version) + } + + fn metadata_versions() -> sp_std::vec::Vec { + Runtime::metadata_versions() + } } impl sp_block_builder::BlockBuilder for Runtime { @@ -213,6 +222,14 @@ impl_runtime_apis! { fn query_fee_details(uxt: ::Extrinsic, len: u32) -> FeeDetails { TransactionPayment::query_fee_details(uxt, len) } + + fn query_weight_to_fee(weight: Weight) -> Balance { + TransactionPayment::weight_to_fee(weight) + } + + fn query_length_to_fee(length: u32) -> Balance { + TransactionPayment::length_to_fee(length) + } } impl pallet_transaction_payment_rpc_runtime_api::TransactionPaymentCallApi @@ -224,6 +241,14 @@ impl_runtime_apis! { fn query_call_fee_details(call: RuntimeCall, len: u32) -> FeeDetails { TransactionPayment::query_call_fee_details(call, len) } + + fn query_weight_to_fee(weight: Weight) -> Balance { + TransactionPayment::weight_to_fee(weight) + } + + fn query_length_to_fee(length: u32) -> Balance { + TransactionPayment::length_to_fee(length) + } } impl pallet_mmr::primitives::MmrApi< diff --git a/runtime/src/constants.rs b/runtime/src/constants.rs index adb34c7c2..cc2b20112 100644 --- a/runtime/src/constants.rs +++ b/runtime/src/constants.rs @@ -100,9 +100,7 @@ pub mod time { pub mod system { use avail_core::NORMAL_DISPATCH_RATIO; - use frame_support::weights::constants::{ - ExtrinsicBaseWeight, WEIGHT_REF_TIME_PER_MILLIS, WEIGHT_REF_TIME_PER_SECOND, - }; + use frame_support::weights::constants::{ExtrinsicBaseWeight, WEIGHT_REF_TIME_PER_SECOND}; use frame_system::limits::BlockWeights as SystemBlockWeights; use super::*; @@ -115,20 +113,15 @@ pub mod system { /// This is used to limit the maximal weight of a single extrinsic. const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(10); - /// Proof size allowed up to 500ms. - const MAX_POV_SIZE: u64 = WEIGHT_REF_TIME_PER_MILLIS.saturating_mul(500); - /// We allow for 2 seconds of compute with a 6 second average block time, with maximum proof size. #[cfg(feature = "fast-runtime")] const MAXIMUM_BLOCK_WEIGHT: Weight = - Weight::from_ref_time(WEIGHT_REF_TIME_PER_SECOND.saturating_mul(2)) - .set_proof_size(MAX_POV_SIZE); + Weight::from_parts(WEIGHT_REF_TIME_PER_SECOND.saturating_mul(2), u64::MAX); /// We allow for 5 seconds of compute with a 20 second average block time, with maximum proof size. #[cfg(not(feature = "fast-runtime"))] const MAXIMUM_BLOCK_WEIGHT: Weight = - Weight::from_ref_time(WEIGHT_REF_TIME_PER_SECOND.saturating_mul(5)) - .set_proof_size(MAX_POV_SIZE); + Weight::from_parts(WEIGHT_REF_TIME_PER_SECOND.saturating_mul(5), u64::MAX); parameter_types! { pub RuntimeBlockWeights: SystemBlockWeights = SystemBlockWeights::builder() @@ -228,6 +221,7 @@ pub mod elections { // additional data per vote is 32 bytes (account id). pub const VotingBondFactor: Balance = deposit(0, 32); pub const DesiredMembers :u32 = 3; + pub const MaxVotesPerVoter: u32 = 16; } pub type DesiredRunnersUp = ConstU32<3>; diff --git a/runtime/src/impls.rs b/runtime/src/impls.rs index d949af565..14f3ced48 100644 --- a/runtime/src/impls.rs +++ b/runtime/src/impls.rs @@ -119,7 +119,7 @@ mod multiplier_tests { use sp_runtime::{ assert_eq_error_rate, traits::{Convert, One, Zero}, - FixedPointNumber, + BuildStorage, FixedPointNumber, }; use crate::{ @@ -178,8 +178,8 @@ mod multiplier_tests { where F: Fn() -> (), { - let mut t: sp_io::TestExternalities = frame_system::GenesisConfig::default() - .build_storage::() + let mut t: sp_io::TestExternalities = frame_system::GenesisConfig::::default() + .build_storage() .unwrap() .into(); t.execute_with(|| { diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index a0ee34bf2..08c49055d 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -46,7 +46,7 @@ pub use frame_support::{ }, PalletId, RuntimeDebug, StorageValue, }; -use frame_system::{limits::BlockLength, submitted_data, EnsureRoot}; +use frame_system::{limits::BlockLength, submitted_data, EnsureRoot, EnsureSigned}; use pallet_election_provider_multi_phase::SolutionAccuracyOf; use pallet_session::historical as pallet_session_historical; use sp_core::{crypto::KeyTypeId, OpaqueMetadata}; @@ -118,6 +118,7 @@ pub fn wasm_binary_unwrap() -> &'static [u8] { } /// Runtime version. +#[sp_version::runtime_version] pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("data-avail"), impl_name: create_runtime_str!("data-avail"), @@ -167,7 +168,6 @@ parameter_types! { pub const Version: RuntimeVersion = VERSION; pub RuntimeBlockLength: BlockLength = BlockLength::max_with_normal_ratio(5 * 1024 * 1024, NORMAL_DISPATCH_RATIO); - pub const MaximumBlockWeight: Weight = Weight::from_ref_time(WEIGHT_REF_TIME_PER_SECOND.saturating_mul(2)); } /// Filters and extracts `data` from `call` if it is a `DataAvailability::submit_data` type. @@ -533,6 +533,7 @@ impl pallet_election_provider_multi_phase::MinerConfig for Runtime { type MaxVotesPerVoter = <::DataProvider as ElectionDataProvider>::MaxVotesPerVoter; type MaxWeight = constants::staking::MinerMaxWeight; + type MaxWinners = ::MaxWinners; type Solution = constants::staking::NposSolution16; // The unsigned submissions have to respect the weight of the submit_unsigned call, thus their @@ -670,6 +671,7 @@ impl pallet_democracy::Config for Runtime { type RuntimeEvent = RuntimeEvent; type Scheduler = Scheduler; type Slash = Treasury; + type SubmitOrigin = EnsureSigned; // Any single technical committee member may veto a coming council proposal, however they can // only do it once and it lasts only for the cool-off period. type VetoOrigin = pallet_collective::EnsureMember; @@ -688,6 +690,7 @@ impl pallet_collective::Config for Runtime { type Proposal = RuntimeCall; type RuntimeEvent = RuntimeEvent; type RuntimeOrigin = RuntimeOrigin; + type SetMembersOrigin = EnsureRoot; type WeightInfo = pallet_collective::weights::SubstrateWeight; } @@ -705,6 +708,7 @@ impl pallet_elections_phragmen::Config for Runtime { type LoserCandidate = Treasury; type MaxCandidates = constants::elections::MaxCandidates; type MaxVoters = constants::elections::MaxVoters; + type MaxVotesPerVoter = constants::elections::MaxVotesPerVoter; type PalletId = constants::elections::PalletId; type RuntimeEvent = RuntimeEvent; type TermDuration = constants::elections::TermDuration; @@ -723,6 +727,7 @@ impl pallet_collective::Config for Runtime { type Proposal = RuntimeCall; type RuntimeEvent = RuntimeEvent; type RuntimeOrigin = RuntimeOrigin; + type SetMembersOrigin = EnsureRoot; type WeightInfo = pallet_collective::weights::SubstrateWeight; } @@ -811,6 +816,7 @@ impl pallet_tips::Config for Runtime { impl pallet_sudo::Config for Runtime { type RuntimeCall = RuntimeCall; type RuntimeEvent = RuntimeEvent; + type WeightInfo = pallet_sudo::weights::SubstrateWeight; } impl frame_system::offchain::CreateSignedTransaction for Runtime From 3c4f70292ab4c60b4b8b93642917a09abc27e1a1 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Tue, 22 Aug 2023 15:24:31 +0530 Subject: [PATCH 24/58] Temp: removed da-bridge from runtime --- runtime/src/lib.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 08c49055d..bca4cc3f3 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -954,11 +954,11 @@ impl nomad_home::Config for Runtime { type WeightInfo = nomad_home::weights::SubstrateWeight; } -impl nomad_da_bridge::Config for Runtime { - type DABridgePalletId = constants::nomad::DABridgePalletId; - type RuntimeEvent = RuntimeEvent; - type WeightInfo = nomad_da_bridge::weights::SubstrateWeight; -} +// impl nomad_da_bridge::Config for Runtime { +// type DABridgePalletId = constants::nomad::DABridgePalletId; +// type RuntimeEvent = RuntimeEvent; +// type WeightInfo = nomad_da_bridge::weights::SubstrateWeight; +// } // TODO @miguel Aline this with previous order and ID to keep the compatibility. // Create the runtime by composing the FRAME pallets that were previously configured. @@ -1003,7 +1003,7 @@ construct_runtime!( // Nomad NomadUpdaterManager: nomad_updater_manager = 30, NomadHome: nomad_home = 31, - NomadDABridge: nomad_da_bridge = 32, + // NomadDABridge: nomad_da_bridge = 32, // More from upgrade to v0.9.33 Preimage: pallet_preimage = 33, @@ -1054,7 +1054,7 @@ mod benches { [frame_system, SystemBench::] [da_control, crate::DataAvailability] [nomad_home, crate::NomadHome] - [nomad_da_bridge, crate::NomadDABridge] + // [nomad_da_bridge, crate::NomadDABridge] ); } @@ -1125,7 +1125,7 @@ mod tests { as TryState>::try_state(block, All)?; as TryState>::try_state(block, All)?; as TryState>::try_state(block, All)?; - as TryState>::try_state(block, All)?; + // as TryState>::try_state(block, All)?; as TryState>::try_state(block, All)?; as TryState>::try_state(block, All)?; as TryState< @@ -1197,14 +1197,14 @@ mod tests { const NOMAD_UPDATER_MANAGER_CALL_SIZE: usize = size_of::>(); const NOMAD_HOME_CALL_SIZE: usize = size_of::>(); - const NOMAD_BRIDGE_CALL_SIZE: usize = size_of::>(); + // const NOMAD_BRIDGE_CALL_SIZE: usize = size_of::>(); #[test_case( RUNTIME_CALL_SIZE => 160)] #[test_case( DA_CALL_SIZE => 32)] #[test_case( SYSTEM_CALL_SIZE => 32)] #[test_case( NOMAD_UPDATER_MANAGER_CALL_SIZE => 0)] #[test_case( NOMAD_HOME_CALL_SIZE => 152)] - #[test_case( NOMAD_BRIDGE_CALL_SIZE => 48)] + // #[test_case( NOMAD_BRIDGE_CALL_SIZE => 48)] fn call_size(size: usize) -> usize { const MAX_CALL_SIZE: usize = 208; assert!( From 23c42cc17e5516804c86f4ed4f90a8ca29765fae Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Tue, 22 Aug 2023 20:35:45 +0530 Subject: [PATCH 25/58] Fixed runtime tests --- runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index bca4cc3f3..eb8bcb105 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -1220,7 +1220,7 @@ mod tests { const TRANSFER_RAW : &[u8]= &hex!("b4040600008eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a4813000064a7b3b6e00d"); /// Creates a transfer tx of 1 AVL to Bob. fn transfer_expected() -> RuntimeCall { - RuntimeCall::Balances(pallet_balances::Call::transfer { + RuntimeCall::Balances(pallet_balances::Call::transfer_allow_death { dest: MultiAddress::Id(Bob.to_account_id()), value: 1 * AVL, }) From b2b64bfbde91bb3f502195b5d3fab003c25d650a Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Tue, 22 Aug 2023 21:45:36 +0530 Subject: [PATCH 26/58] Fixed kate-rpc's --- rpc/kate-rpc/src/lib.rs | 80 ++++++++++++++++++----------------------- 1 file changed, 35 insertions(+), 45 deletions(-) diff --git a/rpc/kate-rpc/src/lib.rs b/rpc/kate-rpc/src/lib.rs index 0054e7d2b..3c208f08d 100644 --- a/rpc/kate-rpc/src/lib.rs +++ b/rpc/kate-rpc/src/lib.rs @@ -6,8 +6,10 @@ use std::{ use avail_base::metrics::RPCMetricAdapter; use avail_core::{ - header::HeaderExtension, traits::ExtendedHeader, AppExtrinsic, AppId, BlockLengthColumns, - BlockLengthRows, DataProof, OpaqueExtrinsic, BLOCK_CHUNK_SIZE, + header::extension::v1::HeaderExtension, + traits::{ExtendedBlock as DaBlock, ExtendedHeader}, + AppExtrinsic, AppId, BlockLengthColumns, BlockLengthRows, DataProof, OpaqueExtrinsic, + BLOCK_CHUNK_SIZE, }; use da_runtime::{apis::DataAvailApi, Runtime, UncheckedExtrinsic}; use frame_system::{limits::BlockLength, submitted_data}; @@ -27,7 +29,7 @@ use sc_client_api::BlockBackend; use sp_api::ProvideRuntimeApi; use sp_blockchain::HeaderBackend; use sp_runtime::{ - generic::{BlockId, Digest}, + generic::Digest, traits::{Block as BlockT, Header}, }; @@ -36,7 +38,7 @@ pub type HashOf = ::Hash; #[rpc(client, server)] pub trait KateApi where - Block: BlockT, + Block: DaBlock, { #[method(name = "kate_queryRows")] async fn query_rows( @@ -67,12 +69,12 @@ where } #[allow(clippy::type_complexity)] -pub struct Kate { +pub struct Kate> { client: Arc, block_ext_cache: RwLock>>, } -impl Kate { +impl> Kate { pub fn new(client: Arc) -> Self { Self { client, @@ -106,9 +108,9 @@ macro_rules! internal_err { /// If feature `secure_padding_fill` is enabled then the returned seed is generated using Babe VRF. /// Otherwise, it will use the default `Seed` value. -fn get_seed(client: &C, block_id: &BlockId) -> Option +fn get_seed(client: &C, at: ::Hash) -> Option where - B: BlockT, + B: DaBlock, ::Header: ExtendedHeader< <::Header as Header>::Number, ::Hash, @@ -119,7 +121,7 @@ where C::Api: DataAvailApi, { if cfg!(feature = "secure_padding_fill") { - client.runtime_api().babe_vrf(block_id).ok() + client.runtime_api().babe_vrf(at).ok() } else { Some(Seed::default()) } @@ -127,7 +129,7 @@ where impl Kate where - Block: BlockT, + Block: DaBlock, Client: Send + Sync + 'static, Client: HeaderBackend + ProvideRuntimeApi + BlockBackend, Client::Api: DataAvailApi, @@ -135,17 +137,12 @@ where fn at_or_best(&self, at: Option<::Hash>) -> ::Hash { at.unwrap_or_else(|| self.client.info().best_hash) } - - #[inline] - fn block_id(&self, at: Option<::Hash>) -> BlockId { - BlockId::Hash(self.at_or_best(at)) - } } #[async_trait] impl KateApiServer for Kate where - Block: BlockT, + Block: BlockT + DaBlock, ::Header: ExtendedHeader< <::Header as Header>::Number, ::Hash, @@ -162,13 +159,12 @@ where at: Option>, ) -> RpcResult>> { let at = self.at_or_best(at); - let block_id = BlockId::Hash(at); let signed_block = self .client .block(at) .map_err(|e| internal_err!("Invalid block number: {:?}", e))? - .ok_or_else(|| internal_err!("Missing block {}", block_id))?; + .ok_or_else(|| internal_err!("Missing block {}", at))?; let block_hash = signed_block.block.header().hash(); @@ -193,13 +189,13 @@ where .map(AppExtrinsic::from) .collect(); - let seed = get_seed::(&self.client, &block_id) - .ok_or_else(|| internal_err!("Babe VRF not found for block {}", block_id))?; + let seed = get_seed::(&self.client, at) + .ok_or_else(|| internal_err!("Babe VRF not found for block {}", at))?; let block_length: BlockLength = self .client .runtime_api() - .block_length(&block_id) + .block_length(at) .map_err(|e| internal_err!("Block Length cannot be fetched: {:?}", e))?; let (_, block, block_dims) = kate::com::flatten_and_pad_block( @@ -231,13 +227,12 @@ where at: Option>, ) -> RpcResult>>> { let at = self.at_or_best(at); - let block_id = BlockId::Hash(at); let signed_block = self .client .block(at) .map_err(|e| internal_err!("Invalid block number: {:?}", e))? - .ok_or_else(|| internal_err!("Missing block {}", block_id))?; + .ok_or_else(|| internal_err!("Missing block {}", at))?; let block_hash = signed_block.block.header().hash(); @@ -265,11 +260,11 @@ where let block_length: BlockLength = self .client .runtime_api() - .block_length(&block_id) + .block_length(at) .map_err(|e| internal_err!("Block Length cannot be fetched: {:?}", e))?; - let seed = get_seed::(&self.client, &block_id) - .ok_or_else(|| internal_err!("Babe VRF not found for block {block_id}"))?; + let seed = get_seed::(&self.client, at) + .ok_or_else(|| internal_err!("Babe VRF not found for block {at}"))?; let (_, block, block_dims) = kate::com::flatten_and_pad_block( block_length.rows, @@ -305,13 +300,12 @@ where //TODO allocate static thread pool, just for RPC related work, to free up resources, for the block producing processes. async fn query_proof(&self, cells: Vec, at: Option>) -> RpcResult> { let at = self.at_or_best(at); - let block_id = BlockId::Hash(at); let signed_block = self .client .block(at) .map_err(|e| internal_err!("Invalid block number: {:?}", e))? - .ok_or_else(|| internal_err!("Missing block {}", block_id))?; + .ok_or_else(|| internal_err!("Missing block {}", at))?; let block_hash = signed_block.block.header().hash(); @@ -340,11 +334,11 @@ where let block_length: BlockLength = self .client .runtime_api() - .block_length(&block_id) + .block_length(at) .map_err(|e| internal_err!("Block Length cannot be fetched: {:?}", e))?; - let seed = get_seed::(&self.client, &block_id) - .ok_or_else(|| internal_err!("Babe VRF not found for block {block_id}"))?; + let seed = get_seed::(&self.client, at) + .ok_or_else(|| internal_err!("Babe VRF not found for block {at}"))?; let (_, block, block_dims) = kate::com::flatten_and_pad_block( block_length.rows, @@ -371,17 +365,13 @@ where ) .ok_or_else(|| internal_err!("Block dimensions are invalid"))?; - let kc_public_params_raw = - self.client - .runtime_api() - .public_params(&block_id) - .map_err(|e| { - internal_err!( - "Public params cannot be fetched on block {}: {:?}", - block_hash, - e - ) - })?; + let kc_public_params_raw = self.client.runtime_api().public_params(at).map_err(|e| { + internal_err!( + "Public params cannot be fetched on block {}: {:?}", + block_hash, + e + ) + })?; let kc_public_params = unsafe { PublicParameters::from_slice_unchecked(&kc_public_params_raw) }; @@ -393,12 +383,12 @@ where } async fn query_block_length(&self, at: Option>) -> RpcResult { - let block_id = self.block_id(at); + let at = self.at_or_best(at); let block_length = self .client .runtime_api() - .block_length(&block_id) - .map_err(|e| internal_err!("Length of best block({:?}): {:?}", block_id, e))?; + .block_length(at) + .map_err(|e| internal_err!("Length of best block({:?}): {:?}", at, e))?; Ok(block_length) } From 8142d016c9c39d0dac8306ced8060b0512994fb4 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Wed, 23 Aug 2023 13:26:22 +0530 Subject: [PATCH 27/58] Fixed compile errors of node service --- Cargo.lock | 3 +- Cargo.toml | 6 +- node/Cargo.toml | 11 +- node/src/chain_spec.rs | 19 ++-- node/src/chain_spec/config.rs | 8 +- node/src/chain_spec/locals.rs | 4 +- node/src/chain_spec/locals/solo.rs | 4 +- node/src/chain_spec/locals/tri.rs | 4 +- node/src/chain_spec/testnets.rs | 4 +- node/src/chain_spec/testnets/kate.rs | 6 +- node/src/command.rs | 2 +- node/src/da_block_import.rs | 17 ++-- node/src/rpc.rs | 37 +++---- node/src/service.rs | 145 ++++++++++++--------------- rpc/kate-rpc/src/lib.rs | 18 ++-- runtime/Cargo.toml | 2 + runtime/src/apis.rs | 22 ++-- 17 files changed, 149 insertions(+), 163 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c52708680..8ea4e5add 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1955,6 +1955,7 @@ dependencies = [ "sp-authority-discovery", "sp-block-builder", "sp-consensus-babe", + "sp-consensus-grandpa", "sp-core", "sp-inherents", "sp-io", @@ -2050,7 +2051,6 @@ dependencies = [ "sc-consensus", "sc-consensus-babe", "sc-consensus-babe-rpc", - "sc-consensus-epochs", "sc-consensus-grandpa", "sc-consensus-grandpa-rpc", "sc-consensus-slots", @@ -2058,6 +2058,7 @@ dependencies = [ "sc-keystore", "sc-network", "sc-network-common", + "sc-network-sync", "sc-rpc", "sc-rpc-api", "sc-rpc-spec-v2", diff --git a/Cargo.toml b/Cargo.toml index 0dab25891..a2170b03f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -58,8 +58,7 @@ sc-consensus = { git = "https://github.com/paritytech/substrate.git", branch = " # Renamed: (https://github.com/paritytech/substrate/pull/13458) # sp-finality-grandpa -> sp-consensus-grandpa # sc-finality-grandpa -> sc-consensus-grandpa -sc-finality-grandpa = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0", package = "sp-consensus-grandpa" } -sp-finality-grandpa = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0", package = "sc-consensus-grandpa" } +sp-consensus-grandpa = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } sc-client-api = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } sc-client-db = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } sp-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } @@ -86,6 +85,7 @@ sc-consensus-epochs = { git = "https://github.com/paritytech/substrate.git", bra sc-consensus-babe-rpc = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } sc-network = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } sc-network-common = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sc-network-sync = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } sc-chain-spec = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } sc-consensus-slots = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } # Removed: https://github.com/paritytech/substrate/pull/13216 @@ -141,8 +141,6 @@ sc-rpc-api = { git = "https://github.com/paritytech/substrate.git", branch = "po sp-blockchain = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } sp-block-builder = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } sc-basic-authorship = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -# Renamed to sc-consensus-grandpa-rpc -# sc-finality-grandpa-rpc = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } sc-sync-state-rpc = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } mmr-rpc = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } diff --git a/node/Cargo.toml b/node/Cargo.toml index e9714405d..08b1be048 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -65,19 +65,15 @@ sp-consensus-babe = "0.10.0-dev" sp-consensus = "0.10.0-dev" sc-consensus = "0.10.0-dev" # Renamed: (https://github.com/paritytech/substrate/pull/13458) -sc-finality-grandpa = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v1.0.0", package = "sp-consensus-grandpa" } -sc-finality-grandpa-rpc = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v1.0.0", package = "sc-consensus-grandpa-rpc" } -sp-finality-grandpa = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v1.0.0", package = "sc-consensus-grandpa" } +sc-consensus-grandpa-rpc = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v1.0.0" } +sc-consensus-grandpa = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v1.0.0" } +sp-consensus-grandpa = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v1.0.0" } sc-client-api = "4.0.0-dev" sp-runtime = "24.0.0" sp-timestamp = "4.0.0-dev" sc-consensus-babe = "0.10.0-dev" -sc-consensus-epochs = "0.10.0-dev" sc-consensus-slots = "0.10.0-dev" -# Removed https://github.com/paritytech/substrate/pull/13216 -# sc-consensus-uncles = "0.10.0-dev" sc-network = "0.10.0-dev" -# sp-authorship = "4.0.0-dev" sp-authority-discovery = "4.0.0-dev" sc-authority-discovery = "0.10.0-dev" sc-chain-spec = "4.0.0-dev" @@ -89,6 +85,7 @@ sc-sync-state-rpc = "0.10.0-dev" sp-api = "4.0.0-dev" sc-sysinfo = "6.0.0-dev" sc-network-common = "0.10.0-dev" +sc-network-sync = "0.10.0-dev" primitive-types = "0.12.0" # FRAME diff --git a/node/src/chain_spec.rs b/node/src/chain_spec.rs index 0c86931f1..791863d5b 100644 --- a/node/src/chain_spec.rs +++ b/node/src/chain_spec.rs @@ -2,8 +2,8 @@ use std::collections::HashMap; use da_runtime::{ - constants::elections::InitialMemberBond, AccountId, Balance, Block, GenesisConfig, SessionKeys, - Signature, AVL, + constants::elections::InitialMemberBond, AccountId, Balance, Block, RuntimeGenesisConfig, + SessionKeys, Signature, AVL, }; use hex_literal::hex; use pallet_im_online::sr25519::AuthorityId as ImOnlineId; @@ -13,8 +13,8 @@ use sc_service::{ChainType, Properties}; use serde::{Deserialize, Serialize}; use sp_authority_discovery::AuthorityId as AuthorityDiscoveryId; use sp_consensus_babe::AuthorityId as BabeId; +use sp_consensus_grandpa::AuthorityId as GrandpaId; use sp_core::{crypto::UncheckedInto, sr25519, Pair, Public}; -use sp_finality_grandpa::AuthorityId as GrandpaId; use sp_runtime::traits::{IdentifyAccount, Verify}; pub const NOMAD_LOCAL_DOMAIN: u32 = 2000; @@ -46,7 +46,7 @@ pub struct Extensions { } /// Specialized `ChainSpec`. This is a specialization of the general Substrate ChainSpec type. -pub type ChainSpec = sc_service::GenericChainSpec; +pub type ChainSpec = sc_service::GenericChainSpec; /// Generate a crypto pair from seed. pub fn get_from_seed(seed: &str) -> ::Public { @@ -118,7 +118,7 @@ fn session_keys(common: AccountId, grandpa: GrandpaId) -> SessionKeys { } } -/// Helper function to create GenesisConfig for testing +/// Helper function to create RuntimeGenesisConfig for testing pub(crate) fn make_genesis( sudo: AccountId, authorities: Vec, @@ -127,7 +127,7 @@ pub(crate) fn make_genesis( mut endowed_accounts: HashMap, min_validator_bond: Balance, min_nominator_bond: Balance, -) -> GenesisConfig { +) -> RuntimeGenesisConfig { // Extends endowed accounts with council members, authorities and TC members for acc in council.iter().cloned() { *endowed_accounts.entry(acc).or_default() += InitialMemberBond::get(); @@ -139,7 +139,7 @@ pub(crate) fn make_genesis( *endowed_accounts.entry(acc).or_default() += 10 * AVL; } - GenesisConfig { + RuntimeGenesisConfig { // General system: config::make_system_config(), babe: config::make_babe_config(), @@ -172,8 +172,7 @@ pub(crate) fn make_genesis( // Nomad nomad_home: config::nomad::make_home_config(NOMAD_LOCAL_DOMAIN, NOMAD_UPDATER), nomad_updater_manager: config::nomad::make_update_manager_config(NOMAD_UPDATER), - nomad_da_bridge: Default::default(), - + // nomad_da_bridge: Default::default(), nomination_pools: config::make_nomination_pools_config(), // `technical_membership`'s members were initialized on `technical_committee` technical_membership: Default::default(), @@ -188,7 +187,7 @@ pub(crate) mod tests { // use crate::service::{new_full_base, NewFullBase}; /* - fn local_testnet_genesis_instant_single() -> GenesisConfig { + fn local_testnet_genesis_instant_single() -> RuntimeGenesisConfig { testnet_genesis( vec![authority_keys_from_seed("Alice")], vec![], diff --git a/node/src/chain_spec/config.rs b/node/src/chain_spec/config.rs index 69955259a..bf5c3667c 100644 --- a/node/src/chain_spec/config.rs +++ b/node/src/chain_spec/config.rs @@ -33,6 +33,7 @@ pub(crate) fn make_system_config() -> SystemConfig { code, kc_public_params, block_length, + ..Default::default() } } @@ -116,7 +117,10 @@ pub(crate) fn make_data_avail_config(owner: AccountId) -> DataAvailabilityConfig }) .collect(); - DataAvailabilityConfig { app_keys } + DataAvailabilityConfig { + app_keys, + ..Default::default() + } } pub(crate) fn make_nomination_pools_config() -> NominationPoolsConfig { @@ -126,6 +130,7 @@ pub(crate) fn make_nomination_pools_config() -> NominationPoolsConfig { max_pools: Some(constants::nomination_pools::MAX_POOLS), max_members_per_pool: Some(constants::nomination_pools::MAX_MEMBERS_PER_POOL), max_members: Some(constants::nomination_pools::MAX_MEMBERS), + ..Default::default() } } @@ -136,6 +141,7 @@ pub(crate) fn make_babe_config() -> BabeConfig { // NOTE: `authorities` were initialized by `Session`. authorities: vec![], epoch_config, + ..Default::default() } } diff --git a/node/src/chain_spec/locals.rs b/node/src/chain_spec/locals.rs index ac8b1149c..a9bcd2a63 100644 --- a/node/src/chain_spec/locals.rs +++ b/node/src/chain_spec/locals.rs @@ -1,7 +1,7 @@ use std::collections::HashMap; use avail_core::currency::AVL; -use da_runtime::{AccountId, Balance, GenesisConfig}; +use da_runtime::{AccountId, Balance, RuntimeGenesisConfig}; use sp_core::sr25519::Public; use crate::chain_spec::{get_account_id_from_seed, AuthorityKeys}; @@ -30,7 +30,7 @@ fn make_genesis( sudo: AccountId, authorities: Vec, endowed_accounts: HashMap, -) -> GenesisConfig { +) -> RuntimeGenesisConfig { let council = DEFAULT_ENDOWED_SEEDS[..5] .iter() .map(|seed| get_account_id_from_seed::(seed)) diff --git a/node/src/chain_spec/locals/solo.rs b/node/src/chain_spec/locals/solo.rs index 9ca88824f..25c716fde 100644 --- a/node/src/chain_spec/locals/solo.rs +++ b/node/src/chain_spec/locals/solo.rs @@ -1,4 +1,4 @@ -use da_runtime::GenesisConfig; +use da_runtime::RuntimeGenesisConfig; use sp_core::sr25519::Public; use crate::chain_spec::{ @@ -30,7 +30,7 @@ pub fn chain_spec() -> ChainSpec { /// - `Alice` as `sudo` account. /// - All devs account are endowed. /// -fn config_genesis() -> GenesisConfig { +fn config_genesis() -> RuntimeGenesisConfig { let sudo = get_account_id_from_seed::("Alice"); let authorities = vec![AuthorityKeys::from_seed("Alice")]; let endowed_accs = dev_endowed_accounts(); diff --git a/node/src/chain_spec/locals/tri.rs b/node/src/chain_spec/locals/tri.rs index 5c6be8246..34ae02cfc 100644 --- a/node/src/chain_spec/locals/tri.rs +++ b/node/src/chain_spec/locals/tri.rs @@ -1,4 +1,4 @@ -use da_runtime::GenesisConfig; +use da_runtime::RuntimeGenesisConfig; use crate::chain_spec::{ chain_properties, @@ -30,7 +30,7 @@ pub fn chain_spec() -> ChainSpec { /// - `Alice` as `sudo` account. /// - All devs account are endowed. /// -fn config_genesis() -> GenesisConfig { +fn config_genesis() -> RuntimeGenesisConfig { let mut authorities = ["Alice", "Bob", "Charlie"] .into_iter() .map(AuthorityKeys::from_seed) diff --git a/node/src/chain_spec/testnets.rs b/node/src/chain_spec/testnets.rs index cc1769a21..0310d865d 100644 --- a/node/src/chain_spec/testnets.rs +++ b/node/src/chain_spec/testnets.rs @@ -3,7 +3,7 @@ use std::collections::HashMap; use avail_core::currency::AVL; use da_runtime::{AccountId, Balance}; -use crate::chain_spec::{AuthorityKeys, GenesisConfig}; +use crate::chain_spec::{AuthorityKeys, RuntimeGenesisConfig}; pub mod kate; @@ -16,7 +16,7 @@ fn make_genesis( council: Vec, tech_committee_members: Vec, endowed_accounts: HashMap, -) -> GenesisConfig { +) -> RuntimeGenesisConfig { crate::chain_spec::make_genesis( sudo, authorities, diff --git a/node/src/chain_spec/testnets/kate.rs b/node/src/chain_spec/testnets/kate.rs index 614f5d9f0..4ad7a5a3d 100644 --- a/node/src/chain_spec/testnets/kate.rs +++ b/node/src/chain_spec/testnets/kate.rs @@ -1,6 +1,8 @@ use std::{collections::HashMap, iter::once}; -use da_runtime::{constants::elections::InitialMemberBond, AccountId, Balance, GenesisConfig, AVL}; +use da_runtime::{ + constants::elections::InitialMemberBond, AccountId, Balance, RuntimeGenesisConfig, AVL, +}; use hex_literal::hex; use sc_service::ChainType; use sp_core::crypto::UncheckedInto; @@ -112,7 +114,7 @@ pub fn chain_spec() -> ChainSpec { ) } -fn config_genesis() -> GenesisConfig { +fn config_genesis() -> RuntimeGenesisConfig { let authorities = authorities(); let tc_members = technical_committee(); let council = council_members(); diff --git a/node/src/command.rs b/node/src/command.rs index d2178d6f0..3a9764e30 100644 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -240,7 +240,7 @@ pub fn run() -> Result<()> { } = new_partial(&config)?; let aux_revert = Box::new(|client: Arc, backend, blocks| { sc_consensus_babe::revert(client.clone(), backend, blocks)?; - sc_finality_grandpa::revert(client, blocks)?; + sc_consensus_grandpa::revert(client, blocks)?; Ok(()) }); Ok((cmd.run(client, backend, Some(aux_revert)), task_manager)) diff --git a/node/src/da_block_import.rs b/node/src/da_block_import.rs index 9b1985f86..b16fd7250 100644 --- a/node/src/da_block_import.rs +++ b/node/src/da_block_import.rs @@ -4,7 +4,7 @@ /// to Babe and Grandpa. /// It double-checks the **extension header** which contains the `Kate Commitment` and `Data /// Root`. -use std::{collections::HashMap, sync::Arc}; +use std::sync::Arc; use avail_core::{BlockLengthColumns, BlockLengthRows, OpaqueExtrinsic, BLOCK_CHUNK_SIZE}; use da_runtime::{ @@ -20,8 +20,8 @@ use sc_consensus::{ }; use sp_api::ProvideRuntimeApi; use sp_blockchain::HeaderBackend; -use sp_consensus::{BlockOrigin, CacheKeyId, Error as ConsensusError}; -use sp_runtime::{generic::BlockId, traits::Block as BlockT}; +use sp_consensus::{BlockOrigin, Error as ConsensusError}; +use sp_runtime::traits::Block as BlockT; #[derive(Constructor)] pub struct BlockImport { @@ -55,19 +55,17 @@ where async fn import_block( &mut self, block: BlockImportParams, - new_cache: HashMap>, ) -> Result { // We only want to check for blocks that are not from "Own" if !matches!(block.origin, BlockOrigin::Own) { let no_extrinsics = vec![]; let extrinsics = block.body.as_ref().unwrap_or(&no_extrinsics); let best_hash = self.client.info().best_hash; - let block_id = BlockId::Hash(best_hash); let data_root = self .client .runtime_api() - .build_data_root(&block_id, extrinsics.clone()) + .build_data_root(best_hash, extrinsics.clone()) .map_err(|e| { ConsensusError::ClientImport(format!("Data root cannot be calculated: {e:?}")) })?; @@ -85,7 +83,7 @@ where .client .runtime_api() .build_extension( - &block_id, + best_hash, extrinsics.clone(), data_root, block_len, @@ -101,10 +99,7 @@ where format!("DA Extension does NOT match\nExpected: {extension:#?}\nGenerated:{generated_ext:#?}")) ); } - self.inner - .import_block(block, new_cache) - .await - .map_err(Into::into) + self.inner.import_block(block).await.map_err(Into::into) } /// # TODO diff --git a/node/src/rpc.rs b/node/src/rpc.rs index 62740b338..7a92ce441 100644 --- a/node/src/rpc.rs +++ b/node/src/rpc.rs @@ -41,9 +41,8 @@ use da_runtime::{ }; use jsonrpsee::RpcModule; use sc_client_api::AuxStore; -use sc_consensus_babe::{BabeConfiguration, Epoch}; -use sc_consensus_epochs::SharedEpochChanges; -use sc_finality_grandpa::{ +use sc_consensus_babe::BabeWorkerHandle; +use sc_consensus_grandpa::{ FinalityProofProvider, GrandpaJustificationStream, SharedAuthoritySet, SharedVoterState, }; use sc_rpc::SubscriptionTaskExecutor; @@ -54,16 +53,14 @@ use sp_block_builder::BlockBuilder; use sp_blockchain::{Error as BlockChainError, HeaderBackend, HeaderMetadata}; use sp_consensus::SelectChain; use sp_consensus_babe::BabeApi; -use sp_keystore::SyncCryptoStorePtr; +use sp_keystore::KeystorePtr; /// Extra dependencies for BABE. pub struct BabeDeps { - /// BABE protocol config. - pub babe_config: BabeConfiguration, - /// BABE pending epoch changes. - pub shared_epoch_changes: SharedEpochChanges, + /// A handle to the BABE worker for issuing requests. + pub babe_worker_handle: BabeWorkerHandle, /// The keystore that manages the keys of the node. - pub keystore: SyncCryptoStorePtr, + pub keystore: KeystorePtr, } /// Extra dependencies for GRANDPA @@ -123,11 +120,11 @@ where B: sc_client_api::Backend + Send + Sync + 'static, B::State: sc_client_api::backend::StateBackend>, { - use kate_rpc::{Kate, KateApiServer}; + use kate_rpc::Kate; use mmr_rpc::{Mmr, MmrApiServer}; use pallet_transaction_payment_rpc::{TransactionPayment, TransactionPaymentApiServer}; use sc_consensus_babe_rpc::{Babe, BabeApiServer}; - use sc_finality_grandpa_rpc::{Grandpa, GrandpaApiServer}; + use sc_consensus_grandpa_rpc::{Grandpa, GrandpaApiServer}; use sc_rpc_spec_v2::chain_spec::{ChainSpec, ChainSpecApiServer}; use sc_sync_state_rpc::{SyncState, SyncStateApiServer}; use substrate_frame_rpc_system::{System, SystemApiServer}; @@ -146,8 +143,7 @@ where let BabeDeps { keystore, - babe_config, - shared_epoch_changes, + babe_worker_handle, } = babe; let GrandpaDeps { shared_voter_state, @@ -170,14 +166,21 @@ where // Making synchronous calls in light client freezes the browser currently, // more context: https://github.com/paritytech/substrate/pull/3480 // These RPCs should use an asynchronous caller instead. - io.merge(Mmr::new(client.clone()).into_rpc())?; + io.merge( + Mmr::new( + client.clone(), + backend + .offchain_storage() + .ok_or_else(|| "Backend doesn't provide an offchain storage")?, + ) + .into_rpc(), + )?; io.merge(TransactionPayment::new(client.clone()).into_rpc())?; io.merge( Babe::new( client.clone(), - shared_epoch_changes.clone(), + babe_worker_handle.clone(), keystore, - babe_config, select_chain, deny_unsafe, ) @@ -199,7 +202,7 @@ where chain_spec, client.clone(), shared_authority_set, - shared_epoch_changes, + babe_worker_handle, )? .into_rpc(), )?; diff --git a/node/src/service.rs b/node/src/service.rs index 135877faf..a76c74cea 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -30,17 +30,15 @@ use pallet_transaction_payment::ChargeTransactionPayment; use sc_client_api::BlockBackend; use sc_consensus_babe::{self, SlotProportion}; pub use sc_executor::NativeElseWasmExecutor; -use sc_network::{Event, NetworkService}; -use sc_network_common::service::NetworkEventStream; +use sc_network::{Event, NetworkEventStream, NetworkService}; +use sc_network_common::sync::warp::WarpSyncParams; +use sc_network_sync::SyncingService; use sc_service::{error::Error as ServiceError, Configuration, RpcHandlers, TaskManager}; use sc_telemetry::{Telemetry, TelemetryWorker}; +use sc_transaction_pool_api::OffchainTransactionPoolFactory; use sp_api::ProvideRuntimeApi; use sp_core::crypto::Pair; -use sp_runtime::{ - generic::{self, Era}, - traits::Block as BlockT, - SaturatedConversion, -}; +use sp_runtime::{generic::Era, traits::Block as BlockT, SaturatedConversion}; use substrate_prometheus_endpoint::{PrometheusError, Registry}; use crate::rpc as node_rpc; @@ -70,7 +68,7 @@ pub type FullClient = pub type FullBackend = sc_service::TFullBackend; type FullSelectChain = sc_consensus::LongestChain; type FullGrandpaBlockImport = - sc_finality_grandpa::GrandpaBlockImport; + sc_consensus_grandpa::GrandpaBlockImport; /// The transaction pool type defintion. pub type TransactionPool = sc_transaction_pool::FullPool; @@ -87,7 +85,7 @@ pub fn fetch_nonce(client: &FullClient, account: sp_core::sr25519::Pair) -> u32 let best_hash = client.chain_info().best_hash; client .runtime_api() - .account_nonce(&generic::BlockId::Hash(best_hash), account.public().into()) + .account_nonce(best_hash, account.public().into()) .expect("Fetching account nonce works; qed") } @@ -174,10 +172,10 @@ pub fn new_partial( ) -> Result, sc_service::Error>, ( BlockImport, - sc_finality_grandpa::LinkHalf, + sc_consensus_grandpa::LinkHalf, sc_consensus_babe::BabeLink, ), - sc_finality_grandpa::SharedVoterState, + sc_consensus_grandpa::SharedVoterState, Option, ), >, @@ -194,12 +192,7 @@ pub fn new_partial( }) .transpose()?; - let executor = NativeElseWasmExecutor::::new( - config.wasm_method, - config.default_heap_pages, - config.max_runtime_instances, - config.runtime_cache_size, - ); + let executor = sc_service::new_native_or_wasm_executor(&config); let (client, backend, keystore_container, task_manager) = sc_service::new_full_parts::( @@ -226,7 +219,7 @@ pub fn new_partial( client.clone(), ); - let (grandpa_block_import, grandpa_link) = sc_finality_grandpa::block_import( + let (grandpa_block_import, grandpa_link) = sc_consensus_grandpa::block_import( client.clone(), &(client.clone() as Arc<_>), select_chain.clone(), @@ -242,50 +235,49 @@ pub fn new_partial( let da_block_import = BlockImport::new(client.clone(), block_import); let slot_duration = babe_link.config().slot_duration(); - let import_queue = sc_consensus_babe::import_queue( - babe_link.clone(), - da_block_import.clone(), - Some(Box::new(justification_import)), - client.clone(), - select_chain.clone(), - move |_, ()| async move { - let timestamp = sp_timestamp::InherentDataProvider::from_system_time(); + let (import_queue, babe_worker_handle) = + sc_consensus_babe::import_queue(sc_consensus_babe::ImportQueueParams { + link: babe_link.clone(), + block_import: da_block_import.clone(), + justification_import: Some(Box::new(justification_import)), + client: client.clone(), + select_chain: select_chain.clone(), + create_inherent_data_providers: move |_, ()| async move { + let timestamp = sp_timestamp::InherentDataProvider::from_system_time(); - let slot = + let slot = sp_consensus_babe::inherents::InherentDataProvider::from_timestamp_and_slot_duration( *timestamp, slot_duration, ); - Ok((slot, timestamp)) - }, - &task_manager.spawn_essential_handle(), - config.prometheus_registry(), - telemetry.as_ref().map(|x| x.handle()), - )?; + Ok((slot, timestamp)) + }, + spawner: &task_manager.spawn_essential_handle(), + registry: config.prometheus_registry(), + telemetry: telemetry.as_ref().map(|x| x.handle()), + offchain_tx_pool_factory: OffchainTransactionPoolFactory::new(transaction_pool.clone()), + })?; let import_setup = (da_block_import, grandpa_link, babe_link); let (rpc_extensions_builder, rpc_setup) = { - let (_, grandpa_link, babe_link) = &import_setup; + let (_, grandpa_link, _) = &import_setup; let justification_stream = grandpa_link.justification_stream(); let shared_authority_set = grandpa_link.shared_authority_set().clone(); - let shared_voter_state = sc_finality_grandpa::SharedVoterState::empty(); + let shared_voter_state = sc_consensus_grandpa::SharedVoterState::empty(); let shared_voter_state2 = shared_voter_state.clone(); - let finality_proof_provider = sc_finality_grandpa::FinalityProofProvider::new_for_service( + let finality_proof_provider = sc_consensus_grandpa::FinalityProofProvider::new_for_service( backend.clone(), Some(shared_authority_set.clone()), ); - let babe_config = babe_link.config().clone(); - let shared_epoch_changes = babe_link.epoch_changes().clone(); - let client = client.clone(); let pool = transaction_pool.clone(); let select_chain = select_chain.clone(); - let keystore = keystore_container.sync_keystore(); + let keystore = keystore_container.keystore(); let chain_spec = config.chain_spec.cloned_box(); let rpc_backend = backend.clone(); @@ -297,9 +289,8 @@ pub fn new_partial( chain_spec: chain_spec.cloned_box(), deny_unsafe, babe: node_rpc::BabeDeps { - babe_config: babe_config.clone(), - shared_epoch_changes: shared_epoch_changes.clone(), keystore: keystore.clone(), + babe_worker_handle: babe_worker_handle.clone(), }, grandpa: node_rpc::GrandpaDeps { shared_voter_state: shared_voter_state.clone(), @@ -336,6 +327,8 @@ pub struct NewFullBase { pub client: Arc, /// The networking service of the node. pub network: Arc::Hash>>, + /// The syncing service of the node. + pub sync: Arc>, /// The transaction pool of the node. pub transaction_pool: Arc, /// The rpc handlers of the node. @@ -370,7 +363,8 @@ pub fn new_full_base( let shared_voter_state = rpc_setup; let auth_disc_publish_non_global_ips = config.network.allow_non_globals_in_dht; - let grandpa_protocol_name = sc_finality_grandpa::protocol_standard_name( + let mut net_config = sc_network::config::FullNetworkConfiguration::new(&config.network); + let grandpa_protocol_name = sc_consensus_grandpa::protocol_standard_name( &client .block_hash(0) .ok() @@ -378,39 +372,27 @@ pub fn new_full_base( .expect("Genesis block exists; qed"), &config.chain_spec, ); - - config - .network - .extra_sets - .push(sc_finality_grandpa::grandpa_peers_set_config( - grandpa_protocol_name.clone(), - )); - let warp_sync = Arc::new(sc_finality_grandpa::warp_proof::NetworkProvider::new( + net_config.add_notification_protocol(sc_consensus_grandpa::grandpa_peers_set_config( + grandpa_protocol_name.clone(), + )); + let warp_sync = Arc::new(sc_consensus_grandpa::warp_proof::NetworkProvider::new( backend.clone(), import_setup.1.shared_authority_set().clone(), Vec::default(), )); - let (network, system_rpc_tx, tx_handler_controller, network_starter) = + let (network, system_rpc_tx, tx_handler_controller, network_starter, sync_service) = sc_service::build_network(sc_service::BuildNetworkParams { config: &config, + net_config, client: client.clone(), transaction_pool: transaction_pool.clone(), spawn_handle: task_manager.spawn_handle(), import_queue, block_announce_validator_builder: None, - warp_sync: Some(warp_sync), + warp_sync_params: Some(WarpSyncParams::WithProvider(warp_sync)), })?; - if config.offchain_worker.enabled { - sc_service::build_offchain_workers( - &config, - task_manager.spawn_handle(), - client.clone(), - network.clone(), - ); - } - let role = config.role.clone(); let force_authoring = config.force_authoring; let backoff_authoring_blocks = @@ -418,21 +400,23 @@ pub fn new_full_base( let name = config.network.node_name.clone(); let enable_grandpa = !config.disable_grandpa; let prometheus_registry = config.prometheus_registry().cloned(); + let enable_offchain_worker = config.offchain_worker.enabled; if let Some(reg) = prometheus_registry.as_ref() { extend_metrics(reg)?; } let rpc_handlers = sc_service::spawn_tasks(sc_service::SpawnTasksParams { config, - backend, + backend: backend.clone(), client: client.clone(), - keystore: keystore_container.sync_keystore(), + keystore: keystore_container.keystore(), network: network.clone(), rpc_builder: Box::new(rpc_builder), transaction_pool: transaction_pool.clone(), task_manager: &mut task_manager, system_rpc_tx, tx_handler_controller, + sync_service: sync_service.clone(), telemetry: telemetry.as_mut(), })?; @@ -465,13 +449,13 @@ pub fn new_full_base( let client_clone = client.clone(); let slot_duration = babe_link.config().slot_duration(); let babe_config = sc_consensus_babe::BabeParams { - keystore: keystore_container.sync_keystore(), + keystore: keystore_container.keystore(), client: client.clone(), select_chain, env: proposer, block_import, - sync_oracle: network.clone(), - justification_sync_link: network.clone(), + sync_oracle: sync_service.clone(), + justification_sync_link: sync_service.clone(), create_inherent_data_providers: move |parent, ()| { let client_clone = client_clone.clone(); async move { @@ -544,19 +528,19 @@ pub fn new_full_base( // if the node isn't actively participating in consensus then it doesn't // need a keystore, regardless of which protocol we use below. let keystore = if role.is_authority() { - Some(keystore_container.sync_keystore()) + Some(keystore_container.keystore()) } else { None }; - let config = sc_finality_grandpa::Config { + let grandpa_config = sc_consensus_grandpa::Config { // FIXME #1578 make this available through chainspec gossip_duration: std::time::Duration::from_millis(333), justification_period: 512, name: Some(name), observer_enabled: false, keystore, - local_role: role, + local_role: role.clone(), telemetry: telemetry.as_ref().map(|x| x.handle()), protocol_name: grandpa_protocol_name, }; @@ -568,14 +552,16 @@ pub fn new_full_base( // and vote data availability than the observer. The observer has not // been tested extensively yet and having most nodes in a network run it // could lead to finality stalls. - let grandpa_config = sc_finality_grandpa::GrandpaParams { - config, + let grandpa_config = sc_consensus_grandpa::GrandpaParams { + config: grandpa_config, link: grandpa_link, network: network.clone(), + sync: Arc::new(sync_service.clone()), telemetry: telemetry.as_ref().map(|x| x.handle()), - voting_rule: sc_finality_grandpa::VotingRulesBuilder::default().build(), - prometheus_registry, + voting_rule: sc_consensus_grandpa::VotingRulesBuilder::default().build(), + prometheus_registry: prometheus_registry.clone(), shared_voter_state, + offchain_tx_pool_factory: OffchainTransactionPoolFactory::new(transaction_pool.clone()), }; // the GRANDPA voter task is considered infallible, i.e. @@ -583,7 +569,7 @@ pub fn new_full_base( task_manager.spawn_essential_handle().spawn_blocking( "grandpa-voter", None, - sc_finality_grandpa::run_grandpa_voter(grandpa_config)?, + sc_consensus_grandpa::run_grandpa_voter(grandpa_config)?, ); } @@ -592,6 +578,7 @@ pub fn new_full_base( task_manager, client, network, + sync: sync_service, transaction_pool, rpc_handlers, }) @@ -632,7 +619,7 @@ mod tests { use sp_core::{crypto::Pair as CryptoPair, Public}; use sp_inherents::InherentDataProvider; use sp_keyring::AccountKeyring; - use sp_keystore::{SyncCryptoStore, SyncCryptoStorePtr}; + use sp_keystore::{Keystore, KeystorePtr}; use sp_runtime::{ generic::{BlockId, Digest, Era, SignedPayload}, key_types::BABE, @@ -653,10 +640,10 @@ mod tests { sp_tracing::try_init_simple(); let keystore_path = tempfile::tempdir().expect("Creates keystore path"); - let keystore: SyncCryptoStorePtr = + let keystore: KeystorePtr = Arc::new(LocalKeystore::open(keystore_path.path(), None).expect("Creates keystore")); let alice: sp_consensus_babe::AuthorityId = - SyncCryptoStore::sr25519_generate_new(&*keystore, BABE, Some("//Alice")) + Keystore::sr25519_generate_new(&*keystore, BABE, Some("//Alice")) .expect("Creates authority pair") .into(); @@ -785,7 +772,7 @@ mod tests { // sign the pre-sealed hash of the block and then // add it to a digest item. let to_sign = pre_hash.encode(); - let signature = SyncCryptoStore::sign_with( + let signature = Keystore::sign_with( &*keystore, sp_consensus_babe::AuthorityId::ID, &alice.to_public_crypto_pair(), diff --git a/rpc/kate-rpc/src/lib.rs b/rpc/kate-rpc/src/lib.rs index 3c208f08d..4f2b60506 100644 --- a/rpc/kate-rpc/src/lib.rs +++ b/rpc/kate-rpc/src/lib.rs @@ -6,10 +6,8 @@ use std::{ use avail_base::metrics::RPCMetricAdapter; use avail_core::{ - header::extension::v1::HeaderExtension, - traits::{ExtendedBlock as DaBlock, ExtendedHeader}, - AppExtrinsic, AppId, BlockLengthColumns, BlockLengthRows, DataProof, OpaqueExtrinsic, - BLOCK_CHUNK_SIZE, + header::extension::v1::HeaderExtension, traits::ExtendedHeader, AppExtrinsic, AppId, + BlockLengthColumns, BlockLengthRows, DataProof, OpaqueExtrinsic, BLOCK_CHUNK_SIZE, }; use da_runtime::{apis::DataAvailApi, Runtime, UncheckedExtrinsic}; use frame_system::{limits::BlockLength, submitted_data}; @@ -38,7 +36,7 @@ pub type HashOf = ::Hash; #[rpc(client, server)] pub trait KateApi where - Block: DaBlock, + Block: BlockT, { #[method(name = "kate_queryRows")] async fn query_rows( @@ -69,12 +67,12 @@ where } #[allow(clippy::type_complexity)] -pub struct Kate> { +pub struct Kate { client: Arc, block_ext_cache: RwLock>>, } -impl> Kate { +impl Kate { pub fn new(client: Arc) -> Self { Self { client, @@ -110,7 +108,7 @@ macro_rules! internal_err { /// Otherwise, it will use the default `Seed` value. fn get_seed(client: &C, at: ::Hash) -> Option where - B: DaBlock, + B: BlockT, ::Header: ExtendedHeader< <::Header as Header>::Number, ::Hash, @@ -129,7 +127,7 @@ where impl Kate where - Block: DaBlock, + Block: BlockT, Client: Send + Sync + 'static, Client: HeaderBackend + ProvideRuntimeApi + BlockBackend, Client::Api: DataAvailApi, @@ -142,7 +140,7 @@ where #[async_trait] impl KateApiServer for Kate where - Block: BlockT + DaBlock, + Block: BlockT, ::Header: ExtendedHeader< <::Header as Header>::Number, ::Hash, diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index f7363f3b4..170e7ea0e 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -36,6 +36,7 @@ parity-util-mem = { version = "0.12.0", default-features = false, features = ["p codec = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] } ## primitives +sp-consensus-grandpa = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v1.0.0" } sp-io = { version = "23.0.0", default-features = false } sp-core = { version = "21.0.0", default-features = false } sp-api = { version = "4.0.0-dev", default-features = false } @@ -174,6 +175,7 @@ std = [ "sp-version/std", "log/std", "frame-try-runtime?/std", + "sp-consensus-grandpa/std", "sp-io/std", "pallet-child-bounties/std", "da-control/std", diff --git a/runtime/src/apis.rs b/runtime/src/apis.rs index 7bffed9cd..844611be0 100644 --- a/runtime/src/apis.rs +++ b/runtime/src/apis.rs @@ -4,12 +4,10 @@ use frame_support::{ weights::Weight, }; use frame_system::limits::BlockLength; -use pallet_grandpa::{ - fg_primitives, AuthorityId as GrandpaId, AuthorityList as GrandpaAuthorityList, -}; use pallet_transaction_payment::{FeeDetails, RuntimeDispatchInfo}; use sp_api::{decl_runtime_apis, impl_runtime_apis}; use sp_authority_discovery::AuthorityId as AuthorityDiscoveryId; +use sp_consensus_grandpa::AuthorityId as GrandpaId; use sp_core::H256; use sp_inherents::{CheckInherentsResult, InherentData}; use sp_runtime::{ @@ -114,21 +112,21 @@ impl_runtime_apis! { } } - impl fg_primitives::GrandpaApi for Runtime { - fn grandpa_authorities() -> GrandpaAuthorityList { + impl sp_consensus_grandpa::GrandpaApi for Runtime { + fn grandpa_authorities() -> sp_consensus_grandpa::AuthorityList { Grandpa::grandpa_authorities() } - fn current_set_id() -> fg_primitives::SetId { + fn current_set_id() -> sp_consensus_grandpa::SetId { Grandpa::current_set_id() } fn submit_report_equivocation_unsigned_extrinsic( - equivocation_proof: fg_primitives::EquivocationProof< + equivocation_proof: sp_consensus_grandpa::EquivocationProof< ::Hash, NumberFor, >, - key_owner_proof: fg_primitives::OpaqueKeyOwnershipProof, + key_owner_proof: sp_consensus_grandpa::OpaqueKeyOwnershipProof, ) -> Option<()> { let key_owner_proof = key_owner_proof.decode()?; @@ -139,14 +137,14 @@ impl_runtime_apis! { } fn generate_key_ownership_proof( - _set_id: fg_primitives::SetId, + _set_id: sp_consensus_grandpa::SetId, authority_id: GrandpaId, - ) -> Option { + ) -> Option { use codec::Encode; - Historical::prove((fg_primitives::KEY_TYPE, authority_id)) + Historical::prove((sp_consensus_grandpa::KEY_TYPE, authority_id)) .map(|p| p.encode()) - .map(fg_primitives::OpaqueKeyOwnershipProof::new) + .map(sp_consensus_grandpa::OpaqueKeyOwnershipProof::new) } } From c3f19dfc78e102606c1d387074086a6b4d254896 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Wed, 23 Aug 2023 15:14:59 +0530 Subject: [PATCH 28/58] Updated kate-rpc to use default HeaderExtension --- Cargo.lock | 1449 +++++++++++++++++++++++++-------------- Cargo.toml | 1 + node/Cargo.toml | 1 + node/src/command.rs | 10 +- node/src/rpc.rs | 2 +- rpc/kate-rpc/src/lib.rs | 4 +- 6 files changed, 950 insertions(+), 517 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8ea4e5add..5020ff856 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -612,7 +612,7 @@ dependencies = [ "kate", "log", "once_cell", - "sp-std", + "sp-std 8.0.0", "substrate-prometheus-endpoint 0.10.0", ] @@ -630,13 +630,13 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-runtime", - "sp-runtime-interface", - "sp-std", - "sp-trie", + "sp-arithmetic 16.0.0", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-runtime-interface 17.0.0", + "sp-std 8.0.0", + "sp-trie 22.0.0", "static_assertions", "thiserror-no-std", ] @@ -1884,11 +1884,11 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-arithmetic 16.0.0", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-std 8.0.0", "static_assertions", "test-case", ] @@ -1951,23 +1951,23 @@ dependencies = [ "scale-info", "serde", "serde_json", - "sp-api", + "sp-api 4.0.0-dev", "sp-authority-discovery", "sp-block-builder", "sp-consensus-babe", "sp-consensus-grandpa", - "sp-core", + "sp-core 21.0.0", "sp-inherents", - "sp-io", + "sp-io 23.0.0", "sp-keyring", "sp-npos-elections", "sp-offchain", - "sp-runtime", + "sp-runtime 24.0.0", "sp-session", "sp-staking", - "sp-std", + "sp-std 8.0.0", "sp-transaction-pool", - "sp-version", + "sp-version 22.0.0", "static_assertions", "substrate-wasm-builder", "test-case", @@ -2070,22 +2070,23 @@ dependencies = [ "sc-transaction-pool-api", "serde", "serde_json", - "sp-api", + "sp-api 4.0.0-dev", "sp-authority-discovery", "sp-block-builder", "sp-blockchain", "sp-consensus", "sp-consensus-babe", "sp-consensus-grandpa", - "sp-core", + "sp-core 21.0.0", "sp-inherents", - "sp-io", + "sp-io 23.0.0", "sp-keyring", - "sp-keystore", + "sp-keystore 0.27.0", "sp-rpc", - "sp-runtime", + "sp-runtime 24.0.0", + "sp-statement-store 4.0.0", "sp-timestamp", - "sp-tracing", + "sp-tracing 10.0.0", "sp-transaction-pool", "sp-transaction-storage-proof", "substrate-build-script-utils", @@ -2944,14 +2945,14 @@ dependencies = [ "paste", "scale-info", "serde", - "sp-api", - "sp-application-crypto", - "sp-core", - "sp-io", - "sp-runtime", - "sp-runtime-interface", - "sp-std", - "sp-storage", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-runtime-interface 17.0.0", + "sp-std 8.0.0", + "sp-storage 13.0.0", "static_assertions", ] @@ -2986,19 +2987,19 @@ dependencies = [ "sc-sysinfo", "serde", "serde_json", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", - "sp-core", + "sp-core 21.0.0", "sp-database", - "sp-externalities", + "sp-externalities 0.19.0", "sp-inherents", - "sp-io", - "sp-keystore", - "sp-runtime", - "sp-state-machine", - "sp-storage", - "sp-trie", - "sp-wasm-interface", + "sp-io 23.0.0", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", + "sp-storage 13.0.0", + "sp-trie 22.0.0", + "sp-wasm-interface 14.0.0", "thiserror", "thousands", ] @@ -3024,11 +3025,11 @@ dependencies = [ "frame-system", "parity-scale-codec", "scale-info", - "sp-arithmetic", - "sp-core", + "sp-arithmetic 16.0.0", + "sp-core 21.0.0", "sp-npos-elections", - "sp-runtime", - "sp-std", + "sp-runtime 24.0.0", + "sp-std 8.0.0", ] [[package]] @@ -3043,13 +3044,13 @@ dependencies = [ "pallet-transaction-payment", "parity-scale-codec", "scale-info", - "sp-core", + "sp-core 21.0.0", "sp-inherents", - "sp-io", - "sp-runtime", - "sp-std", - "sp-tracing", - "sp-version", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-std 8.0.0", + "sp-tracing 10.0.0", + "sp-version 22.0.0", ] [[package]] @@ -3076,9 +3077,9 @@ dependencies = [ "log", "parity-scale-codec", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "spinners", "substrate-rpc-client", "tokio", @@ -3103,19 +3104,19 @@ dependencies = [ "scale-info", "serde", "smallvec", - "sp-api", - "sp-arithmetic", - "sp-core", - "sp-core-hashing-proc-macro", - "sp-debug-derive", + "sp-api 4.0.0-dev", + "sp-arithmetic 16.0.0", + "sp-core 21.0.0", + "sp-core-hashing-proc-macro 9.0.0", + "sp-debug-derive 8.0.0", "sp-inherents", - "sp-io", - "sp-runtime", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-staking", - "sp-state-machine", - "sp-std", - "sp-tracing", - "sp-weights", + "sp-state-machine 0.28.0", + "sp-std 8.0.0", + "sp-tracing 10.0.0", + "sp-weights 20.0.0", "tt-call", ] @@ -3178,14 +3179,14 @@ dependencies = [ "rs_merkle", "scale-info", "serde", - "sp-core", - "sp-externalities", - "sp-io", - "sp-runtime", - "sp-runtime-interface", - "sp-std", - "sp-version", - "sp-weights", + "sp-core 21.0.0", + "sp-externalities 0.19.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-runtime-interface 17.0.0", + "sp-std 8.0.0", + "sp-version 22.0.0", + "sp-weights 20.0.0", "static_assertions", "test-case", ] @@ -3200,12 +3201,12 @@ dependencies = [ "frame-system", "parity-scale-codec", "scale-info", - "sp-core", - "sp-externalities", - "sp-io", - "sp-runtime", - "sp-std", - "sp-version", + "sp-core 21.0.0", + "sp-externalities 0.19.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-std 8.0.0", + "sp-version 22.0.0", ] [[package]] @@ -3213,7 +3214,7 @@ name = "frame-system-rpc-runtime-api" version = "4.0.0-dev" dependencies = [ "parity-scale-codec", - "sp-api", + "sp-api 4.0.0-dev", ] [[package]] @@ -3223,9 +3224,9 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "frame-support", "parity-scale-codec", - "sp-api", - "sp-runtime", - "sp-std", + "sp-api 4.0.0-dev", + "sp-runtime 24.0.0", + "sp-std 8.0.0", ] [[package]] @@ -4320,8 +4321,8 @@ dependencies = [ "rayon", "serde", "serde_json", - "sp-arithmetic", - "sp-core", + "sp-arithmetic 16.0.0", + "sp-core 21.0.0", "static_assertions", "thiserror-no-std", ] @@ -4340,8 +4341,8 @@ dependencies = [ "rand 0.8.5", "rand_chacha 0.3.1", "serde", - "sp-arithmetic", - "sp-std", + "sp-arithmetic 16.0.0", + "sp-std 8.0.0", "static_assertions", "thiserror-no-std", ] @@ -4363,9 +4364,9 @@ dependencies = [ "parity-scale-codec", "sc-client-api", "sc-client-db", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", - "sp-runtime", + "sp-runtime 24.0.0", "static_assertions", ] @@ -5277,11 +5278,11 @@ dependencies = [ "jsonrpsee", "parity-scale-codec", "serde", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", - "sp-core", + "sp-core 21.0.0", "sp-mmr-primitives", - "sp-runtime", + "sp-runtime 24.0.0", ] [[package]] @@ -5534,8 +5535,8 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", ] [[package]] @@ -5550,9 +5551,9 @@ dependencies = [ "primitive-types", "scale-info", "serde", - "sp-core", - "sp-runtime", - "sp-std", + "sp-core 21.0.0", + "sp-runtime 24.0.0", + "sp-std 8.0.0", "tiny-keccak", ] @@ -5572,10 +5573,10 @@ dependencies = [ "nomad-updater-manager", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-std 8.0.0", ] [[package]] @@ -5594,10 +5595,10 @@ dependencies = [ "nomad-updater-manager", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-std 8.0.0", "test-case", ] @@ -5613,7 +5614,7 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core", + "sp-core 21.0.0", "static_assertions", "thiserror-no-std", "tiny-keccak", @@ -5633,8 +5634,8 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "thiserror-no-std", "tiny-keccak", ] @@ -5648,9 +5649,9 @@ dependencies = [ "frame-system", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", ] [[package]] @@ -5868,10 +5869,10 @@ dependencies = [ "pallet-session", "parity-scale-codec", "scale-info", - "sp-application-crypto", + "sp-application-crypto 23.0.0", "sp-authority-discovery", - "sp-runtime", - "sp-std", + "sp-runtime 24.0.0", + "sp-std 8.0.0", ] [[package]] @@ -5884,8 +5885,8 @@ dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "scale-info", - "sp-runtime", - "sp-std", + "sp-runtime 24.0.0", + "sp-std 8.0.0", ] [[package]] @@ -5902,14 +5903,14 @@ dependencies = [ "pallet-timestamp", "parity-scale-codec", "scale-info", - "sp-application-crypto", + "sp-application-crypto 23.0.0", "sp-consensus-babe", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-session", "sp-staking", - "sp-std", + "sp-std 8.0.0", ] [[package]] @@ -5925,11 +5926,11 @@ dependencies = [ "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", - "sp-tracing", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-std 8.0.0", + "sp-tracing 10.0.0", ] [[package]] @@ -5943,8 +5944,8 @@ dependencies = [ "log", "parity-scale-codec", "scale-info", - "sp-runtime", - "sp-std", + "sp-runtime 24.0.0", + "sp-std 8.0.0", ] [[package]] @@ -5959,10 +5960,10 @@ dependencies = [ "pallet-treasury", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-std 8.0.0", ] [[package]] @@ -5978,10 +5979,10 @@ dependencies = [ "pallet-treasury", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-std 8.0.0", ] [[package]] @@ -5995,10 +5996,10 @@ dependencies = [ "log", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-std 8.0.0", ] [[package]] @@ -6013,10 +6014,10 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-std 8.0.0", ] [[package]] @@ -6033,12 +6034,12 @@ dependencies = [ "parity-scale-codec", "rand 0.8.5", "scale-info", - "sp-arithmetic", - "sp-core", - "sp-io", + "sp-arithmetic 16.0.0", + "sp-core 21.0.0", + "sp-io 23.0.0", "sp-npos-elections", - "sp-runtime", - "sp-std", + "sp-runtime 24.0.0", + "sp-std 8.0.0", "strum", ] @@ -6052,7 +6053,7 @@ dependencies = [ "frame-system", "parity-scale-codec", "sp-npos-elections", - "sp-runtime", + "sp-runtime 24.0.0", ] [[package]] @@ -6066,12 +6067,12 @@ dependencies = [ "log", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", + "sp-core 21.0.0", + "sp-io 23.0.0", "sp-npos-elections", - "sp-runtime", + "sp-runtime 24.0.0", "sp-staking", - "sp-std", + "sp-std 8.0.0", ] [[package]] @@ -6087,14 +6088,14 @@ dependencies = [ "pallet-session", "parity-scale-codec", "scale-info", - "sp-application-crypto", + "sp-application-crypto 23.0.0", "sp-consensus-grandpa", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-session", "sp-staking", - "sp-std", + "sp-std 8.0.0", ] [[package]] @@ -6109,12 +6110,12 @@ dependencies = [ "pallet-authorship", "parity-scale-codec", "scale-info", - "sp-application-crypto", - "sp-core", - "sp-io", - "sp-runtime", + "sp-application-crypto 23.0.0", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-staking", - "sp-std", + "sp-std 8.0.0", ] [[package]] @@ -6127,11 +6128,11 @@ dependencies = [ "frame-system", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", + "sp-core 21.0.0", + "sp-io 23.0.0", "sp-keyring", - "sp-runtime", - "sp-std", + "sp-runtime 24.0.0", + "sp-std 8.0.0", ] [[package]] @@ -6145,10 +6146,10 @@ dependencies = [ "log", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-std 8.0.0", ] [[package]] @@ -6161,11 +6162,11 @@ dependencies = [ "frame-system", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", + "sp-core 21.0.0", + "sp-io 23.0.0", "sp-mmr-primitives", - "sp-runtime", - "sp-std", + "sp-runtime 24.0.0", + "sp-std 8.0.0", ] [[package]] @@ -6179,9 +6180,9 @@ dependencies = [ "log", "parity-scale-codec", "scale-info", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-std 8.0.0", ] [[package]] @@ -6194,11 +6195,11 @@ dependencies = [ "log", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-staking", - "sp-std", + "sp-std 8.0.0", ] [[package]] @@ -6213,9 +6214,9 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-runtime", + "sp-runtime 24.0.0", "sp-staking", - "sp-std", + "sp-std 8.0.0", ] [[package]] @@ -6229,10 +6230,10 @@ dependencies = [ "log", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-std 8.0.0", ] [[package]] @@ -6246,10 +6247,10 @@ dependencies = [ "log", "parity-scale-codec", "scale-info", - "sp-io", - "sp-runtime", - "sp-std", - "sp-weights", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-std 8.0.0", + "sp-weights 20.0.0", ] [[package]] @@ -6264,13 +6265,13 @@ dependencies = [ "pallet-timestamp", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-session", "sp-staking", - "sp-std", - "sp-trie", + "sp-std 8.0.0", + "sp-trie 22.0.0", ] [[package]] @@ -6289,11 +6290,11 @@ dependencies = [ "rand_chacha 0.2.2", "scale-info", "serde", - "sp-application-crypto", - "sp-io", - "sp-runtime", + "sp-application-crypto 23.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", "sp-staking", - "sp-std", + "sp-std 8.0.0", ] [[package]] @@ -6317,9 +6318,9 @@ dependencies = [ "frame-system", "parity-scale-codec", "scale-info", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-std 8.0.0", ] [[package]] @@ -6334,9 +6335,9 @@ dependencies = [ "parity-scale-codec", "scale-info", "sp-inherents", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-std 8.0.0", "sp-timestamp", ] @@ -6353,10 +6354,10 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-std 8.0.0", ] [[package]] @@ -6369,10 +6370,10 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-std 8.0.0", ] [[package]] @@ -6383,12 +6384,12 @@ dependencies = [ "jsonrpsee", "pallet-transaction-payment-rpc-runtime-api", "parity-scale-codec", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", - "sp-core", + "sp-core 21.0.0", "sp-rpc", - "sp-runtime", - "sp-weights", + "sp-runtime 24.0.0", + "sp-weights 20.0.0", ] [[package]] @@ -6398,9 +6399,9 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "pallet-transaction-payment", "parity-scale-codec", - "sp-api", - "sp-runtime", - "sp-weights", + "sp-api 4.0.0-dev", + "sp-runtime 24.0.0", + "sp-weights 20.0.0", ] [[package]] @@ -6416,8 +6417,8 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-runtime", - "sp-std", + "sp-runtime 24.0.0", + "sp-std 8.0.0", ] [[package]] @@ -6430,10 +6431,10 @@ dependencies = [ "frame-system", "parity-scale-codec", "scale-info", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-runtime 24.0.0", + "sp-std 8.0.0", ] [[package]] @@ -7751,8 +7752,8 @@ version = "4.1.0-dev" source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "log", - "sp-core", - "sp-wasm-interface", + "sp-core 21.0.0", + "sp-wasm-interface 14.0.0", "thiserror", ] @@ -7774,12 +7775,12 @@ dependencies = [ "rand 0.8.5", "sc-client-api", "sc-network", - "sp-api", + "sp-api 4.0.0-dev", "sp-authority-discovery", "sp-blockchain", - "sp-core", - "sp-keystore", - "sp-runtime", + "sp-core 21.0.0", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", "substrate-prometheus-endpoint 0.10.0-dev", "thiserror", ] @@ -7798,12 +7799,12 @@ dependencies = [ "sc-proposer-metrics", "sc-telemetry", "sc-transaction-pool-api", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", "sp-consensus", - "sp-core", + "sp-core 21.0.0", "sp-inherents", - "sp-runtime", + "sp-runtime 24.0.0", "substrate-prometheus-endpoint 0.10.0-dev", ] @@ -7814,12 +7815,12 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "parity-scale-codec", "sc-client-api", - "sp-api", + "sp-api 4.0.0-dev", "sp-block-builder", "sp-blockchain", - "sp-core", + "sp-core 21.0.0", "sp-inherents", - "sp-runtime", + "sp-runtime 24.0.0", ] [[package]] @@ -7836,9 +7837,9 @@ dependencies = [ "serde", "serde_json", "sp-blockchain", - "sp-core", - "sp-runtime", - "sp-state-machine", + "sp-core 21.0.0", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", ] [[package]] @@ -7880,12 +7881,12 @@ dependencies = [ "serde", "serde_json", "sp-blockchain", - "sp-core", + "sp-core 21.0.0", "sp-keyring", - "sp-keystore", - "sp-panic-handler", - "sp-runtime", - "sp-version", + "sp-keystore 0.27.0", + "sp-panic-handler 8.0.0", + "sp-runtime 24.0.0", + "sp-version 22.0.0", "thiserror", "tiny-bip39", "tokio", @@ -7904,16 +7905,16 @@ dependencies = [ "sc-executor", "sc-transaction-pool-api", "sc-utils", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", "sp-consensus", - "sp-core", + "sp-core 21.0.0", "sp-database", - "sp-externalities", - "sp-runtime", - "sp-state-machine", - "sp-statement-store", - "sp-storage", + "sp-externalities 0.19.0", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", + "sp-statement-store 4.0.0-dev", + "sp-storage 13.0.0", "substrate-prometheus-endpoint 0.10.0-dev", ] @@ -7934,13 +7935,13 @@ dependencies = [ "sc-client-api", "sc-state-db", "schnellru", - "sp-arithmetic", + "sp-arithmetic 16.0.0", "sp-blockchain", - "sp-core", + "sp-core 21.0.0", "sp-database", - "sp-runtime", - "sp-state-machine", - "sp-trie", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", + "sp-trie 22.0.0", ] [[package]] @@ -7958,12 +7959,12 @@ dependencies = [ "sc-client-api", "sc-utils", "serde", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", "sp-consensus", - "sp-core", - "sp-runtime", - "sp-state-machine", + "sp-core 21.0.0", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", "substrate-prometheus-endpoint 0.10.0-dev", "thiserror", ] @@ -7989,17 +7990,17 @@ dependencies = [ "sc-telemetry", "sc-transaction-pool-api", "scale-info", - "sp-api", - "sp-application-crypto", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", "sp-block-builder", "sp-blockchain", "sp-consensus", "sp-consensus-babe", "sp-consensus-slots", - "sp-core", + "sp-core 21.0.0", "sp-inherents", - "sp-keystore", - "sp-runtime", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", "substrate-prometheus-endpoint 0.10.0-dev", "thiserror", ] @@ -8015,14 +8016,14 @@ dependencies = [ "sc-consensus-epochs", "sc-rpc-api", "serde", - "sp-api", - "sp-application-crypto", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", "sp-blockchain", "sp-consensus", "sp-consensus-babe", - "sp-core", - "sp-keystore", - "sp-runtime", + "sp-core 21.0.0", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", "thiserror", ] @@ -8036,7 +8037,7 @@ dependencies = [ "sc-client-api", "sc-consensus", "sp-blockchain", - "sp-runtime", + "sp-runtime 24.0.0", ] [[package]] @@ -8067,15 +8068,15 @@ dependencies = [ "sc-transaction-pool-api", "sc-utils", "serde_json", - "sp-api", - "sp-application-crypto", - "sp-arithmetic", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", + "sp-arithmetic 16.0.0", "sp-blockchain", "sp-consensus", "sp-consensus-grandpa", - "sp-core", - "sp-keystore", - "sp-runtime", + "sp-core 21.0.0", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", "substrate-prometheus-endpoint 0.10.0-dev", "thiserror", ] @@ -8095,8 +8096,8 @@ dependencies = [ "sc-rpc", "serde", "sp-blockchain", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "thiserror", ] @@ -8113,14 +8114,14 @@ dependencies = [ "sc-client-api", "sc-consensus", "sc-telemetry", - "sp-arithmetic", + "sp-arithmetic 16.0.0", "sp-blockchain", "sp-consensus", "sp-consensus-slots", - "sp-core", + "sp-core 21.0.0", "sp-inherents", - "sp-runtime", - "sp-state-machine", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", ] [[package]] @@ -8133,15 +8134,15 @@ dependencies = [ "sc-executor-common", "sc-executor-wasmtime", "schnellru", - "sp-api", - "sp-core", - "sp-externalities", - "sp-io", - "sp-panic-handler", - "sp-runtime-interface", - "sp-trie", - "sp-version", - "sp-wasm-interface", + "sp-api 4.0.0-dev", + "sp-core 21.0.0", + "sp-externalities 0.19.0", + "sp-io 23.0.0", + "sp-panic-handler 8.0.0", + "sp-runtime-interface 17.0.0", + "sp-trie 22.0.0", + "sp-version 22.0.0", + "sp-wasm-interface 14.0.0", "tracing", ] @@ -8152,7 +8153,7 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "sc-allocator", "sp-maybe-compressed-blob", - "sp-wasm-interface", + "sp-wasm-interface 14.0.0", "thiserror", "wasm-instrument", ] @@ -8169,8 +8170,8 @@ dependencies = [ "rustix 0.36.15", "sc-allocator", "sc-executor-common", - "sp-runtime-interface", - "sp-wasm-interface", + "sp-runtime-interface 17.0.0", + "sp-wasm-interface 14.0.0", "wasmtime", ] @@ -8187,7 +8188,7 @@ dependencies = [ "sc-network", "sc-network-common", "sp-blockchain", - "sp-runtime", + "sp-runtime 24.0.0", ] [[package]] @@ -8198,9 +8199,9 @@ dependencies = [ "array-bytes", "parking_lot 0.12.1", "serde_json", - "sp-application-crypto", - "sp-core", - "sp-keystore", + "sp-application-crypto 23.0.0", + "sp-core 21.0.0", + "sp-keystore 0.27.0", "thiserror", ] @@ -8234,10 +8235,10 @@ dependencies = [ "serde", "serde_json", "smallvec", - "sp-arithmetic", + "sp-arithmetic 16.0.0", "sp-blockchain", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "substrate-prometheus-endpoint 0.10.0-dev", "thiserror", "unsigned-varint", @@ -8260,7 +8261,7 @@ dependencies = [ "sc-client-api", "sc-network", "sp-blockchain", - "sp-runtime", + "sp-runtime 24.0.0", "thiserror", "unsigned-varint", ] @@ -8279,7 +8280,7 @@ dependencies = [ "sc-consensus", "sp-consensus", "sp-consensus-grandpa", - "sp-runtime", + "sp-runtime 24.0.0", ] [[package]] @@ -8295,7 +8296,7 @@ dependencies = [ "sc-network", "sc-network-common", "schnellru", - "sp-runtime", + "sp-runtime 24.0.0", "substrate-prometheus-endpoint 0.10.0-dev", "tracing", ] @@ -8316,8 +8317,8 @@ dependencies = [ "sc-client-api", "sc-network", "sp-blockchain", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "thiserror", ] @@ -8345,12 +8346,12 @@ dependencies = [ "sc-utils", "schnellru", "smallvec", - "sp-arithmetic", + "sp-arithmetic 16.0.0", "sp-blockchain", "sp-consensus", "sp-consensus-grandpa", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "substrate-prometheus-endpoint 0.10.0-dev", "thiserror", ] @@ -8369,7 +8370,7 @@ dependencies = [ "sc-network-common", "sc-utils", "sp-consensus", - "sp-runtime", + "sp-runtime 24.0.0", "substrate-prometheus-endpoint 0.10.0-dev", ] @@ -8400,16 +8401,16 @@ dependencies = [ "sc-transaction-pool-api", "sc-utils", "serde_json", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", - "sp-core", - "sp-keystore", + "sp-core 21.0.0", + "sp-keystore 0.27.0", "sp-offchain", "sp-rpc", - "sp-runtime", + "sp-runtime 24.0.0", "sp-session", - "sp-statement-store", - "sp-version", + "sp-statement-store 4.0.0-dev", + "sp-version 22.0.0", "tokio", ] @@ -8425,10 +8426,10 @@ dependencies = [ "scale-info", "serde", "serde_json", - "sp-core", + "sp-core 21.0.0", "sp-rpc", - "sp-runtime", - "sp-version", + "sp-runtime 24.0.0", + "sp-version 22.0.0", "thiserror", ] @@ -8464,11 +8465,11 @@ dependencies = [ "sc-client-api", "sc-transaction-pool-api", "serde", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", - "sp-core", - "sp-runtime", - "sp-version", + "sp-core 21.0.0", + "sp-runtime 24.0.0", + "sp-version 22.0.0", "thiserror", "tokio-stream", ] @@ -8514,20 +8515,20 @@ dependencies = [ "sc-utils", "serde", "serde_json", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", "sp-consensus", - "sp-core", - "sp-externalities", - "sp-keystore", - "sp-runtime", + "sp-core 21.0.0", + "sp-externalities 0.19.0", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", "sp-session", - "sp-state-machine", - "sp-storage", + "sp-state-machine 0.28.0", + "sp-storage 13.0.0", "sp-transaction-pool", "sp-transaction-storage-proof", - "sp-trie", - "sp-version", + "sp-trie 22.0.0", + "sp-version 22.0.0", "static_init", "substrate-prometheus-endpoint 0.10.0-dev", "tempfile", @@ -8545,7 +8546,7 @@ dependencies = [ "log", "parity-scale-codec", "parking_lot 0.12.1", - "sp-core", + "sp-core 21.0.0", ] [[package]] @@ -8563,7 +8564,7 @@ dependencies = [ "serde", "serde_json", "sp-blockchain", - "sp-runtime", + "sp-runtime 24.0.0", "thiserror", ] @@ -8581,9 +8582,9 @@ dependencies = [ "sc-telemetry", "serde", "serde_json", - "sp-core", - "sp-io", - "sp-std", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-std 8.0.0", ] [[package]] @@ -8622,12 +8623,12 @@ dependencies = [ "sc-client-api", "sc-tracing-proc-macro", "serde", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", - "sp-core", + "sp-core 21.0.0", "sp-rpc", - "sp-runtime", - "sp-tracing", + "sp-runtime 24.0.0", + "sp-tracing 10.0.0", "thiserror", "tracing", "tracing-log", @@ -8661,11 +8662,11 @@ dependencies = [ "sc-transaction-pool-api", "sc-utils", "serde", - "sp-api", + "sp-api 4.0.0-dev", "sp-blockchain", - "sp-core", - "sp-runtime", - "sp-tracing", + "sp-core 21.0.0", + "sp-runtime 24.0.0", + "sp-tracing 10.0.0", "sp-transaction-pool", "substrate-prometheus-endpoint 0.10.0-dev", "thiserror", @@ -8682,8 +8683,8 @@ dependencies = [ "parity-scale-codec", "serde", "sp-blockchain", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "thiserror", ] @@ -8699,7 +8700,7 @@ dependencies = [ "log", "parking_lot 0.12.1", "prometheus", - "sp-arithmetic", + "sp-arithmetic 16.0.0", ] [[package]] @@ -9193,15 +9194,37 @@ dependencies = [ "log", "parity-scale-codec", "scale-info", - "sp-api-proc-macro", - "sp-core", - "sp-externalities", - "sp-metadata-ir", - "sp-runtime", - "sp-state-machine", - "sp-std", - "sp-trie", - "sp-version", + "sp-api-proc-macro 4.0.0-dev", + "sp-core 21.0.0", + "sp-externalities 0.19.0", + "sp-metadata-ir 0.1.0 (git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0)", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", + "sp-std 8.0.0", + "sp-trie 22.0.0", + "sp-version 22.0.0", + "thiserror", +] + +[[package]] +name = "sp-api" +version = "20.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1aa63dcdd3fb081a894189f83115dd683be1339a919cd7d3f98f145d1870626c" +dependencies = [ + "hash-db", + "log", + "parity-scale-codec", + "scale-info", + "sp-api-proc-macro 9.0.0", + "sp-core 22.0.0", + "sp-externalities 0.20.0", + "sp-metadata-ir 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-runtime 25.0.0", + "sp-state-machine 0.29.0", + "sp-std 9.0.0", + "sp-trie 23.0.0", + "sp-version 23.0.0", "thiserror", ] @@ -9219,6 +9242,21 @@ dependencies = [ "syn 2.0.29", ] +[[package]] +name = "sp-api-proc-macro" +version = "9.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a062dfff051064bfa1837566b74d00a49050b36e3887b2283ab667cef4f3a85e" +dependencies = [ + "Inflector", + "blake2", + "expander", + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 2.0.29", +] + [[package]] name = "sp-application-crypto" version = "23.0.0" @@ -9227,9 +9265,23 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-io", - "sp-std", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-std 8.0.0", +] + +[[package]] +name = "sp-application-crypto" +version = "24.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b49d62089ef6fdd52a6f90f670d533ccb365235258cf517dbd5bd571febcfbd" +dependencies = [ + "parity-scale-codec", + "scale-info", + "serde", + "sp-core 22.0.0", + "sp-io 24.0.0", + "sp-std 9.0.0", ] [[package]] @@ -9242,7 +9294,22 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-std", + "sp-std 8.0.0", + "static_assertions", +] + +[[package]] +name = "sp-arithmetic" +version = "17.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0241327405688cac3fcc29114fd35f99224e321daa37e19920e50e4b2fdd0645" +dependencies = [ + "integer-sqrt", + "num-traits", + "parity-scale-codec", + "scale-info", + "serde", + "sp-std 9.0.0", "static_assertions", ] @@ -9253,10 +9320,10 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "parity-scale-codec", "scale-info", - "sp-api", - "sp-application-crypto", - "sp-runtime", - "sp-std", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", + "sp-runtime 24.0.0", + "sp-std 8.0.0", ] [[package]] @@ -9264,10 +9331,10 @@ name = "sp-block-builder" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ - "sp-api", + "sp-api 4.0.0-dev", "sp-inherents", - "sp-runtime", - "sp-std", + "sp-runtime 24.0.0", + "sp-std 8.0.0", ] [[package]] @@ -9280,11 +9347,11 @@ dependencies = [ "parity-scale-codec", "parking_lot 0.12.1", "schnellru", - "sp-api", + "sp-api 4.0.0-dev", "sp-consensus", "sp-database", - "sp-runtime", - "sp-state-machine", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", "thiserror", ] @@ -9296,10 +9363,10 @@ dependencies = [ "async-trait", "futures", "log", - "sp-core", + "sp-core 21.0.0", "sp-inherents", - "sp-runtime", - "sp-state-machine", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", "thiserror", ] @@ -9311,12 +9378,12 @@ dependencies = [ "async-trait", "parity-scale-codec", "scale-info", - "sp-api", - "sp-application-crypto", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", "sp-consensus-slots", "sp-inherents", - "sp-runtime", - "sp-std", + "sp-runtime 24.0.0", + "sp-std 8.0.0", "sp-timestamp", ] @@ -9329,13 +9396,13 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-api", - "sp-application-crypto", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", "sp-consensus-slots", - "sp-core", + "sp-core 21.0.0", "sp-inherents", - "sp-runtime", - "sp-std", + "sp-runtime 24.0.0", + "sp-std 8.0.0", "sp-timestamp", ] @@ -9349,12 +9416,12 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-api", - "sp-application-crypto", - "sp-core", - "sp-keystore", - "sp-runtime", - "sp-std", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", + "sp-core 21.0.0", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", + "sp-std 8.0.0", ] [[package]] @@ -9365,7 +9432,7 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-std", + "sp-std 8.0.0", "sp-timestamp", ] @@ -9400,12 +9467,58 @@ dependencies = [ "secp256k1", "secrecy", "serde", - "sp-core-hashing", - "sp-debug-derive", - "sp-externalities", - "sp-runtime-interface", - "sp-std", - "sp-storage", + "sp-core-hashing 9.0.0", + "sp-debug-derive 8.0.0", + "sp-externalities 0.19.0", + "sp-runtime-interface 17.0.0", + "sp-std 8.0.0", + "sp-storage 13.0.0", + "ss58-registry", + "substrate-bip39", + "thiserror", + "tiny-bip39", + "tracing", + "zeroize", +] + +[[package]] +name = "sp-core" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0de478e02efd547693b33ad02515e09933d5b69b7f3036fa890b92e50fd9dfc" +dependencies = [ + "array-bytes", + "bitflags 1.3.2", + "blake2", + "bounded-collections", + "bs58", + "dyn-clonable", + "ed25519-zebra", + "futures", + "hash-db", + "hash256-std-hasher", + "impl-serde", + "lazy_static", + "libsecp256k1", + "log", + "merlin 2.0.1", + "parity-scale-codec", + "parking_lot 0.12.1", + "paste", + "primitive-types", + "rand 0.8.5", + "regex", + "scale-info", + "schnorrkel", + "secp256k1", + "secrecy", + "serde", + "sp-core-hashing 10.0.0", + "sp-debug-derive 9.0.0", + "sp-externalities 0.20.0", + "sp-runtime-interface 18.0.0", + "sp-std 9.0.0", + "sp-storage 14.0.0", "ss58-registry", "substrate-bip39", "thiserror", @@ -9427,13 +9540,38 @@ dependencies = [ "twox-hash", ] +[[package]] +name = "sp-core-hashing" +version = "10.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e360755a2706a76886d58776665cad0db793dece3c7d390455b28e8a1efd6285" +dependencies = [ + "blake2b_simd", + "byteorder", + "digest 0.10.7", + "sha2 0.10.7", + "sha3", + "twox-hash", +] + [[package]] name = "sp-core-hashing-proc-macro" version = "9.0.0" source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "quote", - "sp-core-hashing", + "sp-core-hashing 9.0.0", + "syn 2.0.29", +] + +[[package]] +name = "sp-core-hashing-proc-macro" +version = "10.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8dc707d9f5bf155d584900783e328cb3dc79c950f898a18a8f24066f41f040a5" +dependencies = [ + "quote", + "sp-core-hashing 10.0.0", "syn 2.0.29", ] @@ -9456,6 +9594,17 @@ dependencies = [ "syn 2.0.29", ] +[[package]] +name = "sp-debug-derive" +version = "9.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f12dae7cf6c1e825d13ffd4ce16bd9309db7c539929d0302b4443ed451a9f4e5" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.29", +] + [[package]] name = "sp-externalities" version = "0.19.0" @@ -9463,8 +9612,20 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "environmental", "parity-scale-codec", - "sp-std", - "sp-storage", + "sp-std 8.0.0", + "sp-storage 13.0.0", +] + +[[package]] +name = "sp-externalities" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3313e2c5f2523b06062e541dff9961bde88ad5a28861621dc7b7b47a32bb0f7c" +dependencies = [ + "environmental", + "parity-scale-codec", + "sp-std 9.0.0", + "sp-storage 14.0.0", ] [[package]] @@ -9476,8 +9637,8 @@ dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "scale-info", - "sp-runtime", - "sp-std", + "sp-runtime 24.0.0", + "sp-std 8.0.0", "thiserror", ] @@ -9494,14 +9655,40 @@ dependencies = [ "parity-scale-codec", "rustversion", "secp256k1", - "sp-core", - "sp-externalities", - "sp-keystore", - "sp-runtime-interface", - "sp-state-machine", - "sp-std", - "sp-tracing", - "sp-trie", + "sp-core 21.0.0", + "sp-externalities 0.19.0", + "sp-keystore 0.27.0", + "sp-runtime-interface 17.0.0", + "sp-state-machine 0.28.0", + "sp-std 8.0.0", + "sp-tracing 10.0.0", + "sp-trie 22.0.0", + "tracing", + "tracing-core", +] + +[[package]] +name = "sp-io" +version = "24.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff6194309bfe055d93177c6c9d2ed4c7b66040617cf3003a15e509c432cf3b62" +dependencies = [ + "bytes", + "ed25519", + "ed25519-dalek", + "libsecp256k1", + "log", + "parity-scale-codec", + "rustversion", + "secp256k1", + "sp-core 22.0.0", + "sp-externalities 0.20.0", + "sp-keystore 0.28.0", + "sp-runtime-interface 18.0.0", + "sp-state-machine 0.29.0", + "sp-std 9.0.0", + "sp-tracing 11.0.0", + "sp-trie 23.0.0", "tracing", "tracing-core", ] @@ -9512,8 +9699,8 @@ version = "24.0.0" source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "lazy_static", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", "strum", ] @@ -9524,8 +9711,21 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "parity-scale-codec", "parking_lot 0.12.1", - "sp-core", - "sp-externalities", + "sp-core 21.0.0", + "sp-externalities 0.19.0", + "thiserror", +] + +[[package]] +name = "sp-keystore" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6eda1d2572a15340927a9f7db75ffe74366b645eaf9212015b4a96ad8e9d4c46" +dependencies = [ + "parity-scale-codec", + "parking_lot 0.12.1", + "sp-core 22.0.0", + "sp-externalities 0.20.0", "thiserror", ] @@ -9538,6 +9738,18 @@ dependencies = [ "zstd 0.12.4", ] +[[package]] +name = "sp-metadata-ir" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0369e75e418bcfdeede4acb92563ef2d514ad0e7d81c350ba9ae98841a237f3c" +dependencies = [ + "frame-metadata", + "parity-scale-codec", + "scale-info", + "sp-std 9.0.0", +] + [[package]] name = "sp-metadata-ir" version = "0.1.0" @@ -9546,7 +9758,7 @@ dependencies = [ "frame-metadata", "parity-scale-codec", "scale-info", - "sp-std", + "sp-std 8.0.0", ] [[package]] @@ -9559,11 +9771,11 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-api", - "sp-core", - "sp-debug-derive", - "sp-runtime", - "sp-std", + "sp-api 4.0.0-dev", + "sp-core 21.0.0", + "sp-debug-derive 8.0.0", + "sp-runtime 24.0.0", + "sp-std 8.0.0", "thiserror", ] @@ -9575,10 +9787,10 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-arithmetic", - "sp-core", - "sp-runtime", - "sp-std", + "sp-arithmetic 16.0.0", + "sp-core 21.0.0", + "sp-runtime 24.0.0", + "sp-std 8.0.0", ] [[package]] @@ -9586,9 +9798,9 @@ name = "sp-offchain" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ - "sp-api", - "sp-core", - "sp-runtime", + "sp-api 4.0.0-dev", + "sp-core 21.0.0", + "sp-runtime 24.0.0", ] [[package]] @@ -9601,6 +9813,17 @@ dependencies = [ "regex", ] +[[package]] +name = "sp-panic-handler" +version = "9.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57c67eb0a0d11d3017ef43c975068ba76c7b0e83aca1ee3d68ba0ce270ecebe7" +dependencies = [ + "backtrace", + "lazy_static", + "regex", +] + [[package]] name = "sp-rpc" version = "6.0.0" @@ -9608,7 +9831,7 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "rustc-hash", "serde", - "sp-core", + "sp-core 21.0.0", ] [[package]] @@ -9625,12 +9848,35 @@ dependencies = [ "rand 0.8.5", "scale-info", "serde", - "sp-application-crypto", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-std", - "sp-weights", + "sp-application-crypto 23.0.0", + "sp-arithmetic 16.0.0", + "sp-core 21.0.0", + "sp-io 23.0.0", + "sp-std 8.0.0", + "sp-weights 20.0.0", +] + +[[package]] +name = "sp-runtime" +version = "25.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d056e4cccf36a45be5d471b47c09e8be91b825f1d8352f20aa01f9f693176e7" +dependencies = [ + "either", + "hash256-std-hasher", + "impl-trait-for-tuples", + "log", + "parity-scale-codec", + "paste", + "rand 0.8.5", + "scale-info", + "serde", + "sp-application-crypto 24.0.0", + "sp-arithmetic 17.0.0", + "sp-core 22.0.0", + "sp-io 24.0.0", + "sp-std 9.0.0", + "sp-weights 21.0.0", ] [[package]] @@ -9642,12 +9888,31 @@ dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "primitive-types", - "sp-externalities", - "sp-runtime-interface-proc-macro", - "sp-std", - "sp-storage", - "sp-tracing", - "sp-wasm-interface", + "sp-externalities 0.19.0", + "sp-runtime-interface-proc-macro 11.0.0", + "sp-std 8.0.0", + "sp-storage 13.0.0", + "sp-tracing 10.0.0", + "sp-wasm-interface 14.0.0", + "static_assertions", +] + +[[package]] +name = "sp-runtime-interface" +version = "18.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf9781c72848efe6750116eb96edaeb105ee7e0bd7f38a4e46371bf810b3db7b" +dependencies = [ + "bytes", + "impl-trait-for-tuples", + "parity-scale-codec", + "primitive-types", + "sp-externalities 0.20.0", + "sp-runtime-interface-proc-macro 12.0.0", + "sp-std 9.0.0", + "sp-storage 14.0.0", + "sp-tracing 11.0.0", + "sp-wasm-interface 15.0.0", "static_assertions", ] @@ -9663,6 +9928,19 @@ dependencies = [ "syn 2.0.29", ] +[[package]] +name = "sp-runtime-interface-proc-macro" +version = "12.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7402572a08aa1ae421ea5bab10918764b0ae72301b27710913e5d804862f2448" +dependencies = [ + "Inflector", + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 2.0.29", +] + [[package]] name = "sp-session" version = "4.0.0-dev" @@ -9670,12 +9948,12 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "parity-scale-codec", "scale-info", - "sp-api", - "sp-core", - "sp-keystore", - "sp-runtime", + "sp-api 4.0.0-dev", + "sp-core 21.0.0", + "sp-keystore 0.27.0", + "sp-runtime 24.0.0", "sp-staking", - "sp-std", + "sp-std 8.0.0", ] [[package]] @@ -9687,9 +9965,9 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core", - "sp-runtime", - "sp-std", + "sp-core 21.0.0", + "sp-runtime 24.0.0", + "sp-std 8.0.0", ] [[package]] @@ -9703,11 +9981,33 @@ dependencies = [ "parking_lot 0.12.1", "rand 0.8.5", "smallvec", - "sp-core", - "sp-externalities", - "sp-panic-handler", - "sp-std", - "sp-trie", + "sp-core 21.0.0", + "sp-externalities 0.19.0", + "sp-panic-handler 8.0.0", + "sp-std 8.0.0", + "sp-trie 22.0.0", + "thiserror", + "tracing", + "trie-db", +] + +[[package]] +name = "sp-state-machine" +version = "0.29.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2e84d8ed3acc6aed5a3d5cfd500fb5b99c1e299c86086b2fe82c3e4be93178f" +dependencies = [ + "hash-db", + "log", + "parity-scale-codec", + "parking_lot 0.12.1", + "rand 0.8.5", + "smallvec", + "sp-core 22.0.0", + "sp-externalities 0.20.0", + "sp-panic-handler 9.0.0", + "sp-std 9.0.0", + "sp-trie 23.0.0", "thiserror", "tracing", "trie-db", @@ -9720,13 +10020,31 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "parity-scale-codec", "scale-info", - "sp-api", - "sp-application-crypto", - "sp-core", - "sp-externalities", - "sp-runtime", - "sp-runtime-interface", - "sp-std", + "sp-api 4.0.0-dev", + "sp-application-crypto 23.0.0", + "sp-core 21.0.0", + "sp-externalities 0.19.0", + "sp-runtime 24.0.0", + "sp-runtime-interface 17.0.0", + "sp-std 8.0.0", + "thiserror", +] + +[[package]] +name = "sp-statement-store" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7044433e7f65572527a2b871725e64536ff858ea968af903426122d9bd1882f6" +dependencies = [ + "parity-scale-codec", + "scale-info", + "sp-api 20.0.0", + "sp-application-crypto 24.0.0", + "sp-core 22.0.0", + "sp-externalities 0.20.0", + "sp-runtime 25.0.0", + "sp-runtime-interface 18.0.0", + "sp-std 9.0.0", "thiserror", ] @@ -9735,6 +10053,12 @@ name = "sp-std" version = "8.0.0" source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" +[[package]] +name = "sp-std" +version = "9.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d5bbc9339227d1b6a9b7ccd9b2920c818653d40eef1512f1e2e824d72e7a336" + [[package]] name = "sp-storage" version = "13.0.0" @@ -9744,8 +10068,22 @@ dependencies = [ "parity-scale-codec", "ref-cast", "serde", - "sp-debug-derive", - "sp-std", + "sp-debug-derive 8.0.0", + "sp-std 8.0.0", +] + +[[package]] +name = "sp-storage" +version = "14.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a21245c3a7799ff6d3f1f159b496f9ac72eb32cd6fe68c6f73013155289aa9f1" +dependencies = [ + "impl-serde", + "parity-scale-codec", + "ref-cast", + "serde", + "sp-debug-derive 9.0.0", + "sp-std 9.0.0", ] [[package]] @@ -9756,8 +10094,8 @@ dependencies = [ "async-trait", "parity-scale-codec", "sp-inherents", - "sp-runtime", - "sp-std", + "sp-runtime 24.0.0", + "sp-std 8.0.0", "thiserror", ] @@ -9767,7 +10105,20 @@ version = "10.0.0" source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "parity-scale-codec", - "sp-std", + "sp-std 8.0.0", + "tracing", + "tracing-core", + "tracing-subscriber", +] + +[[package]] +name = "sp-tracing" +version = "11.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f5ba26db1f7513d5975970d1ba1f0580d7a1b8da8c86ea3f9f0f8dbe2cfa96e" +dependencies = [ + "parity-scale-codec", + "sp-std 9.0.0", "tracing", "tracing-core", "tracing-subscriber", @@ -9778,8 +10129,8 @@ name = "sp-transaction-pool" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ - "sp-api", - "sp-runtime", + "sp-api 4.0.0-dev", + "sp-runtime 24.0.0", ] [[package]] @@ -9790,11 +10141,11 @@ dependencies = [ "async-trait", "parity-scale-codec", "scale-info", - "sp-core", + "sp-core 21.0.0", "sp-inherents", - "sp-runtime", - "sp-std", - "sp-trie", + "sp-runtime 24.0.0", + "sp-std 8.0.0", + "sp-trie 22.0.0", ] [[package]] @@ -9812,8 +10163,32 @@ dependencies = [ "parking_lot 0.12.1", "scale-info", "schnellru", - "sp-core", - "sp-std", + "sp-core 21.0.0", + "sp-std 8.0.0", + "thiserror", + "tracing", + "trie-db", + "trie-root", +] + +[[package]] +name = "sp-trie" +version = "23.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf63ea90ffb5d61048d8fb2fac669114dac198fc2739e913e615f0fd2c36c3e7" +dependencies = [ + "ahash 0.8.3", + "hash-db", + "hashbrown 0.13.2", + "lazy_static", + "memory-db", + "nohash-hasher", + "parity-scale-codec", + "parking_lot 0.12.1", + "scale-info", + "schnellru", + "sp-core 22.0.0", + "sp-std 9.0.0", "thiserror", "tracing", "trie-db", @@ -9830,10 +10205,28 @@ dependencies = [ "parity-wasm", "scale-info", "serde", - "sp-core-hashing-proc-macro", - "sp-runtime", - "sp-std", - "sp-version-proc-macro", + "sp-core-hashing-proc-macro 9.0.0", + "sp-runtime 24.0.0", + "sp-std 8.0.0", + "sp-version-proc-macro 8.0.0", + "thiserror", +] + +[[package]] +name = "sp-version" +version = "23.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccae066042a53a83017a2afeee2fd608efa42b564c1a44ea1260d5a2c264ac66" +dependencies = [ + "impl-serde", + "parity-scale-codec", + "parity-wasm", + "scale-info", + "serde", + "sp-core-hashing-proc-macro 10.0.0", + "sp-runtime 25.0.0", + "sp-std 9.0.0", + "sp-version-proc-macro 9.0.0", "thiserror", ] @@ -9848,6 +10241,18 @@ dependencies = [ "syn 2.0.29", ] +[[package]] +name = "sp-version-proc-macro" +version = "9.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07e569853a50ad02a4b45640e7b96206bcb4569bb85ce7cdf8754a207fcfba54" +dependencies = [ + "parity-scale-codec", + "proc-macro2", + "quote", + "syn 2.0.29", +] + [[package]] name = "sp-wasm-interface" version = "14.0.0" @@ -9857,7 +10262,21 @@ dependencies = [ "impl-trait-for-tuples", "log", "parity-scale-codec", - "sp-std", + "sp-std 8.0.0", + "wasmtime", +] + +[[package]] +name = "sp-wasm-interface" +version = "15.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d07945f592d2792632e6f030108769757e928a0fd78cf8659c9c210a5e341e55" +dependencies = [ + "anyhow", + "impl-trait-for-tuples", + "log", + "parity-scale-codec", + "sp-std 9.0.0", "wasmtime", ] @@ -9870,10 +10289,26 @@ dependencies = [ "scale-info", "serde", "smallvec", - "sp-arithmetic", - "sp-core", - "sp-debug-derive", - "sp-std", + "sp-arithmetic 16.0.0", + "sp-core 21.0.0", + "sp-debug-derive 8.0.0", + "sp-std 8.0.0", +] + +[[package]] +name = "sp-weights" +version = "21.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b7699b853471c2eb5dc06ea1d8ea847bfa1415371218ebb4c86325c9d0232bc" +dependencies = [ + "parity-scale-codec", + "scale-info", + "serde", + "smallvec", + "sp-arithmetic 17.0.0", + "sp-core 22.0.0", + "sp-debug-derive 9.0.0", + "sp-std 9.0.0", ] [[package]] @@ -10045,11 +10480,11 @@ dependencies = [ "parity-scale-codec", "sc-rpc-api", "sc-transaction-pool-api", - "sp-api", + "sp-api 4.0.0-dev", "sp-block-builder", "sp-blockchain", - "sp-core", - "sp-runtime", + "sp-core 21.0.0", + "sp-runtime 24.0.0", ] [[package]] @@ -10088,7 +10523,7 @@ dependencies = [ "log", "sc-rpc-api", "serde", - "sp-runtime", + "sp-runtime 24.0.0", ] [[package]] @@ -10101,10 +10536,10 @@ dependencies = [ "sc-client-api", "sc-rpc-api", "serde", - "sp-core", - "sp-runtime", - "sp-state-machine", - "sp-trie", + "sp-core 21.0.0", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", + "sp-trie 22.0.0", "trie-db", ] @@ -10763,22 +11198,22 @@ dependencies = [ "sc-executor", "serde", "serde_json", - "sp-api", + "sp-api 4.0.0-dev", "sp-consensus-aura", "sp-consensus-babe", - "sp-core", - "sp-debug-derive", - "sp-externalities", + "sp-core 21.0.0", + "sp-debug-derive 8.0.0", + "sp-externalities 0.19.0", "sp-inherents", - "sp-io", - "sp-keystore", + "sp-io 23.0.0", + "sp-keystore 0.27.0", "sp-rpc", - "sp-runtime", - "sp-state-machine", + "sp-runtime 24.0.0", + "sp-state-machine 0.28.0", "sp-timestamp", "sp-transaction-storage-proof", - "sp-version", - "sp-weights", + "sp-version 22.0.0", + "sp-weights 20.0.0", "substrate-rpc-client", "zstd 0.12.4", ] diff --git a/Cargo.toml b/Cargo.toml index a2170b03f..3eabb2643 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -77,6 +77,7 @@ sp-transaction-pool = { git = "https://github.com/paritytech/substrate.git", bra sp-transaction-storage-proof = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } sp-keystore = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } sp-state-machine = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +sp-statement-store = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } sp-trie = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } sp-externalities = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } sp-npos-elections = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } diff --git a/node/Cargo.toml b/node/Cargo.toml index 08b1be048..6e2e4e740 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -48,6 +48,7 @@ async-trait = "0.1.60" ## Primitives sc-cli = "0.10.0-dev" sp-io = "23.0.0" +sp-statement-store = "4.0.0-dev" sp-core = "21.0.0" sc-executor = "0.10.0-dev" sc-service = "0.10.0-dev" diff --git a/node/src/command.rs b/node/src/command.rs index 3a9764e30..2a515c44f 100644 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -20,7 +20,7 @@ use std::sync::Arc; use da_runtime::Block; use frame_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE}; -use sc_cli::{ChainSpec, Result, RuntimeVersion, SubstrateCli}; +use sc_cli::{ChainSpec, Result, SubstrateCli}; use sc_service::PartialComponents; use crate::{ @@ -61,10 +61,6 @@ impl SubstrateCli for Cli { }; Ok(spec) } - - fn native_runtime_version(_: &Box) -> &'static RuntimeVersion { - da_runtime::apis::NATIVE_VERSION - } } /// Parse command line arguments into service configuration. @@ -99,8 +95,8 @@ pub fn run() -> Result<()> { .into(), ); } - - cmd.run::(config) + // TODO: Add the executor back + cmd.run::(config) }, BenchmarkCmd::Block(_cmd) => { unimplemented!(); diff --git a/node/src/rpc.rs b/node/src/rpc.rs index 7a92ce441..5ef861e01 100644 --- a/node/src/rpc.rs +++ b/node/src/rpc.rs @@ -120,7 +120,7 @@ where B: sc_client_api::Backend + Send + Sync + 'static, B::State: sc_client_api::backend::StateBackend>, { - use kate_rpc::Kate; + use kate_rpc::{Kate, KateApiServer}; use mmr_rpc::{Mmr, MmrApiServer}; use pallet_transaction_payment_rpc::{TransactionPayment, TransactionPaymentApiServer}; use sc_consensus_babe_rpc::{Babe, BabeApiServer}; diff --git a/rpc/kate-rpc/src/lib.rs b/rpc/kate-rpc/src/lib.rs index 4f2b60506..55f6994cd 100644 --- a/rpc/kate-rpc/src/lib.rs +++ b/rpc/kate-rpc/src/lib.rs @@ -6,8 +6,8 @@ use std::{ use avail_base::metrics::RPCMetricAdapter; use avail_core::{ - header::extension::v1::HeaderExtension, traits::ExtendedHeader, AppExtrinsic, AppId, - BlockLengthColumns, BlockLengthRows, DataProof, OpaqueExtrinsic, BLOCK_CHUNK_SIZE, + header::HeaderExtension, traits::ExtendedHeader, AppExtrinsic, AppId, BlockLengthColumns, + BlockLengthRows, DataProof, OpaqueExtrinsic, BLOCK_CHUNK_SIZE, }; use da_runtime::{apis::DataAvailApi, Runtime, UncheckedExtrinsic}; use frame_system::{limits::BlockLength, submitted_data}; From dacf53234515b2bd820d6d000130417d62cbeb64 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Wed, 23 Aug 2023 17:08:55 +0530 Subject: [PATCH 29/58] Added header_builder hosted function back --- node/src/command.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/node/src/command.rs b/node/src/command.rs index 2a515c44f..0d0399e46 100644 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -20,14 +20,13 @@ use std::sync::Arc; use da_runtime::Block; use frame_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE}; -use sc_cli::{ChainSpec, Result, SubstrateCli}; +use sc_cli::{Result, SubstrateCli}; use sc_service::PartialComponents; use crate::{ chain_spec, cli::{Cli, Subcommand}, - service::{self, new_partial, ExecutorDispatch, FullClient}, - // benchmarking::{RemarkBuilder, inherent_benchmark_data, TransferKeepAliveBuilder}, + service::{self, new_partial, FullClient}, }; impl SubstrateCli for Cli { @@ -95,8 +94,7 @@ pub fn run() -> Result<()> { .into(), ); } - // TODO: Add the executor back - cmd.run::(config) + cmd.run::(config) }, BenchmarkCmd::Block(_cmd) => { unimplemented!(); From aa4fa1bafaa3f6c35724351459d5e406fe956a6d Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Wed, 23 Aug 2023 17:37:45 +0530 Subject: [PATCH 30/58] clippy fixes --- node/src/cli.rs | 1 + node/src/rpc.rs | 2 +- node/src/service.rs | 12 ++++++------ 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/node/src/cli.rs b/node/src/cli.rs index f0410283b..01d3f00e1 100644 --- a/node/src/cli.rs +++ b/node/src/cli.rs @@ -39,6 +39,7 @@ pub struct Cli { } /// Possible subcommands of the main binary. +#[allow(clippy::large_enum_variant)] #[derive(Debug, clap::Subcommand)] pub enum Subcommand { /* diff --git a/node/src/rpc.rs b/node/src/rpc.rs index 5ef861e01..8d16db0dc 100644 --- a/node/src/rpc.rs +++ b/node/src/rpc.rs @@ -171,7 +171,7 @@ where client.clone(), backend .offchain_storage() - .ok_or_else(|| "Backend doesn't provide an offchain storage")?, + .ok_or("Backend doesn't provide an offchain storage")?, ) .into_rpc(), )?; diff --git a/node/src/service.rs b/node/src/service.rs index a76c74cea..501fd9300 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -192,7 +192,7 @@ pub fn new_partial( }) .transpose()?; - let executor = sc_service::new_native_or_wasm_executor(&config); + let executor = sc_service::new_native_or_wasm_executor(config); let (client, backend, keystore_container, task_manager) = sc_service::new_full_parts::( @@ -337,7 +337,7 @@ pub struct NewFullBase { /// Creates a full service from the configuration. pub fn new_full_base( - mut config: Configuration, + config: Configuration, disable_hardware_benchmarks: bool, with_startup_data: impl FnOnce(&BlockImport, &sc_consensus_babe::BabeLink), ) -> Result { @@ -400,14 +400,14 @@ pub fn new_full_base( let name = config.network.node_name.clone(); let enable_grandpa = !config.disable_grandpa; let prometheus_registry = config.prometheus_registry().cloned(); - let enable_offchain_worker = config.offchain_worker.enabled; + let _enable_offchain_worker = config.offchain_worker.enabled; if let Some(reg) = prometheus_registry.as_ref() { extend_metrics(reg)?; } let rpc_handlers = sc_service::spawn_tasks(sc_service::SpawnTasksParams { config, - backend: backend.clone(), + backend, client: client.clone(), keystore: keystore_container.keystore(), network: network.clone(), @@ -540,7 +540,7 @@ pub fn new_full_base( name: Some(name), observer_enabled: false, keystore, - local_role: role.clone(), + local_role: role, telemetry: telemetry.as_ref().map(|x| x.handle()), protocol_name: grandpa_protocol_name, }; @@ -559,7 +559,7 @@ pub fn new_full_base( sync: Arc::new(sync_service.clone()), telemetry: telemetry.as_ref().map(|x| x.handle()), voting_rule: sc_consensus_grandpa::VotingRulesBuilder::default().build(), - prometheus_registry: prometheus_registry.clone(), + prometheus_registry, shared_voter_state, offchain_tx_pool_factory: OffchainTransactionPoolFactory::new(transaction_pool.clone()), }; From efc478bae52f91b1ba594d64651b1381246dd344 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Wed, 23 Aug 2023 22:15:31 +0530 Subject: [PATCH 31/58] Temporarily removed frame-executive tests --- pallets/executive/src/lib.rs | 2055 +++++++++++++++++----------------- 1 file changed, 1028 insertions(+), 1027 deletions(-) diff --git a/pallets/executive/src/lib.rs b/pallets/executive/src/lib.rs index 2d2f281f3..3f137c472 100644 --- a/pallets/executive/src/lib.rs +++ b/pallets/executive/src/lib.rs @@ -708,1030 +708,1031 @@ where } } -#[cfg(test)] -mod tests { - use frame_support::{ - assert_err, parameter_types, - traits::{fungible, ConstU32, ConstU64, ConstU8, Currency}, - weights::{ConstantMultiplier, IdentityFee, RuntimeDbWeight, Weight, WeightToFee}, - }; - use frame_system::{ChainContext, LastRuntimeUpgradeInfo}; - use pallet_balances::Call as BalancesCall; - use pallet_transaction_payment::CurrencyAdapter; - use sp_core::H256; - use sp_runtime::{ - generic::{DigestItem, Era}, - testing::{Block, Digest, Header}, - traits::{BlakeTwo256, Block as BlockT, Header as HeaderT, IdentityLookup}, - transaction_validity::{ - InvalidTransaction, TransactionValidityError, UnknownTransaction, ValidTransaction, - }, - BuildStorage, DispatchError, - }; - - use super::*; - - const TEST_KEY: &[u8] = b":test:key:"; - - #[frame_support::pallet(dev_mode)] - mod custom { - use frame_support::pallet_prelude::*; - use frame_system::pallet_prelude::*; - - #[pallet::pallet] - pub struct Pallet(_); - - #[pallet::config] - pub trait Config: frame_system::Config {} - - #[pallet::hooks] - impl Hooks> for Pallet { - // module hooks. - // one with block number arg and one without - fn on_initialize(n: BlockNumberFor) -> Weight { - println!("on_initialize({})", n); - Weight::from_parts(175, 0) - } - - fn on_idle(n: BlockNumberFor, remaining_weight: Weight) -> Weight { - println!("on_idle{}, {})", n, remaining_weight); - Weight::from_parts(175, 0) - } - - fn on_finalize(n: BlockNumberFor) { - println!("on_finalize({})", n); - } - - fn on_runtime_upgrade() -> Weight { - sp_io::storage::set(super::TEST_KEY, "module".as_bytes()); - Weight::from_parts(200, 0) - } - - fn offchain_worker(n: BlockNumberFor) { - assert_eq!(BlockNumberFor::::from(1u32), n); - } - } - - #[pallet::call] - impl Pallet { - pub fn some_function(origin: OriginFor) -> DispatchResult { - // NOTE: does not make any different. - frame_system::ensure_signed(origin)?; - Ok(()) - } - - #[pallet::weight((200, DispatchClass::Operational))] - pub fn some_root_operation(origin: OriginFor) -> DispatchResult { - frame_system::ensure_root(origin)?; - Ok(()) - } - - pub fn some_unsigned_message(origin: OriginFor) -> DispatchResult { - frame_system::ensure_none(origin)?; - Ok(()) - } - - pub fn allowed_unsigned(origin: OriginFor) -> DispatchResult { - frame_system::ensure_root(origin)?; - Ok(()) - } - - pub fn unallowed_unsigned(origin: OriginFor) -> DispatchResult { - frame_system::ensure_root(origin)?; - Ok(()) - } - - #[pallet::weight((0, DispatchClass::Mandatory))] - pub fn inherent_call(origin: OriginFor) -> DispatchResult { - frame_system::ensure_none(origin)?; - Ok(()) - } - - pub fn calculate_storage_root(_origin: OriginFor) -> DispatchResult { - let root = sp_io::storage::root(sp_runtime::StateVersion::V1); - sp_io::storage::set("storage_root".as_bytes(), &root); - Ok(()) - } - } - - #[pallet::inherent] - impl ProvideInherent for Pallet { - type Call = Call; - type Error = sp_inherents::MakeFatalError<()>; - - const INHERENT_IDENTIFIER: [u8; 8] = *b"test1234"; - - fn create_inherent(_data: &InherentData) -> Option { None } - - fn is_inherent(call: &Self::Call) -> bool { *call == Call::::inherent_call {} } - } - - #[pallet::validate_unsigned] - impl ValidateUnsigned for Pallet { - type Call = Call; - - // Inherent call is accepted for being dispatched - fn pre_dispatch(call: &Self::Call) -> Result<(), TransactionValidityError> { - match call { - Call::allowed_unsigned { .. } => Ok(()), - Call::inherent_call { .. } => Ok(()), - _ => Err(UnknownTransaction::NoUnsignedValidator.into()), - } - } - - // Inherent call is not validated as unsigned - fn validate_unsigned( - _source: TransactionSource, - call: &Self::Call, - ) -> TransactionValidity { - match call { - Call::allowed_unsigned { .. } => Ok(Default::default()), - _ => UnknownTransaction::NoUnsignedValidator.into(), - } - } - } - } - - frame_support::construct_runtime!( - pub struct Runtime - { - System: frame_system::{Pallet, Call, Config, Storage, Event}, - Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Pallet, Storage, Event}, - Custom: custom::{Pallet, Call, ValidateUnsigned, Inherent}, - } - ); - - parameter_types! { - pub BlockWeights: frame_system::limits::BlockWeights = - frame_system::limits::BlockWeights::builder() - .base_block(Weight::from_parts(10, 0)) - .for_class(DispatchClass::all(), |weights| weights.base_extrinsic = Weight::from_parts(5, 0)) - .for_class(DispatchClass::non_mandatory(), |weights| weights.max_total = Weight::from_parts(1024, u64::MAX).into()) - .build_or_panic(); - pub const DbWeight: RuntimeDbWeight = RuntimeDbWeight { - read: 10, - write: 100, - }; - } - impl frame_system::Config for Runtime { - type AccountData = pallet_balances::AccountData; - type AccountId = u64; - type BaseCallFilter = frame_support::traits::Everything; - type Block = TestBlock; - type BlockHashCount = ConstU64<250>; - type BlockLength = (); - type BlockWeights = BlockWeights; - type DbWeight = (); - type Hash = sp_core::H256; - type Hashing = BlakeTwo256; - type Lookup = IdentityLookup; - type MaxConsumers = ConstU32<16>; - type Nonce = u64; - type OnKilledAccount = (); - type OnNewAccount = (); - type OnSetCode = (); - type PalletInfo = PalletInfo; - type RuntimeCall = RuntimeCall; - type RuntimeEvent = RuntimeEvent; - type RuntimeOrigin = RuntimeOrigin; - type SS58Prefix = (); - type SystemWeightInfo = (); - type Version = RuntimeVersion; - } - - type Balance = u64; - impl pallet_balances::Config for Runtime { - type AccountStore = System; - type Balance = Balance; - type DustRemoval = (); - type ExistentialDeposit = ConstU64<1>; - type FreezeIdentifier = (); - type MaxFreezes = ConstU32<1>; - type MaxHolds = ConstU32<1>; - type MaxLocks = (); - type MaxReserves = (); - type ReserveIdentifier = [u8; 8]; - type RuntimeEvent = RuntimeEvent; - type RuntimeHoldReason = (); - type WeightInfo = (); - } - - parameter_types! { - pub const TransactionByteFee: Balance = 0; - } - impl pallet_transaction_payment::Config for Runtime { - type FeeMultiplierUpdate = (); - type LengthToFee = ConstantMultiplier; - type OnChargeTransaction = CurrencyAdapter; - type OperationalFeeMultiplier = ConstU8<5>; - type RuntimeEvent = RuntimeEvent; - type WeightToFee = IdentityFee; - } - impl custom::Config for Runtime {} - - pub struct RuntimeVersion; - impl frame_support::traits::Get for RuntimeVersion { - fn get() -> sp_version::RuntimeVersion { RuntimeVersionTestValues::get().clone() } - } - - parameter_types! { - pub static RuntimeVersionTestValues: sp_version::RuntimeVersion = - Default::default(); - } - - type SignedExtra = ( - frame_system::CheckEra, - frame_system::CheckNonce, - frame_system::CheckWeight, - pallet_transaction_payment::ChargeTransactionPayment, - ); - type TestXt = sp_runtime::testing::TestXt; - type TestBlock = Block; - - // Will contain `true` when the custom runtime logic was called. - const CUSTOM_ON_RUNTIME_KEY: &[u8] = b":custom:on_runtime"; - - struct CustomOnRuntimeUpgrade; - impl OnRuntimeUpgrade for CustomOnRuntimeUpgrade { - fn on_runtime_upgrade() -> Weight { - sp_io::storage::set(TEST_KEY, "custom_upgrade".as_bytes()); - sp_io::storage::set(CUSTOM_ON_RUNTIME_KEY, &true.encode()); - System::deposit_event(frame_system::Event::CodeUpdated); - Weight::from_parts(100, 0) - } - } - - type Executive = super::Executive< - Runtime, - Block, - ChainContext, - Runtime, - AllPalletsWithSystem, - CustomOnRuntimeUpgrade, - >; - - fn extra(nonce: u64, fee: Balance) -> SignedExtra { - ( - frame_system::CheckEra::from(Era::Immortal), - frame_system::CheckNonce::from(nonce), - frame_system::CheckWeight::new(), - pallet_transaction_payment::ChargeTransactionPayment::from(fee), - ) - } - - fn sign_extra(who: u64, nonce: u64, fee: Balance) -> Option<(u64, SignedExtra)> { - Some((who, extra(nonce, fee))) - } - - fn call_transfer(dest: u64, value: u64) -> RuntimeCall { - RuntimeCall::Balances(BalancesCall::transfer_allow_death { dest, value }) - } - - #[test] - fn balance_transfer_dispatch_works() { - let mut t = frame_system::GenesisConfig::::default() - .build_storage() - .unwrap(); - pallet_balances::GenesisConfig:: { - balances: vec![(1, 211)], - } - .assimilate_storage(&mut t) - .unwrap(); - let xt = TestXt::new(call_transfer(2, 69), sign_extra(1, 0, 0)); - let weight = xt.get_dispatch_info().weight - + ::BlockWeights::get() - .get(DispatchClass::Normal) - .base_extrinsic; - let fee: Balance = - ::WeightToFee::weight_to_fee(&weight); - let mut t = sp_io::TestExternalities::new(t); - t.execute_with(|| { - Executive::initialize_block(&Header::new( - 1, - H256::default(), - H256::default(), - [69u8; 32].into(), - Digest::default(), - )); - let r = Executive::apply_extrinsic(xt); - assert!(r.is_ok()); - assert_eq!( - >::total_balance(&1), - 142 - fee - ); - assert_eq!(>::total_balance(&2), 69); - }); - } - - fn new_test_ext(balance_factor: Balance) -> sp_io::TestExternalities { - let mut t = frame_system::GenesisConfig::::default() - .build_storage() - .unwrap(); - pallet_balances::GenesisConfig:: { - balances: vec![(1, 111 * balance_factor)], - } - .assimilate_storage(&mut t) - .unwrap(); - t.into() - } - - fn new_test_ext_v0(balance_factor: Balance) -> sp_io::TestExternalities { - let mut t = frame_system::GenesisConfig::::default() - .build_storage() - .unwrap(); - pallet_balances::GenesisConfig:: { - balances: vec![(1, 111 * balance_factor)], - } - .assimilate_storage(&mut t) - .unwrap(); - (t, sp_runtime::StateVersion::V0).into() - } - - #[test] - fn block_import_works() { - block_import_works_inner( - new_test_ext_v0(1), - array_bytes::hex_n_into_unchecked( - "65e953676859e7a33245908af7ad3637d6861eb90416d433d485e95e2dd174a1", - ), - ); - block_import_works_inner( - new_test_ext(1), - array_bytes::hex_n_into_unchecked( - "5a19b3d6fdb7241836349fdcbe2d9df4d4f945b949d979e31ad50bff1cbcd1c2", - ), - ); - } - fn block_import_works_inner(mut ext: sp_io::TestExternalities, state_root: H256) { - ext.execute_with(|| { - Executive::execute_block(Block { - header: Header { - parent_hash: [69u8; 32].into(), - number: 1, - state_root, - extrinsics_root: array_bytes::hex_n_into_unchecked( - "03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c111314", - ), - digest: Digest { logs: vec![] }, - }, - extrinsics: vec![], - }); - }); - } - - #[test] - #[should_panic] - fn block_import_of_bad_state_root_fails() { - new_test_ext(1).execute_with(|| { - Executive::execute_block(Block { - header: Header { - parent_hash: [69u8; 32].into(), - number: 1, - state_root: [0u8; 32].into(), - extrinsics_root: array_bytes::hex_n_into_unchecked( - "03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c111314", - ), - digest: Digest { logs: vec![] }, - }, - extrinsics: vec![], - }); - }); - } - - #[test] - #[should_panic] - fn block_import_of_bad_extrinsic_root_fails() { - new_test_ext(1).execute_with(|| { - Executive::execute_block(Block { - header: Header { - parent_hash: [69u8; 32].into(), - number: 1, - state_root: array_bytes::hex_n_into_unchecked( - "75e7d8f360d375bbe91bcf8019c01ab6362448b4a89e3b329717eb9d910340e5", - ), - extrinsics_root: [0u8; 32].into(), - digest: Digest { logs: vec![] }, - }, - extrinsics: vec![], - }); - }); - } - - #[test] - fn bad_extrinsic_not_inserted() { - let mut t = new_test_ext(1); - // bad nonce check! - let xt = TestXt::new(call_transfer(33, 69), sign_extra(1, 30, 0)); - t.execute_with(|| { - Executive::initialize_block(&Header::new( - 1, - H256::default(), - H256::default(), - [69u8; 32].into(), - Digest::default(), - )); - assert_err!( - Executive::apply_extrinsic(xt), - TransactionValidityError::Invalid(InvalidTransaction::Future) - ); - assert_eq!(>::extrinsic_index(), Some(0)); - }); - } - - #[test] - fn block_weight_limit_enforced() { - let mut t = new_test_ext(10000); - // given: TestXt uses the encoded len as fixed Len: - let xt = TestXt::new( - RuntimeCall::Balances(BalancesCall::transfer_allow_death { dest: 33, value: 0 }), - sign_extra(1, 0, 0), - ); - let encoded = xt.encode(); - let encoded_len = encoded.len() as u64; - // on_initialize weight + base block execution weight - let block_weights = ::BlockWeights::get(); - let base_block_weight = Weight::from_parts(175, 0) + block_weights.base_block; - let limit = block_weights.get(DispatchClass::Normal).max_total.unwrap() - base_block_weight; - let num_to_exhaust_block = limit.ref_time() / (encoded_len + 5); - t.execute_with(|| { - Executive::initialize_block(&Header::new( - 1, - H256::default(), - H256::default(), - [69u8; 32].into(), - Digest::default(), - )); - // Base block execution weight + `on_initialize` weight from the custom module. - assert_eq!( - >::block_weight().total(), - base_block_weight - ); - - for nonce in 0..=num_to_exhaust_block { - let xt = TestXt::new( - RuntimeCall::Balances(BalancesCall::transfer_allow_death { - dest: 33, - value: 0, - }), - sign_extra(1, nonce.into(), 0), - ); - let res = Executive::apply_extrinsic(xt); - if nonce != num_to_exhaust_block { - assert!(res.is_ok()); - assert_eq!( - >::block_weight().total(), - //--------------------- on_initialize + block_execution + extrinsic_base weight - Weight::from_parts((encoded_len + 5) * (nonce + 1), 0) + base_block_weight, - ); - assert_eq!( - >::extrinsic_index(), - Some(nonce as u32 + 1) - ); - } else { - assert_eq!(res, Err(InvalidTransaction::ExhaustsResources.into())); - } - } - }); - } - - #[test] - fn block_weight_and_size_is_stored_per_tx() { - let xt = TestXt::new( - RuntimeCall::Balances(BalancesCall::transfer_allow_death { dest: 33, value: 0 }), - sign_extra(1, 0, 0), - ); - let x1 = TestXt::new( - RuntimeCall::Balances(BalancesCall::transfer_allow_death { dest: 33, value: 0 }), - sign_extra(1, 1, 0), - ); - let x2 = TestXt::new( - RuntimeCall::Balances(BalancesCall::transfer_allow_death { dest: 33, value: 0 }), - sign_extra(1, 2, 0), - ); - let len = xt.clone().encode().len() as u32; - let mut t = new_test_ext(1); - t.execute_with(|| { - // Block execution weight + on_initialize weight from custom module - let base_block_weight = Weight::from_parts(175, 0) - + ::BlockWeights::get().base_block; - - Executive::initialize_block(&Header::new( - 1, - H256::default(), - H256::default(), - [69u8; 32].into(), - Digest::default(), - )); - - assert_eq!( - >::block_weight().total(), - base_block_weight - ); - assert_eq!(>::all_extrinsics_len(), 0); - - assert!(Executive::apply_extrinsic(xt.clone()).unwrap().is_ok()); - assert!(Executive::apply_extrinsic(x1.clone()).unwrap().is_ok()); - assert!(Executive::apply_extrinsic(x2.clone()).unwrap().is_ok()); - - // default weight for `TestXt` == encoded length. - let extrinsic_weight = Weight::from_parts(len as u64, 0) - + ::BlockWeights::get() - .get(DispatchClass::Normal) - .base_extrinsic; - assert_eq!( - >::block_weight().total(), - base_block_weight + 3u64 * extrinsic_weight, - ); - assert_eq!( - >::all_extrinsics_len(), - 3 * len - ); - - let _ = >::finalize(); - // All extrinsics length cleaned on `System::finalize` - assert_eq!(>::all_extrinsics_len(), 0); - - // New Block - Executive::initialize_block(&Header::new( - 2, - H256::default(), - H256::default(), - [69u8; 32].into(), - Digest::default(), - )); - - // Block weight cleaned up on `System::initialize` - assert_eq!( - >::block_weight().total(), - base_block_weight - ); - }); - } - - #[test] - fn validate_unsigned() { - let valid = TestXt::new(RuntimeCall::Custom(custom::Call::allowed_unsigned {}), None); - let invalid = TestXt::new( - RuntimeCall::Custom(custom::Call::unallowed_unsigned {}), - None, - ); - let mut t = new_test_ext(1); - - t.execute_with(|| { - assert_eq!( - Executive::validate_transaction( - TransactionSource::InBlock, - valid.clone(), - Default::default(), - ), - Ok(ValidTransaction::default()), - ); - assert_eq!( - Executive::validate_transaction( - TransactionSource::InBlock, - invalid.clone(), - Default::default(), - ), - Err(TransactionValidityError::Unknown( - UnknownTransaction::NoUnsignedValidator - )), - ); - assert_eq!( - Executive::apply_extrinsic(valid), - Ok(Err(DispatchError::BadOrigin)) - ); - assert_eq!( - Executive::apply_extrinsic(invalid), - Err(TransactionValidityError::Unknown( - UnknownTransaction::NoUnsignedValidator - )) - ); - }); - } - - #[test] - fn can_not_pay_for_tx_fee_on_full_lock() { - let mut t = new_test_ext(1); - t.execute_with(|| { - as fungible::MutateFreeze>::set_freeze( - &(), - &1, - 110, - ) - .unwrap(); - let xt = TestXt::new( - RuntimeCall::System(frame_system::Call::remark { remark: vec![1u8] }), - sign_extra(1, 0, 0), - ); - Executive::initialize_block(&Header::new( - 1, - H256::default(), - H256::default(), - [69u8; 32].into(), - Digest::default(), - )); - - assert_eq!( - Executive::apply_extrinsic(xt), - Err(InvalidTransaction::Payment.into()), - ); - assert_eq!(>::total_balance(&1), 111); - }); - } - - #[test] - fn block_hooks_weight_is_stored() { - new_test_ext(1).execute_with(|| { - Executive::initialize_block(&Header::new_from_number(1)); - Executive::finalize_block(); - // NOTE: might need updates over time if new weights are introduced. - // For now it only accounts for the base block execution weight and - // the `on_initialize` weight defined in the custom test module. - assert_eq!( - >::block_weight().total(), - Weight::from_parts(175 + 175 + 10, 0) - ); - }) - } - - #[test] - fn runtime_upgraded_should_work() { - new_test_ext(1).execute_with(|| { - RuntimeVersionTestValues::mutate(|v| *v = Default::default()); - // It should be added at genesis - assert!(frame_system::LastRuntimeUpgrade::::exists()); - assert!(!Executive::runtime_upgraded()); - - RuntimeVersionTestValues::mutate(|v| { - *v = sp_version::RuntimeVersion { - spec_version: 1, - ..Default::default() - } - }); - assert!(Executive::runtime_upgraded()); - assert_eq!( - Some(LastRuntimeUpgradeInfo { - spec_version: 1.into(), - spec_name: "".into() - }), - frame_system::LastRuntimeUpgrade::::get(), - ); - - RuntimeVersionTestValues::mutate(|v| { - *v = sp_version::RuntimeVersion { - spec_version: 1, - spec_name: "test".into(), - ..Default::default() - } - }); - assert!(Executive::runtime_upgraded()); - assert_eq!( - Some(LastRuntimeUpgradeInfo { - spec_version: 1.into(), - spec_name: "test".into() - }), - frame_system::LastRuntimeUpgrade::::get(), - ); - - RuntimeVersionTestValues::mutate(|v| { - *v = sp_version::RuntimeVersion { - spec_version: 1, - spec_name: "test".into(), - impl_version: 2, - ..Default::default() - } - }); - assert!(!Executive::runtime_upgraded()); - - frame_system::LastRuntimeUpgrade::::take(); - assert!(Executive::runtime_upgraded()); - assert_eq!( - Some(LastRuntimeUpgradeInfo { - spec_version: 1.into(), - spec_name: "test".into() - }), - frame_system::LastRuntimeUpgrade::::get(), - ); - }) - } - - #[test] - fn last_runtime_upgrade_was_upgraded_works() { - let test_data = vec![ - (0, "", 1, "", true), - (1, "", 1, "", false), - (1, "", 1, "test", true), - (1, "", 0, "", false), - (1, "", 0, "test", true), - ]; - - for (spec_version, spec_name, c_spec_version, c_spec_name, result) in test_data { - let current = sp_version::RuntimeVersion { - spec_version: c_spec_version, - spec_name: c_spec_name.into(), - ..Default::default() - }; - - let last = LastRuntimeUpgradeInfo { - spec_version: spec_version.into(), - spec_name: spec_name.into(), - }; - - assert_eq!(result, last.was_upgraded(¤t)); - } - } - - #[test] - fn custom_runtime_upgrade_is_called_before_modules() { - new_test_ext(1).execute_with(|| { - // Make sure `on_runtime_upgrade` is called. - RuntimeVersionTestValues::mutate(|v| { - *v = sp_version::RuntimeVersion { - spec_version: 1, - ..Default::default() - } - }); - - Executive::initialize_block(&Header::new( - 1, - H256::default(), - H256::default(), - [69u8; 32].into(), - Digest::default(), - )); - - assert_eq!(&sp_io::storage::get(TEST_KEY).unwrap()[..], *b"module"); - assert_eq!( - sp_io::storage::get(CUSTOM_ON_RUNTIME_KEY).unwrap(), - true.encode() - ); - }); - } - - #[test] - fn event_from_runtime_upgrade_is_included() { - new_test_ext(1).execute_with(|| { - // Make sure `on_runtime_upgrade` is called. - RuntimeVersionTestValues::mutate(|v| { - *v = sp_version::RuntimeVersion { - spec_version: 1, - ..Default::default() - } - }); - - // set block number to non zero so events are not excluded - System::set_block_number(1); - - Executive::initialize_block(&Header::new( - 2, - H256::default(), - H256::default(), - [69u8; 32].into(), - Digest::default(), - )); - - System::assert_last_event(frame_system::Event::::CodeUpdated.into()); - }); - } - - /// Regression test that ensures that the custom on runtime upgrade is called when executive is - /// used through the `ExecuteBlock` trait. - #[test] - fn custom_runtime_upgrade_is_called_when_using_execute_block_trait() { - let xt = TestXt::new( - RuntimeCall::Balances(BalancesCall::transfer_allow_death { dest: 33, value: 0 }), - sign_extra(1, 0, 0), - ); - - let header = new_test_ext(1).execute_with(|| { - // Make sure `on_runtime_upgrade` is called. - RuntimeVersionTestValues::mutate(|v| { - *v = sp_version::RuntimeVersion { - spec_version: 1, - ..Default::default() - } - }); - - // Let's build some fake block. - Executive::initialize_block(&Header::new( - 1, - H256::default(), - H256::default(), - [69u8; 32].into(), - Digest::default(), - )); - - Executive::apply_extrinsic(xt.clone()).unwrap().unwrap(); - - Executive::finalize_block() - }); - - // Reset to get the correct new genesis below. - RuntimeVersionTestValues::mutate(|v| { - *v = sp_version::RuntimeVersion { - spec_version: 0, - ..Default::default() - } - }); - - new_test_ext(1).execute_with(|| { - // Make sure `on_runtime_upgrade` is called. - RuntimeVersionTestValues::mutate(|v| { - *v = sp_version::RuntimeVersion { - spec_version: 1, - ..Default::default() - } - }); - - >>::execute_block(Block::new(header, vec![xt])); - - assert_eq!(&sp_io::storage::get(TEST_KEY).unwrap()[..], *b"module"); - assert_eq!( - sp_io::storage::get(CUSTOM_ON_RUNTIME_KEY).unwrap(), - true.encode() - ); - }); - } - - #[test] - fn all_weights_are_recorded_correctly() { - new_test_ext(1).execute_with(|| { - // Make sure `on_runtime_upgrade` is called for maximum complexity - RuntimeVersionTestValues::mutate(|v| { - *v = sp_version::RuntimeVersion { - spec_version: 1, - ..Default::default() - } - }); - - let block_number = 1; - - Executive::initialize_block(&Header::new( - block_number, - H256::default(), - H256::default(), - [69u8; 32].into(), - Digest::default(), - )); - - // All weights that show up in the `initialize_block_impl` - let custom_runtime_upgrade_weight = CustomOnRuntimeUpgrade::on_runtime_upgrade(); - let runtime_upgrade_weight = - ::on_runtime_upgrade(); - let on_initialize_weight = - >::on_initialize(block_number); - let base_block_weight = - ::BlockWeights::get().base_block; - - // Weights are recorded correctly - assert_eq!( - frame_system::Pallet::::block_weight().total(), - custom_runtime_upgrade_weight - + runtime_upgrade_weight - + on_initialize_weight - + base_block_weight, - ); - }); - } - - #[test] - fn offchain_worker_works_as_expected() { - new_test_ext(1).execute_with(|| { - let parent_hash = sp_core::H256::from([69u8; 32]); - let mut digest = Digest::default(); - digest.push(DigestItem::Seal([1, 2, 3, 4], vec![5, 6, 7, 8])); - - let header = Header::new( - 1, - H256::default(), - H256::default(), - parent_hash, - digest.clone(), - ); - - Executive::offchain_worker(&header); - - assert_eq!(digest, System::digest()); - assert_eq!(parent_hash, System::block_hash(0)); - assert_eq!(header.hash(), System::block_hash(1)); - }); - } - - #[test] - fn calculating_storage_root_twice_works() { - let call = RuntimeCall::Custom(custom::Call::calculate_storage_root {}); - let xt = TestXt::new(call, sign_extra(1, 0, 0)); - - let header = new_test_ext(1).execute_with(|| { - // Let's build some fake block. - Executive::initialize_block(&Header::new( - 1, - H256::default(), - H256::default(), - [69u8; 32].into(), - Digest::default(), - )); - - Executive::apply_extrinsic(xt.clone()).unwrap().unwrap(); - - Executive::finalize_block() - }); - - new_test_ext(1).execute_with(|| { - Executive::execute_block(Block::new(header, vec![xt])); - }); - } - - #[test] - #[should_panic(expected = "Invalid inherent position for extrinsic at index 1")] - fn invalid_inherent_position_fail() { - let xt1 = TestXt::new( - RuntimeCall::Balances(BalancesCall::transfer_allow_death { dest: 33, value: 0 }), - sign_extra(1, 0, 0), - ); - let xt2 = TestXt::new(RuntimeCall::Custom(custom::Call::inherent_call {}), None); - - let header = new_test_ext(1).execute_with(|| { - // Let's build some fake block. - Executive::initialize_block(&Header::new( - 1, - H256::default(), - H256::default(), - [69u8; 32].into(), - Digest::default(), - )); - - Executive::apply_extrinsic(xt1.clone()).unwrap().unwrap(); - Executive::apply_extrinsic(xt2.clone()).unwrap().unwrap(); - - Executive::finalize_block() - }); - - new_test_ext(1).execute_with(|| { - Executive::execute_block(Block::new(header, vec![xt1, xt2])); - }); - } - - #[test] - fn valid_inherents_position_works() { - let xt1 = TestXt::new(RuntimeCall::Custom(custom::Call::inherent_call {}), None); - let xt2 = TestXt::new(call_transfer(33, 0), sign_extra(1, 0, 0)); - - let header = new_test_ext(1).execute_with(|| { - // Let's build some fake block. - Executive::initialize_block(&Header::new( - 1, - H256::default(), - H256::default(), - [69u8; 32].into(), - Digest::default(), - )); - - Executive::apply_extrinsic(xt1.clone()).unwrap().unwrap(); - Executive::apply_extrinsic(xt2.clone()).unwrap().unwrap(); - - Executive::finalize_block() - }); - - new_test_ext(1).execute_with(|| { - Executive::execute_block(Block::new(header, vec![xt1, xt2])); - }); - } - - #[test] - #[should_panic(expected = "A call was labelled as mandatory, but resulted in an Error.")] - fn invalid_inherents_fail_block_execution() { - let xt1 = TestXt::new( - RuntimeCall::Custom(custom::Call::inherent_call {}), - sign_extra(1, 0, 0), - ); - - new_test_ext(1).execute_with(|| { - Executive::execute_block(Block::new( - Header::new( - 1, - H256::default(), - H256::default(), - [69u8; 32].into(), - Digest::default(), - ), - vec![xt1], - )); - }); - } - - // Inherents are created by the runtime and don't need to be validated. - #[test] - fn inherents_fail_validate_block() { - let xt1 = TestXt::new(RuntimeCall::Custom(custom::Call::inherent_call {}), None); - - new_test_ext(1).execute_with(|| { - assert_eq!( - Executive::validate_transaction(TransactionSource::External, xt1, H256::random()) - .unwrap_err(), - InvalidTransaction::MandatoryValidation.into() - ); - }) - } -} +// Temporarily removing the tests +// #[cfg(test)] +// mod tests { +// use frame_support::{ +// assert_err, parameter_types, +// traits::{fungible, ConstU32, ConstU64, ConstU8, Currency}, +// weights::{ConstantMultiplier, IdentityFee, RuntimeDbWeight, Weight, WeightToFee}, +// }; +// use frame_system::{ChainContext, LastRuntimeUpgradeInfo}; +// use pallet_balances::Call as BalancesCall; +// use pallet_transaction_payment::CurrencyAdapter; +// use sp_core::H256; +// use sp_runtime::{ +// generic::{DigestItem, Era}, +// testing::{Block, Digest, Header}, +// traits::{BlakeTwo256, Block as BlockT, Header as HeaderT, IdentityLookup}, +// transaction_validity::{ +// InvalidTransaction, TransactionValidityError, UnknownTransaction, ValidTransaction, +// }, +// BuildStorage, DispatchError, +// }; + +// use super::*; + +// const TEST_KEY: &[u8] = b":test:key:"; + +// #[frame_support::pallet(dev_mode)] +// mod custom { +// use frame_support::pallet_prelude::*; +// use frame_system::pallet_prelude::*; + +// #[pallet::pallet] +// pub struct Pallet(_); + +// #[pallet::config] +// pub trait Config: frame_system::Config {} + +// #[pallet::hooks] +// impl Hooks> for Pallet { +// // module hooks. +// // one with block number arg and one without +// fn on_initialize(n: BlockNumberFor) -> Weight { +// println!("on_initialize({})", n); +// Weight::from_parts(175, 0) +// } + +// fn on_idle(n: BlockNumberFor, remaining_weight: Weight) -> Weight { +// println!("on_idle{}, {})", n, remaining_weight); +// Weight::from_parts(175, 0) +// } + +// fn on_finalize(n: BlockNumberFor) { +// println!("on_finalize({})", n); +// } + +// fn on_runtime_upgrade() -> Weight { +// sp_io::storage::set(super::TEST_KEY, "module".as_bytes()); +// Weight::from_parts(200, 0) +// } + +// fn offchain_worker(n: BlockNumberFor) { +// assert_eq!(BlockNumberFor::::from(1u32), n); +// } +// } + +// #[pallet::call] +// impl Pallet { +// pub fn some_function(origin: OriginFor) -> DispatchResult { +// // NOTE: does not make any different. +// frame_system::ensure_signed(origin)?; +// Ok(()) +// } + +// #[pallet::weight((200, DispatchClass::Operational))] +// pub fn some_root_operation(origin: OriginFor) -> DispatchResult { +// frame_system::ensure_root(origin)?; +// Ok(()) +// } + +// pub fn some_unsigned_message(origin: OriginFor) -> DispatchResult { +// frame_system::ensure_none(origin)?; +// Ok(()) +// } + +// pub fn allowed_unsigned(origin: OriginFor) -> DispatchResult { +// frame_system::ensure_root(origin)?; +// Ok(()) +// } + +// pub fn unallowed_unsigned(origin: OriginFor) -> DispatchResult { +// frame_system::ensure_root(origin)?; +// Ok(()) +// } + +// #[pallet::weight((0, DispatchClass::Mandatory))] +// pub fn inherent_call(origin: OriginFor) -> DispatchResult { +// frame_system::ensure_none(origin)?; +// Ok(()) +// } + +// pub fn calculate_storage_root(_origin: OriginFor) -> DispatchResult { +// let root = sp_io::storage::root(sp_runtime::StateVersion::V1); +// sp_io::storage::set("storage_root".as_bytes(), &root); +// Ok(()) +// } +// } + +// #[pallet::inherent] +// impl ProvideInherent for Pallet { +// type Call = Call; +// type Error = sp_inherents::MakeFatalError<()>; + +// const INHERENT_IDENTIFIER: [u8; 8] = *b"test1234"; + +// fn create_inherent(_data: &InherentData) -> Option { None } + +// fn is_inherent(call: &Self::Call) -> bool { *call == Call::::inherent_call {} } +// } + +// #[pallet::validate_unsigned] +// impl ValidateUnsigned for Pallet { +// type Call = Call; + +// // Inherent call is accepted for being dispatched +// fn pre_dispatch(call: &Self::Call) -> Result<(), TransactionValidityError> { +// match call { +// Call::allowed_unsigned { .. } => Ok(()), +// Call::inherent_call { .. } => Ok(()), +// _ => Err(UnknownTransaction::NoUnsignedValidator.into()), +// } +// } + +// // Inherent call is not validated as unsigned +// fn validate_unsigned( +// _source: TransactionSource, +// call: &Self::Call, +// ) -> TransactionValidity { +// match call { +// Call::allowed_unsigned { .. } => Ok(Default::default()), +// _ => UnknownTransaction::NoUnsignedValidator.into(), +// } +// } +// } +// } + +// frame_support::construct_runtime!( +// pub struct Runtime +// { +// System: frame_system::{Pallet, Call, Config, Storage, Event}, +// Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, +// TransactionPayment: pallet_transaction_payment::{Pallet, Storage, Event}, +// Custom: custom::{Pallet, Call, ValidateUnsigned, Inherent}, +// } +// ); + +// parameter_types! { +// pub BlockWeights: frame_system::limits::BlockWeights = +// frame_system::limits::BlockWeights::builder() +// .base_block(Weight::from_parts(10, 0)) +// .for_class(DispatchClass::all(), |weights| weights.base_extrinsic = Weight::from_parts(5, 0)) +// .for_class(DispatchClass::non_mandatory(), |weights| weights.max_total = Weight::from_parts(1024, u64::MAX).into()) +// .build_or_panic(); +// pub const DbWeight: RuntimeDbWeight = RuntimeDbWeight { +// read: 10, +// write: 100, +// }; +// } +// impl frame_system::Config for Runtime { +// type AccountData = pallet_balances::AccountData; +// type AccountId = u64; +// type BaseCallFilter = frame_support::traits::Everything; +// type Block = TestBlock; +// type BlockHashCount = ConstU64<250>; +// type BlockLength = (); +// type BlockWeights = BlockWeights; +// type DbWeight = (); +// type Hash = sp_core::H256; +// type Hashing = BlakeTwo256; +// type Lookup = IdentityLookup; +// type MaxConsumers = ConstU32<16>; +// type Nonce = u64; +// type OnKilledAccount = (); +// type OnNewAccount = (); +// type OnSetCode = (); +// type PalletInfo = PalletInfo; +// type RuntimeCall = RuntimeCall; +// type RuntimeEvent = RuntimeEvent; +// type RuntimeOrigin = RuntimeOrigin; +// type SS58Prefix = (); +// type SystemWeightInfo = (); +// type Version = RuntimeVersion; +// } + +// type Balance = u64; +// impl pallet_balances::Config for Runtime { +// type AccountStore = System; +// type Balance = Balance; +// type DustRemoval = (); +// type ExistentialDeposit = ConstU64<1>; +// type FreezeIdentifier = (); +// type MaxFreezes = ConstU32<1>; +// type MaxHolds = ConstU32<1>; +// type MaxLocks = (); +// type MaxReserves = (); +// type ReserveIdentifier = [u8; 8]; +// type RuntimeEvent = RuntimeEvent; +// type RuntimeHoldReason = (); +// type WeightInfo = (); +// } + +// parameter_types! { +// pub const TransactionByteFee: Balance = 0; +// } +// impl pallet_transaction_payment::Config for Runtime { +// type FeeMultiplierUpdate = (); +// type LengthToFee = ConstantMultiplier; +// type OnChargeTransaction = CurrencyAdapter; +// type OperationalFeeMultiplier = ConstU8<5>; +// type RuntimeEvent = RuntimeEvent; +// type WeightToFee = IdentityFee; +// } +// impl custom::Config for Runtime {} + +// pub struct RuntimeVersion; +// impl frame_support::traits::Get for RuntimeVersion { +// fn get() -> sp_version::RuntimeVersion { RuntimeVersionTestValues::get().clone() } +// } + +// parameter_types! { +// pub static RuntimeVersionTestValues: sp_version::RuntimeVersion = +// Default::default(); +// } + +// type SignedExtra = ( +// frame_system::CheckEra, +// frame_system::CheckNonce, +// frame_system::CheckWeight, +// pallet_transaction_payment::ChargeTransactionPayment, +// ); +// type TestXt = sp_runtime::testing::TestXt; +// type TestBlock = Block; + +// // Will contain `true` when the custom runtime logic was called. +// const CUSTOM_ON_RUNTIME_KEY: &[u8] = b":custom:on_runtime"; + +// struct CustomOnRuntimeUpgrade; +// impl OnRuntimeUpgrade for CustomOnRuntimeUpgrade { +// fn on_runtime_upgrade() -> Weight { +// sp_io::storage::set(TEST_KEY, "custom_upgrade".as_bytes()); +// sp_io::storage::set(CUSTOM_ON_RUNTIME_KEY, &true.encode()); +// System::deposit_event(frame_system::Event::CodeUpdated); +// Weight::from_parts(100, 0) +// } +// } + +// type Executive = super::Executive< +// Runtime, +// Block, +// ChainContext, +// Runtime, +// AllPalletsWithSystem, +// CustomOnRuntimeUpgrade, +// >; + +// fn extra(nonce: u64, fee: Balance) -> SignedExtra { +// ( +// frame_system::CheckEra::from(Era::Immortal), +// frame_system::CheckNonce::from(nonce), +// frame_system::CheckWeight::new(), +// pallet_transaction_payment::ChargeTransactionPayment::from(fee), +// ) +// } + +// fn sign_extra(who: u64, nonce: u64, fee: Balance) -> Option<(u64, SignedExtra)> { +// Some((who, extra(nonce, fee))) +// } + +// fn call_transfer(dest: u64, value: u64) -> RuntimeCall { +// RuntimeCall::Balances(BalancesCall::transfer_allow_death { dest, value }) +// } + +// #[test] +// fn balance_transfer_dispatch_works() { +// let mut t = frame_system::GenesisConfig::::default() +// .build_storage() +// .unwrap(); +// pallet_balances::GenesisConfig:: { +// balances: vec![(1, 211)], +// } +// .assimilate_storage(&mut t) +// .unwrap(); +// let xt = TestXt::new(call_transfer(2, 69), sign_extra(1, 0, 0)); +// let weight = xt.get_dispatch_info().weight +// + ::BlockWeights::get() +// .get(DispatchClass::Normal) +// .base_extrinsic; +// let fee: Balance = +// ::WeightToFee::weight_to_fee(&weight); +// let mut t = sp_io::TestExternalities::new(t); +// t.execute_with(|| { +// Executive::initialize_block(&Header::new( +// 1, +// H256::default(), +// H256::default(), +// [69u8; 32].into(), +// Digest::default(), +// )); +// let r = Executive::apply_extrinsic(xt); +// assert!(r.is_ok()); +// assert_eq!( +// >::total_balance(&1), +// 142 - fee +// ); +// assert_eq!(>::total_balance(&2), 69); +// }); +// } + +// fn new_test_ext(balance_factor: Balance) -> sp_io::TestExternalities { +// let mut t = frame_system::GenesisConfig::::default() +// .build_storage() +// .unwrap(); +// pallet_balances::GenesisConfig:: { +// balances: vec![(1, 111 * balance_factor)], +// } +// .assimilate_storage(&mut t) +// .unwrap(); +// t.into() +// } + +// fn new_test_ext_v0(balance_factor: Balance) -> sp_io::TestExternalities { +// let mut t = frame_system::GenesisConfig::::default() +// .build_storage() +// .unwrap(); +// pallet_balances::GenesisConfig:: { +// balances: vec![(1, 111 * balance_factor)], +// } +// .assimilate_storage(&mut t) +// .unwrap(); +// (t, sp_runtime::StateVersion::V0).into() +// } + +// #[test] +// fn block_import_works() { +// block_import_works_inner( +// new_test_ext_v0(1), +// array_bytes::hex_n_into_unchecked( +// "65e953676859e7a33245908af7ad3637d6861eb90416d433d485e95e2dd174a1", +// ), +// ); +// block_import_works_inner( +// new_test_ext(1), +// array_bytes::hex_n_into_unchecked( +// "5a19b3d6fdb7241836349fdcbe2d9df4d4f945b949d979e31ad50bff1cbcd1c2", +// ), +// ); +// } +// fn block_import_works_inner(mut ext: sp_io::TestExternalities, state_root: H256) { +// ext.execute_with(|| { +// Executive::execute_block(Block { +// header: Header { +// parent_hash: [69u8; 32].into(), +// number: 1, +// state_root, +// extrinsics_root: array_bytes::hex_n_into_unchecked( +// "03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c111314", +// ), +// digest: Digest { logs: vec![] }, +// }, +// extrinsics: vec![], +// }); +// }); +// } + +// #[test] +// #[should_panic] +// fn block_import_of_bad_state_root_fails() { +// new_test_ext(1).execute_with(|| { +// Executive::execute_block(Block { +// header: Header { +// parent_hash: [69u8; 32].into(), +// number: 1, +// state_root: [0u8; 32].into(), +// extrinsics_root: array_bytes::hex_n_into_unchecked( +// "03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c111314", +// ), +// digest: Digest { logs: vec![] }, +// }, +// extrinsics: vec![], +// }); +// }); +// } + +// #[test] +// #[should_panic] +// fn block_import_of_bad_extrinsic_root_fails() { +// new_test_ext(1).execute_with(|| { +// Executive::execute_block(Block { +// header: Header { +// parent_hash: [69u8; 32].into(), +// number: 1, +// state_root: array_bytes::hex_n_into_unchecked( +// "75e7d8f360d375bbe91bcf8019c01ab6362448b4a89e3b329717eb9d910340e5", +// ), +// extrinsics_root: [0u8; 32].into(), +// digest: Digest { logs: vec![] }, +// }, +// extrinsics: vec![], +// }); +// }); +// } + +// #[test] +// fn bad_extrinsic_not_inserted() { +// let mut t = new_test_ext(1); +// // bad nonce check! +// let xt = TestXt::new(call_transfer(33, 69), sign_extra(1, 30, 0)); +// t.execute_with(|| { +// Executive::initialize_block(&Header::new( +// 1, +// H256::default(), +// H256::default(), +// [69u8; 32].into(), +// Digest::default(), +// )); +// assert_err!( +// Executive::apply_extrinsic(xt), +// TransactionValidityError::Invalid(InvalidTransaction::Future) +// ); +// assert_eq!(>::extrinsic_index(), Some(0)); +// }); +// } + +// #[test] +// fn block_weight_limit_enforced() { +// let mut t = new_test_ext(10000); +// // given: TestXt uses the encoded len as fixed Len: +// let xt = TestXt::new( +// RuntimeCall::Balances(BalancesCall::transfer_allow_death { dest: 33, value: 0 }), +// sign_extra(1, 0, 0), +// ); +// let encoded = xt.encode(); +// let encoded_len = encoded.len() as u64; +// // on_initialize weight + base block execution weight +// let block_weights = ::BlockWeights::get(); +// let base_block_weight = Weight::from_parts(175, 0) + block_weights.base_block; +// let limit = block_weights.get(DispatchClass::Normal).max_total.unwrap() - base_block_weight; +// let num_to_exhaust_block = limit.ref_time() / (encoded_len + 5); +// t.execute_with(|| { +// Executive::initialize_block(&Header::new( +// 1, +// H256::default(), +// H256::default(), +// [69u8; 32].into(), +// Digest::default(), +// )); +// // Base block execution weight + `on_initialize` weight from the custom module. +// assert_eq!( +// >::block_weight().total(), +// base_block_weight +// ); + +// for nonce in 0..=num_to_exhaust_block { +// let xt = TestXt::new( +// RuntimeCall::Balances(BalancesCall::transfer_allow_death { +// dest: 33, +// value: 0, +// }), +// sign_extra(1, nonce.into(), 0), +// ); +// let res = Executive::apply_extrinsic(xt); +// if nonce != num_to_exhaust_block { +// assert!(res.is_ok()); +// assert_eq!( +// >::block_weight().total(), +// //--------------------- on_initialize + block_execution + extrinsic_base weight +// Weight::from_parts((encoded_len + 5) * (nonce + 1), 0) + base_block_weight, +// ); +// assert_eq!( +// >::extrinsic_index(), +// Some(nonce as u32 + 1) +// ); +// } else { +// assert_eq!(res, Err(InvalidTransaction::ExhaustsResources.into())); +// } +// } +// }); +// } + +// #[test] +// fn block_weight_and_size_is_stored_per_tx() { +// let xt = TestXt::new( +// RuntimeCall::Balances(BalancesCall::transfer_allow_death { dest: 33, value: 0 }), +// sign_extra(1, 0, 0), +// ); +// let x1 = TestXt::new( +// RuntimeCall::Balances(BalancesCall::transfer_allow_death { dest: 33, value: 0 }), +// sign_extra(1, 1, 0), +// ); +// let x2 = TestXt::new( +// RuntimeCall::Balances(BalancesCall::transfer_allow_death { dest: 33, value: 0 }), +// sign_extra(1, 2, 0), +// ); +// let len = xt.clone().encode().len() as u32; +// let mut t = new_test_ext(1); +// t.execute_with(|| { +// // Block execution weight + on_initialize weight from custom module +// let base_block_weight = Weight::from_parts(175, 0) +// + ::BlockWeights::get().base_block; + +// Executive::initialize_block(&Header::new( +// 1, +// H256::default(), +// H256::default(), +// [69u8; 32].into(), +// Digest::default(), +// )); + +// assert_eq!( +// >::block_weight().total(), +// base_block_weight +// ); +// assert_eq!(>::all_extrinsics_len(), 0); + +// assert!(Executive::apply_extrinsic(xt.clone()).unwrap().is_ok()); +// assert!(Executive::apply_extrinsic(x1.clone()).unwrap().is_ok()); +// assert!(Executive::apply_extrinsic(x2.clone()).unwrap().is_ok()); + +// // default weight for `TestXt` == encoded length. +// let extrinsic_weight = Weight::from_parts(len as u64, 0) +// + ::BlockWeights::get() +// .get(DispatchClass::Normal) +// .base_extrinsic; +// assert_eq!( +// >::block_weight().total(), +// base_block_weight + 3u64 * extrinsic_weight, +// ); +// assert_eq!( +// >::all_extrinsics_len(), +// 3 * len +// ); + +// let _ = >::finalize(); +// // All extrinsics length cleaned on `System::finalize` +// assert_eq!(>::all_extrinsics_len(), 0); + +// // New Block +// Executive::initialize_block(&Header::new( +// 2, +// H256::default(), +// H256::default(), +// [69u8; 32].into(), +// Digest::default(), +// )); + +// // Block weight cleaned up on `System::initialize` +// assert_eq!( +// >::block_weight().total(), +// base_block_weight +// ); +// }); +// } + +// #[test] +// fn validate_unsigned() { +// let valid = TestXt::new(RuntimeCall::Custom(custom::Call::allowed_unsigned {}), None); +// let invalid = TestXt::new( +// RuntimeCall::Custom(custom::Call::unallowed_unsigned {}), +// None, +// ); +// let mut t = new_test_ext(1); + +// t.execute_with(|| { +// assert_eq!( +// Executive::validate_transaction( +// TransactionSource::InBlock, +// valid.clone(), +// Default::default(), +// ), +// Ok(ValidTransaction::default()), +// ); +// assert_eq!( +// Executive::validate_transaction( +// TransactionSource::InBlock, +// invalid.clone(), +// Default::default(), +// ), +// Err(TransactionValidityError::Unknown( +// UnknownTransaction::NoUnsignedValidator +// )), +// ); +// assert_eq!( +// Executive::apply_extrinsic(valid), +// Ok(Err(DispatchError::BadOrigin)) +// ); +// assert_eq!( +// Executive::apply_extrinsic(invalid), +// Err(TransactionValidityError::Unknown( +// UnknownTransaction::NoUnsignedValidator +// )) +// ); +// }); +// } + +// #[test] +// fn can_not_pay_for_tx_fee_on_full_lock() { +// let mut t = new_test_ext(1); +// t.execute_with(|| { +// as fungible::MutateFreeze>::set_freeze( +// &(), +// &1, +// 110, +// ) +// .unwrap(); +// let xt = TestXt::new( +// RuntimeCall::System(frame_system::Call::remark { remark: vec![1u8] }), +// sign_extra(1, 0, 0), +// ); +// Executive::initialize_block(&Header::new( +// 1, +// H256::default(), +// H256::default(), +// [69u8; 32].into(), +// Digest::default(), +// )); + +// assert_eq!( +// Executive::apply_extrinsic(xt), +// Err(InvalidTransaction::Payment.into()), +// ); +// assert_eq!(>::total_balance(&1), 111); +// }); +// } + +// #[test] +// fn block_hooks_weight_is_stored() { +// new_test_ext(1).execute_with(|| { +// Executive::initialize_block(&Header::new_from_number(1)); +// Executive::finalize_block(); +// // NOTE: might need updates over time if new weights are introduced. +// // For now it only accounts for the base block execution weight and +// // the `on_initialize` weight defined in the custom test module. +// assert_eq!( +// >::block_weight().total(), +// Weight::from_parts(175 + 175 + 10, 0) +// ); +// }) +// } + +// #[test] +// fn runtime_upgraded_should_work() { +// new_test_ext(1).execute_with(|| { +// RuntimeVersionTestValues::mutate(|v| *v = Default::default()); +// // It should be added at genesis +// assert!(frame_system::LastRuntimeUpgrade::::exists()); +// assert!(!Executive::runtime_upgraded()); + +// RuntimeVersionTestValues::mutate(|v| { +// *v = sp_version::RuntimeVersion { +// spec_version: 1, +// ..Default::default() +// } +// }); +// assert!(Executive::runtime_upgraded()); +// assert_eq!( +// Some(LastRuntimeUpgradeInfo { +// spec_version: 1.into(), +// spec_name: "".into() +// }), +// frame_system::LastRuntimeUpgrade::::get(), +// ); + +// RuntimeVersionTestValues::mutate(|v| { +// *v = sp_version::RuntimeVersion { +// spec_version: 1, +// spec_name: "test".into(), +// ..Default::default() +// } +// }); +// assert!(Executive::runtime_upgraded()); +// assert_eq!( +// Some(LastRuntimeUpgradeInfo { +// spec_version: 1.into(), +// spec_name: "test".into() +// }), +// frame_system::LastRuntimeUpgrade::::get(), +// ); + +// RuntimeVersionTestValues::mutate(|v| { +// *v = sp_version::RuntimeVersion { +// spec_version: 1, +// spec_name: "test".into(), +// impl_version: 2, +// ..Default::default() +// } +// }); +// assert!(!Executive::runtime_upgraded()); + +// frame_system::LastRuntimeUpgrade::::take(); +// assert!(Executive::runtime_upgraded()); +// assert_eq!( +// Some(LastRuntimeUpgradeInfo { +// spec_version: 1.into(), +// spec_name: "test".into() +// }), +// frame_system::LastRuntimeUpgrade::::get(), +// ); +// }) +// } + +// #[test] +// fn last_runtime_upgrade_was_upgraded_works() { +// let test_data = vec![ +// (0, "", 1, "", true), +// (1, "", 1, "", false), +// (1, "", 1, "test", true), +// (1, "", 0, "", false), +// (1, "", 0, "test", true), +// ]; + +// for (spec_version, spec_name, c_spec_version, c_spec_name, result) in test_data { +// let current = sp_version::RuntimeVersion { +// spec_version: c_spec_version, +// spec_name: c_spec_name.into(), +// ..Default::default() +// }; + +// let last = LastRuntimeUpgradeInfo { +// spec_version: spec_version.into(), +// spec_name: spec_name.into(), +// }; + +// assert_eq!(result, last.was_upgraded(¤t)); +// } +// } + +// #[test] +// fn custom_runtime_upgrade_is_called_before_modules() { +// new_test_ext(1).execute_with(|| { +// // Make sure `on_runtime_upgrade` is called. +// RuntimeVersionTestValues::mutate(|v| { +// *v = sp_version::RuntimeVersion { +// spec_version: 1, +// ..Default::default() +// } +// }); + +// Executive::initialize_block(&Header::new( +// 1, +// H256::default(), +// H256::default(), +// [69u8; 32].into(), +// Digest::default(), +// )); + +// assert_eq!(&sp_io::storage::get(TEST_KEY).unwrap()[..], *b"module"); +// assert_eq!( +// sp_io::storage::get(CUSTOM_ON_RUNTIME_KEY).unwrap(), +// true.encode() +// ); +// }); +// } + +// #[test] +// fn event_from_runtime_upgrade_is_included() { +// new_test_ext(1).execute_with(|| { +// // Make sure `on_runtime_upgrade` is called. +// RuntimeVersionTestValues::mutate(|v| { +// *v = sp_version::RuntimeVersion { +// spec_version: 1, +// ..Default::default() +// } +// }); + +// // set block number to non zero so events are not excluded +// System::set_block_number(1); + +// Executive::initialize_block(&Header::new( +// 2, +// H256::default(), +// H256::default(), +// [69u8; 32].into(), +// Digest::default(), +// )); + +// System::assert_last_event(frame_system::Event::::CodeUpdated.into()); +// }); +// } + +// /// Regression test that ensures that the custom on runtime upgrade is called when executive is +// /// used through the `ExecuteBlock` trait. +// #[test] +// fn custom_runtime_upgrade_is_called_when_using_execute_block_trait() { +// let xt = TestXt::new( +// RuntimeCall::Balances(BalancesCall::transfer_allow_death { dest: 33, value: 0 }), +// sign_extra(1, 0, 0), +// ); + +// let header = new_test_ext(1).execute_with(|| { +// // Make sure `on_runtime_upgrade` is called. +// RuntimeVersionTestValues::mutate(|v| { +// *v = sp_version::RuntimeVersion { +// spec_version: 1, +// ..Default::default() +// } +// }); + +// // Let's build some fake block. +// Executive::initialize_block(&Header::new( +// 1, +// H256::default(), +// H256::default(), +// [69u8; 32].into(), +// Digest::default(), +// )); + +// Executive::apply_extrinsic(xt.clone()).unwrap().unwrap(); + +// Executive::finalize_block() +// }); + +// // Reset to get the correct new genesis below. +// RuntimeVersionTestValues::mutate(|v| { +// *v = sp_version::RuntimeVersion { +// spec_version: 0, +// ..Default::default() +// } +// }); + +// new_test_ext(1).execute_with(|| { +// // Make sure `on_runtime_upgrade` is called. +// RuntimeVersionTestValues::mutate(|v| { +// *v = sp_version::RuntimeVersion { +// spec_version: 1, +// ..Default::default() +// } +// }); + +// >>::execute_block(Block::new(header, vec![xt])); + +// assert_eq!(&sp_io::storage::get(TEST_KEY).unwrap()[..], *b"module"); +// assert_eq!( +// sp_io::storage::get(CUSTOM_ON_RUNTIME_KEY).unwrap(), +// true.encode() +// ); +// }); +// } + +// #[test] +// fn all_weights_are_recorded_correctly() { +// new_test_ext(1).execute_with(|| { +// // Make sure `on_runtime_upgrade` is called for maximum complexity +// RuntimeVersionTestValues::mutate(|v| { +// *v = sp_version::RuntimeVersion { +// spec_version: 1, +// ..Default::default() +// } +// }); + +// let block_number = 1; + +// Executive::initialize_block(&Header::new( +// block_number, +// H256::default(), +// H256::default(), +// [69u8; 32].into(), +// Digest::default(), +// )); + +// // All weights that show up in the `initialize_block_impl` +// let custom_runtime_upgrade_weight = CustomOnRuntimeUpgrade::on_runtime_upgrade(); +// let runtime_upgrade_weight = +// ::on_runtime_upgrade(); +// let on_initialize_weight = +// >::on_initialize(block_number); +// let base_block_weight = +// ::BlockWeights::get().base_block; + +// // Weights are recorded correctly +// assert_eq!( +// frame_system::Pallet::::block_weight().total(), +// custom_runtime_upgrade_weight +// + runtime_upgrade_weight +// + on_initialize_weight +// + base_block_weight, +// ); +// }); +// } + +// #[test] +// fn offchain_worker_works_as_expected() { +// new_test_ext(1).execute_with(|| { +// let parent_hash = sp_core::H256::from([69u8; 32]); +// let mut digest = Digest::default(); +// digest.push(DigestItem::Seal([1, 2, 3, 4], vec![5, 6, 7, 8])); + +// let header = Header::new( +// 1, +// H256::default(), +// H256::default(), +// parent_hash, +// digest.clone(), +// ); + +// Executive::offchain_worker(&header); + +// assert_eq!(digest, System::digest()); +// assert_eq!(parent_hash, System::block_hash(0)); +// assert_eq!(header.hash(), System::block_hash(1)); +// }); +// } + +// #[test] +// fn calculating_storage_root_twice_works() { +// let call = RuntimeCall::Custom(custom::Call::calculate_storage_root {}); +// let xt = TestXt::new(call, sign_extra(1, 0, 0)); + +// let header = new_test_ext(1).execute_with(|| { +// // Let's build some fake block. +// Executive::initialize_block(&Header::new( +// 1, +// H256::default(), +// H256::default(), +// [69u8; 32].into(), +// Digest::default(), +// )); + +// Executive::apply_extrinsic(xt.clone()).unwrap().unwrap(); + +// Executive::finalize_block() +// }); + +// new_test_ext(1).execute_with(|| { +// Executive::execute_block(Block::new(header, vec![xt])); +// }); +// } + +// #[test] +// #[should_panic(expected = "Invalid inherent position for extrinsic at index 1")] +// fn invalid_inherent_position_fail() { +// let xt1 = TestXt::new( +// RuntimeCall::Balances(BalancesCall::transfer_allow_death { dest: 33, value: 0 }), +// sign_extra(1, 0, 0), +// ); +// let xt2 = TestXt::new(RuntimeCall::Custom(custom::Call::inherent_call {}), None); + +// let header = new_test_ext(1).execute_with(|| { +// // Let's build some fake block. +// Executive::initialize_block(&Header::new( +// 1, +// H256::default(), +// H256::default(), +// [69u8; 32].into(), +// Digest::default(), +// )); + +// Executive::apply_extrinsic(xt1.clone()).unwrap().unwrap(); +// Executive::apply_extrinsic(xt2.clone()).unwrap().unwrap(); + +// Executive::finalize_block() +// }); + +// new_test_ext(1).execute_with(|| { +// Executive::execute_block(Block::new(header, vec![xt1, xt2])); +// }); +// } + +// #[test] +// fn valid_inherents_position_works() { +// let xt1 = TestXt::new(RuntimeCall::Custom(custom::Call::inherent_call {}), None); +// let xt2 = TestXt::new(call_transfer(33, 0), sign_extra(1, 0, 0)); + +// let header = new_test_ext(1).execute_with(|| { +// // Let's build some fake block. +// Executive::initialize_block(&Header::new( +// 1, +// H256::default(), +// H256::default(), +// [69u8; 32].into(), +// Digest::default(), +// )); + +// Executive::apply_extrinsic(xt1.clone()).unwrap().unwrap(); +// Executive::apply_extrinsic(xt2.clone()).unwrap().unwrap(); + +// Executive::finalize_block() +// }); + +// new_test_ext(1).execute_with(|| { +// Executive::execute_block(Block::new(header, vec![xt1, xt2])); +// }); +// } + +// #[test] +// #[should_panic(expected = "A call was labelled as mandatory, but resulted in an Error.")] +// fn invalid_inherents_fail_block_execution() { +// let xt1 = TestXt::new( +// RuntimeCall::Custom(custom::Call::inherent_call {}), +// sign_extra(1, 0, 0), +// ); + +// new_test_ext(1).execute_with(|| { +// Executive::execute_block(Block::new( +// Header::new( +// 1, +// H256::default(), +// H256::default(), +// [69u8; 32].into(), +// Digest::default(), +// ), +// vec![xt1], +// )); +// }); +// } + +// // Inherents are created by the runtime and don't need to be validated. +// #[test] +// fn inherents_fail_validate_block() { +// let xt1 = TestXt::new(RuntimeCall::Custom(custom::Call::inherent_call {}), None); + +// new_test_ext(1).execute_with(|| { +// assert_eq!( +// Executive::validate_transaction(TransactionSource::External, xt1, H256::random()) +// .unwrap_err(), +// InvalidTransaction::MandatoryValidation.into() +// ); +// }) +// } +// } From d77a7ad74a7874caf5c60a8a87aaaca088c1be46 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Thu, 24 Aug 2023 09:17:26 +0530 Subject: [PATCH 32/58] Fixed frame-system try-runtime feature --- Cargo.lock | 1718 +++++++++++++++++++++------------------------------- 1 file changed, 680 insertions(+), 1038 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5020ff856..28addb541 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -18,16 +18,16 @@ version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a76fd60b23679b7d19bd066031410fb7e458ccc5e958eb5c325888ce4baedc97" dependencies = [ - "gimli", + "gimli 0.27.3", ] [[package]] name = "addr2line" -version = "0.20.0" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4fa78e18c64fce05e902adecd7a5eed15a5e0a3439f7b0e169f0252214865e3" +checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb" dependencies = [ - "gimli", + "gimli 0.28.0", ] [[package]] @@ -232,9 +232,9 @@ dependencies = [ [[package]] name = "anstyle" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a30da5c5f2d5e72842e00bcb57657162cdabef0931f40e2deb9b4140440cecd" +checksum = "15c4c2c83f81532e5845a733998b6971faca23490340a418e9b72a3ec9de12ea" [[package]] name = "anstyle-parse" @@ -440,7 +440,7 @@ dependencies = [ "num-traits", "rusticata-macros", "thiserror", - "time 0.3.25", + "time 0.3.27", ] [[package]] @@ -456,7 +456,7 @@ dependencies = [ "num-traits", "rusticata-macros", "thiserror", - "time 0.3.25", + "time 0.3.27", ] [[package]] @@ -612,14 +612,14 @@ dependencies = [ "kate", "log", "once_cell", - "sp-std 8.0.0", + "sp-std", "substrate-prometheus-endpoint 0.10.0", ] [[package]] name = "avail-core" version = "0.5.0" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d25ef65c77792a47a9b4297bb29022a66f42a7dc" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d4b27e4c327d0ae9f2b28f7bb09d4b164606c22f" dependencies = [ "binary-merkle-tree", "derive_more", @@ -630,29 +630,29 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-runtime-interface 17.0.0", - "sp-std 8.0.0", - "sp-trie 22.0.0", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-runtime", + "sp-runtime-interface", + "sp-std", + "sp-trie", "static_assertions", "thiserror-no-std", ] [[package]] name = "backtrace" -version = "0.3.68" +version = "0.3.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4319208da049c43661739c5fade2ba182f09d1dc2299b32298d3a31692b17e12" +checksum = "2089b7e3f35b9dd2d0ed921ead4f6d318c27680d4a5bd167b3ee120edb105837" dependencies = [ - "addr2line 0.20.0", + "addr2line 0.21.0", "cc", "cfg-if", "libc", "miniz_oxide", - "object 0.31.1", + "object 0.32.0", "rustc-demangle", ] @@ -1230,9 +1230,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.3.23" +version = "4.3.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03aef18ddf7d879c15ce20f04826ef8418101c7e528014c3eeea13321047dca3" +checksum = "fb690e81c7840c0d7aade59f242ea3b41b9bc27bcd5997890e7702ae4b32e487" dependencies = [ "clap_builder", "clap_derive", @@ -1241,9 +1241,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.3.23" +version = "4.3.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8ce6fffb678c9b80a70b6b6de0aad31df727623a70fd9a842c30cd573e2fa98" +checksum = "5ed2e96bc16d8d740f6f48d663eddf4b8a0983e79210fd55479b7bcd0a69860e" dependencies = [ "anstream", "anstyle", @@ -1257,7 +1257,7 @@ version = "4.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5fc443334c81a804575546c5a8a79b4913b50e28d69232903604cada1de817ce" dependencies = [ - "clap 4.3.23", + "clap 4.3.24", ] [[package]] @@ -1512,7 +1512,7 @@ dependencies = [ "cranelift-codegen-shared", "cranelift-entity", "cranelift-isle", - "gimli", + "gimli 0.27.3", "hashbrown 0.13.2", "log", "regalloc2", @@ -1806,6 +1806,7 @@ dependencies = [ "cfg-if", "cpufeatures", "curve25519-dalek-derive", + "digest 0.10.7", "fiat-crypto", "platforms", "rustc_version", @@ -1884,11 +1885,11 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", "static_assertions", "test-case", ] @@ -1951,23 +1952,23 @@ dependencies = [ "scale-info", "serde", "serde_json", - "sp-api 4.0.0-dev", + "sp-api", "sp-authority-discovery", "sp-block-builder", "sp-consensus-babe", "sp-consensus-grandpa", - "sp-core 21.0.0", + "sp-core", "sp-inherents", - "sp-io 23.0.0", + "sp-io", "sp-keyring", "sp-npos-elections", "sp-offchain", - "sp-runtime 24.0.0", + "sp-runtime", "sp-session", "sp-staking", - "sp-std 8.0.0", + "sp-std", "sp-transaction-pool", - "sp-version 22.0.0", + "sp-version", "static_assertions", "substrate-wasm-builder", "test-case", @@ -2015,7 +2016,7 @@ dependencies = [ "async-trait", "avail-base", "avail-core", - "clap 4.3.23", + "clap 4.3.24", "clap_complete", "da-control", "da-runtime", @@ -2070,23 +2071,23 @@ dependencies = [ "sc-transaction-pool-api", "serde", "serde_json", - "sp-api 4.0.0-dev", + "sp-api", "sp-authority-discovery", "sp-block-builder", "sp-blockchain", "sp-consensus", "sp-consensus-babe", "sp-consensus-grandpa", - "sp-core 21.0.0", + "sp-core", "sp-inherents", - "sp-io 23.0.0", + "sp-io", "sp-keyring", - "sp-keystore 0.27.0", + "sp-keystore", "sp-rpc", - "sp-runtime 24.0.0", - "sp-statement-store 4.0.0", + "sp-runtime", + "sp-statement-store", "sp-timestamp", - "sp-tracing 10.0.0", + "sp-tracing", "sp-transaction-pool", "sp-transaction-storage-proof", "substrate-build-script-utils", @@ -2467,6 +2468,16 @@ dependencies = [ "signature 1.6.4", ] +[[package]] +name = "ed25519" +version = "2.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60f6d271ca33075c88028be6f04d502853d63a5ece419d269c15315d4fc1cf1d" +dependencies = [ + "pkcs8 0.10.2", + "signature 2.1.0", +] + [[package]] name = "ed25519-dalek" version = "1.0.1" @@ -2474,13 +2485,25 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c762bae6dcaf24c4c84667b8579785430908723d5c889f469d76a41d59cc7a9d" dependencies = [ "curve25519-dalek 3.2.0", - "ed25519", - "rand 0.7.3", - "serde", + "ed25519 1.5.3", "sha2 0.9.9", "zeroize", ] +[[package]] +name = "ed25519-dalek" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7277392b266383ef8396db7fdeb1e77b6c52fed775f5df15bb24f35b72156980" +dependencies = [ + "curve25519-dalek 4.0.0", + "ed25519 2.2.2", + "rand_core 0.6.4", + "serde", + "sha2 0.10.7", + "zeroize", +] + [[package]] name = "ed25519-zebra" version = "3.1.0" @@ -2945,14 +2968,14 @@ dependencies = [ "paste", "scale-info", "serde", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-runtime-interface 17.0.0", - "sp-std 8.0.0", - "sp-storage 13.0.0", + "sp-api", + "sp-application-crypto", + "sp-core", + "sp-io", + "sp-runtime", + "sp-runtime-interface", + "sp-std", + "sp-storage", "static_assertions", ] @@ -2964,7 +2987,7 @@ dependencies = [ "Inflector", "array-bytes", "chrono", - "clap 4.3.23", + "clap 4.3.24", "comfy-table", "frame-benchmarking", "frame-support", @@ -2987,19 +3010,19 @@ dependencies = [ "sc-sysinfo", "serde", "serde_json", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", - "sp-core 21.0.0", + "sp-core", "sp-database", - "sp-externalities 0.19.0", + "sp-externalities", "sp-inherents", - "sp-io 23.0.0", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", - "sp-storage 13.0.0", - "sp-trie 22.0.0", - "sp-wasm-interface 14.0.0", + "sp-io", + "sp-keystore", + "sp-runtime", + "sp-state-machine", + "sp-storage", + "sp-trie", + "sp-wasm-interface", "thiserror", "thousands", ] @@ -3025,11 +3048,11 @@ dependencies = [ "frame-system", "parity-scale-codec", "scale-info", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", + "sp-arithmetic", + "sp-core", "sp-npos-elections", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-runtime", + "sp-std", ] [[package]] @@ -3044,13 +3067,13 @@ dependencies = [ "pallet-transaction-payment", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", + "sp-core", "sp-inherents", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-std 8.0.0", - "sp-tracing 10.0.0", - "sp-version 22.0.0", + "sp-io", + "sp-runtime", + "sp-std", + "sp-tracing", + "sp-version", ] [[package]] @@ -3077,9 +3100,9 @@ dependencies = [ "log", "parity-scale-codec", "serde", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "spinners", "substrate-rpc-client", "tokio", @@ -3104,19 +3127,19 @@ dependencies = [ "scale-info", "serde", "smallvec", - "sp-api 4.0.0-dev", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", - "sp-core-hashing-proc-macro 9.0.0", - "sp-debug-derive 8.0.0", + "sp-api", + "sp-arithmetic", + "sp-core", + "sp-core-hashing-proc-macro", + "sp-debug-derive", "sp-inherents", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-io", + "sp-runtime", "sp-staking", - "sp-state-machine 0.28.0", - "sp-std 8.0.0", - "sp-tracing 10.0.0", - "sp-weights 20.0.0", + "sp-state-machine", + "sp-std", + "sp-tracing", + "sp-weights", "tt-call", ] @@ -3179,14 +3202,14 @@ dependencies = [ "rs_merkle", "scale-info", "serde", - "sp-core 21.0.0", - "sp-externalities 0.19.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-runtime-interface 17.0.0", - "sp-std 8.0.0", - "sp-version 22.0.0", - "sp-weights 20.0.0", + "sp-core", + "sp-externalities", + "sp-io", + "sp-runtime", + "sp-runtime-interface", + "sp-std", + "sp-version", + "sp-weights", "static_assertions", "test-case", ] @@ -3201,12 +3224,12 @@ dependencies = [ "frame-system", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-externalities 0.19.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-std 8.0.0", - "sp-version 22.0.0", + "sp-core", + "sp-externalities", + "sp-io", + "sp-runtime", + "sp-std", + "sp-version", ] [[package]] @@ -3214,7 +3237,7 @@ name = "frame-system-rpc-runtime-api" version = "4.0.0-dev" dependencies = [ "parity-scale-codec", - "sp-api 4.0.0-dev", + "sp-api", ] [[package]] @@ -3224,9 +3247,9 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "frame-support", "parity-scale-codec", - "sp-api 4.0.0-dev", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-api", + "sp-runtime", + "sp-std", ] [[package]] @@ -3471,6 +3494,12 @@ dependencies = [ "stable_deref_trait", ] +[[package]] +name = "gimli" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6fb8d784f27acf97159b40fc4db5ecd8aa23b9ad5ef69cdd136d3bc80665f0c0" + [[package]] name = "glob" version = "0.3.1" @@ -3559,9 +3588,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.3.20" +version = "0.3.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97ec8491ebaf99c8eaa73058b045fe58073cd6be7f596ac993ced0b0a0c01049" +checksum = "91fc23aa11be92976ef4729127f1a74adf36d8436f7816b185d18df956790833" dependencies = [ "bytes", "fnv", @@ -3812,18 +3841,19 @@ dependencies = [ [[package]] name = "hyper-rustls" -version = "0.23.2" +version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1788965e61b367cd03a62950836d5cd41560c3577d90e40e0819373194d1661c" +checksum = "8d78e1e73ec14cf7375674f74d7dde185c8206fd9dea6fb6295e8a98098aaa97" dependencies = [ + "futures-util", "http", "hyper", "log", - "rustls 0.20.8", + "rustls 0.21.6", "rustls-native-certs", "tokio", "tokio-rustls", - "webpki-roots", + "webpki-roots 0.23.1", ] [[package]] @@ -4113,9 +4143,9 @@ dependencies = [ [[package]] name = "jsonrpsee" -version = "0.16.2" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d291e3a5818a2384645fd9756362e6d89cf0541b0b916fa7702ea4a9833608e" +checksum = "367a292944c07385839818bb71c8d76611138e2dedb0677d035b8da21d29c78b" dependencies = [ "jsonrpsee-client-transport", "jsonrpsee-core", @@ -4130,9 +4160,9 @@ dependencies = [ [[package]] name = "jsonrpsee-client-transport" -version = "0.16.2" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "965de52763f2004bc91ac5bcec504192440f0b568a5d621c59d9dbd6f886c3fb" +checksum = "c8b3815d9f5d5de348e5f162b316dc9cdf4548305ebb15b4eb9328e66cf27d7a" dependencies = [ "anyhow", "futures-channel", @@ -4150,14 +4180,14 @@ dependencies = [ "tokio-rustls", "tokio-util", "tracing", - "webpki-roots", + "webpki-roots 0.25.2", ] [[package]] name = "jsonrpsee-core" -version = "0.16.2" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4e70b4439a751a5de7dd5ed55eacff78ebf4ffe0fc009cb1ebb11417f5b536b" +checksum = "2b5dde66c53d6dcdc8caea1874a45632ec0fcf5b437789f1e45766a1512ce803" dependencies = [ "anyhow", "arrayvec 0.7.4", @@ -4184,9 +4214,9 @@ dependencies = [ [[package]] name = "jsonrpsee-http-client" -version = "0.16.2" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc345b0a43c6bc49b947ebeb936e886a419ee3d894421790c969cc56040542ad" +checksum = "7e5f9fabdd5d79344728521bb65e3106b49ec405a78b66fbff073b72b389fa43" dependencies = [ "async-trait", "hyper", @@ -4203,9 +4233,9 @@ dependencies = [ [[package]] name = "jsonrpsee-proc-macros" -version = "0.16.2" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baa6da1e4199c10d7b1d0a6e5e8bd8e55f351163b6f4b3cbb044672a69bd4c1c" +checksum = "44e8ab85614a08792b9bff6c8feee23be78c98d0182d4c622c05256ab553892a" dependencies = [ "heck", "proc-macro-crate", @@ -4216,9 +4246,9 @@ dependencies = [ [[package]] name = "jsonrpsee-server" -version = "0.16.2" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fb69dad85df79527c019659a992498d03f8495390496da2f07e6c24c2b356fc" +checksum = "cf4d945a6008c9b03db3354fb3c83ee02d2faa9f2e755ec1dfb69c3551b8f4ba" dependencies = [ "futures-channel", "futures-util", @@ -4238,9 +4268,9 @@ dependencies = [ [[package]] name = "jsonrpsee-types" -version = "0.16.2" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bd522fe1ce3702fd94812965d7bb7a3364b1c9aba743944c5a00529aae80f8c" +checksum = "245ba8e5aa633dd1c1e4fae72bce06e71f42d34c14a2767c6b4d173b57bee5e5" dependencies = [ "anyhow", "beef", @@ -4252,9 +4282,9 @@ dependencies = [ [[package]] name = "jsonrpsee-wasm-client" -version = "0.16.2" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a77310456f43c6c89bcba1f6b2fc2a28300da7c341f320f5128f8c83cc63232d" +checksum = "18e5df77c8f625d36e4cfb583c5a674eccebe32403fcfe42f7ceff7fac9324dd" dependencies = [ "jsonrpsee-client-transport", "jsonrpsee-core", @@ -4263,9 +4293,9 @@ dependencies = [ [[package]] name = "jsonrpsee-ws-client" -version = "0.16.2" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b83daeecfc6517cfe210df24e570fb06213533dfb990318fae781f4c7119dd9" +checksum = "4e1b3975ed5d73f456478681a417128597acd6a2487855fdb7b4a3d4d195bf5e" dependencies = [ "http", "jsonrpsee-client-transport", @@ -4302,7 +4332,7 @@ dependencies = [ [[package]] name = "kate" version = "0.8.0" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d25ef65c77792a47a9b4297bb29022a66f42a7dc" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d4b27e4c327d0ae9f2b28f7bb09d4b164606c22f" dependencies = [ "avail-core", "derive_more", @@ -4321,8 +4351,8 @@ dependencies = [ "rayon", "serde", "serde_json", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", + "sp-arithmetic", + "sp-core", "static_assertions", "thiserror-no-std", ] @@ -4330,7 +4360,7 @@ dependencies = [ [[package]] name = "kate-recovery" version = "0.9.0" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d25ef65c77792a47a9b4297bb29022a66f42a7dc" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d4b27e4c327d0ae9f2b28f7bb09d4b164606c22f" dependencies = [ "avail-core", "derive_more", @@ -4341,8 +4371,8 @@ dependencies = [ "rand 0.8.5", "rand_chacha 0.3.1", "serde", - "sp-arithmetic 16.0.0", - "sp-std 8.0.0", + "sp-arithmetic", + "sp-std", "static_assertions", "thiserror-no-std", ] @@ -4364,9 +4394,9 @@ dependencies = [ "parity-scale-codec", "sc-client-api", "sc-client-db", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", - "sp-runtime 24.0.0", + "sp-runtime", "static_assertions", ] @@ -4564,12 +4594,12 @@ dependencies = [ [[package]] name = "libp2p-identity" -version = "0.1.2" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e2d584751cecb2aabaa56106be6be91338a60a0f4e420cf2af639204f596fc1" +checksum = "276bb57e7af15d8f100d3c11cbdd32c6752b7eef4ba7a18ecf464972c07abcce" dependencies = [ "bs58", - "ed25519-dalek", + "ed25519-dalek 2.0.0", "log", "multiaddr", "multihash", @@ -4849,7 +4879,7 @@ dependencies = [ "rw-stream-sink", "soketto", "url", - "webpki-roots", + "webpki-roots 0.22.6", ] [[package]] @@ -5278,11 +5308,11 @@ dependencies = [ "jsonrpsee", "parity-scale-codec", "serde", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", - "sp-core 21.0.0", + "sp-core", "sp-mmr-primitives", - "sp-runtime 24.0.0", + "sp-runtime", ] [[package]] @@ -5526,7 +5556,7 @@ dependencies = [ [[package]] name = "nomad-base" version = "0.1.4" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d25ef65c77792a47a9b4297bb29022a66f42a7dc" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d4b27e4c327d0ae9f2b28f7bb09d4b164606c22f" dependencies = [ "ethers-signers", "nomad-core", @@ -5535,14 +5565,14 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", ] [[package]] name = "nomad-core" version = "0.1.4" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d25ef65c77792a47a9b4297bb29022a66f42a7dc" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d4b27e4c327d0ae9f2b28f7bb09d4b164606c22f" dependencies = [ "ethers-core", "ethers-signers", @@ -5551,9 +5581,9 @@ dependencies = [ "primitive-types", "scale-info", "serde", - "sp-core 21.0.0", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-core", + "sp-runtime", + "sp-std", "tiny-keccak", ] @@ -5573,10 +5603,10 @@ dependencies = [ "nomad-updater-manager", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", ] [[package]] @@ -5595,17 +5625,17 @@ dependencies = [ "nomad-updater-manager", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", "test-case", ] [[package]] name = "nomad-merkle" version = "0.1.2" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d25ef65c77792a47a9b4297bb29022a66f42a7dc" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d4b27e4c327d0ae9f2b28f7bb09d4b164606c22f" dependencies = [ "avail-core", "frame-support", @@ -5614,7 +5644,7 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 21.0.0", + "sp-core", "static_assertions", "thiserror-no-std", "tiny-keccak", @@ -5623,7 +5653,7 @@ dependencies = [ [[package]] name = "nomad-signature" version = "0.1.2" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d25ef65c77792a47a9b4297bb29022a66f42a7dc" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d4b27e4c327d0ae9f2b28f7bb09d4b164606c22f" dependencies = [ "elliptic-curve 0.12.3", "ethers-core", @@ -5634,8 +5664,8 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "thiserror-no-std", "tiny-keccak", ] @@ -5649,9 +5679,9 @@ dependencies = [ "frame-system", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", ] [[package]] @@ -5662,9 +5692,9 @@ checksum = "61807f77802ff30975e01f4f071c8ba10c022052f98b3294119f3e615d13e5be" [[package]] name = "num-bigint" -version = "0.4.3" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f93ab6289c7b344a8a9f60f88d80aa20032336fe78da341afc91c8a2341fc75f" +checksum = "608e7659b5c3d7cba262d894801b9ec9d00de989e8a82bd4bef91d08da45cdc0" dependencies = [ "autocfg", "num-integer", @@ -5751,9 +5781,9 @@ dependencies = [ [[package]] name = "object" -version = "0.31.1" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bda667d9f2b5051b8833f59f3bf748b28ef54f850f4fcb389a252aa383866d1" +checksum = "77ac5bbd07aea88c60a577a1ce218075ffd59208b2d7ca97adf9bfc5aeb21ebe" dependencies = [ "memchr", ] @@ -5869,10 +5899,10 @@ dependencies = [ "pallet-session", "parity-scale-codec", "scale-info", - "sp-application-crypto 23.0.0", + "sp-application-crypto", "sp-authority-discovery", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-runtime", + "sp-std", ] [[package]] @@ -5885,8 +5915,8 @@ dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "scale-info", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-runtime", + "sp-std", ] [[package]] @@ -5903,14 +5933,14 @@ dependencies = [ "pallet-timestamp", "parity-scale-codec", "scale-info", - "sp-application-crypto 23.0.0", + "sp-application-crypto", "sp-consensus-babe", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-session", "sp-staking", - "sp-std 8.0.0", + "sp-std", ] [[package]] @@ -5926,11 +5956,11 @@ dependencies = [ "pallet-balances", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-std 8.0.0", - "sp-tracing 10.0.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", + "sp-tracing", ] [[package]] @@ -5944,8 +5974,8 @@ dependencies = [ "log", "parity-scale-codec", "scale-info", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-runtime", + "sp-std", ] [[package]] @@ -5960,10 +5990,10 @@ dependencies = [ "pallet-treasury", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", ] [[package]] @@ -5979,10 +6009,10 @@ dependencies = [ "pallet-treasury", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", ] [[package]] @@ -5996,10 +6026,10 @@ dependencies = [ "log", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", ] [[package]] @@ -6014,10 +6044,10 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", ] [[package]] @@ -6034,12 +6064,12 @@ dependencies = [ "parity-scale-codec", "rand 0.8.5", "scale-info", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", - "sp-io 23.0.0", + "sp-arithmetic", + "sp-core", + "sp-io", "sp-npos-elections", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-runtime", + "sp-std", "strum", ] @@ -6053,7 +6083,7 @@ dependencies = [ "frame-system", "parity-scale-codec", "sp-npos-elections", - "sp-runtime 24.0.0", + "sp-runtime", ] [[package]] @@ -6067,12 +6097,12 @@ dependencies = [ "log", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", + "sp-core", + "sp-io", "sp-npos-elections", - "sp-runtime 24.0.0", + "sp-runtime", "sp-staking", - "sp-std 8.0.0", + "sp-std", ] [[package]] @@ -6088,14 +6118,14 @@ dependencies = [ "pallet-session", "parity-scale-codec", "scale-info", - "sp-application-crypto 23.0.0", + "sp-application-crypto", "sp-consensus-grandpa", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-session", "sp-staking", - "sp-std 8.0.0", + "sp-std", ] [[package]] @@ -6110,12 +6140,12 @@ dependencies = [ "pallet-authorship", "parity-scale-codec", "scale-info", - "sp-application-crypto 23.0.0", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-application-crypto", + "sp-core", + "sp-io", + "sp-runtime", "sp-staking", - "sp-std 8.0.0", + "sp-std", ] [[package]] @@ -6128,11 +6158,11 @@ dependencies = [ "frame-system", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", + "sp-core", + "sp-io", "sp-keyring", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-runtime", + "sp-std", ] [[package]] @@ -6146,10 +6176,10 @@ dependencies = [ "log", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", ] [[package]] @@ -6162,11 +6192,11 @@ dependencies = [ "frame-system", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", + "sp-core", + "sp-io", "sp-mmr-primitives", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-runtime", + "sp-std", ] [[package]] @@ -6180,9 +6210,9 @@ dependencies = [ "log", "parity-scale-codec", "scale-info", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-io", + "sp-runtime", + "sp-std", ] [[package]] @@ -6195,11 +6225,11 @@ dependencies = [ "log", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-staking", - "sp-std 8.0.0", + "sp-std", ] [[package]] @@ -6214,9 +6244,9 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-runtime 24.0.0", + "sp-runtime", "sp-staking", - "sp-std 8.0.0", + "sp-std", ] [[package]] @@ -6230,10 +6260,10 @@ dependencies = [ "log", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", ] [[package]] @@ -6247,10 +6277,10 @@ dependencies = [ "log", "parity-scale-codec", "scale-info", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-std 8.0.0", - "sp-weights 20.0.0", + "sp-io", + "sp-runtime", + "sp-std", + "sp-weights", ] [[package]] @@ -6265,13 +6295,13 @@ dependencies = [ "pallet-timestamp", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-io", + "sp-runtime", "sp-session", "sp-staking", - "sp-std 8.0.0", - "sp-trie 22.0.0", + "sp-std", + "sp-trie", ] [[package]] @@ -6290,11 +6320,11 @@ dependencies = [ "rand_chacha 0.2.2", "scale-info", "serde", - "sp-application-crypto 23.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", + "sp-application-crypto", + "sp-io", + "sp-runtime", "sp-staking", - "sp-std 8.0.0", + "sp-std", ] [[package]] @@ -6318,9 +6348,9 @@ dependencies = [ "frame-system", "parity-scale-codec", "scale-info", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-io", + "sp-runtime", + "sp-std", ] [[package]] @@ -6335,9 +6365,9 @@ dependencies = [ "parity-scale-codec", "scale-info", "sp-inherents", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-io", + "sp-runtime", + "sp-std", "sp-timestamp", ] @@ -6354,10 +6384,10 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", ] [[package]] @@ -6370,10 +6400,10 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", ] [[package]] @@ -6384,12 +6414,12 @@ dependencies = [ "jsonrpsee", "pallet-transaction-payment-rpc-runtime-api", "parity-scale-codec", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", - "sp-core 21.0.0", + "sp-core", "sp-rpc", - "sp-runtime 24.0.0", - "sp-weights 20.0.0", + "sp-runtime", + "sp-weights", ] [[package]] @@ -6399,9 +6429,9 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "pallet-transaction-payment", "parity-scale-codec", - "sp-api 4.0.0-dev", - "sp-runtime 24.0.0", - "sp-weights 20.0.0", + "sp-api", + "sp-runtime", + "sp-weights", ] [[package]] @@ -6417,8 +6447,8 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-runtime", + "sp-std", ] [[package]] @@ -6431,10 +6461,10 @@ dependencies = [ "frame-system", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", ] [[package]] @@ -6694,12 +6724,12 @@ dependencies = [ [[package]] name = "petgraph" -version = "0.6.3" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4dd7d28ee937e54fe3080c91faa1c3a46c06de6252988a7f4592ba2310ef22a4" +checksum = "e1d3afd2628e69da2be385eb6f2fd57c8ac7977ceeff6dc166ff1657b0e386a9" dependencies = [ "fixedbitset", - "indexmap 1.9.3", + "indexmap 2.0.0", ] [[package]] @@ -7296,7 +7326,7 @@ checksum = "6413f3de1edee53342e6138e75b56d32e7bc6e332b3bd62d497b1929d4cfbcdd" dependencies = [ "pem", "ring", - "time 0.3.25", + "time 0.3.27", "x509-parser 0.13.2", "yasna", ] @@ -7309,7 +7339,7 @@ checksum = "ffbe84efe2f38dea12e9bfc1f65377fdf03e53a18cb3b995faedf7934c7e785b" dependencies = [ "pem", "ring", - "time 0.3.25", + "time 0.3.27", "yasna", ] @@ -7675,6 +7705,18 @@ dependencies = [ "webpki 0.22.0", ] +[[package]] +name = "rustls" +version = "0.21.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d1feddffcfcc0b33f5c6ce9a29e341e4cd59c3f78e7ee45f4a40c038b1d6cbb" +dependencies = [ + "log", + "ring", + "rustls-webpki 0.101.4", + "sct 0.7.0", +] + [[package]] name = "rustls-native-certs" version = "0.6.3" @@ -7696,6 +7738,26 @@ dependencies = [ "base64 0.21.2", ] +[[package]] +name = "rustls-webpki" +version = "0.100.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e98ff011474fa39949b7e5c0428f9b4937eda7da7848bbb947786b7be0b27dab" +dependencies = [ + "ring", + "untrusted", +] + +[[package]] +name = "rustls-webpki" +version = "0.101.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d93931baf2d282fff8d3a532bbfd7653f734643161b87e3e01e59a04439bf0d" +dependencies = [ + "ring", + "untrusted", +] + [[package]] name = "rustversion" version = "1.0.14" @@ -7752,8 +7814,8 @@ version = "4.1.0-dev" source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "log", - "sp-core 21.0.0", - "sp-wasm-interface 14.0.0", + "sp-core", + "sp-wasm-interface", "thiserror", ] @@ -7775,12 +7837,12 @@ dependencies = [ "rand 0.8.5", "sc-client-api", "sc-network", - "sp-api 4.0.0-dev", + "sp-api", "sp-authority-discovery", "sp-blockchain", - "sp-core 21.0.0", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-keystore", + "sp-runtime", "substrate-prometheus-endpoint 0.10.0-dev", "thiserror", ] @@ -7799,12 +7861,12 @@ dependencies = [ "sc-proposer-metrics", "sc-telemetry", "sc-transaction-pool-api", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", "sp-consensus", - "sp-core 21.0.0", + "sp-core", "sp-inherents", - "sp-runtime 24.0.0", + "sp-runtime", "substrate-prometheus-endpoint 0.10.0-dev", ] @@ -7815,12 +7877,12 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "parity-scale-codec", "sc-client-api", - "sp-api 4.0.0-dev", + "sp-api", "sp-block-builder", "sp-blockchain", - "sp-core 21.0.0", + "sp-core", "sp-inherents", - "sp-runtime 24.0.0", + "sp-runtime", ] [[package]] @@ -7837,9 +7899,9 @@ dependencies = [ "serde", "serde_json", "sp-blockchain", - "sp-core 21.0.0", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-core", + "sp-runtime", + "sp-state-machine", ] [[package]] @@ -7860,7 +7922,7 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "array-bytes", "chrono", - "clap 4.3.23", + "clap 4.3.24", "fdlimit", "futures", "libp2p-identity", @@ -7881,12 +7943,12 @@ dependencies = [ "serde", "serde_json", "sp-blockchain", - "sp-core 21.0.0", + "sp-core", "sp-keyring", - "sp-keystore 0.27.0", - "sp-panic-handler 8.0.0", - "sp-runtime 24.0.0", - "sp-version 22.0.0", + "sp-keystore", + "sp-panic-handler", + "sp-runtime", + "sp-version", "thiserror", "tiny-bip39", "tokio", @@ -7905,16 +7967,16 @@ dependencies = [ "sc-executor", "sc-transaction-pool-api", "sc-utils", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", "sp-consensus", - "sp-core 21.0.0", + "sp-core", "sp-database", - "sp-externalities 0.19.0", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", - "sp-statement-store 4.0.0-dev", - "sp-storage 13.0.0", + "sp-externalities", + "sp-runtime", + "sp-state-machine", + "sp-statement-store", + "sp-storage", "substrate-prometheus-endpoint 0.10.0-dev", ] @@ -7935,13 +7997,13 @@ dependencies = [ "sc-client-api", "sc-state-db", "schnellru", - "sp-arithmetic 16.0.0", + "sp-arithmetic", "sp-blockchain", - "sp-core 21.0.0", + "sp-core", "sp-database", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", - "sp-trie 22.0.0", + "sp-runtime", + "sp-state-machine", + "sp-trie", ] [[package]] @@ -7959,12 +8021,12 @@ dependencies = [ "sc-client-api", "sc-utils", "serde", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", "sp-consensus", - "sp-core 21.0.0", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-core", + "sp-runtime", + "sp-state-machine", "substrate-prometheus-endpoint 0.10.0-dev", "thiserror", ] @@ -7990,17 +8052,17 @@ dependencies = [ "sc-telemetry", "sc-transaction-pool-api", "scale-info", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", + "sp-api", + "sp-application-crypto", "sp-block-builder", "sp-blockchain", "sp-consensus", "sp-consensus-babe", "sp-consensus-slots", - "sp-core 21.0.0", + "sp-core", "sp-inherents", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", + "sp-keystore", + "sp-runtime", "substrate-prometheus-endpoint 0.10.0-dev", "thiserror", ] @@ -8016,14 +8078,14 @@ dependencies = [ "sc-consensus-epochs", "sc-rpc-api", "serde", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", + "sp-api", + "sp-application-crypto", "sp-blockchain", "sp-consensus", "sp-consensus-babe", - "sp-core 21.0.0", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-keystore", + "sp-runtime", "thiserror", ] @@ -8037,7 +8099,7 @@ dependencies = [ "sc-client-api", "sc-consensus", "sp-blockchain", - "sp-runtime 24.0.0", + "sp-runtime", ] [[package]] @@ -8068,15 +8130,15 @@ dependencies = [ "sc-transaction-pool-api", "sc-utils", "serde_json", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", - "sp-arithmetic 16.0.0", + "sp-api", + "sp-application-crypto", + "sp-arithmetic", "sp-blockchain", "sp-consensus", "sp-consensus-grandpa", - "sp-core 21.0.0", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-keystore", + "sp-runtime", "substrate-prometheus-endpoint 0.10.0-dev", "thiserror", ] @@ -8096,8 +8158,8 @@ dependencies = [ "sc-rpc", "serde", "sp-blockchain", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "thiserror", ] @@ -8114,14 +8176,14 @@ dependencies = [ "sc-client-api", "sc-consensus", "sc-telemetry", - "sp-arithmetic 16.0.0", + "sp-arithmetic", "sp-blockchain", "sp-consensus", "sp-consensus-slots", - "sp-core 21.0.0", + "sp-core", "sp-inherents", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-runtime", + "sp-state-machine", ] [[package]] @@ -8134,15 +8196,15 @@ dependencies = [ "sc-executor-common", "sc-executor-wasmtime", "schnellru", - "sp-api 4.0.0-dev", - "sp-core 21.0.0", - "sp-externalities 0.19.0", - "sp-io 23.0.0", - "sp-panic-handler 8.0.0", - "sp-runtime-interface 17.0.0", - "sp-trie 22.0.0", - "sp-version 22.0.0", - "sp-wasm-interface 14.0.0", + "sp-api", + "sp-core", + "sp-externalities", + "sp-io", + "sp-panic-handler", + "sp-runtime-interface", + "sp-trie", + "sp-version", + "sp-wasm-interface", "tracing", ] @@ -8153,7 +8215,7 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "sc-allocator", "sp-maybe-compressed-blob", - "sp-wasm-interface 14.0.0", + "sp-wasm-interface", "thiserror", "wasm-instrument", ] @@ -8170,8 +8232,8 @@ dependencies = [ "rustix 0.36.15", "sc-allocator", "sc-executor-common", - "sp-runtime-interface 17.0.0", - "sp-wasm-interface 14.0.0", + "sp-runtime-interface", + "sp-wasm-interface", "wasmtime", ] @@ -8188,7 +8250,7 @@ dependencies = [ "sc-network", "sc-network-common", "sp-blockchain", - "sp-runtime 24.0.0", + "sp-runtime", ] [[package]] @@ -8199,9 +8261,9 @@ dependencies = [ "array-bytes", "parking_lot 0.12.1", "serde_json", - "sp-application-crypto 23.0.0", - "sp-core 21.0.0", - "sp-keystore 0.27.0", + "sp-application-crypto", + "sp-core", + "sp-keystore", "thiserror", ] @@ -8235,10 +8297,10 @@ dependencies = [ "serde", "serde_json", "smallvec", - "sp-arithmetic 16.0.0", + "sp-arithmetic", "sp-blockchain", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "substrate-prometheus-endpoint 0.10.0-dev", "thiserror", "unsigned-varint", @@ -8261,7 +8323,7 @@ dependencies = [ "sc-client-api", "sc-network", "sp-blockchain", - "sp-runtime 24.0.0", + "sp-runtime", "thiserror", "unsigned-varint", ] @@ -8280,7 +8342,7 @@ dependencies = [ "sc-consensus", "sp-consensus", "sp-consensus-grandpa", - "sp-runtime 24.0.0", + "sp-runtime", ] [[package]] @@ -8296,7 +8358,7 @@ dependencies = [ "sc-network", "sc-network-common", "schnellru", - "sp-runtime 24.0.0", + "sp-runtime", "substrate-prometheus-endpoint 0.10.0-dev", "tracing", ] @@ -8317,8 +8379,8 @@ dependencies = [ "sc-client-api", "sc-network", "sp-blockchain", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "thiserror", ] @@ -8346,12 +8408,12 @@ dependencies = [ "sc-utils", "schnellru", "smallvec", - "sp-arithmetic 16.0.0", + "sp-arithmetic", "sp-blockchain", "sp-consensus", "sp-consensus-grandpa", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "substrate-prometheus-endpoint 0.10.0-dev", "thiserror", ] @@ -8370,7 +8432,7 @@ dependencies = [ "sc-network-common", "sc-utils", "sp-consensus", - "sp-runtime 24.0.0", + "sp-runtime", "substrate-prometheus-endpoint 0.10.0-dev", ] @@ -8401,16 +8463,16 @@ dependencies = [ "sc-transaction-pool-api", "sc-utils", "serde_json", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", - "sp-core 21.0.0", - "sp-keystore 0.27.0", + "sp-core", + "sp-keystore", "sp-offchain", "sp-rpc", - "sp-runtime 24.0.0", + "sp-runtime", "sp-session", - "sp-statement-store 4.0.0-dev", - "sp-version 22.0.0", + "sp-statement-store", + "sp-version", "tokio", ] @@ -8426,10 +8488,10 @@ dependencies = [ "scale-info", "serde", "serde_json", - "sp-core 21.0.0", + "sp-core", "sp-rpc", - "sp-runtime 24.0.0", - "sp-version 22.0.0", + "sp-runtime", + "sp-version", "thiserror", ] @@ -8465,11 +8527,11 @@ dependencies = [ "sc-client-api", "sc-transaction-pool-api", "serde", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", - "sp-core 21.0.0", - "sp-runtime 24.0.0", - "sp-version 22.0.0", + "sp-core", + "sp-runtime", + "sp-version", "thiserror", "tokio-stream", ] @@ -8515,20 +8577,20 @@ dependencies = [ "sc-utils", "serde", "serde_json", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", "sp-consensus", - "sp-core 21.0.0", - "sp-externalities 0.19.0", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-externalities", + "sp-keystore", + "sp-runtime", "sp-session", - "sp-state-machine 0.28.0", - "sp-storage 13.0.0", + "sp-state-machine", + "sp-storage", "sp-transaction-pool", "sp-transaction-storage-proof", - "sp-trie 22.0.0", - "sp-version 22.0.0", + "sp-trie", + "sp-version", "static_init", "substrate-prometheus-endpoint 0.10.0-dev", "tempfile", @@ -8546,7 +8608,7 @@ dependencies = [ "log", "parity-scale-codec", "parking_lot 0.12.1", - "sp-core 21.0.0", + "sp-core", ] [[package]] @@ -8564,7 +8626,7 @@ dependencies = [ "serde", "serde_json", "sp-blockchain", - "sp-runtime 24.0.0", + "sp-runtime", "thiserror", ] @@ -8582,9 +8644,9 @@ dependencies = [ "sc-telemetry", "serde", "serde_json", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-std 8.0.0", + "sp-core", + "sp-io", + "sp-std", ] [[package]] @@ -8623,12 +8685,12 @@ dependencies = [ "sc-client-api", "sc-tracing-proc-macro", "serde", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", - "sp-core 21.0.0", + "sp-core", "sp-rpc", - "sp-runtime 24.0.0", - "sp-tracing 10.0.0", + "sp-runtime", + "sp-tracing", "thiserror", "tracing", "tracing-log", @@ -8662,11 +8724,11 @@ dependencies = [ "sc-transaction-pool-api", "sc-utils", "serde", - "sp-api 4.0.0-dev", + "sp-api", "sp-blockchain", - "sp-core 21.0.0", - "sp-runtime 24.0.0", - "sp-tracing 10.0.0", + "sp-core", + "sp-runtime", + "sp-tracing", "sp-transaction-pool", "substrate-prometheus-endpoint 0.10.0-dev", "thiserror", @@ -8683,8 +8745,8 @@ dependencies = [ "parity-scale-codec", "serde", "sp-blockchain", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "thiserror", ] @@ -8700,7 +8762,7 @@ dependencies = [ "log", "parking_lot 0.12.1", "prometheus", - "sp-arithmetic 16.0.0", + "sp-arithmetic", ] [[package]] @@ -8933,18 +8995,18 @@ checksum = "f638d531eccd6e23b980caf34876660d38e265409d8e99b397ab71eb3612fad0" [[package]] name = "serde" -version = "1.0.185" +version = "1.0.186" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be9b6f69f1dfd54c3b568ffa45c310d6973a5e5148fd40cf515acaf38cf5bc31" +checksum = "9f5db24220c009de9bd45e69fb2938f4b6d2df856aa9304ce377b3180f83b7c1" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.185" +version = "1.0.186" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc59dfdcbad1437773485e0367fea4b090a2e0a16d9ffc46af47764536a298ec" +checksum = "5ad697f7e0b65af4983a4ce8f56ed5b357e8d3c36651bf6a7e13639c17b8e670" dependencies = [ "proc-macro2", "quote", @@ -9100,15 +9162,15 @@ dependencies = [ [[package]] name = "siphasher" -version = "0.3.10" +version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7bd3e3206899af3f8b12af284fafc038cc1dc2b41d1b89dd17297221c5d225de" +checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d" [[package]] name = "slab" -version = "0.4.8" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6528351c9bc8ab22353f9d776db39a20288e8d6c37ef8cfe3317cf875eecfc2d" +checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" dependencies = [ "autocfg", ] @@ -9194,37 +9256,15 @@ dependencies = [ "log", "parity-scale-codec", "scale-info", - "sp-api-proc-macro 4.0.0-dev", - "sp-core 21.0.0", - "sp-externalities 0.19.0", - "sp-metadata-ir 0.1.0 (git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0)", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", - "sp-std 8.0.0", - "sp-trie 22.0.0", - "sp-version 22.0.0", - "thiserror", -] - -[[package]] -name = "sp-api" -version = "20.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1aa63dcdd3fb081a894189f83115dd683be1339a919cd7d3f98f145d1870626c" -dependencies = [ - "hash-db", - "log", - "parity-scale-codec", - "scale-info", - "sp-api-proc-macro 9.0.0", - "sp-core 22.0.0", - "sp-externalities 0.20.0", - "sp-metadata-ir 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-runtime 25.0.0", - "sp-state-machine 0.29.0", - "sp-std 9.0.0", - "sp-trie 23.0.0", - "sp-version 23.0.0", + "sp-api-proc-macro", + "sp-core", + "sp-externalities", + "sp-metadata-ir", + "sp-runtime", + "sp-state-machine", + "sp-std", + "sp-trie", + "sp-version", "thiserror", ] @@ -9242,21 +9282,6 @@ dependencies = [ "syn 2.0.29", ] -[[package]] -name = "sp-api-proc-macro" -version = "9.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a062dfff051064bfa1837566b74d00a49050b36e3887b2283ab667cef4f3a85e" -dependencies = [ - "Inflector", - "blake2", - "expander", - "proc-macro-crate", - "proc-macro2", - "quote", - "syn 2.0.29", -] - [[package]] name = "sp-application-crypto" version = "23.0.0" @@ -9265,23 +9290,9 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-std 8.0.0", -] - -[[package]] -name = "sp-application-crypto" -version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b49d62089ef6fdd52a6f90f670d533ccb365235258cf517dbd5bd571febcfbd" -dependencies = [ - "parity-scale-codec", - "scale-info", - "serde", - "sp-core 22.0.0", - "sp-io 24.0.0", - "sp-std 9.0.0", + "sp-core", + "sp-io", + "sp-std", ] [[package]] @@ -9294,22 +9305,7 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-std 8.0.0", - "static_assertions", -] - -[[package]] -name = "sp-arithmetic" -version = "17.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0241327405688cac3fcc29114fd35f99224e321daa37e19920e50e4b2fdd0645" -dependencies = [ - "integer-sqrt", - "num-traits", - "parity-scale-codec", - "scale-info", - "serde", - "sp-std 9.0.0", + "sp-std", "static_assertions", ] @@ -9320,10 +9316,10 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "parity-scale-codec", "scale-info", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-api", + "sp-application-crypto", + "sp-runtime", + "sp-std", ] [[package]] @@ -9331,10 +9327,10 @@ name = "sp-block-builder" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ - "sp-api 4.0.0-dev", + "sp-api", "sp-inherents", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-runtime", + "sp-std", ] [[package]] @@ -9347,11 +9343,11 @@ dependencies = [ "parity-scale-codec", "parking_lot 0.12.1", "schnellru", - "sp-api 4.0.0-dev", + "sp-api", "sp-consensus", "sp-database", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-runtime", + "sp-state-machine", "thiserror", ] @@ -9363,10 +9359,10 @@ dependencies = [ "async-trait", "futures", "log", - "sp-core 21.0.0", + "sp-core", "sp-inherents", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-runtime", + "sp-state-machine", "thiserror", ] @@ -9378,12 +9374,12 @@ dependencies = [ "async-trait", "parity-scale-codec", "scale-info", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", + "sp-api", + "sp-application-crypto", "sp-consensus-slots", "sp-inherents", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-runtime", + "sp-std", "sp-timestamp", ] @@ -9396,13 +9392,13 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", + "sp-api", + "sp-application-crypto", "sp-consensus-slots", - "sp-core 21.0.0", + "sp-core", "sp-inherents", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-runtime", + "sp-std", "sp-timestamp", ] @@ -9416,12 +9412,12 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", - "sp-core 21.0.0", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-api", + "sp-application-crypto", + "sp-core", + "sp-keystore", + "sp-runtime", + "sp-std", ] [[package]] @@ -9432,7 +9428,7 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-std 8.0.0", + "sp-std", "sp-timestamp", ] @@ -9467,58 +9463,12 @@ dependencies = [ "secp256k1", "secrecy", "serde", - "sp-core-hashing 9.0.0", - "sp-debug-derive 8.0.0", - "sp-externalities 0.19.0", - "sp-runtime-interface 17.0.0", - "sp-std 8.0.0", - "sp-storage 13.0.0", - "ss58-registry", - "substrate-bip39", - "thiserror", - "tiny-bip39", - "tracing", - "zeroize", -] - -[[package]] -name = "sp-core" -version = "22.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0de478e02efd547693b33ad02515e09933d5b69b7f3036fa890b92e50fd9dfc" -dependencies = [ - "array-bytes", - "bitflags 1.3.2", - "blake2", - "bounded-collections", - "bs58", - "dyn-clonable", - "ed25519-zebra", - "futures", - "hash-db", - "hash256-std-hasher", - "impl-serde", - "lazy_static", - "libsecp256k1", - "log", - "merlin 2.0.1", - "parity-scale-codec", - "parking_lot 0.12.1", - "paste", - "primitive-types", - "rand 0.8.5", - "regex", - "scale-info", - "schnorrkel", - "secp256k1", - "secrecy", - "serde", - "sp-core-hashing 10.0.0", - "sp-debug-derive 9.0.0", - "sp-externalities 0.20.0", - "sp-runtime-interface 18.0.0", - "sp-std 9.0.0", - "sp-storage 14.0.0", + "sp-core-hashing", + "sp-debug-derive", + "sp-externalities", + "sp-runtime-interface", + "sp-std", + "sp-storage", "ss58-registry", "substrate-bip39", "thiserror", @@ -9540,38 +9490,13 @@ dependencies = [ "twox-hash", ] -[[package]] -name = "sp-core-hashing" -version = "10.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e360755a2706a76886d58776665cad0db793dece3c7d390455b28e8a1efd6285" -dependencies = [ - "blake2b_simd", - "byteorder", - "digest 0.10.7", - "sha2 0.10.7", - "sha3", - "twox-hash", -] - [[package]] name = "sp-core-hashing-proc-macro" version = "9.0.0" source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "quote", - "sp-core-hashing 9.0.0", - "syn 2.0.29", -] - -[[package]] -name = "sp-core-hashing-proc-macro" -version = "10.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8dc707d9f5bf155d584900783e328cb3dc79c950f898a18a8f24066f41f040a5" -dependencies = [ - "quote", - "sp-core-hashing 10.0.0", + "sp-core-hashing", "syn 2.0.29", ] @@ -9594,17 +9519,6 @@ dependencies = [ "syn 2.0.29", ] -[[package]] -name = "sp-debug-derive" -version = "9.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f12dae7cf6c1e825d13ffd4ce16bd9309db7c539929d0302b4443ed451a9f4e5" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.29", -] - [[package]] name = "sp-externalities" version = "0.19.0" @@ -9612,20 +9526,8 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "environmental", "parity-scale-codec", - "sp-std 8.0.0", - "sp-storage 13.0.0", -] - -[[package]] -name = "sp-externalities" -version = "0.20.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3313e2c5f2523b06062e541dff9961bde88ad5a28861621dc7b7b47a32bb0f7c" -dependencies = [ - "environmental", - "parity-scale-codec", - "sp-std 9.0.0", - "sp-storage 14.0.0", + "sp-std", + "sp-storage", ] [[package]] @@ -9637,8 +9539,8 @@ dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "scale-info", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-runtime", + "sp-std", "thiserror", ] @@ -9648,47 +9550,21 @@ version = "23.0.0" source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "bytes", - "ed25519", - "ed25519-dalek", - "libsecp256k1", - "log", - "parity-scale-codec", - "rustversion", - "secp256k1", - "sp-core 21.0.0", - "sp-externalities 0.19.0", - "sp-keystore 0.27.0", - "sp-runtime-interface 17.0.0", - "sp-state-machine 0.28.0", - "sp-std 8.0.0", - "sp-tracing 10.0.0", - "sp-trie 22.0.0", - "tracing", - "tracing-core", -] - -[[package]] -name = "sp-io" -version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff6194309bfe055d93177c6c9d2ed4c7b66040617cf3003a15e509c432cf3b62" -dependencies = [ - "bytes", - "ed25519", - "ed25519-dalek", + "ed25519 1.5.3", + "ed25519-dalek 1.0.1", "libsecp256k1", "log", "parity-scale-codec", "rustversion", "secp256k1", - "sp-core 22.0.0", - "sp-externalities 0.20.0", - "sp-keystore 0.28.0", - "sp-runtime-interface 18.0.0", - "sp-state-machine 0.29.0", - "sp-std 9.0.0", - "sp-tracing 11.0.0", - "sp-trie 23.0.0", + "sp-core", + "sp-externalities", + "sp-keystore", + "sp-runtime-interface", + "sp-state-machine", + "sp-std", + "sp-tracing", + "sp-trie", "tracing", "tracing-core", ] @@ -9699,8 +9575,8 @@ version = "24.0.0" source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "lazy_static", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", "strum", ] @@ -9711,21 +9587,8 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "parity-scale-codec", "parking_lot 0.12.1", - "sp-core 21.0.0", - "sp-externalities 0.19.0", - "thiserror", -] - -[[package]] -name = "sp-keystore" -version = "0.28.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6eda1d2572a15340927a9f7db75ffe74366b645eaf9212015b4a96ad8e9d4c46" -dependencies = [ - "parity-scale-codec", - "parking_lot 0.12.1", - "sp-core 22.0.0", - "sp-externalities 0.20.0", + "sp-core", + "sp-externalities", "thiserror", ] @@ -9738,18 +9601,6 @@ dependencies = [ "zstd 0.12.4", ] -[[package]] -name = "sp-metadata-ir" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0369e75e418bcfdeede4acb92563ef2d514ad0e7d81c350ba9ae98841a237f3c" -dependencies = [ - "frame-metadata", - "parity-scale-codec", - "scale-info", - "sp-std 9.0.0", -] - [[package]] name = "sp-metadata-ir" version = "0.1.0" @@ -9758,7 +9609,7 @@ dependencies = [ "frame-metadata", "parity-scale-codec", "scale-info", - "sp-std 8.0.0", + "sp-std", ] [[package]] @@ -9771,11 +9622,11 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-api 4.0.0-dev", - "sp-core 21.0.0", - "sp-debug-derive 8.0.0", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-api", + "sp-core", + "sp-debug-derive", + "sp-runtime", + "sp-std", "thiserror", ] @@ -9787,10 +9638,10 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-arithmetic", + "sp-core", + "sp-runtime", + "sp-std", ] [[package]] @@ -9798,9 +9649,9 @@ name = "sp-offchain" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ - "sp-api 4.0.0-dev", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-api", + "sp-core", + "sp-runtime", ] [[package]] @@ -9813,17 +9664,6 @@ dependencies = [ "regex", ] -[[package]] -name = "sp-panic-handler" -version = "9.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57c67eb0a0d11d3017ef43c975068ba76c7b0e83aca1ee3d68ba0ce270ecebe7" -dependencies = [ - "backtrace", - "lazy_static", - "regex", -] - [[package]] name = "sp-rpc" version = "6.0.0" @@ -9831,7 +9671,7 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "rustc-hash", "serde", - "sp-core 21.0.0", + "sp-core", ] [[package]] @@ -9848,35 +9688,12 @@ dependencies = [ "rand 0.8.5", "scale-info", "serde", - "sp-application-crypto 23.0.0", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", - "sp-io 23.0.0", - "sp-std 8.0.0", - "sp-weights 20.0.0", -] - -[[package]] -name = "sp-runtime" -version = "25.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d056e4cccf36a45be5d471b47c09e8be91b825f1d8352f20aa01f9f693176e7" -dependencies = [ - "either", - "hash256-std-hasher", - "impl-trait-for-tuples", - "log", - "parity-scale-codec", - "paste", - "rand 0.8.5", - "scale-info", - "serde", - "sp-application-crypto 24.0.0", - "sp-arithmetic 17.0.0", - "sp-core 22.0.0", - "sp-io 24.0.0", - "sp-std 9.0.0", - "sp-weights 21.0.0", + "sp-application-crypto", + "sp-arithmetic", + "sp-core", + "sp-io", + "sp-std", + "sp-weights", ] [[package]] @@ -9888,31 +9705,12 @@ dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "primitive-types", - "sp-externalities 0.19.0", - "sp-runtime-interface-proc-macro 11.0.0", - "sp-std 8.0.0", - "sp-storage 13.0.0", - "sp-tracing 10.0.0", - "sp-wasm-interface 14.0.0", - "static_assertions", -] - -[[package]] -name = "sp-runtime-interface" -version = "18.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf9781c72848efe6750116eb96edaeb105ee7e0bd7f38a4e46371bf810b3db7b" -dependencies = [ - "bytes", - "impl-trait-for-tuples", - "parity-scale-codec", - "primitive-types", - "sp-externalities 0.20.0", - "sp-runtime-interface-proc-macro 12.0.0", - "sp-std 9.0.0", - "sp-storage 14.0.0", - "sp-tracing 11.0.0", - "sp-wasm-interface 15.0.0", + "sp-externalities", + "sp-runtime-interface-proc-macro", + "sp-std", + "sp-storage", + "sp-tracing", + "sp-wasm-interface", "static_assertions", ] @@ -9928,19 +9726,6 @@ dependencies = [ "syn 2.0.29", ] -[[package]] -name = "sp-runtime-interface-proc-macro" -version = "12.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7402572a08aa1ae421ea5bab10918764b0ae72301b27710913e5d804862f2448" -dependencies = [ - "Inflector", - "proc-macro-crate", - "proc-macro2", - "quote", - "syn 2.0.29", -] - [[package]] name = "sp-session" version = "4.0.0-dev" @@ -9948,12 +9733,12 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "parity-scale-codec", "scale-info", - "sp-api 4.0.0-dev", - "sp-core 21.0.0", - "sp-keystore 0.27.0", - "sp-runtime 24.0.0", + "sp-api", + "sp-core", + "sp-keystore", + "sp-runtime", "sp-staking", - "sp-std 8.0.0", + "sp-std", ] [[package]] @@ -9965,9 +9750,9 @@ dependencies = [ "parity-scale-codec", "scale-info", "serde", - "sp-core 21.0.0", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-core", + "sp-runtime", + "sp-std", ] [[package]] @@ -9981,33 +9766,11 @@ dependencies = [ "parking_lot 0.12.1", "rand 0.8.5", "smallvec", - "sp-core 21.0.0", - "sp-externalities 0.19.0", - "sp-panic-handler 8.0.0", - "sp-std 8.0.0", - "sp-trie 22.0.0", - "thiserror", - "tracing", - "trie-db", -] - -[[package]] -name = "sp-state-machine" -version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2e84d8ed3acc6aed5a3d5cfd500fb5b99c1e299c86086b2fe82c3e4be93178f" -dependencies = [ - "hash-db", - "log", - "parity-scale-codec", - "parking_lot 0.12.1", - "rand 0.8.5", - "smallvec", - "sp-core 22.0.0", - "sp-externalities 0.20.0", - "sp-panic-handler 9.0.0", - "sp-std 9.0.0", - "sp-trie 23.0.0", + "sp-core", + "sp-externalities", + "sp-panic-handler", + "sp-std", + "sp-trie", "thiserror", "tracing", "trie-db", @@ -10020,31 +9783,13 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "parity-scale-codec", "scale-info", - "sp-api 4.0.0-dev", - "sp-application-crypto 23.0.0", - "sp-core 21.0.0", - "sp-externalities 0.19.0", - "sp-runtime 24.0.0", - "sp-runtime-interface 17.0.0", - "sp-std 8.0.0", - "thiserror", -] - -[[package]] -name = "sp-statement-store" -version = "4.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7044433e7f65572527a2b871725e64536ff858ea968af903426122d9bd1882f6" -dependencies = [ - "parity-scale-codec", - "scale-info", - "sp-api 20.0.0", - "sp-application-crypto 24.0.0", - "sp-core 22.0.0", - "sp-externalities 0.20.0", - "sp-runtime 25.0.0", - "sp-runtime-interface 18.0.0", - "sp-std 9.0.0", + "sp-api", + "sp-application-crypto", + "sp-core", + "sp-externalities", + "sp-runtime", + "sp-runtime-interface", + "sp-std", "thiserror", ] @@ -10053,12 +9798,6 @@ name = "sp-std" version = "8.0.0" source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" -[[package]] -name = "sp-std" -version = "9.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d5bbc9339227d1b6a9b7ccd9b2920c818653d40eef1512f1e2e824d72e7a336" - [[package]] name = "sp-storage" version = "13.0.0" @@ -10068,22 +9807,8 @@ dependencies = [ "parity-scale-codec", "ref-cast", "serde", - "sp-debug-derive 8.0.0", - "sp-std 8.0.0", -] - -[[package]] -name = "sp-storage" -version = "14.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a21245c3a7799ff6d3f1f159b496f9ac72eb32cd6fe68c6f73013155289aa9f1" -dependencies = [ - "impl-serde", - "parity-scale-codec", - "ref-cast", - "serde", - "sp-debug-derive 9.0.0", - "sp-std 9.0.0", + "sp-debug-derive", + "sp-std", ] [[package]] @@ -10094,8 +9819,8 @@ dependencies = [ "async-trait", "parity-scale-codec", "sp-inherents", - "sp-runtime 24.0.0", - "sp-std 8.0.0", + "sp-runtime", + "sp-std", "thiserror", ] @@ -10105,20 +9830,7 @@ version = "10.0.0" source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "parity-scale-codec", - "sp-std 8.0.0", - "tracing", - "tracing-core", - "tracing-subscriber", -] - -[[package]] -name = "sp-tracing" -version = "11.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f5ba26db1f7513d5975970d1ba1f0580d7a1b8da8c86ea3f9f0f8dbe2cfa96e" -dependencies = [ - "parity-scale-codec", - "sp-std 9.0.0", + "sp-std", "tracing", "tracing-core", "tracing-subscriber", @@ -10129,8 +9841,8 @@ name = "sp-transaction-pool" version = "4.0.0-dev" source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ - "sp-api 4.0.0-dev", - "sp-runtime 24.0.0", + "sp-api", + "sp-runtime", ] [[package]] @@ -10141,11 +9853,11 @@ dependencies = [ "async-trait", "parity-scale-codec", "scale-info", - "sp-core 21.0.0", + "sp-core", "sp-inherents", - "sp-runtime 24.0.0", - "sp-std 8.0.0", - "sp-trie 22.0.0", + "sp-runtime", + "sp-std", + "sp-trie", ] [[package]] @@ -10163,32 +9875,8 @@ dependencies = [ "parking_lot 0.12.1", "scale-info", "schnellru", - "sp-core 21.0.0", - "sp-std 8.0.0", - "thiserror", - "tracing", - "trie-db", - "trie-root", -] - -[[package]] -name = "sp-trie" -version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf63ea90ffb5d61048d8fb2fac669114dac198fc2739e913e615f0fd2c36c3e7" -dependencies = [ - "ahash 0.8.3", - "hash-db", - "hashbrown 0.13.2", - "lazy_static", - "memory-db", - "nohash-hasher", - "parity-scale-codec", - "parking_lot 0.12.1", - "scale-info", - "schnellru", - "sp-core 22.0.0", - "sp-std 9.0.0", + "sp-core", + "sp-std", "thiserror", "tracing", "trie-db", @@ -10205,28 +9893,10 @@ dependencies = [ "parity-wasm", "scale-info", "serde", - "sp-core-hashing-proc-macro 9.0.0", - "sp-runtime 24.0.0", - "sp-std 8.0.0", - "sp-version-proc-macro 8.0.0", - "thiserror", -] - -[[package]] -name = "sp-version" -version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ccae066042a53a83017a2afeee2fd608efa42b564c1a44ea1260d5a2c264ac66" -dependencies = [ - "impl-serde", - "parity-scale-codec", - "parity-wasm", - "scale-info", - "serde", - "sp-core-hashing-proc-macro 10.0.0", - "sp-runtime 25.0.0", - "sp-std 9.0.0", - "sp-version-proc-macro 9.0.0", + "sp-core-hashing-proc-macro", + "sp-runtime", + "sp-std", + "sp-version-proc-macro", "thiserror", ] @@ -10241,18 +9911,6 @@ dependencies = [ "syn 2.0.29", ] -[[package]] -name = "sp-version-proc-macro" -version = "9.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07e569853a50ad02a4b45640e7b96206bcb4569bb85ce7cdf8754a207fcfba54" -dependencies = [ - "parity-scale-codec", - "proc-macro2", - "quote", - "syn 2.0.29", -] - [[package]] name = "sp-wasm-interface" version = "14.0.0" @@ -10262,21 +9920,7 @@ dependencies = [ "impl-trait-for-tuples", "log", "parity-scale-codec", - "sp-std 8.0.0", - "wasmtime", -] - -[[package]] -name = "sp-wasm-interface" -version = "15.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d07945f592d2792632e6f030108769757e928a0fd78cf8659c9c210a5e341e55" -dependencies = [ - "anyhow", - "impl-trait-for-tuples", - "log", - "parity-scale-codec", - "sp-std 9.0.0", + "sp-std", "wasmtime", ] @@ -10289,26 +9933,10 @@ dependencies = [ "scale-info", "serde", "smallvec", - "sp-arithmetic 16.0.0", - "sp-core 21.0.0", - "sp-debug-derive 8.0.0", - "sp-std 8.0.0", -] - -[[package]] -name = "sp-weights" -version = "21.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b7699b853471c2eb5dc06ea1d8ea847bfa1415371218ebb4c86325c9d0232bc" -dependencies = [ - "parity-scale-codec", - "scale-info", - "serde", - "smallvec", - "sp-arithmetic 17.0.0", - "sp-core 22.0.0", - "sp-debug-derive 9.0.0", - "sp-std 9.0.0", + "sp-arithmetic", + "sp-core", + "sp-debug-derive", + "sp-std", ] [[package]] @@ -10480,11 +10108,11 @@ dependencies = [ "parity-scale-codec", "sc-rpc-api", "sc-transaction-pool-api", - "sp-api 4.0.0-dev", + "sp-api", "sp-block-builder", "sp-blockchain", - "sp-core 21.0.0", - "sp-runtime 24.0.0", + "sp-core", + "sp-runtime", ] [[package]] @@ -10523,7 +10151,7 @@ dependencies = [ "log", "sc-rpc-api", "serde", - "sp-runtime 24.0.0", + "sp-runtime", ] [[package]] @@ -10536,10 +10164,10 @@ dependencies = [ "sc-client-api", "sc-rpc-api", "serde", - "sp-core 21.0.0", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", - "sp-trie 22.0.0", + "sp-core", + "sp-runtime", + "sp-state-machine", + "sp-trie", "trie-db", ] @@ -10778,9 +10406,9 @@ dependencies = [ [[package]] name = "time" -version = "0.3.25" +version = "0.3.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0fdd63d58b18d663fbdf70e049f00a22c8e42be082203be7f26589213cd75ea" +checksum = "0bb39ee79a6d8de55f48f2293a830e040392f1c5f16e336bdd1788cd0aadce07" dependencies = [ "deranged", "itoa", @@ -10797,9 +10425,9 @@ checksum = "7300fbefb4dadc1af235a9cef3737cea692a9d97e1b9cbcd4ebdae6f8868e6fb" [[package]] name = "time-macros" -version = "0.2.11" +version = "0.2.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb71511c991639bb078fd5bf97757e03914361c48100d52878b8e52b46fb92cd" +checksum = "733d258752e9303d392b94b75230d07b0b9c489350c69b851fc6c065fde3e8f9" dependencies = [ "time-core", ] @@ -10900,13 +10528,12 @@ dependencies = [ [[package]] name = "tokio-rustls" -version = "0.23.4" +version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c43ee83903113e03984cb9e5cebe6c04a5116269e900e3ddba8f068a62adda59" +checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081" dependencies = [ - "rustls 0.20.8", + "rustls 0.21.6", "tokio", - "webpki 0.22.0", ] [[package]] @@ -11188,7 +10815,7 @@ version = "0.10.0-dev" source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" dependencies = [ "async-trait", - "clap 4.3.23", + "clap 4.3.24", "frame-remote-externalities", "frame-try-runtime", "hex", @@ -11198,22 +10825,22 @@ dependencies = [ "sc-executor", "serde", "serde_json", - "sp-api 4.0.0-dev", + "sp-api", "sp-consensus-aura", "sp-consensus-babe", - "sp-core 21.0.0", - "sp-debug-derive 8.0.0", - "sp-externalities 0.19.0", + "sp-core", + "sp-debug-derive", + "sp-externalities", "sp-inherents", - "sp-io 23.0.0", - "sp-keystore 0.27.0", + "sp-io", + "sp-keystore", "sp-rpc", - "sp-runtime 24.0.0", - "sp-state-machine 0.28.0", + "sp-runtime", + "sp-state-machine", "sp-timestamp", "sp-transaction-storage-proof", - "sp-version 22.0.0", - "sp-weights 20.0.0", + "sp-version", + "sp-weights", "substrate-rpc-client", "zstd 0.12.4", ] @@ -11676,7 +11303,7 @@ dependencies = [ "cranelift-frontend", "cranelift-native", "cranelift-wasm", - "gimli", + "gimli 0.27.3", "log", "object 0.30.4", "target-lexicon", @@ -11695,7 +11322,7 @@ dependencies = [ "anyhow", "cranelift-codegen", "cranelift-native", - "gimli", + "gimli 0.27.3", "object 0.30.4", "target-lexicon", "wasmtime-environ", @@ -11709,7 +11336,7 @@ checksum = "a990198cee4197423045235bf89d3359e69bd2ea031005f4c2d901125955c949" dependencies = [ "anyhow", "cranelift-entity", - "gimli", + "gimli 0.27.3", "indexmap 1.9.3", "log", "object 0.30.4", @@ -11731,7 +11358,7 @@ dependencies = [ "bincode", "cfg-if", "cpp_demangle", - "gimli", + "gimli 0.27.3", "log", "object 0.30.4", "rustc-demangle", @@ -11841,6 +11468,21 @@ dependencies = [ "webpki 0.22.0", ] +[[package]] +name = "webpki-roots" +version = "0.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b03058f88386e5ff5310d9111d53f48b17d732b401aeb83a8d5190f2ac459338" +dependencies = [ + "rustls-webpki 0.100.2", +] + +[[package]] +name = "webpki-roots" +version = "0.25.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "14247bb57be4f377dfb94c72830b8ce8fc6beac03cf4bf7b9732eadd414123fc" + [[package]] name = "webrtc" version = "0.6.0" @@ -11867,7 +11509,7 @@ dependencies = [ "sha2 0.10.7", "stun", "thiserror", - "time 0.3.25", + "time 0.3.27", "tokio", "turn", "url", @@ -12358,7 +12000,7 @@ dependencies = [ "ring", "rusticata-macros", "thiserror", - "time 0.3.25", + "time 0.3.27", ] [[package]] @@ -12376,7 +12018,7 @@ dependencies = [ "oid-registry 0.6.1", "rusticata-macros", "thiserror", - "time 0.3.25", + "time 0.3.27", ] [[package]] @@ -12399,7 +12041,7 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e17bb3549cc1321ae1296b9cdc2698e2b6cb1992adfa19a8c72e5b7a738f44cd" dependencies = [ - "time 0.3.25", + "time 0.3.27", ] [[package]] From c902fc1705dc96e208578e5b1f7eefb1805624ed Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Thu, 24 Aug 2023 18:23:42 +0530 Subject: [PATCH 33/58] Fixed various features of the workspace --- Cargo.lock | 14 +++++++------- node/Cargo.toml | 13 +++++++++++-- node/src/command.rs | 9 +++++++-- pallets/bridges/nomad/da-bridge/Cargo.toml | 7 +++++++ pallets/bridges/nomad/da-bridge/src/lib.rs | 4 ++-- pallets/bridges/nomad/home/Cargo.toml | 4 ++++ pallets/bridges/nomad/updater-manager/Cargo.toml | 4 +++- pallets/dactr/Cargo.toml | 4 +++- pallets/executive/Cargo.toml | 9 ++++++++- runtime/Cargo.toml | 2 ++ runtime/src/migration.rs | 8 +++++--- 11 files changed, 59 insertions(+), 19 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 28addb541..fb11f3c69 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -619,7 +619,7 @@ dependencies = [ [[package]] name = "avail-core" version = "0.5.0" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d4b27e4c327d0ae9f2b28f7bb09d4b164606c22f" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#248ebe65030b8f2c60a1b74ea5f62aecd37c7eb7" dependencies = [ "binary-merkle-tree", "derive_more", @@ -4332,7 +4332,7 @@ dependencies = [ [[package]] name = "kate" version = "0.8.0" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d4b27e4c327d0ae9f2b28f7bb09d4b164606c22f" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#248ebe65030b8f2c60a1b74ea5f62aecd37c7eb7" dependencies = [ "avail-core", "derive_more", @@ -4360,7 +4360,7 @@ dependencies = [ [[package]] name = "kate-recovery" version = "0.9.0" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d4b27e4c327d0ae9f2b28f7bb09d4b164606c22f" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#248ebe65030b8f2c60a1b74ea5f62aecd37c7eb7" dependencies = [ "avail-core", "derive_more", @@ -5556,7 +5556,7 @@ dependencies = [ [[package]] name = "nomad-base" version = "0.1.4" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d4b27e4c327d0ae9f2b28f7bb09d4b164606c22f" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#248ebe65030b8f2c60a1b74ea5f62aecd37c7eb7" dependencies = [ "ethers-signers", "nomad-core", @@ -5572,7 +5572,7 @@ dependencies = [ [[package]] name = "nomad-core" version = "0.1.4" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d4b27e4c327d0ae9f2b28f7bb09d4b164606c22f" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#248ebe65030b8f2c60a1b74ea5f62aecd37c7eb7" dependencies = [ "ethers-core", "ethers-signers", @@ -5635,7 +5635,7 @@ dependencies = [ [[package]] name = "nomad-merkle" version = "0.1.2" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d4b27e4c327d0ae9f2b28f7bb09d4b164606c22f" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#248ebe65030b8f2c60a1b74ea5f62aecd37c7eb7" dependencies = [ "avail-core", "frame-support", @@ -5653,7 +5653,7 @@ dependencies = [ [[package]] name = "nomad-signature" version = "0.1.2" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#d4b27e4c327d0ae9f2b28f7bb09d4b164606c22f" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#248ebe65030b8f2c60a1b74ea5f62aecd37c7eb7" dependencies = [ "elliptic-curve 0.12.3", "ethers-core", diff --git a/node/Cargo.toml b/node/Cargo.toml index 6e2e4e740..847f37844 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -136,13 +136,22 @@ cli = [ runtime-benchmarks = [ "da-runtime/runtime-benchmarks", "frame-system/runtime-benchmarks", + "da-control/runtime-benchmarks", + "nomad-da-bridge/runtime-benchmarks", + "nomad-home/runtime-benchmarks", + "nomad-updater-manager/runtime-benchmarks" ] # Enable features that allow the runtime to be tried and debugged. Name might be subject to change # in the near future. try-runtime = [ - "da-runtime/try-runtime", + "da-runtime/try-runtime", "try-runtime-cli/try-runtime", - "avail-core/try-runtime" + "avail-core/try-runtime", + "da-control/try-runtime", + "frame-system/try-runtime", + "nomad-da-bridge/try-runtime", + "nomad-home/try-runtime", + "nomad-updater-manager/try-runtime" ] diff --git a/node/src/command.rs b/node/src/command.rs index 0d0399e46..f8c37a86f 100644 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -22,6 +22,11 @@ use da_runtime::Block; use frame_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE}; use sc_cli::{Result, SubstrateCli}; use sc_service::PartialComponents; +#[cfg(feature = "try-runtime")] +use { + crate::service::ExecutorDispatch, da_runtime::constants::time::SLOT_DURATION, + try_runtime_cli::block_building_info::substrate_info, +}; use crate::{ chain_spec, @@ -251,12 +256,12 @@ pub fn run() -> Result<()> { let task_manager = sc_service::TaskManager::new(config.tokio_handle.clone(), registry) .map_err(|e| sc_cli::Error::Service(sc_service::Error::Prometheus(e)))?; - + let info_provider = substrate_info(SLOT_DURATION); Ok(( cmd.run::::ExtendHostFunctions, - >>(), + >, _>(Some(info_provider)), task_manager, )) }) diff --git a/pallets/bridges/nomad/da-bridge/Cargo.toml b/pallets/bridges/nomad/da-bridge/Cargo.toml index 905bb6e3f..d0d6472a3 100644 --- a/pallets/bridges/nomad/da-bridge/Cargo.toml +++ b/pallets/bridges/nomad/da-bridge/Cargo.toml @@ -52,6 +52,7 @@ std = [ "nomad-home/std", "nomad-core/std", "avail-core/std", + "nomad-updater-manager/std" ] runtime-benchmarks = [ @@ -59,7 +60,13 @@ runtime-benchmarks = [ "sp-runtime/runtime-benchmarks", "frame-support/runtime-benchmarks", "hex-literal", + "frame-system/runtime-benchmarks", + "nomad-home/runtime-benchmarks", + "nomad-updater-manager/runtime-benchmarks" ] try-runtime = [ "frame-support/try-runtime", + "frame-system/try-runtime", + "nomad-home/try-runtime", + "nomad-updater-manager/try-runtime" ] diff --git a/pallets/bridges/nomad/da-bridge/src/lib.rs b/pallets/bridges/nomad/da-bridge/src/lib.rs index 22f488d33..9d0209a39 100644 --- a/pallets/bridges/nomad/da-bridge/src/lib.rs +++ b/pallets/bridges/nomad/da-bridge/src/lib.rs @@ -14,8 +14,8 @@ pub mod weights; // #[cfg(test)] // mod tests; -#[cfg(feature = "runtime-benchmarks")] -mod benchmarking; +// #[cfg(feature = "runtime-benchmarks")] +// mod benchmarking; #[frame_support::pallet] pub mod pallet { diff --git a/pallets/bridges/nomad/home/Cargo.toml b/pallets/bridges/nomad/home/Cargo.toml index 7cf2118ec..32d87c132 100644 --- a/pallets/bridges/nomad/home/Cargo.toml +++ b/pallets/bridges/nomad/home/Cargo.toml @@ -62,7 +62,11 @@ runtime-benchmarks = [ "frame-support/runtime-benchmarks", "frame-benchmarking", "hex-literal", + "frame-system/runtime-benchmarks", + "nomad-updater-manager/runtime-benchmarks" ] try-runtime = [ "frame-support/try-runtime", + "frame-system/try-runtime", + "nomad-updater-manager/try-runtime" ] diff --git a/pallets/bridges/nomad/updater-manager/Cargo.toml b/pallets/bridges/nomad/updater-manager/Cargo.toml index 6ecf3081a..0ba03579d 100644 --- a/pallets/bridges/nomad/updater-manager/Cargo.toml +++ b/pallets/bridges/nomad/updater-manager/Cargo.toml @@ -40,8 +40,10 @@ std = [ runtime-benchmarks = [ "sp-runtime/runtime-benchmarks", "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks" ] try-runtime = [ "frame-support/try-runtime", - "avail-core/try-runtime" + "avail-core/try-runtime", + "frame-system/try-runtime" ] diff --git a/pallets/dactr/Cargo.toml b/pallets/dactr/Cargo.toml index 34228cdd7..8024f3e68 100644 --- a/pallets/dactr/Cargo.toml +++ b/pallets/dactr/Cargo.toml @@ -59,8 +59,10 @@ runtime-benchmarks = [ "frame-benchmarking", "sp-runtime/runtime-benchmarks", "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks" ] try-runtime = [ "frame-support/try-runtime", - "avail-core/try-runtime" + "avail-core/try-runtime", + "frame-system/try-runtime" ] diff --git a/pallets/executive/Cargo.toml b/pallets/executive/Cargo.toml index ec5ef29a5..05302c835 100644 --- a/pallets/executive/Cargo.toml +++ b/pallets/executive/Cargo.toml @@ -50,4 +50,11 @@ std = [ "sp-std/std", "sp-tracing/std", ] -try-runtime = ["frame-support/try-runtime", "frame-try-runtime/try-runtime", "sp-runtime/try-runtime"] +try-runtime = [ + "frame-support/try-runtime", + "frame-try-runtime/try-runtime", + "sp-runtime/try-runtime", + "frame-system/try-runtime", + "pallet-balances/try-runtime", + "pallet-transaction-payment/try-runtime" +] diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 170e7ea0e..effd6abee 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -219,6 +219,7 @@ runtime-benchmarks = [ "pallet-treasury/runtime-benchmarks", "pallet-utility/runtime-benchmarks", "frame-system-benchmarking/runtime-benchmarks", + "nomad-updater-manager/runtime-benchmarks" ] try-runtime = [ @@ -259,4 +260,5 @@ try-runtime = [ "pallet-transaction-payment/try-runtime", "pallet-tips/try-runtime", "avail-core/try-runtime", + "sp-runtime/try-runtime", ] diff --git a/runtime/src/migration.rs b/runtime/src/migration.rs index 83e7d9d33..5241c9e9d 100644 --- a/runtime/src/migration.rs +++ b/runtime/src/migration.rs @@ -20,6 +20,8 @@ use pallet_nomination_pools::{ MaxPoolMembers, MaxPoolMembersPerPool, MaxPools, MinCreateBond, MinJoinBond, Pallet, }; #[cfg(feature = "try-runtime")] +use sp_runtime::TryRuntimeError; +#[cfg(feature = "try-runtime")] use sp_std::vec::Vec; use crate::Weight; @@ -31,11 +33,11 @@ impl OnRuntimeUpgrade for Migration { fn on_runtime_upgrade() -> Weight { nomination_pools::migrate() } #[cfg(feature = "try-runtime")] - fn pre_upgrade() -> Result, &'static str> { nomination_pools::pre_upgrade() } + fn pre_upgrade() -> Result, TryRuntimeError> { Ok(nomination_pools::pre_upgrade()?) } #[cfg(feature = "try-runtime")] - fn post_upgrade(state: Vec) -> Result<(), &'static str> { - nomination_pools::post_upgrade(state) + fn post_upgrade(prev_count: Vec) -> Result<(), TryRuntimeError> { + Ok(nomination_pools::post_upgrade(prev_count)?) } } From d5c9b9429f00608ad16f37f87a2c59e83aa461dd Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Wed, 30 Aug 2023 11:43:48 +0530 Subject: [PATCH 34/58] refactoring --- pallets/bridges/nomad/da-bridge/src/mock.rs | 20 ++++++++-------- pallets/bridges/nomad/da-bridge/src/tests.rs | 24 ++++++++++---------- 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/pallets/bridges/nomad/da-bridge/src/mock.rs b/pallets/bridges/nomad/da-bridge/src/mock.rs index fd50cb764..309422e51 100644 --- a/pallets/bridges/nomad/da-bridge/src/mock.rs +++ b/pallets/bridges/nomad/da-bridge/src/mock.rs @@ -1,10 +1,10 @@ -use frame_support::weights::Weight; +use frame_support::{parameter_types, traits::ConstU32, weights::Weight}; use frame_system::{self as system, header_builder::da, test_utils::TestRandomness}; use nomad_base::NomadBase; use sp_core::{H160, H256}; use sp_runtime::{ - traits::{BlakeTwo256, ConstU32, IdentityLookup}, - AccountId32, + traits::{BlakeTwo256, IdentityLookup}, + AccountId32, BuildStorage, }; use crate::{self as da_bridge}; @@ -15,7 +15,7 @@ type Block = frame_system::mocking::MockDaBlock; // TODO: add proper config once frame executive mocking has been demonstrated // Configure a mock runtime to test the pallet. -// NOTE: We're getting a error E0275 here beacuse of https://github.com/rust-lang/rust/issues/96634 in rust compiler. +// NOTE: We're getting a error E0275 here beacuse of https://github.com/rust-lang/rust/issues/96634 in rust compiler. // We may need to comment out the tests for this pallet until the above issue is fixed or we find an alternative to GAT for Block. frame_support::construct_runtime!( pub enum Test @@ -27,7 +27,7 @@ frame_support::construct_runtime!( } ); -frame_support::parameter_types! { +parameter_types! { pub const BlockHashCount: u32 = 250; pub BlockWeights: frame_system::limits::BlockWeights = frame_system::limits::BlockWeights::simple_max(Weight::from_parts(1_024, 0)); @@ -68,7 +68,7 @@ impl nomad_updater_manager::Config for Test { type RuntimeEvent = RuntimeEvent; } -frame_support::parameter_types! { +parameter_types! { pub const MaxMessageBodyBytes: u32 = 2048; } @@ -78,7 +78,7 @@ impl nomad_home::Config for Test { type WeightInfo = (); } -frame_support::parameter_types! { +parameter_types! { pub const DABridgePalletId: H256 = H256::zero(); } @@ -113,9 +113,11 @@ impl ExtBuilder { } pub(crate) fn build(self) -> sp_io::TestExternalities { - let mut t = frame_system::GenesisConfig::::default() + let mut t = RuntimeGenesisConfig::default() + .system .build_storage() - .expect("Frame system builds valid default genesis config"); + .unwrap() + .into(); nomad_home::GenesisConfig:: { updater: self.updater, diff --git a/pallets/bridges/nomad/da-bridge/src/tests.rs b/pallets/bridges/nomad/da-bridge/src/tests.rs index 15e554bc0..ddbc23f30 100644 --- a/pallets/bridges/nomad/da-bridge/src/tests.rs +++ b/pallets/bridges/nomad/da-bridge/src/tests.rs @@ -1,5 +1,6 @@ use avail_core::header::{Header, HeaderExtension}; use frame_support::assert_ok; +use frame_system::pallet_prelude::BlockNumberFor; use hex_literal::hex; use nomad_base::testing::*; use nomad_merkle::Merkle; @@ -24,18 +25,17 @@ fn it_accepts_valid_extrinsic_root() { let extension = HeaderExtension::default(); // Create block header for block 10 - let header = - Header::<::Header::BlockNumber, BlakeTwo256> { - parent_hash: [1u8; 32].into(), - number: 10 as u32, - state_root: [2u8; 32].into(), - extrinsics_root: hex!( - "03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c111314" - ) - .into(), - digest: Digest { logs: vec![] }, - extension, - }; + let header = Header::, BlakeTwo256> { + parent_hash: [1u8; 32].into(), + number: 10 as u32, + state_root: [2u8; 32].into(), + extrinsics_root: hex!( + "03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c111314" + ) + .into(), + digest: Digest { logs: vec![] }, + extension, + }; // Insert 10th block's hash into block number --> hash mapping so // submitting 10th block's header is accepted by pallet From 035a1701d3f645dc483db445f5a9cb0980aaed26 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Wed, 30 Aug 2023 21:10:03 +0530 Subject: [PATCH 35/58] Moved (de)serialization of BlockLength to no_std --- node/src/service.rs | 1 + pallets/system/Cargo.toml | 6 +++++- pallets/system/src/lib.rs | 6 ++---- pallets/system/src/limits.rs | 8 ++++---- runtime/Cargo.toml | 2 +- 5 files changed, 13 insertions(+), 10 deletions(-) diff --git a/node/src/service.rs b/node/src/service.rs index 501fd9300..37b430efc 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -155,6 +155,7 @@ pub fn create_extrinsic( } /// Creates a new partial node. +#[allow(clippy::redundant_clone)] #[allow(clippy::type_complexity)] pub fn new_partial( config: &Configuration, diff --git a/pallets/system/Cargo.toml b/pallets/system/Cargo.toml index 131a8f809..ea418c0ef 100644 --- a/pallets/system/Cargo.toml +++ b/pallets/system/Cargo.toml @@ -28,7 +28,7 @@ derive_more = { version = "0.99.17", default-features = false, features = ["from # Substrate codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive"] } scale-info = { version = "2.5.0", default-features = false, features = ["derive", "serde"] } -serde = { version = "1.0.163", default-features = false, features = ["derive", "alloc"] } +serde = { version = "1.0.188", default-features = false, features = ["derive", "alloc"], optional = true } frame-support = { version = "4.0.0-dev", default-features = false } sp-core = { version = "21.0.0", default-features = false, features = ["serde"] } sp-io = { version = "23.0.0", default-features = false } @@ -68,11 +68,15 @@ std = [ runtime-benchmarks = [ "frame-support/runtime-benchmarks", "sp-runtime/runtime-benchmarks", + "serde", ] try-runtime = [ "frame-support/try-runtime", "avail-core/try-runtime" ] +serde = [ + "dep:serde", +] force-rs-merkle = [ "rs_merkle" ] # For testing backward/forward header compatibility. diff --git a/pallets/system/src/lib.rs b/pallets/system/src/lib.rs index b3a0c1a6a..181b35bd5 100644 --- a/pallets/system/src/lib.rs +++ b/pallets/system/src/lib.rs @@ -691,8 +691,6 @@ pub mod pallet { pub _config: sp_std::marker::PhantomData, #[serde(with = "sp_core::bytes")] pub kc_public_params: Vec, - // TODO: Add serialiization support for BlockLength in no_std - #[serde(skip)] pub block_length: limits::BlockLength, } @@ -934,9 +932,9 @@ impl< #[cfg(feature = "runtime-benchmarks")] fn try_successful_origin() -> Result { - let zero_account_id = + let _zero_account_id = AccountId::decode(&mut TrailingZeroInput::zeroes()).map_err(|_| ())?; - let members = Who::sorted_members(); + let _members = Who::sorted_members(); let first_member = match Who::sorted_members().first() { Some(account) => account.clone(), None => AccountId::decode(&mut TrailingZeroInput::zeroes()).map_err(|_| ())?, diff --git a/pallets/system/src/limits.rs b/pallets/system/src/limits.rs index b08f68adb..aa36e597c 100644 --- a/pallets/system/src/limits.rs +++ b/pallets/system/src/limits.rs @@ -35,7 +35,7 @@ use frame_support::{ }; use kate::config::{DATA_CHUNK_SIZE, MAX_BLOCK_COLUMNS, MAX_BLOCK_ROWS}; use scale_info::{build::Fields, Path, Type, TypeInfo}; -#[cfg(feature = "std")] +#[cfg(feature = "serde")] use serde::{Deserialize, Serialize}; use sp_runtime::{traits::Bounded, Perbill, RuntimeDebug}; use sp_runtime_interface::pass_by::PassByCodec; @@ -43,14 +43,14 @@ use sp_std::vec::Vec; use static_assertions::const_assert; /// Block length limit configuration. -#[cfg_attr(feature = "std", derive(Serialize, Deserialize))] +#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] #[derive(RuntimeDebug, PartialEq, Clone, PassByCodec, MaxEncodedLen)] pub struct BlockLength { /// Maximal total length in bytes for each extrinsic class. /// /// In the worst case, the total block length is going to be: /// `MAX(max)` - #[cfg_attr(feature = "std", serde(with = "per_dispatch_class_serde"))] + #[cfg_attr(feature = "serde", serde(with = "per_dispatch_class_serde"))] pub max: PerDispatchClass, pub cols: BlockLengthColumns, pub rows: BlockLengthRows, @@ -155,7 +155,7 @@ impl Decode for BlockLength { } /// This module adds serialization support to `BlockLength::max` field. -#[cfg(feature = "std")] +#[cfg(feature = "serde")] mod per_dispatch_class_serde { use serde::{Deserializer, Serializer}; diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index effd6abee..aef622f4a 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -55,7 +55,7 @@ sp-std = { version = "8.0.0", default-features = false } ## frame dependencies frame-support = { version = "4.0.0-dev", default-features = false } -frame-system = { path = "../pallets/system", default-features = false } +frame-system = { path = "../pallets/system", default-features = false, features = ["serde"] } frame-executive = { version = "4.0.0-dev", default-features = false } frame-try-runtime = { version = "0.10.0-dev", default-features = false, optional = true } From 85f54c502044711bddd9eb9812f975d8c1469002 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Thu, 31 Aug 2023 09:53:52 +0530 Subject: [PATCH 36/58] Updated beefy-merkle-tree name --- Cargo.toml | 4 +--- pallets/system/Cargo.toml | 4 ++-- pallets/system/src/data_root_builder.rs | 4 ++-- pallets/system/src/submitted_data.rs | 2 +- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3eabb2643..b94177025 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,9 +40,7 @@ uint = { git = "https://github.com/paritytech/parity-common.git", tag = "rlp-v0. rlp = { git = "https://github.com/paritytech/parity-common.git", tag = "rlp-v0.5.2" } # Substrate (polkadot-v1.0.0). -# Renamed in the upstream (https://github.com/paritytech/substrate/pull/13076) -# TODO: use the updated name -beefy-merkle-tree = { git = "https://github.com/paritytech/substrate.git/", branch = "polkadot-v1.0.0", package = "binary-merkle-tree" } +binary-merkle-tree = { git = "https://github.com/paritytech/substrate.git/", branch = "polkadot-v1.0.0" } sc-cli = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } sp-core = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } sp-io = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } diff --git a/pallets/system/Cargo.toml b/pallets/system/Cargo.toml index ea418c0ef..1c49bef3c 100644 --- a/pallets/system/Cargo.toml +++ b/pallets/system/Cargo.toml @@ -37,7 +37,7 @@ sp-std = { version = "8.0.0", default-features = false } sp-version = { version = "22.0.0", default-features = false, features = ["serde"] } sp-weights = { version = "20.0.0", default-features = false, features = ["serde"] } sp-runtime-interface = { version = "17", default-features = false } -beefy-merkle-tree = { version = "4.0.0-dev", default-features = false, package = "binary-merkle-tree" } +binary-merkle-tree = { version = "4.0.0-dev", default-features = false } [dev-dependencies] hex-literal = "0.3.1" @@ -63,7 +63,7 @@ std = [ "sp-std/std", "sp-version/std", "sp-weights/std", - "beefy-merkle-tree/std", + "binary-merkle-tree/std", ] runtime-benchmarks = [ "frame-support/runtime-benchmarks", diff --git a/pallets/system/src/data_root_builder.rs b/pallets/system/src/data_root_builder.rs index 15acb7b69..9b900aced 100644 --- a/pallets/system/src/data_root_builder.rs +++ b/pallets/system/src/data_root_builder.rs @@ -50,7 +50,7 @@ pub trait DataRootBuilder { .filter_map(|app_unchecked_extrinsic| { // Filter calls and traces removed calls // @TODO: We could avoid the the copy of data from filter - // once `beefy_merkle_tree::merkelize` becomes public. In that case, + // once `binary_merkle_tree::merkelize` becomes public. In that case, // we could work with iterator and lifescopes, having something like: // // ```Rust @@ -84,7 +84,7 @@ pub trait DataRootBuilder { where I: Iterator>, { - use beefy_merkle_tree::{merkle_root, Hash, Hasher}; + use binary_merkle_tree::{merkle_root, Hash, Hasher}; use sp_io::hashing::sha2_256; #[derive(Copy, Clone)] diff --git a/pallets/system/src/submitted_data.rs b/pallets/system/src/submitted_data.rs index ac291fafa..4d94b722f 100644 --- a/pallets/system/src/submitted_data.rs +++ b/pallets/system/src/submitted_data.rs @@ -1,7 +1,7 @@ use core::fmt::Debug; use avail_core::OpaqueExtrinsic; -use beefy_merkle_tree::{merkle_proof, merkle_root, verify_proof, Leaf, MerkleProof}; +use binary_merkle_tree::{merkle_proof, merkle_root, verify_proof, Leaf, MerkleProof}; use sp_core::H256; use sp_runtime::traits::Keccak256; use sp_std::{cell::RefCell, rc::Rc, vec::Vec}; From 3a65b802679857c390fd017765ce130c8894e861 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Thu, 31 Aug 2023 18:02:01 +0530 Subject: [PATCH 37/58] Changed Runtime from enum to struct everywhere --- pallets/bridges/nomad/da-bridge/src/mock.rs | 2 +- pallets/bridges/nomad/home/src/mock.rs | 3 +-- pallets/bridges/nomad/updater-manager/src/mock.rs | 2 +- pallets/dactr/src/mock.rs | 3 +-- pallets/mocked_runtime/src/lib.rs | 2 +- pallets/system/benches/bench.rs | 2 +- pallets/system/benchmarking/src/mock.rs | 3 +-- pallets/system/src/mock.rs | 2 +- runtime/src/lib.rs | 2 +- 9 files changed, 9 insertions(+), 12 deletions(-) diff --git a/pallets/bridges/nomad/da-bridge/src/mock.rs b/pallets/bridges/nomad/da-bridge/src/mock.rs index 309422e51..7eeeb256d 100644 --- a/pallets/bridges/nomad/da-bridge/src/mock.rs +++ b/pallets/bridges/nomad/da-bridge/src/mock.rs @@ -18,7 +18,7 @@ type Block = frame_system::mocking::MockDaBlock; // NOTE: We're getting a error E0275 here beacuse of https://github.com/rust-lang/rust/issues/96634 in rust compiler. // We may need to comment out the tests for this pallet until the above issue is fixed or we find an alternative to GAT for Block. frame_support::construct_runtime!( - pub enum Test + pub struct Test { System: frame_system::{Pallet, Call, Config, Storage, Event}, UpdaterManager: nomad_updater_manager::{Pallet, Call, Storage, Event}, diff --git a/pallets/bridges/nomad/home/src/mock.rs b/pallets/bridges/nomad/home/src/mock.rs index fd7df6e58..64849257b 100644 --- a/pallets/bridges/nomad/home/src/mock.rs +++ b/pallets/bridges/nomad/home/src/mock.rs @@ -14,8 +14,7 @@ type Block = frame_system::mocking::MockDaBlock; // Configure a mock runtime to test the pallet. frame_support::construct_runtime!( - pub enum Test - { + pub struct Test { System: frame_system, Home: home, UpdaterManager: nomad_updater_manager, diff --git a/pallets/bridges/nomad/updater-manager/src/mock.rs b/pallets/bridges/nomad/updater-manager/src/mock.rs index 0e993a14e..f1a04e5bb 100644 --- a/pallets/bridges/nomad/updater-manager/src/mock.rs +++ b/pallets/bridges/nomad/updater-manager/src/mock.rs @@ -13,7 +13,7 @@ type Block = frame_system::mocking::MockDaBlock; // Configure a mock runtime to test the pallet. frame_support::construct_runtime!( - pub enum Test + pub struct Test { System: frame_system::{Pallet, Call, Config, Storage, Event}, UpdaterManager: updater_manager::{Pallet, Call, Storage, Event}, diff --git a/pallets/dactr/src/mock.rs b/pallets/dactr/src/mock.rs index 582a4a885..f24bd654f 100644 --- a/pallets/dactr/src/mock.rs +++ b/pallets/dactr/src/mock.rs @@ -30,8 +30,7 @@ type Block = frame_system::mocking::MockDaBlock; type BlockNumber = u32; frame_support::construct_runtime!( - pub enum Test - { + pub struct Test { System: frame_system, Utility: pallet_utility, Balances: pallet_balances, diff --git a/pallets/mocked_runtime/src/lib.rs b/pallets/mocked_runtime/src/lib.rs index cb8109dc5..627c0aef5 100644 --- a/pallets/mocked_runtime/src/lib.rs +++ b/pallets/mocked_runtime/src/lib.rs @@ -193,7 +193,7 @@ impl da_control::Config for Runtime { impl custom::custom::Config for Runtime {} construct_runtime!( - pub enum Runtime + pub struct Runtime { System: frame_system, Balances: pallet_balances, diff --git a/pallets/system/benches/bench.rs b/pallets/system/benches/bench.rs index 000030045..9b9d03431 100644 --- a/pallets/system/benches/bench.rs +++ b/pallets/system/benches/bench.rs @@ -51,7 +51,7 @@ type UncheckedExtrinsic = MockUncheckedExtrinsic; type Block = MockDaBlock; frame_support::construct_runtime!( - pub enum Runtime + pub struct Runtime { System: frame_system::{Pallet, Call, Config, Storage, Event}, Module: module::{Pallet, Event}, diff --git a/pallets/system/benchmarking/src/mock.rs b/pallets/system/benchmarking/src/mock.rs index 660932aff..1c8517f6c 100644 --- a/pallets/system/benchmarking/src/mock.rs +++ b/pallets/system/benchmarking/src/mock.rs @@ -37,8 +37,7 @@ type UncheckedExtrinsic = MockUncheckedExtrinsic; type Block = frame_system::mocking::MockDaBlock; frame_support::construct_runtime!( - pub enum Test - { + pub struct Test { System: frame_system, } ); diff --git a/pallets/system/src/mock.rs b/pallets/system/src/mock.rs index 40294e094..cbcf7e73e 100644 --- a/pallets/system/src/mock.rs +++ b/pallets/system/src/mock.rs @@ -29,7 +29,7 @@ type Block = mocking::MockDaBlock; // type BlockNumber = u32; frame_support::construct_runtime!( - pub enum Test + pub struct Test { System: frame_system::{Pallet, Call, Config, Storage, Event}, } diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index eb8bcb105..a7f28172f 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -963,7 +963,7 @@ impl nomad_home::Config for Runtime { // TODO @miguel Aline this with previous order and ID to keep the compatibility. // Create the runtime by composing the FRAME pallets that were previously configured. construct_runtime!( - pub enum Runtime + pub struct Runtime { System: frame_system = 0, Utility: pallet_utility = 1, From 3be7b05e4c576d7795c464b737a3e7b18036e25f Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Thu, 31 Aug 2023 21:21:20 +0530 Subject: [PATCH 38/58] Re-introduced da-bridge to runtime: welcome back:) --- Cargo.lock | 1638 ++++++++++--------- pallets/bridges/nomad/da-bridge/src/lib.rs | 18 +- pallets/bridges/nomad/da-bridge/src/mock.rs | 2 - pallets/system/src/lib.rs | 17 +- runtime/src/lib.rs | 18 +- 5 files changed, 895 insertions(+), 798 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0d37cedc2..2f165782f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -18,7 +18,16 @@ version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a76fd60b23679b7d19bd066031410fb7e458ccc5e958eb5c325888ce4baedc97" dependencies = [ - "gimli", + "gimli 0.27.3", +] + +[[package]] +name = "addr2line" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb" +dependencies = [ + "gimli 0.28.0", ] [[package]] @@ -33,7 +42,7 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7fc95d1bdb8e6666b2b217308eeeb09f2d6728d104be3e31916cc74d15420331" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", ] [[package]] @@ -42,10 +51,20 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b613b8e1e3cf911a086f53f03bf286f52fd7a7258e4fa606f0ef220d39d8877" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", "rand_core 0.6.4", ] +[[package]] +name = "aead" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d122413f284cf2d62fb1b7db97e02edb8cda96d769b16e443a4f6195e35662b0" +dependencies = [ + "crypto-common", + "generic-array 0.14.7", +] + [[package]] name = "aes" version = "0.6.0" @@ -71,29 +90,15 @@ dependencies = [ [[package]] name = "aes" -version = "0.8.2" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "433cfd6710c9986c576a25ca913c39d66a6474107b406f34f91d4a8923395241" +checksum = "ac1f845298e95f983ff1944b728ae08b8cebab80d684f0a832ed0fc74dfa27e2" dependencies = [ "cfg-if", - "cipher 0.4.3", + "cipher 0.4.4", "cpufeatures", ] -[[package]] -name = "aes-gcm" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5278b5fabbb9bd46e24aa69b2fdea62c99088e0a950a9be40e3e0101298f88da" -dependencies = [ - "aead 0.3.2", - "aes 0.6.0", - "cipher 0.2.5", - "ctr 0.6.0", - "ghash 0.3.1", - "subtle", -] - [[package]] name = "aes-gcm" version = "0.9.4" @@ -108,6 +113,20 @@ dependencies = [ "subtle", ] +[[package]] +name = "aes-gcm" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "209b47e8954a928e1d72e86eca7000ebb6655fe1436d33eefc2201cad027e237" +dependencies = [ + "aead 0.5.2", + "aes 0.8.3", + "cipher 0.4.4", + "ctr 0.9.2", + "ghash 0.5.0", + "subtle", +] + [[package]] name = "aes-soft" version = "0.6.4" @@ -140,7 +159,7 @@ version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" dependencies = [ - "getrandom 0.2.8", + "getrandom 0.2.10", "once_cell", "version_check", ] @@ -152,20 +171,26 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f" dependencies = [ "cfg-if", - "getrandom 0.2.8", + "getrandom 0.2.10", "once_cell", "version_check", ] [[package]] name = "aho-corasick" -version = "0.7.20" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac" +checksum = "0c378d78423fdad8089616f827526ee33c19f2fddbd5de1629152c9593ba4783" dependencies = [ "memchr", ] +[[package]] +name = "android-tzdata" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" + [[package]] name = "android_system_properties" version = "0.1.5" @@ -240,9 +265,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.69" +version = "1.0.75" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "224afbd727c3d6e4b90103ece64b8d1b67fbb1973b1046c2281eed3f3803f800" +checksum = "a4668cab20f66d8d020e1fbc0ebe47217433c1b6c8f2040faf858554e394ace6" [[package]] name = "approx" @@ -299,7 +324,7 @@ dependencies = [ "ark-serialize", "ark-std", "derivative", - "digest 0.10.6", + "digest 0.10.7", "itertools 0.10.5", "num-bigint", "num-traits", @@ -352,7 +377,7 @@ checksum = "adb7b85a02b83d2f22f89bd5cac66c9c89474240cb6207cb1efc16d098e822a5" dependencies = [ "ark-serialize-derive", "ark-std", - "digest 0.10.6", + "digest 0.10.7", "num-bigint", ] @@ -385,9 +410,9 @@ checksum = "d9b1c5a481ec30a5abd8dfbd94ab5cf1bb4e9a66be7f1b3b322f2f1170c200fd" [[package]] name = "arrayref" -version = "0.3.6" +version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4c527152e37cf757a3f78aae5a06fbeefdb07ccc535c980a3208ee3060dd544" +checksum = "6b4930d2cb77ce62f89ee5d5289b4ac049559b1c45539271f5ed4fdc7db34545" [[package]] name = "arrayvec" @@ -397,9 +422,9 @@ checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" [[package]] name = "arrayvec" -version = "0.7.2" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6" +checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" [[package]] name = "asn1-rs" @@ -414,14 +439,14 @@ dependencies = [ "num-traits", "rusticata-macros", "thiserror", - "time 0.3.19", + "time 0.3.28", ] [[package]] name = "asn1-rs" -version = "0.5.1" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf6690c370453db30743b373a60ba498fc0d6d83b11f4abfd87a84a075db5dd4" +checksum = "7f6fd5ddaf0351dff5b8da21b2fb4ff8e08ddd02857f0bf69c47639106c0fff0" dependencies = [ "asn1-rs-derive 0.4.0", "asn1-rs-impl", @@ -430,7 +455,7 @@ dependencies = [ "num-traits", "rusticata-macros", "thiserror", - "time 0.3.19", + "time 0.3.28", ] [[package]] @@ -481,32 +506,31 @@ dependencies = [ [[package]] name = "async-io" -version = "1.12.0" +version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c374dda1ed3e7d8f0d9ba58715f924862c63eae6849c92d3a18e7fbde9e2794" +checksum = "0fc5b45d93ef0529756f812ca52e44c221b35341892d3dcc34132ac02f3dd2af" dependencies = [ "async-lock", "autocfg", + "cfg-if", "concurrent-queue", "futures-lite", - "libc", "log", "parking", "polling", + "rustix 0.37.23", "slab", - "socket2 0.4.7", + "socket2 0.4.9", "waker-fn", - "windows-sys 0.42.0", ] [[package]] name = "async-lock" -version = "2.6.0" +version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8101efe8695a6c17e02911402145357e718ac92d3ff88ae8419e84b1707b685" +checksum = "287272293e9d8c41773cec55e365490fe034813a2f172f502d6ddcf75b2f582b" dependencies = [ "event-listener", - "futures-lite", ] [[package]] @@ -522,20 +546,20 @@ dependencies = [ [[package]] name = "async-trait" -version = "0.1.64" +version = "0.1.73" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cd7fce9ba8c3c042128ce72d8b2ddbf3a05747efb67ea0313c635e10bda47a2" +checksum = "bc00ceb34980c03614e35a3a4e218276a0a824e911d07651cd0d858a51e8c0f0" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.29", ] [[package]] name = "asynchronous-codec" -version = "0.6.1" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06a0daa378f5fd10634e44b0a29b2a87b890657658e072a30d6f26e57ddee182" +checksum = "4057f2c32adbb2fc158e22fb38433c8e9bbf76b75a4732c7c0cbaf695fb65568" dependencies = [ "bytes", "futures-sink", @@ -546,9 +570,9 @@ dependencies = [ [[package]] name = "atomic-waker" -version = "1.1.0" +version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "debc29dde2e69f9e47506b525f639ed42300fc014a3e007832592448fa8e4599" +checksum = "1181e1e0d1fce796a03db1ae795d67167da795f9cf4a39c37589e85ef57f26d3" [[package]] name = "atty" @@ -563,9 +587,9 @@ dependencies = [ [[package]] name = "auto_impl" -version = "1.0.1" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a8c1df849285fbacd587de7818cc7d13be6cd2cbcd47a04fb1801b0e2706e33" +checksum = "fee3da8ef1276b0bee5dd1c7258010d8fffd31801447323115a25560e1327b89" dependencies = [ "proc-macro-error", "proc-macro2", @@ -594,7 +618,7 @@ dependencies = [ [[package]] name = "avail-core" version = "0.5.0" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#248ebe65030b8f2c60a1b74ea5f62aecd37c7eb7" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#a185f93b3f98f9b1e653d05a85f4020f756be1e9" dependencies = [ "binary-merkle-tree", "derive_more", @@ -618,16 +642,16 @@ dependencies = [ [[package]] name = "backtrace" -version = "0.3.67" +version = "0.3.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "233d376d6d185f2a3093e58f283f60f880315b6c60075b01f36b3b85154564ca" +checksum = "2089b7e3f35b9dd2d0ed921ead4f6d318c27680d4a5bd167b3ee120edb105837" dependencies = [ - "addr2line", + "addr2line 0.21.0", "cc", "cfg-if", "libc", "miniz_oxide", - "object", + "object 0.32.0", "rustc-demangle", ] @@ -679,15 +703,15 @@ checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" [[package]] name = "base64" -version = "0.21.0" +version = "0.21.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4a4ddaa51a5bc52a6948f74c06d20aaaddb71924eab79b8c97a8c556e942d6a" +checksum = "414dcefbc63d77c526a76b3afcf6fbb9b5e2791c19c3aa2297733208750c6e53" [[package]] name = "base64ct" -version = "1.5.3" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b645a089122eccb6111b4f81cbc1a49f5900ac4666bb93ac027feaecf15607bf" +checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" [[package]] name = "bech32" @@ -783,7 +807,7 @@ version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "46502ad458c9a52b69d4d4d32775c788b7a1b85e8bc9d482d92250fc0e3f8efe" dependencies = [ - "digest 0.10.6", + "digest 0.10.7", ] [[package]] @@ -793,8 +817,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3c2f0dc9a68c6317d884f97cc36cf5a3d20ba14ce404227df55e1af708ab04bc" dependencies = [ "arrayref", - "arrayvec 0.7.2", - "constant_time_eq", + "arrayvec 0.7.4", + "constant_time_eq 0.2.6", ] [[package]] @@ -804,21 +828,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6637f448b9e61dfadbdcbae9a885fadee1f3eaffb1f8d3c1965d3ade8bdfd44f" dependencies = [ "arrayref", - "arrayvec 0.7.2", - "constant_time_eq", + "arrayvec 0.7.4", + "constant_time_eq 0.2.6", ] [[package]] name = "blake3" -version = "1.3.3" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42ae2468a89544a466886840aa467a25b766499f4f04bf7d9fcd10ecee9fccef" +checksum = "199c42ab6972d92c9f8995f086273d25c42fc0f7b2a1fcefba465c1352d25ba5" dependencies = [ "arrayref", - "arrayvec 0.7.2", + "arrayvec 0.7.4", "cc", "cfg-if", - "constant_time_eq", + "constant_time_eq 0.3.0", ] [[package]] @@ -839,16 +863,16 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", ] [[package]] name = "block-buffer" -version = "0.10.3" +version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69cce20737498f97b993470a6e536b8523f0af7892a4f928cceb1ac5e52ebe7e" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", ] [[package]] @@ -907,9 +931,9 @@ checksum = "771fe0050b883fcc3ea2359b1a96bcfbc090b7116eae7c3c512c7a083fdf23d3" [[package]] name = "bstr" -version = "1.3.0" +version = "1.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ffdb39cb703212f3c11973452c2861b972f757b021158f3516ba10f2fa8b2c1" +checksum = "4c2f7349907b712260e64b0afe2f84692af14a454be26187d9df565c7f69266a" dependencies = [ "memchr", "serde", @@ -926,9 +950,9 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.12.0" +version = "3.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d261e256854913907f67ed06efbc3338dfe6179796deefc1ff763fc1aee5535" +checksum = "a3e2c3daef883ecc1b5d58c15adae93470a91d425f3532ba1695849656af3fc1" [[package]] name = "byte-slice-cast" @@ -1000,7 +1024,7 @@ checksum = "eee4243f1f26fc7a42710e7439c149e2b10b05472f88090acce52632f231a73a" dependencies = [ "camino", "cargo-platform", - "semver 1.0.16", + "semver 1.0.18", "serde", "serde_json", "thiserror", @@ -1014,11 +1038,12 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5" [[package]] name = "cc" -version = "1.0.79" +version = "1.0.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f" +checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0" dependencies = [ "jobserver", + "libc", ] [[package]] @@ -1089,17 +1114,17 @@ dependencies = [ [[package]] name = "chrono" -version = "0.4.23" +version = "0.4.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16b0a3d9ed01224b22057780a37bb8c5dbfe1be8ba48678e7bf57ec4b385411f" +checksum = "95ed24df0632f708f5f6d8082675bef2596f7084dee3dd55f632290bf35bfe0f" dependencies = [ + "android-tzdata", "iana-time-zone", "js-sys", - "num-integer", "num-traits", "time 0.1.45", "wasm-bindgen", - "winapi", + "windows-targets 0.48.5", ] [[package]] @@ -1148,7 +1173,7 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "12f8e7987cbd042a63249497f41aed09f8e65add917ea6566effbc56578d6801" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", ] [[package]] @@ -1157,14 +1182,14 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ee52072ec15386f770805afd189a01c8841be8696bed250fa2f13c4c0d6dfb7" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", ] [[package]] name = "cipher" -version = "0.4.3" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1873270f8f7942c191139cb8a40fd228da6c3fd2fc376d7e92d47aa14aeb59e" +checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" dependencies = [ "crypto-common", "inout", @@ -1181,9 +1206,9 @@ dependencies = [ [[package]] name = "clang-sys" -version = "1.6.0" +version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77ed9a53e5d4d9c573ae844bfac6872b159cb1d1585a83b29e7a64b7eef7332a" +checksum = "c688fc74432808e3eb684cae8830a86be1d66a2bd58e1f248ed0960a590baf6f" dependencies = [ "glob", "libc", @@ -1198,7 +1223,7 @@ checksum = "4ea181bf566f71cb9a5d17a59e1871af638180a18fb0035c92ae62b705207123" dependencies = [ "bitflags 1.3.2", "clap_lex 0.2.4", - "indexmap 1.9.2", + "indexmap 1.9.3", "textwrap", ] @@ -1227,9 +1252,9 @@ dependencies = [ [[package]] name = "clap_complete" -version = "4.1.3" +version = "4.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0012995dc3a54314f4710f5631d74767e73c534b8757221708303e48eef7a19b" +checksum = "586a385f7ef2f8b4d86bddaa0c094794e7ccbfe5ffef1f434fe928143fc783a5" dependencies = [ "clap 4.4.1", ] @@ -1280,13 +1305,13 @@ dependencies = [ "bincode", "bs58", "coins-core", - "digest 0.10.6", - "getrandom 0.2.8", + "digest 0.10.7", + "getrandom 0.2.10", "hmac 0.12.1", "k256 0.11.6", "lazy_static", "serde", - "sha2 0.10.6", + "sha2 0.10.7", "thiserror", ] @@ -1298,12 +1323,12 @@ checksum = "2a11892bcac83b4c6e95ab84b5b06c76d9d70ad73548dd07418269c5c7977171" dependencies = [ "bitvec 0.17.4", "coins-bip32", - "getrandom 0.2.8", + "getrandom 0.2.10", "hex", "hmac 0.12.1", "pbkdf2 0.11.0", "rand 0.8.5", - "sha2 0.10.6", + "sha2 0.10.7", "thiserror", ] @@ -1317,13 +1342,13 @@ dependencies = [ "base64 0.12.3", "bech32", "blake2", - "digest 0.10.6", - "generic-array 0.14.6", + "digest 0.10.7", + "generic-array 0.14.7", "hex", "ripemd", "serde", "serde_derive", - "sha2 0.10.6", + "sha2 0.10.7", "sha3", "thiserror", ] @@ -1347,9 +1372,9 @@ dependencies = [ [[package]] name = "concurrent-queue" -version = "2.1.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c278839b831783b70278b14df4d45e1beb1aad306c07bb796637de9a0e323e8e" +checksum = "62ec6771ecfa0762d24683ee5a32ad78487a3d3afdc0fb8cae19d2c5deb50b7c" dependencies = [ "crossbeam-utils", ] @@ -1389,7 +1414,7 @@ version = "0.1.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d7d6ab3c3a2282db210df5f02c4dab6e0a7057af0fb7ebd4070f30fe05c0ddb" dependencies = [ - "getrandom 0.2.8", + "getrandom 0.2.10", "once_cell", "proc-macro-hack", "tiny-keccak", @@ -1397,9 +1422,15 @@ dependencies = [ [[package]] name = "constant_time_eq" -version = "0.2.4" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3ad85c1f65dc7b37604eb0e89748faf0b9653065f2a8ef69f96a687ec1e9279" +checksum = "21a53c0a4d288377e7415b53dcfc3c04da5cdc2cc95c8d5ac178b58f0b861ad6" + +[[package]] +name = "constant_time_eq" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7144d30dcf0fafbce74250a3963025d8d52177934239851c917d29f1df280c2" [[package]] name = "convert_case" @@ -1428,9 +1459,9 @@ dependencies = [ [[package]] name = "core-foundation-sys" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc" +checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa" [[package]] name = "core2" @@ -1459,12 +1490,6 @@ dependencies = [ "libc", ] -[[package]] -name = "cpuid-bool" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcb25d077389e53838a8158c8e99174c5a9d902dee4904320db714f3c653ffba" - [[package]] name = "cranelift-bforest" version = "0.95.1" @@ -1486,7 +1511,7 @@ dependencies = [ "cranelift-codegen-shared", "cranelift-entity", "cranelift-isle", - "gimli", + "gimli 0.27.3", "hashbrown 0.13.2", "log", "regalloc2", @@ -1625,9 +1650,9 @@ dependencies = [ [[package]] name = "crossbeam-channel" -version = "0.5.6" +version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2dd04ddaf88237dc3b8d8f9a3c1004b506b54b3313403944054d23c0870c521" +checksum = "a33c2bf77f2df06183c3aa30d1e96c0695a313d4f9c453cc3762a6db39f99200" dependencies = [ "cfg-if", "crossbeam-utils", @@ -1635,9 +1660,9 @@ dependencies = [ [[package]] name = "crossbeam-deque" -version = "0.8.2" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "715e8152b692bba2d374b53d4875445368fdf21a94751410af607a5ac677d1fc" +checksum = "ce6fd6f855243022dcecf8702fef0c297d4338e226845fe067f6341ad9fa0cef" dependencies = [ "cfg-if", "crossbeam-epoch", @@ -1646,22 +1671,22 @@ dependencies = [ [[package]] name = "crossbeam-epoch" -version = "0.9.13" +version = "0.9.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01a9af1f4c2ef74bb8aa1f7e19706bc72d03598c8a570bb5de72243c7a9d9d5a" +checksum = "ae211234986c545741a7dc064309f67ee1e5ad243d0e48335adc0484d960bcc7" dependencies = [ "autocfg", "cfg-if", "crossbeam-utils", - "memoffset 0.7.1", + "memoffset 0.9.0", "scopeguard", ] [[package]] name = "crossbeam-utils" -version = "0.8.14" +version = "0.8.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fb766fa798726286dbbb842f174001dab8abc7b627a1dd86e0b7222a95d929f" +checksum = "5a22b2d63d4d1dc0b7f1b6b2747dd0088008a9be28b6ddf0b1e7d335e3037294" dependencies = [ "cfg-if", ] @@ -1678,7 +1703,7 @@ version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ef2b4b23cddf68b89b8f8069890e8c270d54e2d5fe1b143820234805e4cb17ef" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", "rand_core 0.6.4", "subtle", "zeroize", @@ -1690,7 +1715,7 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf4c2f4e1afd912bc40bfd6fed5d9dc1f288e0ba01bfcc835cc5bc3eb13efe15" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", "rand_core 0.6.4", "subtle", "zeroize", @@ -1702,7 +1727,8 @@ version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", + "rand_core 0.6.4", "typenum", ] @@ -1712,17 +1738,7 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab" dependencies = [ - "generic-array 0.14.6", - "subtle", -] - -[[package]] -name = "crypto-mac" -version = "0.10.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bff07008ec701e8028e2ceb8f83f0e4274ee62bd2dbdc4fefff2e9a91824081a" -dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", "subtle", ] @@ -1732,19 +1748,10 @@ version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b1d1a86f49236c215f271d40892d5fc950490551400b02ef360692c29815c714" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", "subtle", ] -[[package]] -name = "ctr" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb4a30d54f7443bf3d6191dcd486aca19e67cb3c49fa7a06a319966346707e7f" -dependencies = [ - "cipher 0.2.5", -] - [[package]] name = "ctr" version = "0.8.0" @@ -1760,7 +1767,7 @@ version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0369ee1ad671834580515889b80f2ea915f23b8be8d0daa4bbaf2ac5c7590835" dependencies = [ - "cipher 0.4.3", + "cipher 0.4.4", ] [[package]] @@ -1798,7 +1805,7 @@ dependencies = [ "cfg-if", "cpufeatures", "curve25519-dalek-derive", - "digest 0.10.6", + "digest 0.10.7", "fiat-crypto", "platforms", "rustc_version", @@ -1819,9 +1826,9 @@ dependencies = [ [[package]] name = "cxx" -version = "1.0.91" +version = "1.0.107" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86d3488e7665a7a483b57e25bdd90d0aeb2bc7608c8d0346acf2ad3f1caf1d62" +checksum = "bbe98ba1789d56fb3db3bee5e032774d4f421b685de7ba703643584ba24effbe" dependencies = [ "cc", "cxxbridge-flags", @@ -1831,9 +1838,9 @@ dependencies = [ [[package]] name = "cxx-build" -version = "1.0.91" +version = "1.0.107" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48fcaf066a053a41a81dfb14d57d99738b767febb8b735c3016e469fac5da690" +checksum = "c4ce20f6b8433da4841b1dadfb9468709868022d829d5ca1f2ffbda928455ea3" dependencies = [ "cc", "codespan-reporting", @@ -1841,24 +1848,24 @@ dependencies = [ "proc-macro2", "quote", "scratch", - "syn 1.0.109", + "syn 2.0.29", ] [[package]] name = "cxxbridge-flags" -version = "1.0.91" +version = "1.0.107" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2ef98b8b717a829ca5603af80e1f9e2e48013ab227b68ef37872ef84ee479bf" +checksum = "20888d9e1d2298e2ff473cee30efe7d5036e437857ab68bbfea84c74dba91da2" [[package]] name = "cxxbridge-macro" -version = "1.0.91" +version = "1.0.107" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "086c685979a698443656e5cf7856c95c642295a38599f12fb1ff76fb28d19892" +checksum = "2fa16a70dd58129e4dfffdff535fb1bce66673f7bbeec4a5a1765a504e1ccd84" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.29", ] [[package]] @@ -1968,9 +1975,9 @@ dependencies = [ [[package]] name = "darling" -version = "0.14.3" +version = "0.14.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0808e1bd8671fb44a113a14e13497557533369847788fa2ae912b6ebfce9fa8" +checksum = "7b750cb3417fd1b327431a470f388520309479ab0bf5e323505daf0290cd3850" dependencies = [ "darling_core", "darling_macro", @@ -1978,9 +1985,9 @@ dependencies = [ [[package]] name = "darling_core" -version = "0.14.3" +version = "0.14.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "001d80444f28e193f30c2f293455da62dcf9a6b29918a4253152ae2b1de592cb" +checksum = "109c1ca6e6b7f82cc233a97004ea8ed7ca123a9af07a8230878fcfda9b158bf0" dependencies = [ "fnv", "ident_case", @@ -1992,9 +1999,9 @@ dependencies = [ [[package]] name = "darling_macro" -version = "0.14.3" +version = "0.14.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b36230598a2d5de7ec1c6f51f72d8a99a9208daff41de2084d06e3fd3ea56685" +checksum = "a4aab4dbc9f7611d8b55048a3a16d2d010c2c8334e46304b40ac1cc14bf3b48e" dependencies = [ "darling_core", "quote", @@ -2092,15 +2099,15 @@ dependencies = [ [[package]] name = "data-encoding" -version = "2.3.3" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23d8666cb01533c39dde32bcbab8e227b4ed6679b2c925eba05feabea39508fb" +checksum = "c2e66c9d817f1720209181c316d28635c050fa304f9c79e47a520882661b7308" [[package]] name = "data-encoding-macro" -version = "0.1.12" +version = "0.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86927b7cd2fe88fa698b87404b287ab98d1a0063a34071d92e575b72d3029aca" +checksum = "c904b33cc60130e1aeea4956ab803d08a3f4a0ca82d64ed757afac3891f2bb99" dependencies = [ "data-encoding", "data-encoding-macro-internal", @@ -2108,9 +2115,9 @@ dependencies = [ [[package]] name = "data-encoding-macro-internal" -version = "0.1.10" +version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5bbed42daaa95e780b60a50546aa345b8413a1e46f9a40a12907d3598f038db" +checksum = "8fdf3fce3ce863539ec1d7fd1b6dcc3c645663376b43ed376bbf887733e4f772" dependencies = [ "data-encoding", "syn 1.0.109", @@ -2153,11 +2160,11 @@ dependencies = [ [[package]] name = "der-parser" -version = "8.1.0" +version = "8.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42d4bc9b0db0a0df9ae64634ac5bdefb7afcb534e182275ca0beadbe486701c1" +checksum = "dbd676fbbab537128ef0278adb5576cf363cff6aa22a7b24effe97347cfab61e" dependencies = [ - "asn1-rs 0.5.1", + "asn1-rs 0.5.2", "displaydoc", "nom", "num-bigint", @@ -2165,6 +2172,12 @@ dependencies = [ "rusticata-macros", ] +[[package]] +name = "deranged" +version = "0.3.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2696e8a945f658fd14dc3b87242e6b80cd0f36ff04ea560fa39082368847946" + [[package]] name = "derivative" version = "2.2.0" @@ -2263,16 +2276,16 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", ] [[package]] name = "digest" -version = "0.10.6" +version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8168378f4e5023e7218c89c891c0fd8ecdb5e5e4f18cb78f38cf245dd021e76f" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ - "block-buffer 0.10.3", + "block-buffer 0.10.4", "const-oid", "crypto-common", "subtle", @@ -2321,13 +2334,13 @@ dependencies = [ [[package]] name = "displaydoc" -version = "0.2.3" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3bf95dc3f046b9da4f2d51833c0d3547d8564ef6910f5c1ed130306a75b92886" +checksum = "487585f4d0c6655fe74905e2504d8ad6908e4db67f744eb140876906c2f3175d" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.29", ] [[package]] @@ -2338,15 +2351,15 @@ checksum = "1435fa1053d8b2fbbe9be7e97eca7f33d37b28409959813daefc1446a14247f1" [[package]] name = "dtoa" -version = "1.0.5" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c00704156a7de8df8da0911424e30c2049957b0a714542a44e05fe693dd85313" +checksum = "dcbb2bf8e87535c23f7a8a321e364ce21462d0ff10cb6407820e8e96dfff6653" [[package]] name = "dusk-bls12_381" -version = "0.11.2" +version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41fc81248ab76f1739dd4241ea2e7037a4d4cb0bd170443a7049e13b0e09acd6" +checksum = "81cded349291dd4620fd02065cc0fb9a1da7bea8cfe479e0dd067a4cd87225ea" dependencies = [ "byteorder", "dusk-bytes", @@ -2415,9 +2428,9 @@ dependencies = [ [[package]] name = "dyn-clone" -version = "1.0.10" +version = "1.0.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9b0705efd4599c15a38151f4721f7bc388306f61084d3bfd50bd07fbca5cb60" +checksum = "bbfc4744c1b8f2a09adc0e55242f60b1af195d88596bd8700be74418c056c555" [[package]] name = "ecdsa" @@ -2433,12 +2446,12 @@ dependencies = [ [[package]] name = "ecdsa" -version = "0.16.7" +version = "0.16.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0997c976637b606099b9985693efa3581e84e41f5c11ba5255f88711058ad428" +checksum = "a4b1e0c257a9e9f25f90ff76d7a68360ed497ee519c8e428d1825ef0000799d4" dependencies = [ "der 0.7.8", - "digest 0.10.6", + "digest 0.10.7", "elliptic-curve 0.13.5", "rfc6979 0.4.0", "signature 2.1.0", @@ -2486,7 +2499,7 @@ dependencies = [ "ed25519 2.2.2", "rand_core 0.6.4", "serde", - "sha2 0.10.6", + "sha2 0.10.7", "zeroize", ] @@ -2506,9 +2519,9 @@ dependencies = [ [[package]] name = "either" -version = "1.8.1" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91" +checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" [[package]] name = "elliptic-curve" @@ -2519,9 +2532,9 @@ dependencies = [ "base16ct 0.1.1", "crypto-bigint 0.4.9", "der 0.6.1", - "digest 0.10.6", + "digest 0.10.7", "ff 0.12.1", - "generic-array 0.14.6", + "generic-array 0.14.7", "group 0.12.1", "hkdf", "pem-rfc7468", @@ -2540,13 +2553,13 @@ checksum = "968405c8fdc9b3bf4df0a6638858cc0b52462836ab6b1c87377785dd09cf1c0b" dependencies = [ "base16ct 0.2.0", "crypto-bigint 0.5.2", - "digest 0.10.6", + "digest 0.10.7", "ff 0.13.0", - "generic-array 0.14.6", + "generic-array 0.14.7", "group 0.13.0", "pkcs8 0.10.2", "rand_core 0.6.4", - "sec1 0.7.1", + "sec1 0.7.3", "subtle", "zeroize", ] @@ -2609,13 +2622,13 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "errno" -version = "0.2.8" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f639046355ee4f37944e44f60642c6f3a7efa3cf6b78c78a0d989a8ce6c396a1" +checksum = "136526188508e25c6fef639d7927dfb3e0e3084488bf202267829cf7fc23dbdd" dependencies = [ "errno-dragonfly", "libc", - "winapi", + "windows-sys 0.48.0", ] [[package]] @@ -2634,9 +2647,9 @@ version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1fda3bf123be441da5260717e0661c25a2fd9cb2b2c1d20bf2e05580047158ab" dependencies = [ - "aes 0.8.2", + "aes 0.8.3", "ctr 0.9.2", - "digest 0.10.6", + "digest 0.10.7", "hex", "hmac 0.12.1", "pbkdf2 0.11.0", @@ -2644,7 +2657,7 @@ dependencies = [ "scrypt", "serde", "serde_json", - "sha2 0.10.6", + "sha2 0.10.7", "sha3", "thiserror", "uuid 0.8.2", @@ -2704,13 +2717,13 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ade3e9c97727343984e1ceada4fdab11142d2ee3472d2c67027d56b1251d4f15" dependencies = [ - "arrayvec 0.7.2", + "arrayvec 0.7.4", "bytes", "chrono", "convert_case 0.6.0", "elliptic-curve 0.12.3", "ethabi", - "generic-array 0.14.6", + "generic-array 0.14.7", "hex", "k256 0.11.6", "open-fastrlp", @@ -2741,7 +2754,7 @@ dependencies = [ "ethers-core", "hex", "rand 0.8.5", - "sha2 0.10.6", + "sha2 0.10.7", "thiserror", ] @@ -2794,6 +2807,12 @@ dependencies = [ "instant", ] +[[package]] +name = "fastrand" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6999dc1837253364c2ebb0704ba97994bd874e8f195d665c50b7548f6ea92764" + [[package]] name = "fdlimit" version = "0.2.1" @@ -2887,9 +2906,9 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "flate2" -version = "1.0.25" +version = "1.0.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8a2db397cb1c8772f31494cb8917e48cd1e64f0fa7efac59fbd741a0a8ce841" +checksum = "c6c98ee8095e9d1dcbf2fcc6d95acccb90d1c81db1e44725c6a984b1dbdfb010" dependencies = [ "crc32fast", "libz-sys", @@ -2921,9 +2940,9 @@ dependencies = [ [[package]] name = "form_urlencoded" -version = "1.1.0" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9c384f161156f5260c24a097c56119f9be8c798586aecc13afbcbe7b7e26bf8" +checksum = "a62bc1cf6f830c2ec14a513a9fb124d0a213a629668a4186f329db21fe045652" dependencies = [ "percent-encoding", ] @@ -3305,11 +3324,11 @@ checksum = "4fff74096e71ed47f8e023204cfd0aa1289cd54ae5430a9523be060cdb849964" [[package]] name = "futures-lite" -version = "1.12.0" +version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7694489acd39452c77daa48516b894c153f192c3578d5a839b62c58099fcbf48" +checksum = "49a9d51ce47660b1e808d3c990b4709f2f415d928835a17dfd16991515c46bce" dependencies = [ - "fastrand", + "fastrand 1.9.0", "futures-core", "futures-io", "memchr", @@ -3336,8 +3355,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d2411eed028cdf8c8034eaf21f9915f956b6c3abec4d4c7949ee67f0721127bd" dependencies = [ "futures-io", - "rustls 0.20.8", - "webpki 0.22.0", + "rustls 0.20.9", + "webpki 0.22.1", ] [[package]] @@ -3400,9 +3419,9 @@ dependencies = [ [[package]] name = "generic-array" -version = "0.14.6" +version = "0.14.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bff49e947297f3312447abdca79f45f4738097cc82b06e72054d2223f601f1b9" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" dependencies = [ "typenum", "version_check", @@ -3432,9 +3451,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.8" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31" +checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427" dependencies = [ "cfg-if", "js-sys", @@ -3445,35 +3464,41 @@ dependencies = [ [[package]] name = "ghash" -version = "0.3.1" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97304e4cd182c3846f7575ced3890c53012ce534ad9114046b0a9e00bb30a375" +checksum = "1583cc1656d7839fd3732b80cf4f38850336cdb9b8ded1cd399ca62958de3c99" dependencies = [ "opaque-debug 0.3.0", - "polyval 0.4.5", + "polyval 0.5.3", ] [[package]] name = "ghash" -version = "0.4.4" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1583cc1656d7839fd3732b80cf4f38850336cdb9b8ded1cd399ca62958de3c99" +checksum = "d930750de5717d2dd0b8c0d42c076c0e884c81a73e6cab859bbd2339c71e3e40" dependencies = [ "opaque-debug 0.3.0", - "polyval 0.5.3", + "polyval 0.6.1", ] [[package]] name = "gimli" -version = "0.27.2" +version = "0.27.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad0a93d233ebf96623465aad4046a8d3aa4da22d4f4beba5388838c8a434bbb4" +checksum = "b6c80984affa11d98d1b88b66ac8853f143217b399d3c74116778ff8fdb4ed2e" dependencies = [ "fallible-iterator", - "indexmap 1.9.2", + "indexmap 1.9.3", "stable_deref_trait", ] +[[package]] +name = "gimli" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6fb8d784f27acf97159b40fc4db5ecd8aa23b9ad5ef69cdd136d3bc80665f0c0" + [[package]] name = "glob" version = "0.3.1" @@ -3482,9 +3507,9 @@ checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" [[package]] name = "globset" -version = "0.4.10" +version = "0.4.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "029d74589adefde59de1a0c4f4732695c32805624aec7b68d91503d4dba79afc" +checksum = "759c97c1e17c55525b57192c06a267cda0ac5210b222d6b82189a2338fa1c13d" dependencies = [ "aho-corasick", "bstr", @@ -3527,9 +3552,9 @@ dependencies = [ [[package]] name = "gloo-utils" -version = "0.1.6" +version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8e8fc851e9c7b9852508bc6e3f690f452f474417e8545ec9857b7f7377036b5" +checksum = "037fcb07216cb3a30f7292bd0176b050b7b9a052ba830ef7d5d65f6dc64ba58e" dependencies = [ "js-sys", "serde", @@ -3562,9 +3587,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.3.15" +version = "0.3.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f9f29bc9dda355256b2916cf526ab02ce0aeaaaf2bad60d65ef3f12f11dd0f4" +checksum = "91fc23aa11be92976ef4729127f1a74adf36d8436f7816b185d18df956790833" dependencies = [ "bytes", "fnv", @@ -3572,7 +3597,7 @@ dependencies = [ "futures-sink", "futures-util", "http", - "indexmap 1.9.2", + "indexmap 1.9.3", "slab", "tokio", "tokio-util", @@ -3587,9 +3612,9 @@ checksum = "eabb4a44450da02c90444cf74558da904edde8fb4e9035a9a6a4e15445af0bd7" [[package]] name = "handlebars" -version = "4.3.6" +version = "4.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "035ef95d03713f2c347a72547b7cd38cbc9af7cd51e6099fb62d586d4a6dee3a" +checksum = "83c3372087601b532857d332f5957cbae686da52bb7810bf038c3e3c3cc2fa0d" dependencies = [ "log", "pest", @@ -3664,18 +3689,9 @@ dependencies = [ [[package]] name = "hermit-abi" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7" -dependencies = [ - "libc", -] - -[[package]] -name = "hermit-abi" -version = "0.3.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286" +checksum = "443144c8cdadd93ebf52ddb4056d257f5b52c04d3c804e657d19eb73fc33668b" [[package]] name = "hex" @@ -3711,16 +3727,6 @@ dependencies = [ "digest 0.9.0", ] -[[package]] -name = "hmac" -version = "0.10.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1441c6b1e930e2817404b5046f1f989899143a12bf92de603b69f4e0aee1e15" -dependencies = [ - "crypto-mac 0.10.1", - "digest 0.9.0", -] - [[package]] name = "hmac" version = "0.11.0" @@ -3737,7 +3743,7 @@ version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" dependencies = [ - "digest 0.10.6", + "digest 0.10.7", ] [[package]] @@ -3747,7 +3753,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "17ea0a1394df5b6574da6e0c1ade9e78868c9fb0a4e5ef4428e32da4676b85b1" dependencies = [ "digest 0.9.0", - "generic-array 0.14.6", + "generic-array 0.14.7", "hmac 0.8.1", ] @@ -3786,9 +3792,9 @@ dependencies = [ [[package]] name = "http-range-header" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0bfe8eed0a9285ef776bb792479ea3834e8b94e13d615c2f66d03dd50a435a29" +checksum = "add0ab9360ddbd88cfeb3bd9574a1d85cfdfa14db10b3e21d3700dbc4328758f" [[package]] name = "httparse" @@ -3798,9 +3804,9 @@ checksum = "d897f394bad6a705d5f4104762e116a75639e470d80901eed05a860a95cb1904" [[package]] name = "httpdate" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421" +checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" [[package]] name = "humantime" @@ -3810,9 +3816,9 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "hyper" -version = "0.14.24" +version = "0.14.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e011372fa0b68db8350aa7a248930ecc7839bf46d8485577d69f117a75f164c" +checksum = "ffb1cfd654a8219eaef89881fdb3bb3b1cdc5fa75ded05d6933b2b382e395468" dependencies = [ "bytes", "futures-channel", @@ -3825,7 +3831,7 @@ dependencies = [ "httpdate", "itoa", "pin-project-lite 0.2.13", - "socket2 0.4.7", + "socket2 0.4.9", "tokio", "tower-service", "tracing", @@ -3834,42 +3840,42 @@ dependencies = [ [[package]] name = "hyper-rustls" -version = "0.23.2" +version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1788965e61b367cd03a62950836d5cd41560c3577d90e40e0819373194d1661c" +checksum = "8d78e1e73ec14cf7375674f74d7dde185c8206fd9dea6fb6295e8a98098aaa97" dependencies = [ + "futures-util", "http", "hyper", "log", - "rustls 0.20.8", + "rustls 0.21.7", "rustls-native-certs", "tokio", "tokio-rustls", - "webpki-roots", + "webpki-roots 0.23.1", ] [[package]] name = "iana-time-zone" -version = "0.1.53" +version = "0.1.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64c122667b287044802d6ce17ee2ddf13207ed924c712de9a66a5814d5b64765" +checksum = "2fad5b825842d2b38bd206f3e81d6957625fd7f0a361e345c30e01a0ae2dd613" dependencies = [ "android_system_properties", "core-foundation-sys", "iana-time-zone-haiku", "js-sys", "wasm-bindgen", - "winapi", + "windows 0.48.0", ] [[package]] name = "iana-time-zone-haiku" -version = "0.1.1" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0703ae284fc167426161c2e3f1da3ea71d94b21bedbcc9494e92b28e334e3dca" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" dependencies = [ - "cxx", - "cxx-build", + "cc", ] [[package]] @@ -3891,9 +3897,9 @@ dependencies = [ [[package]] name = "idna" -version = "0.3.0" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e14ddfc70884202db2244c223200c204c2bda1bc6e0998d11b5e024d657209e6" +checksum = "7d20d6b07bfbc108882d88ed8e37d39636dcc260e15e30c45e6ba089610b917c" dependencies = [ "unicode-bidi", "unicode-normalization", @@ -3911,9 +3917,9 @@ dependencies = [ [[package]] name = "if-watch" -version = "3.0.0" +version = "3.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba7abdbb86e485125dad06c2691e1e393bf3b08c7b743b43aa162a00fd39062e" +checksum = "a9465340214b296cd17a0009acdb890d6160010b8adf8f78a00d0d7ab270f79f" dependencies = [ "async-io", "core-foundation", @@ -3925,7 +3931,7 @@ dependencies = [ "rtnetlink", "system-configuration", "tokio", - "windows", + "windows 0.34.0", ] [[package]] @@ -3968,9 +3974,9 @@ dependencies = [ [[package]] name = "indexmap" -version = "1.9.2" +version = "1.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1885e79c1fc4b10f0e172c475f458b7f7b93061064d98c3293e98c5ba0c8b399" +checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" dependencies = [ "autocfg", "hashbrown 0.12.3", @@ -4006,7 +4012,7 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a0c10553d664a4d0bcff9f4215d0aac67a639cc68ef660840afe309b807bc9f5" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", ] [[package]] @@ -4048,12 +4054,13 @@ dependencies = [ [[package]] name = "io-lifetimes" -version = "1.0.5" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1abeb7a0dd0f8181267ff8adc397075586500b81b28a73e8a0208b00fc170fb3" +checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2" dependencies = [ + "hermit-abi 0.3.2", "libc", - "windows-sys 0.45.0", + "windows-sys 0.48.0", ] [[package]] @@ -4064,32 +4071,31 @@ checksum = "aa2f047c0a98b2f299aa5d6d7088443570faae494e9ae1305e48be000c9e0eb1" [[package]] name = "ipconfig" -version = "0.3.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd302af1b90f2463a98fa5ad469fc212c8e3175a41c3068601bfa2727591c5be" +checksum = "b58db92f96b720de98181bbbe63c831e87005ab460c1bf306eb2622b4707997f" dependencies = [ - "socket2 0.4.7", + "socket2 0.5.3", "widestring", - "winapi", + "windows-sys 0.48.0", "winreg", ] [[package]] name = "ipnet" -version = "2.7.1" +version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30e22bd8629359895450b59ea7a776c850561b96a3b1d31321c1949d9e6c9146" +checksum = "28b29a3cd74f0f4598934efe3aeba42bae0eb4680554128851ebbecb02af14e6" [[package]] name = "is-terminal" -version = "0.4.4" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21b6b32576413a8e69b90e952e4a026476040d81017b80445deda5f2d3921857" +checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b" dependencies = [ - "hermit-abi 0.3.1", - "io-lifetimes", - "rustix", - "windows-sys 0.45.0", + "hermit-abi 0.3.2", + "rustix 0.38.10", + "windows-sys 0.48.0", ] [[package]] @@ -4112,33 +4118,33 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.5" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fad582f4b9e86b6caa621cabeb0963332d92eea04729ab12892c2533951e6440" +checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" [[package]] name = "jobserver" -version = "0.1.25" +version = "0.1.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "068b1ee6743e4d11fb9c6a1e6064b3693a1b600e7f5f5988047d98b3dc9fb90b" +checksum = "936cfd212a0155903bcbc060e316fb6cc7cbf2e1907329391ebadc1fe0ce77c2" dependencies = [ "libc", ] [[package]] name = "js-sys" -version = "0.3.61" +version = "0.3.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "445dde2150c55e483f3d8416706b97ec8e8237c307e5b7b4b8dd15e6af2a0730" +checksum = "c5f195fe497f702db0f318b07fdd68edb16955aed830df8363d837542f8f935a" dependencies = [ "wasm-bindgen", ] [[package]] name = "jsonrpsee" -version = "0.16.2" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d291e3a5818a2384645fd9756362e6d89cf0541b0b916fa7702ea4a9833608e" +checksum = "367a292944c07385839818bb71c8d76611138e2dedb0677d035b8da21d29c78b" dependencies = [ "jsonrpsee-client-transport", "jsonrpsee-core", @@ -4153,9 +4159,9 @@ dependencies = [ [[package]] name = "jsonrpsee-client-transport" -version = "0.16.2" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "965de52763f2004bc91ac5bcec504192440f0b568a5d621c59d9dbd6f886c3fb" +checksum = "c8b3815d9f5d5de348e5f162b316dc9cdf4548305ebb15b4eb9328e66cf27d7a" dependencies = [ "anyhow", "futures-channel", @@ -4173,17 +4179,17 @@ dependencies = [ "tokio-rustls", "tokio-util", "tracing", - "webpki-roots", + "webpki-roots 0.25.2", ] [[package]] name = "jsonrpsee-core" -version = "0.16.2" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4e70b4439a751a5de7dd5ed55eacff78ebf4ffe0fc009cb1ebb11417f5b536b" +checksum = "2b5dde66c53d6dcdc8caea1874a45632ec0fcf5b437789f1e45766a1512ce803" dependencies = [ "anyhow", - "arrayvec 0.7.2", + "arrayvec 0.7.4", "async-lock", "async-trait", "beef", @@ -4207,9 +4213,9 @@ dependencies = [ [[package]] name = "jsonrpsee-http-client" -version = "0.16.2" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc345b0a43c6bc49b947ebeb936e886a419ee3d894421790c969cc56040542ad" +checksum = "7e5f9fabdd5d79344728521bb65e3106b49ec405a78b66fbff073b72b389fa43" dependencies = [ "async-trait", "hyper", @@ -4226,9 +4232,9 @@ dependencies = [ [[package]] name = "jsonrpsee-proc-macros" -version = "0.16.2" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baa6da1e4199c10d7b1d0a6e5e8bd8e55f351163b6f4b3cbb044672a69bd4c1c" +checksum = "44e8ab85614a08792b9bff6c8feee23be78c98d0182d4c622c05256ab553892a" dependencies = [ "heck", "proc-macro-crate", @@ -4239,9 +4245,9 @@ dependencies = [ [[package]] name = "jsonrpsee-server" -version = "0.16.2" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fb69dad85df79527c019659a992498d03f8495390496da2f07e6c24c2b356fc" +checksum = "cf4d945a6008c9b03db3354fb3c83ee02d2faa9f2e755ec1dfb69c3551b8f4ba" dependencies = [ "futures-channel", "futures-util", @@ -4261,9 +4267,9 @@ dependencies = [ [[package]] name = "jsonrpsee-types" -version = "0.16.2" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bd522fe1ce3702fd94812965d7bb7a3364b1c9aba743944c5a00529aae80f8c" +checksum = "245ba8e5aa633dd1c1e4fae72bce06e71f42d34c14a2767c6b4d173b57bee5e5" dependencies = [ "anyhow", "beef", @@ -4275,9 +4281,9 @@ dependencies = [ [[package]] name = "jsonrpsee-wasm-client" -version = "0.16.2" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a77310456f43c6c89bcba1f6b2fc2a28300da7c341f320f5128f8c83cc63232d" +checksum = "18e5df77c8f625d36e4cfb583c5a674eccebe32403fcfe42f7ceff7fac9324dd" dependencies = [ "jsonrpsee-client-transport", "jsonrpsee-core", @@ -4286,9 +4292,9 @@ dependencies = [ [[package]] name = "jsonrpsee-ws-client" -version = "0.16.2" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b83daeecfc6517cfe210df24e570fb06213533dfb990318fae781f4c7119dd9" +checksum = "4e1b3975ed5d73f456478681a417128597acd6a2487855fdb7b4a3d4d195bf5e" dependencies = [ "http", "jsonrpsee-client-transport", @@ -4305,7 +4311,7 @@ dependencies = [ "cfg-if", "ecdsa 0.14.8", "elliptic-curve 0.12.3", - "sha2 0.10.6", + "sha2 0.10.7", "sha3", ] @@ -4316,16 +4322,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cadb76004ed8e97623117f3df85b17aaa6626ab0b0831e6573f104df16cd1bcc" dependencies = [ "cfg-if", - "ecdsa 0.16.7", + "ecdsa 0.16.8", "elliptic-curve 0.13.5", "once_cell", - "sha2 0.10.6", + "sha2 0.10.7", ] [[package]] name = "kate" version = "0.8.0" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#248ebe65030b8f2c60a1b74ea5f62aecd37c7eb7" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#a185f93b3f98f9b1e653d05a85f4020f756be1e9" dependencies = [ "avail-core", "derive_more", @@ -4353,7 +4359,7 @@ dependencies = [ [[package]] name = "kate-recovery" version = "0.9.0" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#248ebe65030b8f2c60a1b74ea5f62aecd37c7eb7" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#a185f93b3f98f9b1e653d05a85f4020f756be1e9" dependencies = [ "avail-core", "derive_more", @@ -4395,9 +4401,9 @@ dependencies = [ [[package]] name = "keccak" -version = "0.1.3" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3afef3b6eff9ce9d8ff9b3601125eec7f0c8cbac7abd14f355d053fa56c98768" +checksum = "8f6d5ed8676d904364de097082f4e7d240b571b67989ced0240f08b7f966f940" dependencies = [ "cpufeatures", ] @@ -4472,7 +4478,7 @@ dependencies = [ "bytes", "futures", "futures-timer", - "getrandom 0.2.8", + "getrandom 0.2.10", "instant", "libp2p-allow-block-list", "libp2p-connection-limits", @@ -4598,7 +4604,7 @@ dependencies = [ "multihash", "quick-protobuf", "rand 0.8.5", - "sha2 0.10.6", + "sha2 0.10.7", "thiserror", "zeroize", ] @@ -4609,7 +4615,7 @@ version = "0.43.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39d5ef876a2b2323d63c258e63c2f8e36f205fe5a11f0b3095d59635650790ff" dependencies = [ - "arrayvec 0.7.2", + "arrayvec 0.7.4", "asynchronous-codec", "bytes", "either", @@ -4623,7 +4629,7 @@ dependencies = [ "log", "quick-protobuf", "rand 0.8.5", - "sha2 0.10.6", + "sha2 0.10.7", "smallvec", "thiserror", "uint", @@ -4646,7 +4652,7 @@ dependencies = [ "log", "rand 0.8.5", "smallvec", - "socket2 0.4.7", + "socket2 0.4.9", "tokio", "trust-dns-proto", "void", @@ -4681,7 +4687,7 @@ dependencies = [ "once_cell", "quick-protobuf", "rand 0.8.5", - "sha2 0.10.6", + "sha2 0.10.7", "snow", "static_assertions", "thiserror", @@ -4723,7 +4729,7 @@ dependencies = [ "parking_lot 0.12.1", "quinn-proto", "rand 0.8.5", - "rustls 0.20.8", + "rustls 0.20.9", "thiserror", "tokio", ] @@ -4788,7 +4794,7 @@ dependencies = [ "libc", "libp2p-core", "log", - "socket2 0.4.7", + "socket2 0.4.9", "tokio", ] @@ -4804,9 +4810,9 @@ dependencies = [ "libp2p-identity", "rcgen 0.10.0", "ring", - "rustls 0.20.8", + "rustls 0.20.9", "thiserror", - "webpki 0.22.0", + "webpki 0.22.1", "x509-parser 0.14.0", "yasna", ] @@ -4872,7 +4878,7 @@ dependencies = [ "rw-stream-sink", "soketto", "url", - "webpki-roots", + "webpki-roots 0.22.6", ] [[package]] @@ -4953,9 +4959,9 @@ dependencies = [ [[package]] name = "libz-sys" -version = "1.1.8" +version = "1.1.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9702761c3935f8cc2f101793272e202c72b99da8f4224a19ddcf1279a6450bbf" +checksum = "d97137b25e321a73eef1418d1d5d2eda4d77e12813f8e6dead84bc52c5870a7b" dependencies = [ "cc", "pkg-config", @@ -4964,9 +4970,9 @@ dependencies = [ [[package]] name = "link-cplusplus" -version = "1.0.8" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecd207c9c713c34f95a097a5b029ac2ce6010530c7b49d7fea24d977dede04f5" +checksum = "9d240c6f7e1ba3a28b0249f774e6a9dd0175054b52dfbb61b16eb8505c3785c9" dependencies = [ "cc", ] @@ -5001,11 +5007,23 @@ version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f051f77a7c8e6957c0696eac88f26b0117e54f52d3fc682ab19397a8812846a4" +[[package]] +name = "linux-raw-sys" +version = "0.3.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519" + +[[package]] +name = "linux-raw-sys" +version = "0.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57bcfdad1b858c2db7c38303a6d2ad4dfaf5eb53dfeb0910128b2c26d6158503" + [[package]] name = "lock_api" -version = "0.4.9" +version = "0.4.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" +checksum = "c1cc9717a20b1bb222f333e6a92fd32f7d8a18ddc5a3191a11af45dcbf4dcd16" dependencies = [ "autocfg", "scopeguard", @@ -5013,11 +5031,10 @@ dependencies = [ [[package]] name = "log" -version = "0.4.17" +version = "0.4.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" +checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" dependencies = [ - "cfg-if", "serde", ] @@ -5143,7 +5160,7 @@ version = "0.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f099785f7595cc4b4553a174ce30dd7589ef93391ff414dbb67f62392b9e0ce1" dependencies = [ - "regex-automata", + "regex-automata 0.1.10", ] [[package]] @@ -5154,10 +5171,11 @@ checksum = "2532096657941c2fea9c289d370a250971c689d4f143798ff67113ec042024a5" [[package]] name = "matrixmultiply" -version = "0.3.2" +version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "add85d4dd35074e6fedc608f8c8f513a3548619a9024b751949ef0e8e45a4d84" +checksum = "090126dc04f95dc0d1c1c91f61bdd474b3930ca064c1edc8a849da2c6cbe1e77" dependencies = [ + "autocfg", "rawpointer", ] @@ -5167,22 +5185,22 @@ version = "0.10.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6365506850d44bff6e2fbcb5176cf63650e48bd45ef2fe2665ae1570e0f4b9ca" dependencies = [ - "digest 0.10.6", + "digest 0.10.7", ] [[package]] name = "memchr" -version = "2.5.0" +version = "2.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" +checksum = "5486aed0026218e61b8a01d5fbd5a0a134649abb71a0e53b7bc088529dced86e" [[package]] name = "memfd" -version = "0.6.2" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b20a59d985586e4a5aef64564ac77299f8586d8be6cf9106a5a40207e8908efb" +checksum = "ffc89ccdc6e10d6907450f753537ebc5c5d3460d2e4e62ea74bd571db62c0f9e" dependencies = [ - "rustix", + "rustix 0.37.23", ] [[package]] @@ -5205,18 +5223,18 @@ dependencies = [ [[package]] name = "memoffset" -version = "0.7.1" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5de893c32cde5f383baa4c04c5d6dbdd735cfd4a794b0debdb2bb1b421da5ff4" +checksum = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1" dependencies = [ "autocfg", ] [[package]] name = "memoffset" -version = "0.8.0" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1" +checksum = "5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c" dependencies = [ "autocfg", ] @@ -5254,12 +5272,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "micromath" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39617bc909d64b068dcffd0e3e31679195b5576d0c83fadc52690268cc2b2b55" - [[package]] name = "minimal-lexical" version = "0.2.1" @@ -5268,23 +5280,22 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" [[package]] name = "miniz_oxide" -version = "0.6.2" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b275950c28b37e794e8c55d88aeb5e139d0ce23fdbbeda68f8d7174abdf9e8fa" +checksum = "e7810e0be55b428ada41041c41f32c9f1a42817901b4ccf45fa3d4b6561e74c7" dependencies = [ "adler", ] [[package]] name = "mio" -version = "0.8.6" +version = "0.8.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b9d9a46eff5b4ff64b45a9e316a6d1e0bc719ef429cbec4dc630684212bfdf9" +checksum = "927a765cd3fc26206e66b296465fa9d3e5ab003e651c1b3c060e7956d96b19d2" dependencies = [ "libc", - "log", "wasi 0.11.0+wasi-snapshot-preview1", - "windows-sys 0.45.0", + "windows-sys 0.48.0", ] [[package]] @@ -5305,9 +5316,9 @@ dependencies = [ [[package]] name = "mockall" -version = "0.11.3" +version = "0.11.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50e4a1c770583dac7ab5e2f6c139153b783a53a1bbee9729613f193e59828326" +checksum = "4c84490118f2ee2d74570d114f3d0493cbf02790df303d2707606c3e14e07c96" dependencies = [ "cfg-if", "downcast", @@ -5320,9 +5331,9 @@ dependencies = [ [[package]] name = "mockall_derive" -version = "0.11.3" +version = "0.11.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "832663583d5fa284ca8810bf7015e46c9fff9622d3cf34bd1eea5003fec06dd0" +checksum = "22ce75669015c4f47b289fd4d4f56e894e4c96003ffdf3ac51313126f94c6cbb" dependencies = [ "cfg-if", "proc-macro2", @@ -5370,9 +5381,9 @@ dependencies = [ "blake2s_simd", "blake3", "core2", - "digest 0.10.6", + "digest 0.10.7", "multihash-derive", - "sha2 0.10.6", + "sha2 0.10.7", "sha3", "unsigned-varint", ] @@ -5502,9 +5513,9 @@ dependencies = [ [[package]] name = "netlink-sys" -version = "0.8.4" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "260e21fbb6f3d253a14df90eb0000a6066780a15dd901a7519ce02d77a94985b" +checksum = "6471bf08e7ac0135876a9581bf3217ef0333c191c128d34878079f42ee150411" dependencies = [ "bytes", "futures", @@ -5544,7 +5555,7 @@ dependencies = [ [[package]] name = "nomad-base" version = "0.1.4" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#248ebe65030b8f2c60a1b74ea5f62aecd37c7eb7" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#a185f93b3f98f9b1e653d05a85f4020f756be1e9" dependencies = [ "ethers-signers", "nomad-core", @@ -5560,7 +5571,7 @@ dependencies = [ [[package]] name = "nomad-core" version = "0.1.4" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#248ebe65030b8f2c60a1b74ea5f62aecd37c7eb7" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#a185f93b3f98f9b1e653d05a85f4020f756be1e9" dependencies = [ "ethers-core", "ethers-signers", @@ -5623,7 +5634,7 @@ dependencies = [ [[package]] name = "nomad-merkle" version = "0.1.2" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#248ebe65030b8f2c60a1b74ea5f62aecd37c7eb7" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#a185f93b3f98f9b1e653d05a85f4020f756be1e9" dependencies = [ "avail-core", "frame-support", @@ -5641,12 +5652,12 @@ dependencies = [ [[package]] name = "nomad-signature" version = "0.1.2" -source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#248ebe65030b8f2c60a1b74ea5f62aecd37c7eb7" +source = "git+https://github.com/availproject/avail-core?branch=substrate/upgrade-v1.0.0#a185f93b3f98f9b1e653d05a85f4020f756be1e9" dependencies = [ "elliptic-curve 0.12.3", "ethers-core", "frame-support", - "generic-array 0.14.6", + "generic-array 0.14.7", "hex", "k256 0.11.6", "parity-scale-codec", @@ -5680,9 +5691,9 @@ checksum = "61807f77802ff30975e01f4f071c8ba10c022052f98b3294119f3e615d13e5be" [[package]] name = "num-bigint" -version = "0.4.3" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f93ab6289c7b344a8a9f60f88d80aa20032336fe78da341afc91c8a2341fc75f" +checksum = "608e7659b5c3d7cba262d894801b9ec9d00de989e8a82bd4bef91d08da45cdc0" dependencies = [ "autocfg", "num-integer", @@ -5691,9 +5702,9 @@ dependencies = [ [[package]] name = "num-complex" -version = "0.4.3" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02e0d21255c828d6f128a1e41534206671e8c3ea0c62f32291e808dc82cff17d" +checksum = "1ba157ca0885411de85d6ca030ba7e2a83a28636056c7c699b07c8b6f7383214" dependencies = [ "num-traits", ] @@ -5704,7 +5715,7 @@ version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a652d9771a63711fd3c3deb670acfbe5c30a4072e664d7a3bf5a9e1056ac72c3" dependencies = [ - "arrayvec 0.7.2", + "arrayvec 0.7.4", "itoa", ] @@ -5732,20 +5743,20 @@ dependencies = [ [[package]] name = "num-traits" -version = "0.2.15" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd" +checksum = "f30b0abd723be7e2ffca1272140fac1a2f084c77ec3e123c192b66af1ee9e6c2" dependencies = [ "autocfg", ] [[package]] name = "num_cpus" -version = "1.15.0" +version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" +checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" dependencies = [ - "hermit-abi 0.2.6", + "hermit-abi 0.3.2", "libc", ] @@ -5757,13 +5768,22 @@ checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3" [[package]] name = "object" -version = "0.30.3" +version = "0.30.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03b4680b86d9cfafba8fc491dc9b6df26b68cf40e9e6cd73909194759a63c385" +dependencies = [ + "crc32fast", + "hashbrown 0.13.2", + "indexmap 1.9.3", + "memchr", +] + +[[package]] +name = "object" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea86265d3d3dcb6a27fc51bd29a4bf387fae9d2986b823079d4986af253eb439" +checksum = "77ac5bbd07aea88c60a577a1ce218075ffd59208b2d7ca97adf9bfc5aeb21ebe" dependencies = [ - "crc32fast", - "hashbrown 0.13.2", - "indexmap 1.9.2", "memchr", ] @@ -5782,14 +5802,14 @@ version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9bedf36ffb6ba96c2eb7144ef6270557b52e54b20c0a8e1eb2ff99a6c6959bff" dependencies = [ - "asn1-rs 0.5.1", + "asn1-rs 0.5.2", ] [[package]] name = "once_cell" -version = "1.17.1" +version = "1.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3" +checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d" [[package]] name = "oorandom" @@ -5815,7 +5835,7 @@ version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "786393f80485445794f6043fd3138854dd109cc6c4bd1a6383db304c9ce9b9ce" dependencies = [ - "arrayvec 0.7.2", + "arrayvec 0.7.4", "auto_impl", "bytes", "ethereum-types", @@ -5842,9 +5862,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "os_str_bytes" -version = "6.4.1" +version = "6.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b7820b9daea5457c9f21c69448905d723fbd21136ccf521748f23fd49e723ee" +checksum = "4d5d9eb14b174ee9aa2ef96dc2b94637a2d4b6e7cb873c7e171f0c20c6cf3eac" [[package]] name = "p256" @@ -5854,7 +5874,7 @@ checksum = "51f44edd08f51e2ade572f141051021c5af22677e42b7dd28a88155151c33594" dependencies = [ "ecdsa 0.14.8", "elliptic-curve 0.12.3", - "sha2 0.10.6", + "sha2 0.10.7", ] [[package]] @@ -5865,7 +5885,7 @@ checksum = "dfc8c5bf642dde52bb9e87c0ecd8ca5a76faac2eeed98dedb7c717997e1080aa" dependencies = [ "ecdsa 0.14.8", "elliptic-curve 0.12.3", - "sha2 0.10.6", + "sha2 0.10.7", ] [[package]] @@ -6472,7 +6492,7 @@ version = "3.6.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0dec8a8073036902368c2cdc0387e85ff9a37054d7e7c98e592145e0c92cd4fb" dependencies = [ - "arrayvec 0.7.2", + "arrayvec 0.7.4", "bitvec 1.0.1", "byte-slice-cast", "bytes", @@ -6531,9 +6551,9 @@ checksum = "e1ad0aff30c1da14b1254fcb2af73e1fa9a28670e584a626f53a369d0e157304" [[package]] name = "parking" -version = "2.0.0" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "427c3892f9e783d91cc128285287e70a59e206ca452770ece88a76f7a3eddd72" +checksum = "14f2252c834a40ed9bb5422029649578e63aa341ac401f74e719dd1afda8394e" [[package]] name = "parking_lot" @@ -6553,7 +6573,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" dependencies = [ "lock_api", - "parking_lot_core 0.9.7", + "parking_lot_core 0.9.8", ] [[package]] @@ -6572,15 +6592,15 @@ dependencies = [ [[package]] name = "parking_lot_core" -version = "0.9.7" +version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9069cbb9f99e3a5083476ccb29ceb1de18b9118cafa53e90c9551235de2b9521" +checksum = "93f00c865fe7cabf650081affecd3871070f26767e7b2070a3ffae14c654b447" dependencies = [ "cfg-if", "libc", - "redox_syscall 0.2.16", + "redox_syscall 0.3.5", "smallvec", - "windows-sys 0.45.0", + "windows-targets 0.48.5", ] [[package]] @@ -6602,9 +6622,9 @@ dependencies = [ [[package]] name = "paste" -version = "1.0.11" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d01a5bd0424d00070b0098dd17ebca6f961a959dead1dbcbbbc1d1cd8d3deeba" +checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" [[package]] name = "pbkdf2" @@ -6621,10 +6641,10 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "83a0692ec44e4cf1ef28ca317f14f8f07da2d95ec3fa01f86e4467b725e60917" dependencies = [ - "digest 0.10.6", + "digest 0.10.7", "hmac 0.12.1", "password-hash", - "sha2 0.10.6", + "sha2 0.10.7", ] [[package]] @@ -6653,25 +6673,26 @@ dependencies = [ [[package]] name = "percent-encoding" -version = "2.2.0" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e" +checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94" [[package]] name = "pest" -version = "2.5.5" +version = "2.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "028accff104c4e513bad663bbcd2ad7cfd5304144404c31ed0a77ac103d00660" +checksum = "d7a4d085fd991ac8d5b05a147b437791b4260b76326baf0fc60cf7c9c27ecd33" dependencies = [ + "memchr", "thiserror", "ucd-trie", ] [[package]] name = "pest_derive" -version = "2.5.5" +version = "2.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ac3922aac69a40733080f53c1ce7f91dcf57e1a5f6c52f421fadec7fbdc4b69" +checksum = "a2bee7be22ce7918f641a33f08e3f43388c7656772244e2bbb2477f44cc9021a" dependencies = [ "pest", "pest_generator", @@ -6679,56 +6700,56 @@ dependencies = [ [[package]] name = "pest_generator" -version = "2.5.5" +version = "2.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d06646e185566b5961b4058dd107e0a7f56e77c3f484549fb119867773c0f202" +checksum = "d1511785c5e98d79a05e8a6bc34b4ac2168a0e3e92161862030ad84daa223141" dependencies = [ "pest", "pest_meta", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.29", ] [[package]] name = "pest_meta" -version = "2.5.5" +version = "2.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6f60b2ba541577e2a0c307c8f39d1439108120eb7903adeb6497fa880c59616" +checksum = "b42f0394d3123e33353ca5e1e89092e533d2cc490389f2bd6131c43c634ebc5f" dependencies = [ "once_cell", "pest", - "sha2 0.10.6", + "sha2 0.10.7", ] [[package]] name = "petgraph" -version = "0.6.3" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4dd7d28ee937e54fe3080c91faa1c3a46c06de6252988a7f4592ba2310ef22a4" +checksum = "e1d3afd2628e69da2be385eb6f2fd57c8ac7977ceeff6dc166ff1657b0e386a9" dependencies = [ "fixedbitset", - "indexmap 1.9.2", + "indexmap 2.0.0", ] [[package]] name = "pin-project" -version = "1.0.12" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad29a609b6bcd67fee905812e544992d216af9d755757c05ed2d0e15a74c6ecc" +checksum = "fda4ed1c6c173e3fc7a83629421152e01d7b1f9b7f65fb301e490e8cfc656422" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.0.12" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "069bdb1e05adc7a8990dce9cc75370895fbe4e3d58b9b73bf1aee56359344a55" +checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.29", ] [[package]] @@ -6771,21 +6792,21 @@ dependencies = [ [[package]] name = "pkg-config" -version = "0.3.26" +version = "0.3.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ac9a59f73473f1b8d852421e59e64809f025994837ef743615c6d0c5b305160" +checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964" [[package]] name = "platforms" -version = "3.0.2" +version = "3.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3d7ddaed09e0eb771a79ab0fd64609ba0afb0a8366421957936ad14cbd13630" +checksum = "4503fa043bf02cee09a9582e9554b4c6403b2ef55e4612e96561d294419429f8" [[package]] name = "plotters" -version = "0.3.4" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2538b639e642295546c50fcd545198c9d64ee2a38620a628724a3b266d5fbf97" +checksum = "d2c224ba00d7cadd4d5c660deaf2098e5e80e07846537c51f9cfa4be50c1fd45" dependencies = [ "num-traits", "plotters-backend", @@ -6796,31 +6817,33 @@ dependencies = [ [[package]] name = "plotters-backend" -version = "0.3.4" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "193228616381fecdc1224c62e96946dfbc73ff4384fba576e052ff8c1bea8142" +checksum = "9e76628b4d3a7581389a35d5b6e2139607ad7c75b17aed325f210aa91f4a9609" [[package]] name = "plotters-svg" -version = "0.3.3" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9a81d2759aae1dae668f783c308bc5c8ebd191ff4184aaa1b37f65a6ae5a56f" +checksum = "38f6d39893cca0701371e3c27294f09797214b86f1fb951b89ade8ec04e2abab" dependencies = [ "plotters-backend", ] [[package]] name = "polling" -version = "2.5.2" +version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22122d5ec4f9fe1b3916419b76be1e80bcb93f618d071d2edf841b137b2a2bd6" +checksum = "4b2d323e8ca7996b3e23126511a523f7e62924d93ecd5ae73b333815b0eb3dce" dependencies = [ "autocfg", + "bitflags 1.3.2", "cfg-if", + "concurrent-queue", "libc", "log", - "wepoll-ffi", - "windows-sys 0.42.0", + "pin-project-lite 0.2.13", + "windows-sys 0.48.0", ] [[package]] @@ -6846,30 +6869,31 @@ checksum = "048aeb476be11a4b6ca432ca569e375810de9294ae78f4774e78ea98a9246ede" dependencies = [ "cpufeatures", "opaque-debug 0.3.0", - "universal-hash", + "universal-hash 0.4.1", ] [[package]] name = "polyval" -version = "0.4.5" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eebcc4aa140b9abd2bc40d9c3f7ccec842679cd79045ac3a7ac698c1a064b7cd" +checksum = "8419d2b623c7c0896ff2d5d96e2cb4ede590fed28fcc34934f4c33c036e620a1" dependencies = [ - "cpuid-bool", + "cfg-if", + "cpufeatures", "opaque-debug 0.3.0", - "universal-hash", + "universal-hash 0.4.1", ] [[package]] name = "polyval" -version = "0.5.3" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8419d2b623c7c0896ff2d5d96e2cb4ede590fed28fcc34934f4c33c036e620a1" +checksum = "d52cff9d1d4dee5fe6d03729099f4a310a41179e0a10dbf542039873f2e826fb" dependencies = [ "cfg-if", "cpufeatures", "opaque-debug 0.3.0", - "universal-hash", + "universal-hash 0.5.1", ] [[package]] @@ -6900,15 +6924,15 @@ dependencies = [ [[package]] name = "predicates-core" -version = "1.0.5" +version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72f883590242d3c6fc5bf50299011695fa6590c2c70eac95ee1bdb9a733ad1a2" +checksum = "b794032607612e7abeb4db69adb4e33590fa6cf1149e95fd7cb00e634b92f174" [[package]] name = "predicates-tree" -version = "1.0.7" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54ff541861505aabf6ea722d2131ee980b8276e10a1297b94e896dd8b621850d" +checksum = "368ba315fb8c5052ab692e68a0eefec6ec57b23a36959c14496f0b0df2c0cecf" dependencies = [ "predicates-core", "termtree", @@ -6916,9 +6940,9 @@ dependencies = [ [[package]] name = "prettyplease" -version = "0.1.23" +version = "0.1.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e97e3215779627f01ee256d2fad52f3d95e8e1c11e9fc6fd08f7cd455d5d5c78" +checksum = "6c8646e95016a7a6c4adea95bafa8a16baab64b583356217f2c85db4a39d9a86" dependencies = [ "proc-macro2", "syn 1.0.109", @@ -7047,9 +7071,9 @@ dependencies = [ [[package]] name = "prost" -version = "0.11.7" +version = "0.11.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3933d3ac2717077b3d5f42b40f59edfb1fb6a8c14e1c7de0f38075c4bac8e314" +checksum = "0b82eaa1d779e9a4bc1c3217db8ffbeabaae1dca241bf70183242128d48681cd" dependencies = [ "bytes", "prost-derive", @@ -7057,9 +7081,9 @@ dependencies = [ [[package]] name = "prost-build" -version = "0.11.7" +version = "0.11.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a24be1d23b4552a012093e1b93697b73d644ae9590e3253d878d0e77d411b614" +checksum = "119533552c9a7ffacc21e099c24a0ac8bb19c2a2a3f363de84cd9b844feab270" dependencies = [ "bytes", "heck", @@ -7068,7 +7092,7 @@ dependencies = [ "log", "multimap", "petgraph", - "prettyplease 0.1.23", + "prettyplease 0.1.25", "prost", "prost-types", "regex", @@ -7079,9 +7103,9 @@ dependencies = [ [[package]] name = "prost-derive" -version = "0.11.7" +version = "0.11.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e9935362e8369bc3acd874caeeae814295c504c2bdbcde5c024089cf8b4dc12" +checksum = "e5d2d8d10f3c6ded6da8b05b5fb3b8a5082514344d56c9f871412d29b4e075b4" dependencies = [ "anyhow", "itertools 0.10.5", @@ -7092,9 +7116,9 @@ dependencies = [ [[package]] name = "prost-types" -version = "0.11.7" +version = "0.11.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7de56acd5cc9642cac2a9518d4c8c53818905398fe42d33235859e0d542a7695" +checksum = "213622a1460818959ac1181aaeb2dc9c7f63df720db7d788b3e24eacd1983e13" dependencies = [ "prost", ] @@ -7149,20 +7173,20 @@ dependencies = [ [[package]] name = "quinn-proto" -version = "0.9.2" +version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72ef4ced82a24bb281af338b9e8f94429b6eca01b4e66d899f40031f074e74c9" +checksum = "f31999cfc7927c4e212e60fd50934ab40e8e8bfd2d493d6095d2d306bc0764d9" dependencies = [ "bytes", "rand 0.8.5", "ring", "rustc-hash", - "rustls 0.20.8", + "rustls 0.20.9", "slab", "thiserror", "tinyvec", "tracing", - "webpki 0.22.0", + "webpki 0.22.1", ] [[package]] @@ -7245,7 +7269,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom 0.2.8", + "getrandom 0.2.10", ] [[package]] @@ -7274,9 +7298,9 @@ checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3" [[package]] name = "rayon" -version = "1.6.1" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6db3a213adf02b3bcfd2d3846bb41cb22857d131789e01df434fb7e7bc0759b7" +checksum = "1d2df5196e37bcc87abebc0053e20787d73847bb33134a69841207dd0a47f03b" dependencies = [ "either", "rayon-core", @@ -7284,9 +7308,9 @@ dependencies = [ [[package]] name = "rayon-core" -version = "1.10.2" +version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "356a0625f1954f730c0201cdab48611198dc6ce21f4acff55089b5a78e6e835b" +checksum = "4b8f95bd6966f5c87776639160a66bd8ab9895d9d4ab01ddba9fc60661aebe8d" dependencies = [ "crossbeam-channel", "crossbeam-deque", @@ -7302,7 +7326,7 @@ checksum = "6413f3de1edee53342e6138e75b56d32e7bc6e332b3bd62d497b1929d4cfbcdd" dependencies = [ "pem", "ring", - "time 0.3.19", + "time 0.3.28", "x509-parser 0.13.2", "yasna", ] @@ -7315,7 +7339,7 @@ checksum = "ffbe84efe2f38dea12e9bfc1f65377fdf03e53a18cb3b995faedf7934c7e785b" dependencies = [ "pem", "ring", - "time 0.3.19", + "time 0.3.28", "yasna", ] @@ -7343,29 +7367,29 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b033d837a7cf162d7993aded9304e30a83213c648b6e389db233191f891e5c2b" dependencies = [ - "getrandom 0.2.8", + "getrandom 0.2.10", "redox_syscall 0.2.16", "thiserror", ] [[package]] name = "ref-cast" -version = "1.0.14" +version = "1.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c78fb8c9293bcd48ef6fce7b4ca950ceaf21210de6e105a883ee280c0f7b9ed" +checksum = "acde58d073e9c79da00f2b5b84eed919c8326832648a5b109b3fce1bb1175280" dependencies = [ "ref-cast-impl", ] [[package]] name = "ref-cast-impl" -version = "1.0.14" +version = "1.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f9c0c92af03644e4806106281fe2e068ac5bc0ae74a707266d06ea27bccee5f" +checksum = "7f7473c2cfcf90008193dd0e3e16599455cb601a9fce322b5bb55de799664925" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.29", ] [[package]] @@ -7382,13 +7406,14 @@ dependencies = [ [[package]] name = "regex" -version = "1.7.1" +version = "1.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48aaa5748ba571fb95cd2c85c09f629215d3a6ece942baa100950af03a34f733" +checksum = "12de2eff854e5fa4b1295edd650e227e9d8fb0c9e90b12e7f36d6a6811791a29" dependencies = [ "aho-corasick", "memchr", - "regex-syntax", + "regex-automata 0.3.7", + "regex-syntax 0.7.5", ] [[package]] @@ -7397,23 +7422,31 @@ version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" dependencies = [ - "regex-syntax", + "regex-syntax 0.6.29", +] + +[[package]] +name = "regex-automata" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49530408a136e16e5b486e883fbb6ba058e8e4e8ae6621a77b048b314336e629" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax 0.7.5", ] [[package]] name = "regex-syntax" -version = "0.6.28" +version = "0.6.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848" +checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" [[package]] -name = "remove_dir_all" -version = "0.5.3" +name = "regex-syntax" +version = "0.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7" -dependencies = [ - "winapi", -] +checksum = "dbb5fb1acd8a1a18b3dd5be62d25485eb770e05afb408a9627d14d451bae12da" [[package]] name = "resolv-conf" @@ -7467,7 +7500,7 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bd124222d17ad93a644ed9d011a40f4fb64aa54275c08cc216524a9ea82fb09f" dependencies = [ - "digest 0.10.6", + "digest 0.10.7", ] [[package]] @@ -7513,12 +7546,11 @@ dependencies = [ [[package]] name = "rs_merkle" -version = "1.2.0" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a632a43487c1332be8e183588079f89b6820fab24e04db49521eacd536837372" +checksum = "05225752ca6ede4cb1b73aa37ce3904affd042e98f28246f56f438ebfd47a810" dependencies = [ - "micromath", - "sha2 0.10.6", + "sha2 0.10.7", ] [[package]] @@ -7573,9 +7605,9 @@ dependencies = [ [[package]] name = "rustc-demangle" -version = "0.1.21" +version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ef03e0a2b150c7a90d01faf6254c9c48a41e95fb2a8c2ac1c6f0d2b9aefc342" +checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" [[package]] name = "rustc-hash" @@ -7595,7 +7627,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" dependencies = [ - "semver 1.0.16", + "semver 1.0.18", ] [[package]] @@ -7609,18 +7641,45 @@ dependencies = [ [[package]] name = "rustix" -version = "0.36.8" +version = "0.36.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f43abb88211988493c1abb44a70efa56ff0ce98f233b7b276146f1f3f7ba9644" +checksum = "c37f1bd5ef1b5422177b7646cba67430579cfe2ace80f284fee876bca52ad941" dependencies = [ "bitflags 1.3.2", "errno", "io-lifetimes", "libc", - "linux-raw-sys", + "linux-raw-sys 0.1.4", "windows-sys 0.45.0", ] +[[package]] +name = "rustix" +version = "0.37.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d69718bf81c6127a49dc64e44a742e8bb9213c0ff8869a22c308f84c1d4ab06" +dependencies = [ + "bitflags 1.3.2", + "errno", + "io-lifetimes", + "libc", + "linux-raw-sys 0.3.8", + "windows-sys 0.48.0", +] + +[[package]] +name = "rustix" +version = "0.38.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed6248e1caa625eb708e266e06159f135e8c26f2bb7ceb72dc4b2766d0340964" +dependencies = [ + "bitflags 2.4.0", + "errno", + "libc", + "linux-raw-sys 0.4.5", + "windows-sys 0.48.0", +] + [[package]] name = "rustls" version = "0.19.1" @@ -7636,21 +7695,33 @@ dependencies = [ [[package]] name = "rustls" -version = "0.20.8" +version = "0.20.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fff78fc74d175294f4e83b28343315ffcfb114b156f0185e9741cb5570f50e2f" +checksum = "1b80e3dec595989ea8510028f30c408a4630db12c9cbb8de34203b89d6577e99" dependencies = [ "log", "ring", "sct 0.7.0", - "webpki 0.22.0", + "webpki 0.22.1", +] + +[[package]] +name = "rustls" +version = "0.21.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd8d6c9f025a446bc4d18ad9632e69aec8f287aa84499ee335599fabd20c3fd8" +dependencies = [ + "log", + "ring", + "rustls-webpki 0.101.4", + "sct 0.7.0", ] [[package]] name = "rustls-native-certs" -version = "0.6.2" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0167bac7a9f490495f3c33013e7722b53cb087ecbe082fb0c6387c96f634ea50" +checksum = "a9aace74cb666635c918e9c12bc0d348266037aa8eb599b5cba565709a8dff00" dependencies = [ "openssl-probe", "rustls-pemfile", @@ -7660,18 +7731,38 @@ dependencies = [ [[package]] name = "rustls-pemfile" -version = "1.0.2" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d3987094b1d07b653b7dfdc3f70ce9a1da9c51ac18c1b06b662e4f9a0e9f4b2" +dependencies = [ + "base64 0.21.3", +] + +[[package]] +name = "rustls-webpki" +version = "0.100.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e98ff011474fa39949b7e5c0428f9b4937eda7da7848bbb947786b7be0b27dab" +dependencies = [ + "ring", + "untrusted", +] + +[[package]] +name = "rustls-webpki" +version = "0.101.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d194b56d58803a43635bdc398cd17e383d6f71f9182b9a192c127ca42494a59b" +checksum = "7d93931baf2d282fff8d3a532bbfd7653f734643161b87e3e01e59a04439bf0d" dependencies = [ - "base64 0.21.0", + "ring", + "untrusted", ] [[package]] name = "rustversion" -version = "1.0.11" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5583e89e108996506031660fe09baa5011b9dd0341b89029313006d1fb508d70" +checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4" [[package]] name = "rw-stream-sink" @@ -7686,9 +7777,9 @@ dependencies = [ [[package]] name = "ryu" -version = "1.0.12" +version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b4b9743ed687d4b4bcedf9ff5eaa7398495ae14e61cba0a295704edbc7decde" +checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741" [[package]] name = "safe_arch" @@ -7705,7 +7796,7 @@ version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97a22f5af31f73a954c10289c93e8a50cc23d971e80ee446f1f6f7137a088213" dependencies = [ - "cipher 0.4.3", + "cipher 0.4.4", ] [[package]] @@ -8138,7 +8229,7 @@ dependencies = [ "cfg-if", "libc", "log", - "rustix", + "rustix 0.36.15", "sc-allocator", "sc-executor-common", "sp-runtime-interface", @@ -8702,11 +8793,11 @@ dependencies = [ [[package]] name = "schannel" -version = "0.1.21" +version = "0.1.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "713cfb06c7059f3588fb8044c0fad1d09e3c01d225e25b9220dbfdcf16dbb1b3" +checksum = "0c3733bf4cf7ea0880754e19cb5a462007c4a8c1914bff372ccc95b464f1df88" dependencies = [ - "windows-sys 0.42.0", + "windows-sys 0.48.0", ] [[package]] @@ -8740,15 +8831,15 @@ dependencies = [ [[package]] name = "scopeguard" -version = "1.1.0" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" [[package]] name = "scratch" -version = "1.0.3" +version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddccb15bcce173023b3fedd9436f882a0739b8dfb45e4f6b6002bee5929f61b2" +checksum = "a3cf7c11c38cb994f3d40e8a8cde3bbd1f72a435e4c49e85d6553d8312306152" [[package]] name = "scrypt" @@ -8759,7 +8850,7 @@ dependencies = [ "hmac 0.12.1", "pbkdf2 0.11.0", "salsa20", - "sha2 0.10.6", + "sha2 0.10.7", ] [[package]] @@ -8802,7 +8893,7 @@ checksum = "3be24c1842290c45df0a7bf069e0c268a747ad05a192f2fd7dcfdbc1cba40928" dependencies = [ "base16ct 0.1.1", "der 0.6.1", - "generic-array 0.14.6", + "generic-array 0.14.7", "pkcs8 0.9.0", "subtle", "zeroize", @@ -8810,13 +8901,13 @@ dependencies = [ [[package]] name = "sec1" -version = "0.7.1" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48518a2b5775ba8ca5b46596aae011caa431e6ce7e4a67ead66d92f08884220e" +checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc" dependencies = [ "base16ct 0.2.0", "der 0.7.8", - "generic-array 0.14.6", + "generic-array 0.14.7", "pkcs8 0.10.2", "subtle", "zeroize", @@ -8851,9 +8942,9 @@ dependencies = [ [[package]] name = "security-framework" -version = "2.8.2" +version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a332be01508d814fed64bf28f798a146d73792121129962fdf335bb3c49a4254" +checksum = "05b64fb303737d99b81884b2c63433e9ae28abebe5eb5045dcdd175dc2ecf4de" dependencies = [ "bitflags 1.3.2", "core-foundation", @@ -8864,9 +8955,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.8.0" +version = "2.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31c9bb296072e961fcbd8853511dd39c2d8be2deb1e17c6860b1d30732b323b4" +checksum = "e932934257d3b408ed8f30db49d85ea163bfe74961f017f405b025af298f0c7a" dependencies = [ "core-foundation-sys", "libc", @@ -8883,9 +8974,9 @@ dependencies = [ [[package]] name = "semver" -version = "1.0.16" +version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58bc9567378fc7690d6b2addae4e60ac2eeea07becb2c64b9f218b53865cba2a" +checksum = "b0293b4b29daaf487284529cc2f5675b8e57c61f70167ba415a463651fd6a918" dependencies = [ "serde", ] @@ -8924,9 +9015,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.93" +version = "1.0.105" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cad406b69c91885b5107daf2c29572f6c8cdb3c66826821e286c533490c0bc76" +checksum = "693151e1ac27563d6dbcec9dee9fbd5da8539b20fa14ad3752b2e6d363ace360" dependencies = [ "itoa", "ryu", @@ -8955,6 +9046,17 @@ dependencies = [ "opaque-debug 0.3.0", ] +[[package]] +name = "sha1" +version = "0.10.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f04293dc80c3993519f2d7f6f511707ee7094fe0c6d3406feb330cdb3540eba3" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest 0.10.7", +] + [[package]] name = "sha2" version = "0.8.2" @@ -8982,22 +9084,22 @@ dependencies = [ [[package]] name = "sha2" -version = "0.10.6" +version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82e6b795fe2e3b1e845bafcb27aa35405c4d47cdfc92af5fc8d3002f76cebdc0" +checksum = "479fb9d862239e610720565ca91403019f2f00410f1864c5aa7479b950a76ed8" dependencies = [ "cfg-if", "cpufeatures", - "digest 0.10.6", + "digest 0.10.7", ] [[package]] name = "sha3" -version = "0.10.6" +version = "0.10.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bdf0c33fae925bdc080598b84bc15c55e7b9a4a43b3c704da051f977469691c9" +checksum = "75872d278a8f37ef87fa0ddbda7802605cb18344497949862c0d4dcb291eba60" dependencies = [ - "digest 0.10.6", + "digest 0.10.7", "keccak", ] @@ -9031,7 +9133,7 @@ version = "1.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "74233d3b3b2f6d4b006dc19dee745e73e2a6bfb6f93607cd3b02bd5b00797d7c" dependencies = [ - "digest 0.10.6", + "digest 0.10.7", "rand_core 0.6.4", ] @@ -9041,7 +9143,7 @@ version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5e1788eed21689f9cf370582dfc467ef36ed9c707f073528ddafa8d83e3b8500" dependencies = [ - "digest 0.10.6", + "digest 0.10.7", "rand_core 0.6.4", ] @@ -9066,24 +9168,24 @@ checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d" [[package]] name = "slab" -version = "0.4.8" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6528351c9bc8ab22353f9d776db39a20288e8d6c37ef8cfe3317cf875eecfc2d" +checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" dependencies = [ "autocfg", ] [[package]] name = "slice-group-by" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03b634d87b960ab1a38c4fe143b508576f075e7c978bfad18217645ebfdfa2ec" +checksum = "826167069c09b99d56f31e9ae5c99049e932a98c9dc2dac47645b08dbbf76ba7" [[package]] name = "smallvec" -version = "1.10.0" +version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" +checksum = "62bb4feee49fdd9f707ef802e22365a35de4b7b299de4763d44bfea899442ff9" [[package]] name = "snap" @@ -9104,15 +9206,15 @@ dependencies = [ "rand_core 0.6.4", "ring", "rustc_version", - "sha2 0.10.6", + "sha2 0.10.7", "subtle", ] [[package]] name = "socket2" -version = "0.4.7" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02e2d2db9033d13a1567121ddd7a095ee144db4e1ca1b1bda3419bc0da294ebd" +checksum = "64a4a911eed85daf18834cfaa86a79b7d266ff93ff5ba14005426219480ed662" dependencies = [ "libc", "winapi", @@ -9382,8 +9484,8 @@ source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0. dependencies = [ "blake2b_simd", "byteorder", - "digest 0.10.6", - "sha2 0.10.6", + "digest 0.10.7", + "sha2 0.10.7", "sha3", "twox-hash", ] @@ -9876,9 +9978,9 @@ dependencies = [ [[package]] name = "ss58-registry" -version = "1.39.0" +version = "1.43.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecf0bd63593ef78eca595a7fc25e9a443ca46fe69fd472f8f09f5245cdcd769d" +checksum = "5e6915280e2d0db8911e5032a5c275571af6bdded2916abd691a659be25d3439" dependencies = [ "Inflector", "num-format", @@ -10138,9 +10240,9 @@ dependencies = [ [[package]] name = "system-configuration" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d75182f12f490e953596550b65ee31bda7c8e043d9386174b353bda50838c3fd" +checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7" dependencies = [ "bitflags 1.3.2", "core-foundation", @@ -10165,22 +10267,21 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" [[package]] name = "target-lexicon" -version = "0.12.6" +version = "0.12.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ae9980cab1db3fceee2f6c6f643d5d8de2997c58ee8d25fb0cc8a9e9e7348e5" +checksum = "9d0e916b1148c8e263850e1ebcbd046f333e0683c724876bb0da63ea4373dc8a" [[package]] name = "tempfile" -version = "3.3.0" +version = "3.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cdb1ef4eaeeaddc8fbd371e5017057064af0911902ef36b39801f67cc6d79e4" +checksum = "cb94d2f3cc536af71caac6b6fcebf65860b347e7ce0cc9ebe8f70d3e521054ef" dependencies = [ "cfg-if", - "fastrand", - "libc", - "redox_syscall 0.2.16", - "remove_dir_all", - "winapi", + "fastrand 2.0.0", + "redox_syscall 0.3.5", + "rustix 0.38.10", + "windows-sys 0.48.0", ] [[package]] @@ -10194,9 +10295,9 @@ dependencies = [ [[package]] name = "termtree" -version = "0.4.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95059e91184749cb66be6dc994f67f182b6d897cb3df74a5bf66b5e709295fd8" +checksum = "3369f5ac52d5eb6ab48c6b4ffdc8efbcad6b89c765749064ba298f2c68a16a76" [[package]] name = "test-case" @@ -10219,18 +10320,18 @@ checksum = "222a222a5bfe1bba4a77b45ec488a741b3cb8872e5e499451fd7d0129c9c7c3d" [[package]] name = "thiserror" -version = "1.0.40" +version = "1.0.47" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "978c9a314bd8dc99be594bc3c175faaa9794be04a5a5e153caba6915336cebac" +checksum = "97a802ec30afc17eee47b2855fc72e0c4cd62be9b4efe6591edde0ec5bd68d8f" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.40" +version = "1.0.47" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f" +checksum = "6bb623b56e39ab7dcd4b1b98bb6c8f8d907ed255b18de254088016b27a8ee19b" dependencies = [ "proc-macro2", "quote", @@ -10284,9 +10385,9 @@ dependencies = [ [[package]] name = "tikv-jemalloc-sys" -version = "0.5.3+5.3.0-patched" +version = "0.5.4+5.3.0-patched" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a678df20055b43e57ef8cddde41cdfda9a3c1a060b67f4c5836dfb1d78543ba8" +checksum = "9402443cb8fd499b6f327e40565234ff34dbda27460c5b47db0db77443dd85d1" dependencies = [ "cc", "libc", @@ -10305,10 +10406,11 @@ dependencies = [ [[package]] name = "time" -version = "0.3.19" +version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53250a3b3fed8ff8fd988587d8925d26a83ac3845d9e03b220b37f34c2b8d6c2" +checksum = "17f6bb557fd245c28e6411aa56b6403c689ad95061f50e4be16c274e70a17e48" dependencies = [ + "deranged", "itoa", "serde", "time-core", @@ -10317,15 +10419,15 @@ dependencies = [ [[package]] name = "time-core" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e153e1f1acaef8acc537e68b44906d2db6436e2b35ac2c6b42640fff91f00fd" +checksum = "7300fbefb4dadc1af235a9cef3737cea692a9d97e1b9cbcd4ebdae6f8868e6fb" [[package]] name = "time-macros" -version = "0.2.7" +version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a460aeb8de6dcb0f381e1ee05f1cd56fcf5a5f6eb8187ff3d8f0b11078d38b7c" +checksum = "1a942f44339478ef67935ab2bbaec2fb0322496cf3cbe84b261e06ac3814c572" dependencies = [ "time-core", ] @@ -10342,7 +10444,7 @@ dependencies = [ "pbkdf2 0.11.0", "rand 0.8.5", "rustc-hash", - "sha2 0.10.6", + "sha2 0.10.7", "thiserror", "unicode-normalization", "wasm-bindgen", @@ -10426,20 +10528,19 @@ dependencies = [ [[package]] name = "tokio-rustls" -version = "0.23.4" +version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c43ee83903113e03984cb9e5cebe6c04a5116269e900e3ddba8f068a62adda59" +checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081" dependencies = [ - "rustls 0.20.8", + "rustls 0.21.7", "tokio", - "webpki 0.22.0", ] [[package]] name = "tokio-stream" -version = "0.1.12" +version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fb52b74f05dbf495a8fba459fdc331812b96aa086d9eb78101fa0d4569c3313" +checksum = "397c988d37662c7dda6d2208364a706264bf3d6138b11d436cbac0ad38832842" dependencies = [ "futures-core", "pin-project-lite 0.2.13", @@ -10449,9 +10550,9 @@ dependencies = [ [[package]] name = "tokio-util" -version = "0.7.7" +version = "0.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5427d89453009325de0d8f342c9490009f76e999cb7672d77e46267448f7e6b2" +checksum = "806fe8c2c87eccc8b3267cbae29ed3ab2d0bd37fca70ab622e46aaa9375ddb7d" dependencies = [ "bytes", "futures-core", @@ -10561,20 +10662,20 @@ dependencies = [ [[package]] name = "tracing-attributes" -version = "0.1.23" +version = "0.1.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4017f8f45139870ca7e672686113917c71c7a6e02d4924eda67186083c03081a" +checksum = "5f4f31f56159e98206da9efd823404b79b6ef3143b4a7ab76e67b1751b25a4ab" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.29", ] [[package]] name = "tracing-core" -version = "0.1.30" +version = "0.1.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24eb03ba0eab1fd845050058ce5e616558e8f8d8fca633e6b163fe25c797213a" +checksum = "0955b8137a1df6f1a2e9a37d8a6656291ff0297c1a97c24e0d8425fe2312f79a" dependencies = [ "once_cell", "valuable", @@ -10674,7 +10775,7 @@ dependencies = [ "lazy_static", "rand 0.8.5", "smallvec", - "socket2 0.4.7", + "socket2 0.4.9", "thiserror", "tinyvec", "tokio", @@ -10776,7 +10877,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" dependencies = [ "cfg-if", - "digest 0.10.6", + "digest 0.10.7", "rand 0.8.5", "static_assertions", ] @@ -10789,9 +10890,9 @@ checksum = "497961ef93d974e23eb6f433eb5fe1b7930b659f06d12dec6fc44a8f554c0bba" [[package]] name = "ucd-trie" -version = "0.1.5" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e79c4d996edb816c91e4308506774452e55e95c3c9de07b6729e17e15a5ef81" +checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9" [[package]] name = "uint" @@ -10806,15 +10907,15 @@ dependencies = [ [[package]] name = "unicode-bidi" -version = "0.3.10" +version = "0.3.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d54675592c1dbefd78cbd98db9bacd89886e1ca50692a0692baefffdeb92dd58" +checksum = "92888ba5573ff080736b3648696b70cafad7d250551175acbaa4e0385b3e1460" [[package]] name = "unicode-ident" -version = "1.0.6" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84a22b9f218b40614adcb3f4ff08b703773ad44fa9423e4e0d346d5db86e4ebc" +checksum = "301abaae475aa91687eb82514b328ab47a211a533026cb25fc3e519b86adfc3c" [[package]] name = "unicode-normalization" @@ -10849,7 +10950,17 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9f214e8f697e925001e66ec2c6e37a4ef93f0f78c2eed7814394e10c62025b05" dependencies = [ - "generic-array 0.14.6", + "generic-array 0.14.7", + "subtle", +] + +[[package]] +name = "universal-hash" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc1de2c688dc15305988b563c3854064043356019f97a4b46276fe734c4f07ea" +dependencies = [ + "crypto-common", "subtle", ] @@ -10873,12 +10984,12 @@ checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" [[package]] name = "url" -version = "2.3.1" +version = "2.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d68c799ae75762b8c3fe375feb6600ef5602c883c5d21eb51c09f22b83c4643" +checksum = "143b538f18257fac9cad154828a57c6bf5157e1aa604d4816b5995bf6de87ae5" dependencies = [ "form_urlencoded", - "idna 0.3.0", + "idna 0.4.0", "percent-encoding", ] @@ -10894,17 +11005,17 @@ version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7" dependencies = [ - "getrandom 0.2.8", + "getrandom 0.2.10", "serde", ] [[package]] name = "uuid" -version = "1.3.0" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1674845326ee10d37ca60470760d4288a6f80f304007d92e5c53bab78c9cfd79" +checksum = "79daa5ed5740825c40b389c5e50312b9c86df53fccd33f281df655642b43869d" dependencies = [ - "getrandom 0.2.8", + "getrandom 0.2.10", ] [[package]] @@ -10948,22 +11059,20 @@ checksum = "9d5b2c62b4012a3e1eca5a7e077d13b3bf498c4073e33ccd58626607748ceeca" [[package]] name = "walkdir" -version = "2.3.2" +version = "2.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "808cf2735cd4b6866113f648b791c6adc5714537bc222d9347bb203386ffda56" +checksum = "36df944cda56c7d8d8b7496af378e6b16de9284591917d307c9b4d313c44e698" dependencies = [ "same-file", - "winapi", "winapi-util", ] [[package]] name = "want" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" dependencies = [ - "log", "try-lock", ] @@ -10987,9 +11096,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.84" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31f8dcbc21f30d9b8f2ea926ecb58f6b91192c17e9d33594b3df58b2007ca53b" +checksum = "7706a72ab36d8cb1f80ffbf0e071533974a60d0a308d01a5d0375bf60499a342" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -10997,24 +11106,24 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.84" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95ce90fd5bcc06af55a641a86428ee4229e44e07033963a2290a8e241607ccb9" +checksum = "5ef2b6d3c510e9625e5fe6f509ab07d66a760f0885d858736483c32ed7809abd" dependencies = [ "bumpalo", "log", "once_cell", "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.29", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-futures" -version = "0.4.34" +version = "0.4.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f219e0d211ba40266969f6dbdd90636da12f75bee4fc9d6c23d1260dadb51454" +checksum = "c02dbc21516f9f1f04f187958890d7e6026df8d16540b7ad9492bc34a67cea03" dependencies = [ "cfg-if", "js-sys", @@ -11024,9 +11133,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.84" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c21f77c0bedc37fd5dc21f897894a5ca01e7bb159884559461862ae90c0b4c5" +checksum = "dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -11034,22 +11143,22 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.84" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2aff81306fcac3c7515ad4e177f521b5c9a15f2b08f4e32d823066102f35a5f6" +checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.29", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.84" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0046fef7e28c3804e5e38bfa31ea2a0f73905319b677e57ebe37e49358989b5d" +checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1" [[package]] name = "wasm-instrument" @@ -11121,7 +11230,7 @@ version = "0.102.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "48134de3d7598219ab9eaf6b91b15d8e50d31da76b8519fe4ecfcec2cf35104b" dependencies = [ - "indexmap 1.9.2", + "indexmap 1.9.3", "url", ] @@ -11134,10 +11243,10 @@ dependencies = [ "anyhow", "bincode", "cfg-if", - "indexmap 1.9.2", + "indexmap 1.9.3", "libc", "log", - "object", + "object 0.30.4", "once_cell", "paste", "psm", @@ -11169,14 +11278,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c86437fa68626fe896e5afc69234bb2b5894949083586535f200385adfd71213" dependencies = [ "anyhow", - "base64 0.21.0", + "base64 0.21.3", "bincode", "directories-next", "file-per-thread-logger", "log", - "rustix", + "rustix 0.36.15", "serde", - "sha2 0.10.6", + "sha2 0.10.7", "toml 0.5.11", "windows-sys 0.45.0", "zstd 0.11.2+zstd.1.5.2", @@ -11194,9 +11303,9 @@ dependencies = [ "cranelift-frontend", "cranelift-native", "cranelift-wasm", - "gimli", + "gimli 0.27.3", "log", - "object", + "object 0.30.4", "target-lexicon", "thiserror", "wasmparser", @@ -11213,8 +11322,8 @@ dependencies = [ "anyhow", "cranelift-codegen", "cranelift-native", - "gimli", - "object", + "gimli 0.27.3", + "object 0.30.4", "target-lexicon", "wasmtime-environ", ] @@ -11227,10 +11336,10 @@ checksum = "a990198cee4197423045235bf89d3359e69bd2ea031005f4c2d901125955c949" dependencies = [ "anyhow", "cranelift-entity", - "gimli", - "indexmap 1.9.2", + "gimli 0.27.3", + "indexmap 1.9.3", "log", - "object", + "object 0.30.4", "serde", "target-lexicon", "thiserror", @@ -11244,14 +11353,14 @@ version = "8.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0de48df552cfca1c9b750002d3e07b45772dd033b0b206d5c0968496abf31244" dependencies = [ - "addr2line", + "addr2line 0.19.0", "anyhow", "bincode", "cfg-if", "cpp_demangle", - "gimli", + "gimli 0.27.3", "log", - "object", + "object 0.30.4", "rustc-demangle", "serde", "target-lexicon", @@ -11268,9 +11377,9 @@ version = "8.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6e0554b84c15a27d76281d06838aed94e13a77d7bf604bbbaf548aa20eb93846" dependencies = [ - "object", + "object 0.30.4", "once_cell", - "rustix", + "rustix 0.36.15", ] [[package]] @@ -11293,7 +11402,7 @@ dependencies = [ "anyhow", "cc", "cfg-if", - "indexmap 1.9.2", + "indexmap 1.9.3", "libc", "log", "mach", @@ -11301,7 +11410,7 @@ dependencies = [ "memoffset 0.8.0", "paste", "rand 0.8.5", - "rustix", + "rustix 0.36.15", "wasmtime-asm-macros", "wasmtime-environ", "wasmtime-jit-debug", @@ -11322,9 +11431,9 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.61" +version = "0.3.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e33b99f4b23ba3eec1a53ac264e35a755f00e966e0065077d6027c0f575b0b97" +checksum = "9b85cbef8c220a6abc02aefd892dfc0fc23afb1c6a426316ec33253a3877249b" dependencies = [ "js-sys", "wasm-bindgen", @@ -11342,9 +11451,9 @@ dependencies = [ [[package]] name = "webpki" -version = "0.22.0" +version = "0.22.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f095d78192e208183081cc07bc5515ef55216397af48b873e5edcd72637fa1bd" +checksum = "f0e74f82d49d545ad128049b7e88f6576df2da6b02e9ce565c6f533be576957e" dependencies = [ "ring", "untrusted", @@ -11356,9 +11465,24 @@ version = "0.22.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6c71e40d7d2c34a5106301fb632274ca37242cd0c9d3e64dbece371a40a2d87" dependencies = [ - "webpki 0.22.0", + "webpki 0.22.1", +] + +[[package]] +name = "webpki-roots" +version = "0.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b03058f88386e5ff5310d9111d53f48b17d732b401aeb83a8d5190f2ac459338" +dependencies = [ + "rustls-webpki 0.100.2", ] +[[package]] +name = "webpki-roots" +version = "0.25.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "14247bb57be4f377dfb94c72830b8ce8fc6beac03cf4bf7b9732eadd414123fc" + [[package]] name = "webrtc" version = "0.6.0" @@ -11382,10 +11506,10 @@ dependencies = [ "sdp", "serde", "serde_json", - "sha2 0.10.6", + "sha2 0.10.7", "stun", "thiserror", - "time 0.3.19", + "time 0.3.28", "tokio", "turn", "url", @@ -11417,42 +11541,41 @@ dependencies = [ [[package]] name = "webrtc-dtls" -version = "0.7.0" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7021987ae0a2ed6c8cd33f68e98e49bb6e74ffe9543310267b48a1bbe3900e5f" +checksum = "c4a00f4242f2db33307347bd5be53263c52a0331c96c14292118c9a6bb48d267" dependencies = [ "aes 0.6.0", - "aes-gcm 0.8.0", + "aes-gcm 0.10.2", "async-trait", "bincode", "block-modes", "byteorder", "ccm", "curve25519-dalek 3.2.0", - "der-parser 8.1.0", + "der-parser 8.2.0", "elliptic-curve 0.12.3", "hkdf", - "hmac 0.10.1", + "hmac 0.12.1", "log", - "oid-registry 0.6.1", "p256", "p384", "rand 0.8.5", "rand_core 0.6.4", - "rcgen 0.9.3", + "rcgen 0.10.0", "ring", "rustls 0.19.1", "sec1 0.3.0", "serde", - "sha-1", - "sha2 0.9.9", + "sha1", + "sha2 0.10.7", "signature 1.6.4", "subtle", "thiserror", "tokio", "webpki 0.21.4", "webrtc-util", - "x25519-dalek 2.0.0-pre.1", + "x25519-dalek 2.0.0", "x509-parser 0.13.2", ] @@ -11474,7 +11597,7 @@ dependencies = [ "tokio", "turn", "url", - "uuid 1.3.0", + "uuid 1.4.1", "waitgroup", "webrtc-mdns", "webrtc-util", @@ -11487,7 +11610,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f08dfd7a6e3987e255c4dbe710dde5d94d0f0574f8a21afa95d171376c143106" dependencies = [ "log", - "socket2 0.4.7", + "socket2 0.4.9", "thiserror", "tokio", "webrtc-util", @@ -11495,18 +11618,15 @@ dependencies = [ [[package]] name = "webrtc-media" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee2a3c157a040324e5049bcbd644ffc9079e6738fa2cfab2bcff64e5cc4c00d7" +checksum = "f72e1650a8ae006017d1a5280efb49e2610c19ccc3c0905b03b648aee9554991" dependencies = [ "byteorder", "bytes", - "derive_builder", - "displaydoc", "rand 0.8.5", "rtp", "thiserror", - "webrtc-util", ] [[package]] @@ -11571,15 +11691,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "wepoll-ffi" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d743fdedc5c64377b5fc2bc036b01c7fd642205a0d96356034ae3404d49eb7fb" -dependencies = [ - "cc", -] - [[package]] name = "which" version = "4.4.0" @@ -11603,9 +11714,9 @@ dependencies = [ [[package]] name = "widestring" -version = "0.5.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17882f045410753661207383517a6f62ec3dbeb6a4ed2acce01f0728238d1983" +checksum = "653f141f39ec16bba3c5abe400a0c60da7468261cc2cbf36805022876bc721a8" [[package]] name = "winapi" @@ -11652,18 +11763,12 @@ dependencies = [ ] [[package]] -name = "windows-sys" -version = "0.42.0" +name = "windows" +version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" +checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f" dependencies = [ - "windows_aarch64_gnullvm 0.42.1", - "windows_aarch64_msvc 0.42.1", - "windows_i686_gnu 0.42.1", - "windows_i686_msvc 0.42.1", - "windows_x86_64_gnu 0.42.1", - "windows_x86_64_gnullvm 0.42.1", - "windows_x86_64_msvc 0.42.1", + "windows-targets 0.48.5", ] [[package]] @@ -11672,7 +11777,7 @@ version = "0.45.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" dependencies = [ - "windows-targets 0.42.1", + "windows-targets 0.42.2", ] [[package]] @@ -11686,17 +11791,17 @@ dependencies = [ [[package]] name = "windows-targets" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e2522491fbfcd58cc84d47aeb2958948c4b8982e9a2d8a2a35bbaed431390e7" +checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" dependencies = [ - "windows_aarch64_gnullvm 0.42.1", - "windows_aarch64_msvc 0.42.1", - "windows_i686_gnu 0.42.1", - "windows_i686_msvc 0.42.1", - "windows_x86_64_gnu 0.42.1", - "windows_x86_64_gnullvm 0.42.1", - "windows_x86_64_msvc 0.42.1", + "windows_aarch64_gnullvm 0.42.2", + "windows_aarch64_msvc 0.42.2", + "windows_i686_gnu 0.42.2", + "windows_i686_msvc 0.42.2", + "windows_x86_64_gnu 0.42.2", + "windows_x86_64_gnullvm 0.42.2", + "windows_x86_64_msvc 0.42.2", ] [[package]] @@ -11716,9 +11821,9 @@ dependencies = [ [[package]] name = "windows_aarch64_gnullvm" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c9864e83243fdec7fc9c5444389dcbbfd258f745e7853198f365e3c4968a608" +checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" [[package]] name = "windows_aarch64_gnullvm" @@ -11734,9 +11839,9 @@ checksum = "17cffbe740121affb56fad0fc0e421804adf0ae00891205213b5cecd30db881d" [[package]] name = "windows_aarch64_msvc" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c8b1b673ffc16c47a9ff48570a9d85e25d265735c503681332589af6253c6c7" +checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" [[package]] name = "windows_aarch64_msvc" @@ -11752,9 +11857,9 @@ checksum = "2564fde759adb79129d9b4f54be42b32c89970c18ebf93124ca8870a498688ed" [[package]] name = "windows_i686_gnu" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de3887528ad530ba7bdbb1faa8275ec7a1155a45ffa57c37993960277145d640" +checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" [[package]] name = "windows_i686_gnu" @@ -11770,9 +11875,9 @@ checksum = "9cd9d32ba70453522332c14d38814bceeb747d80b3958676007acadd7e166956" [[package]] name = "windows_i686_msvc" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf4d1122317eddd6ff351aa852118a2418ad4214e6613a50e0191f7004372605" +checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" [[package]] name = "windows_i686_msvc" @@ -11788,9 +11893,9 @@ checksum = "cfce6deae227ee8d356d19effc141a509cc503dfd1f850622ec4b0f84428e1f4" [[package]] name = "windows_x86_64_gnu" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1040f221285e17ebccbc2591ffdc2d44ee1f9186324dd3e84e99ac68d699c45" +checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" [[package]] name = "windows_x86_64_gnu" @@ -11800,9 +11905,9 @@ checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" [[package]] name = "windows_x86_64_gnullvm" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "628bfdf232daa22b0d64fdb62b09fcc36bb01f05a3939e20ab73aaf9470d0463" +checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" [[package]] name = "windows_x86_64_gnullvm" @@ -11818,9 +11923,9 @@ checksum = "d19538ccc21819d01deaf88d6a17eae6596a12e9aafdbb97916fb49896d89de9" [[package]] name = "windows_x86_64_msvc" -version = "0.42.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "447660ad36a13288b1db4d4248e857b510e8c3a225c822ba4fb748c0aafecffd" +checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" [[package]] name = "windows_x86_64_msvc" @@ -11839,11 +11944,12 @@ dependencies = [ [[package]] name = "winreg" -version = "0.10.1" +version = "0.50.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80d0f4e272c85def139476380b12f9ac60926689dd2e01d4923222f40580869d" +checksum = "524e57b2c537c0f9b1e69f1965311ec12182b4122e45035b1508cd24d2adadb1" dependencies = [ - "winapi", + "cfg-if", + "windows-sys 0.48.0", ] [[package]] @@ -11868,12 +11974,13 @@ dependencies = [ [[package]] name = "x25519-dalek" -version = "2.0.0-pre.1" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5da623d8af10a62342bcbbb230e33e58a63255a58012f8653c578e54bab48df" +checksum = "fb66477291e7e8d2b0ff1bcb900bf29489a9692816d79874bea351e7a8b6de96" dependencies = [ - "curve25519-dalek 3.2.0", + "curve25519-dalek 4.0.0", "rand_core 0.6.4", + "serde", "zeroize", ] @@ -11893,7 +12000,7 @@ dependencies = [ "ring", "rusticata-macros", "thiserror", - "time 0.3.19", + "time 0.3.28", ] [[package]] @@ -11902,16 +12009,16 @@ version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e0ecbeb7b67ce215e40e3cc7f2ff902f94a223acf44995934763467e7b1febc8" dependencies = [ - "asn1-rs 0.5.1", + "asn1-rs 0.5.2", "base64 0.13.1", "data-encoding", - "der-parser 8.1.0", + "der-parser 8.2.0", "lazy_static", "nom", "oid-registry 0.6.1", "rusticata-macros", "thiserror", - "time 0.3.19", + "time 0.3.28", ] [[package]] @@ -11930,11 +12037,11 @@ dependencies = [ [[package]] name = "yasna" -version = "0.5.1" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aed2e7a52e3744ab4d0c05c20aa065258e84c49fd4226f5191b2ed29712710b4" +checksum = "e17bb3549cc1321ae1296b9cdc2698e2b6cb1992adfa19a8c72e5b7a738f44cd" dependencies = [ - "time 0.3.19", + "time 0.3.28", ] [[package]] @@ -11948,14 +12055,13 @@ dependencies = [ [[package]] name = "zeroize_derive" -version = "1.3.3" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44bf07cb3e50ea2003396695d58bf46bc9887a1f362260446fad6bc4e79bd36c" +checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", - "synstructure", + "syn 2.0.29", ] [[package]] @@ -11998,9 +12104,9 @@ dependencies = [ [[package]] name = "zstd-sys" -version = "2.0.7+zstd.1.5.4" +version = "2.0.8+zstd.1.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94509c3ba2fe55294d752b79842c530ccfab760192521df74a081a78d2b3c7f5" +checksum = "5556e6ee25d32df2586c098bbfa278803692a20d0ab9565e049480d52707ec8c" dependencies = [ "cc", "libc", diff --git a/pallets/bridges/nomad/da-bridge/src/lib.rs b/pallets/bridges/nomad/da-bridge/src/lib.rs index 9d0209a39..9f00202ff 100644 --- a/pallets/bridges/nomad/da-bridge/src/lib.rs +++ b/pallets/bridges/nomad/da-bridge/src/lib.rs @@ -8,11 +8,11 @@ pub use pallet::*; mod message; pub mod weights; -// #[cfg(test)] -// mod mock; +#[cfg(test)] +mod mock; -// #[cfg(test)] -// mod tests; +#[cfg(test)] +mod tests; // #[cfg(feature = "runtime-benchmarks")] // mod benchmarking; @@ -45,16 +45,6 @@ pub mod pallet { #[pallet::pallet] pub struct Pallet(_); - // Genesis config - #[pallet::genesis_config] - #[derive(Default)] - pub struct GenesisConfig {} - - #[pallet::genesis_build] - impl BuildGenesisConfig for GenesisConfig { - fn build(&self) {} - } - #[pallet::event] #[pallet::generate_deposit(pub(super) fn deposit_event)] pub enum Event { diff --git a/pallets/bridges/nomad/da-bridge/src/mock.rs b/pallets/bridges/nomad/da-bridge/src/mock.rs index 7eeeb256d..316653f24 100644 --- a/pallets/bridges/nomad/da-bridge/src/mock.rs +++ b/pallets/bridges/nomad/da-bridge/src/mock.rs @@ -15,8 +15,6 @@ type Block = frame_system::mocking::MockDaBlock; // TODO: add proper config once frame executive mocking has been demonstrated // Configure a mock runtime to test the pallet. -// NOTE: We're getting a error E0275 here beacuse of https://github.com/rust-lang/rust/issues/96634 in rust compiler. -// We may need to comment out the tests for this pallet until the above issue is fixed or we find an alternative to GAT for Block. frame_support::construct_runtime!( pub struct Test { diff --git a/pallets/system/src/lib.rs b/pallets/system/src/lib.rs index 181b35bd5..2b3e8e6c1 100644 --- a/pallets/system/src/lib.rs +++ b/pallets/system/src/lib.rs @@ -1395,9 +1395,7 @@ impl Pallet { /// Remove temporary "environment" entries in storage, compute the storage root and return the /// resulting header for this block. - pub fn finalize() -> DaHeaderFor -// <::Block as sp_runtime::traits::Block>::Header: avail_core::traits::ExtendedHeader<<<::Block as sp_runtime::traits::Block>::Header as sp_runtime::traits::Header>::Number, ::Hash, sp_runtime::Digest, avail_core::header::HeaderExtension> - { + pub fn finalize() -> DaHeaderFor { log::debug!( target: LOG_TARGET, "[{:?}] {} extrinsics, length: {} (normal {}%, op: {}%, mandatory {}%) / normal weight:\ @@ -1898,10 +1896,15 @@ pub mod pallet_prelude { pub type HeaderFor = <::Block as sp_runtime::traits::HeaderProvider>::HeaderT; - /// Type alias for the DA Header - pub type DaHeaderFor = - <::Block as avail_core::traits::ExtendedBlock>::Header; - /// Type alias for the `BlockNumber` associated type of system config. pub type BlockNumberFor = as sp_runtime::traits::Header>::Number; + + /// Type alias for the DA Header + pub type DaHeaderFor = + <::Block as avail_core::traits::DaHeaderProvider< + BlockNumberFor, + ::Hash, + sp_runtime::generic::Digest, + HeaderExtension, + >>::DaHeader; } diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index a7f28172f..373752320 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -954,11 +954,11 @@ impl nomad_home::Config for Runtime { type WeightInfo = nomad_home::weights::SubstrateWeight; } -// impl nomad_da_bridge::Config for Runtime { -// type DABridgePalletId = constants::nomad::DABridgePalletId; -// type RuntimeEvent = RuntimeEvent; -// type WeightInfo = nomad_da_bridge::weights::SubstrateWeight; -// } +impl nomad_da_bridge::Config for Runtime { + type DABridgePalletId = constants::nomad::DABridgePalletId; + type RuntimeEvent = RuntimeEvent; + type WeightInfo = nomad_da_bridge::weights::SubstrateWeight; +} // TODO @miguel Aline this with previous order and ID to keep the compatibility. // Create the runtime by composing the FRAME pallets that were previously configured. @@ -1003,7 +1003,7 @@ construct_runtime!( // Nomad NomadUpdaterManager: nomad_updater_manager = 30, NomadHome: nomad_home = 31, - // NomadDABridge: nomad_da_bridge = 32, + NomadDABridge: nomad_da_bridge = 32, // More from upgrade to v0.9.33 Preimage: pallet_preimage = 33, @@ -1125,7 +1125,7 @@ mod tests { as TryState>::try_state(block, All)?; as TryState>::try_state(block, All)?; as TryState>::try_state(block, All)?; - // as TryState>::try_state(block, All)?; + as TryState>::try_state(block, All)?; as TryState>::try_state(block, All)?; as TryState>::try_state(block, All)?; as TryState< @@ -1197,14 +1197,14 @@ mod tests { const NOMAD_UPDATER_MANAGER_CALL_SIZE: usize = size_of::>(); const NOMAD_HOME_CALL_SIZE: usize = size_of::>(); - // const NOMAD_BRIDGE_CALL_SIZE: usize = size_of::>(); + const NOMAD_BRIDGE_CALL_SIZE: usize = size_of::>(); #[test_case( RUNTIME_CALL_SIZE => 160)] #[test_case( DA_CALL_SIZE => 32)] #[test_case( SYSTEM_CALL_SIZE => 32)] #[test_case( NOMAD_UPDATER_MANAGER_CALL_SIZE => 0)] #[test_case( NOMAD_HOME_CALL_SIZE => 152)] - // #[test_case( NOMAD_BRIDGE_CALL_SIZE => 48)] + #[test_case( NOMAD_BRIDGE_CALL_SIZE => 48)] fn call_size(size: usize) -> usize { const MAX_CALL_SIZE: usize = 208; assert!( From 4e7869ac713d5bb0c2171085912c8e26663ce131 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Thu, 31 Aug 2023 21:51:07 +0530 Subject: [PATCH 39/58] Fixed da-bridge pallet benchmarks --- .../nomad/da-bridge/src/benchmarking.rs | 18 ++++++------------ pallets/bridges/nomad/da-bridge/src/lib.rs | 5 ++--- pallets/bridges/nomad/da-bridge/src/mock.rs | 18 ++++-------------- pallets/bridges/nomad/home/src/benchmarking.rs | 2 +- pallets/bridges/nomad/home/src/mock.rs | 14 ++------------ .../bridges/nomad/updater-manager/src/mock.rs | 3 +-- pallets/system/benchmarking/src/mock.rs | 3 +-- runtime/src/lib.rs | 4 ++-- 8 files changed, 19 insertions(+), 48 deletions(-) diff --git a/pallets/bridges/nomad/da-bridge/src/benchmarking.rs b/pallets/bridges/nomad/da-bridge/src/benchmarking.rs index e435b6103..75d9a614e 100644 --- a/pallets/bridges/nomad/da-bridge/src/benchmarking.rs +++ b/pallets/bridges/nomad/da-bridge/src/benchmarking.rs @@ -1,6 +1,6 @@ -use avail_core::{header::HeaderExtension, traits::ExtendedHeader}; +use avail_core::traits::{ExtendedBlock, ExtendedHeader}; use frame_benchmarking::{benchmarks, whitelisted_caller}; -use frame_system::{BlockHash, RawOrigin}; +use frame_system::{pallet_prelude::BlockNumberFor, BlockHash, RawOrigin}; use hex_literal::hex; use nomad_home::Nonces; use sp_core::H256; @@ -15,12 +15,6 @@ benchmarks! { [u8; 32]: From<::AccountId>, H256: From<::Hash>, H256: Into<::Hash>, - u32: From<::BlockNumber>, - T::Header: ExtendedHeader< - ::BlockNumber, - ::Hash, - sp_runtime::generic::Digest, - HeaderExtension>, ::Hash: From, } @@ -29,20 +23,20 @@ benchmarks! { let extrinsics_root :H256 = hex!("03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c111314").into(); // Create block header for block 10 - let block_number :T::BlockNumber = 10u32.into(); + let block_number: BlockNumberFor = 10u32.into(); let state_root = H256::repeat_byte(2u8).into(); let parent_hash = H256::repeat_byte(1u8).into(); let extension = Default::default(); let digest = Default::default(); - let header = Box::new(>::new( - block_number.clone(), + let header = Box::new(<<::Block as ExtendedBlock<_>>::DaHeader as ExtendedHeader<_,_,_,_>>::new( + block_number, extrinsics_root.into(), state_root, parent_hash, digest, extension)); - let header_hash :T::Hash = header.hash(); + let header_hash: T::Hash = header.hash(); // Insert 10th block's hash into block number --> hash mapping so // submitting 10th block's header is accepted by pallet diff --git a/pallets/bridges/nomad/da-bridge/src/lib.rs b/pallets/bridges/nomad/da-bridge/src/lib.rs index 9f00202ff..4b4abefa1 100644 --- a/pallets/bridges/nomad/da-bridge/src/lib.rs +++ b/pallets/bridges/nomad/da-bridge/src/lib.rs @@ -14,8 +14,8 @@ mod mock; #[cfg(test)] mod tests; -// #[cfg(feature = "runtime-benchmarks")] -// mod benchmarking; +#[cfg(feature = "runtime-benchmarks")] +mod benchmarking; #[frame_support::pallet] pub mod pallet { @@ -68,7 +68,6 @@ pub mod pallet { where [u8; 32]: From, H256: From, - u32: From>, { /// Dispatch a data root message to the home if the header is valid. #[pallet::call_index(0)] diff --git a/pallets/bridges/nomad/da-bridge/src/mock.rs b/pallets/bridges/nomad/da-bridge/src/mock.rs index 316653f24..fddfceeeb 100644 --- a/pallets/bridges/nomad/da-bridge/src/mock.rs +++ b/pallets/bridges/nomad/da-bridge/src/mock.rs @@ -86,22 +86,13 @@ impl da_bridge::Config for Test { type WeightInfo = (); } +#[derive(Default)] pub(crate) struct ExtBuilder { updater: H160, local_domain: u32, committed_root: H256, } -impl Default for ExtBuilder { - fn default() -> ExtBuilder { - ExtBuilder { - updater: Default::default(), - local_domain: Default::default(), - committed_root: Default::default(), - } - } -} - impl ExtBuilder { pub(crate) fn with_base(mut self, base: NomadBase) -> Self { self.updater = base.updater; @@ -114,8 +105,7 @@ impl ExtBuilder { let mut t = RuntimeGenesisConfig::default() .system .build_storage() - .unwrap() - .into(); + .unwrap(); nomad_home::GenesisConfig:: { updater: self.updater, @@ -155,8 +145,8 @@ pub(crate) fn _events() -> Vec> { pub(crate) fn fill_block_hash_mapping_up_to_n(n: u8) { for i in 0..=n { frame_system::BlockHash::::insert::::Hash>( - (n as u32).into(), - H256::repeat_byte(i).into(), + (n as u32), + H256::repeat_byte(i), ); } } diff --git a/pallets/bridges/nomad/home/src/benchmarking.rs b/pallets/bridges/nomad/home/src/benchmarking.rs index 5c06ba78a..f543bd75b 100644 --- a/pallets/bridges/nomad/home/src/benchmarking.rs +++ b/pallets/bridges/nomad/home/src/benchmarking.rs @@ -104,7 +104,7 @@ mod tests { let previous_root = H256::repeat_byte(0); let new_root = H256::repeat_byte(1); - let signed_update = updater.sign_update(previous_root.clone(), new_root.clone()); + let signed_update = updater.sign_update(previous_root, new_root); assert_eq!(signed_update, expected_signed_update()); } diff --git a/pallets/bridges/nomad/home/src/mock.rs b/pallets/bridges/nomad/home/src/mock.rs index 64849257b..87e75a829 100644 --- a/pallets/bridges/nomad/home/src/mock.rs +++ b/pallets/bridges/nomad/home/src/mock.rs @@ -72,22 +72,13 @@ impl nomad_updater_manager::Config for Test { type RuntimeEvent = RuntimeEvent; } +#[derive(Default)] pub(crate) struct ExtBuilder { updater: H160, local_domain: u32, committed_root: H256, } -impl Default for ExtBuilder { - fn default() -> ExtBuilder { - ExtBuilder { - updater: Default::default(), - local_domain: Default::default(), - committed_root: Default::default(), - } - } -} - impl ExtBuilder { pub(crate) fn with_base(mut self, base: NomadBase) -> Self { self.updater = base.updater; @@ -100,8 +91,7 @@ impl ExtBuilder { let mut t = RuntimeGenesisConfig::default() .system .build_storage() - .unwrap() - .into(); + .unwrap(); home::GenesisConfig:: { updater: self.updater, diff --git a/pallets/bridges/nomad/updater-manager/src/mock.rs b/pallets/bridges/nomad/updater-manager/src/mock.rs index f1a04e5bb..0b1cd6c59 100644 --- a/pallets/bridges/nomad/updater-manager/src/mock.rs +++ b/pallets/bridges/nomad/updater-manager/src/mock.rs @@ -66,8 +66,7 @@ pub fn new_test_ext() -> sp_io::TestExternalities { let t = RuntimeGenesisConfig::default() .system .build_storage() - .unwrap() - .into(); + .unwrap(); let mut ext = sp_io::TestExternalities::new(t); ext.execute_with(|| System::set_block_number(1)); ext diff --git a/pallets/system/benchmarking/src/mock.rs b/pallets/system/benchmarking/src/mock.rs index 1c8517f6c..c052e21f3 100644 --- a/pallets/system/benchmarking/src/mock.rs +++ b/pallets/system/benchmarking/src/mock.rs @@ -90,8 +90,7 @@ pub fn new_test_ext() -> sp_io::TestExternalities { let t = RuntimeGenesisConfig::default() .system .build_storage() - .unwrap() - .into(); + .unwrap(); let version = sp_version::RuntimeVersion { spec_name: "".into(), diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 373752320..103b1972e 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -1032,7 +1032,7 @@ extern crate frame_benchmarking; mod benches { define_benchmarks!( [frame_benchmarking, BaselineBench::] - [pallet_utility, crate::Utility] + [pallet_utility, $crate::Utility] [pallet_babe, crate::Babe] [pallet_timestamp, crate::Timestamp] [pallet_indices, crate::Indices] @@ -1054,7 +1054,7 @@ mod benches { [frame_system, SystemBench::] [da_control, crate::DataAvailability] [nomad_home, crate::NomadHome] - // [nomad_da_bridge, crate::NomadDABridge] + [nomad_da_bridge, crate::NomadDABridge] ); } From 70ffdd40197bb84b8968688cdafbda56eedf07be Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Fri, 1 Sep 2023 19:29:03 +0530 Subject: [PATCH 40/58] Updated RPC port --- avail-subxt/build_api.sh | 2 +- avail-subxt/src/e2e.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/avail-subxt/build_api.sh b/avail-subxt/build_api.sh index c2f3ad24d..b3f08fc55 100755 --- a/avail-subxt/build_api.sh +++ b/avail-subxt/build_api.sh @@ -33,7 +33,7 @@ subxt codegen \ --derive-for-type avail_core::AppId=Default \ --derive-for-type avail_core::AppId=Copy \ --derive-for-type avail_core::AppId=derive_more::From \ - --url http://localhost:9933 \ + --url http://localhost:9944 \ | sed -En "s/pub struct KateCommitment/#\[serde\(rename_all = \"camelCase\"\)\] \0/p" \ | sed -E '1i \#\[allow(clippy::all)]' \ | rustfmt --edition=2021 --emit=stdout > src/api_dev.rs diff --git a/avail-subxt/src/e2e.rs b/avail-subxt/src/e2e.rs index 8b3e13ffe..193253704 100644 --- a/avail-subxt/src/e2e.rs +++ b/avail-subxt/src/e2e.rs @@ -107,8 +107,7 @@ async fn run_alice_node(opts: &E2EOpts) -> Result { "--execution=NativeElseWasm", "--alice", "--port=30333", - "--ws-port=9944", - "--rpc-port=9933", + "--rpc-port=9944", "--validator", "--rpc-cors=all", ]; From 6f581799c3a2e9b431b50d872eaf4d4b0c240d33 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Fri, 1 Sep 2023 19:29:27 +0530 Subject: [PATCH 41/58] Added troubleshooting to readme --- avail-subxt/README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/avail-subxt/README.md b/avail-subxt/README.md index 777fee813..64ef17e11 100644 --- a/avail-subxt/README.md +++ b/avail-subxt/README.md @@ -6,12 +6,18 @@ Facilities to use `subxt` to connect with a Data-Availability Node. Once node is updated, we can re-generate the `src/api_dev.rs` file using the following script: -**NOTE:** The script requires a running node at `localhost:9933` +**NOTE:** The script requires a running node at `localhost:9944` ```Bash #> ./build_api.sh ``` +### Troubleshooting + +1. If you encounter any warnings or errors related to 'sed' while running the script on macOS, please ensure that you have [gnu-sed](https://medium.com/@bramblexu/install-gnu-sed-on-mac-os-and-set-it-as-default-7c17ef1b8f64) installed. + +2. If you're not receiving any error messages, but the code generation process is not producing any output, consider running the individual code generation commands separately to check for any error messages. + # E2E Binary This binary executes each example on a Data-Availability Node. It launches the node before run any From b8c4863a627b363afa09184c34f0cbf7dbbe1a1e Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Fri, 1 Sep 2023 19:30:26 +0530 Subject: [PATCH 42/58] Commented block_length_proposal from CI e2e --- .github/workflows/default.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index ad3a04ec9..12a2e296f 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -232,7 +232,7 @@ jobs: cargo run --release --manifest-path avail-subxt/Cargo.toml --example max_block_submit cargo run --release --manifest-path avail-subxt/Cargo.toml --example submit_data cargo run --release --manifest-path avail-subxt/Cargo.toml --example submit_data_and_dispatch_data_root - cargo run --release --manifest-path avail-subxt/Cargo.toml --example submit_block_length_proposal + # cargo run --release --manifest-path avail-subxt/Cargo.toml --example submit_block_length_proposal # Democracy calls are executable only with fast runtime (with democracy InstantAllowed set to true) # cargo run --release --manifest-path avail-subxt/Cargo.toml --example democracy_external # cargo run --release --manifest-path avail-subxt/Cargo.toml --example submit_block_length_proposal_democracy From 0df2ba8181e1bbd1705240d1fac8a03ced812c86 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Fri, 1 Sep 2023 19:44:55 +0530 Subject: [PATCH 43/58] fmt: weights to v2 --- pallets/dactr/src/weights.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pallets/dactr/src/weights.rs b/pallets/dactr/src/weights.rs index 7b63ba545..039e6e720 100644 --- a/pallets/dactr/src/weights.rs +++ b/pallets/dactr/src/weights.rs @@ -86,16 +86,16 @@ impl WeightInfo for SubstrateWeight { /// The range of component `i` is `[0, 524288]`. fn data_root(i: u32, ) -> Weight { // Minimum execution time: 1_457 nanoseconds. - Weight::from_ref_time(1_487_000_u64) + Weight::from_parts(1_487_000, 0) // Standard Error: 21 - .saturating_add(Weight::from_ref_time(5_251_u64).saturating_mul(i as u64)) + .saturating_add(Weight::from_parts(5_251, 0).saturating_mul(i as u64)) } /// The range of component `i` is `[0, 2097152]`. fn data_root_batch(i: u32, ) -> Weight { // Minimum execution time: 778 nanoseconds. - Weight::from_ref_time(825_000_u64) + Weight::from_parts(825_000, 0) // Standard Error: 5 - .saturating_add(Weight::from_ref_time(4_931_u64).saturating_mul(i as u64)) + .saturating_add(Weight::from_parts(4_931, 0).saturating_mul(i as u64)) } /// The range of component `i` is `[32, 1024]`. fn commitment_builder_32(i: u32, ) -> Weight { @@ -154,16 +154,16 @@ impl WeightInfo for () { /// The range of component `i` is `[0, 524288]`. fn data_root(i: u32, ) -> Weight { // Minimum execution time: 1_457 nanoseconds. - Weight::from_ref_time(1_487_000_u64) + Weight::from_parts(1_487_000, 0) // Standard Error: 21 - .saturating_add(Weight::from_ref_time(5_251_u64).saturating_mul(i as u64)) + .saturating_add(Weight::from_parts(5_251, 0).saturating_mul(i as u64)) } /// The range of component `i` is `[0, 2097152]`. fn data_root_batch(i: u32, ) -> Weight { // Minimum execution time: 778 nanoseconds. - Weight::from_ref_time(825_000_u64) + Weight::from_parts(825_000, 0) // Standard Error: 5 - .saturating_add(Weight::from_ref_time(4_931_u64).saturating_mul(i as u64)) + .saturating_add(Weight::from_parts(4_931, 0).saturating_mul(i as u64)) } /// The range of component `i` is `[32, 1024]`. fn commitment_builder_32(i: u32, ) -> Weight { From 811cb12b0f9284ae529dfb4785523c80eeb10830 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Fri, 1 Sep 2023 20:15:30 +0530 Subject: [PATCH 44/58] code cleaning & clippy fixes --- Cargo.toml | 6 --- pallets/bridges/nomad/da-bridge/src/lib.rs | 4 +- pallets/bridges/nomad/da-bridge/src/mock.rs | 2 +- pallets/bridges/nomad/da-bridge/src/tests.rs | 4 +- pallets/bridges/nomad/home/src/tests.rs | 8 ++-- pallets/dactr/src/lib.rs | 17 -------- pallets/mocked_runtime/Cargo.toml | 6 +-- pallets/system/src/lib.rs | 2 +- pallets/system/src/mock.rs | 1 - runtime/src/lib.rs | 41 ++++++++++---------- 10 files changed, 32 insertions(+), 59 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b94177025..0212cca53 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -53,9 +53,6 @@ sc-transaction-pool = { git = "https://github.com/paritytech/substrate.git", bra sc-transaction-pool-api = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } sp-consensus = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } sc-consensus = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -# Renamed: (https://github.com/paritytech/substrate/pull/13458) -# sp-finality-grandpa -> sp-consensus-grandpa -# sc-finality-grandpa -> sc-consensus-grandpa sp-consensus-grandpa = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } sc-client-api = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } sc-client-db = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } @@ -87,9 +84,6 @@ sc-network-common = { git = "https://github.com/paritytech/substrate.git", branc sc-network-sync = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } sc-chain-spec = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } sc-consensus-slots = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -# Removed: https://github.com/paritytech/substrate/pull/13216 -# sc-consensus-uncles = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } -# sp-authorship = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } sp-keyring = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } sp-tracing = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } sp-weights = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } diff --git a/pallets/bridges/nomad/da-bridge/src/lib.rs b/pallets/bridges/nomad/da-bridge/src/lib.rs index 4b4abefa1..5cb1b376e 100644 --- a/pallets/bridges/nomad/da-bridge/src/lib.rs +++ b/pallets/bridges/nomad/da-bridge/src/lib.rs @@ -95,7 +95,7 @@ pub mod pallet { recipient_address: H256, header: &DaHeaderFor, ) -> DispatchResultWithPostInfo { - // TODO: avoid saturating values + // Safety: Even if a BlockNumber type is larger than u32, it won't pose any issues for the next 2000+ years let block_number: u32 = (*header.number()).saturated_into(); let data_root = header.extension().data_root(); @@ -131,8 +131,6 @@ pub mod pallet { /// mapping. fn ensure_valid_header(header: &DaHeaderFor) -> DispatchResultWithPostInfo { // Ensure header's block number is in the mapping - // TODO: Even though we're sure that the block number is of type u32, we should probably avoid saturating values - // Temporary type conversions until we fix the interoperatibility across header block numbers let number: u32 = (*header.number()).saturated_into(); let stored_hash = frame_system::Pallet::::block_hash::>(number.into()); diff --git a/pallets/bridges/nomad/da-bridge/src/mock.rs b/pallets/bridges/nomad/da-bridge/src/mock.rs index fddfceeeb..01994352a 100644 --- a/pallets/bridges/nomad/da-bridge/src/mock.rs +++ b/pallets/bridges/nomad/da-bridge/src/mock.rs @@ -145,7 +145,7 @@ pub(crate) fn _events() -> Vec> { pub(crate) fn fill_block_hash_mapping_up_to_n(n: u8) { for i in 0..=n { frame_system::BlockHash::::insert::::Hash>( - (n as u32), + n as u32, H256::repeat_byte(i), ); } diff --git a/pallets/bridges/nomad/da-bridge/src/tests.rs b/pallets/bridges/nomad/da-bridge/src/tests.rs index ddbc23f30..43ae7feb7 100644 --- a/pallets/bridges/nomad/da-bridge/src/tests.rs +++ b/pallets/bridges/nomad/da-bridge/src/tests.rs @@ -27,7 +27,7 @@ fn it_accepts_valid_extrinsic_root() { // Create block header for block 10 let header = Header::, BlakeTwo256> { parent_hash: [1u8; 32].into(), - number: 10 as u32, + number: 10_u32, state_root: [2u8; 32].into(), extrinsics_root: hex!( "03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c111314" @@ -40,7 +40,7 @@ fn it_accepts_valid_extrinsic_root() { // Insert 10th block's hash into block number --> hash mapping so // submitting 10th block's header is accepted by pallet frame_system::BlockHash::::insert::::Hash>( - 10u32.into(), + 10u32, header.hash(), ); diff --git a/pallets/bridges/nomad/home/src/tests.rs b/pallets/bridges/nomad/home/src/tests.rs index 9239e7509..f5e77ac07 100644 --- a/pallets/bridges/nomad/home/src/tests.rs +++ b/pallets/bridges/nomad/home/src/tests.rs @@ -148,7 +148,7 @@ fn it_update_max_index_witness(dispatch_messages: usize, max_index: u32) -> Disp .take(dispatch_messages) .map(|_| dispatch_random_message(sender.clone())) .last() - .unwrap_or(committed_root.clone()); + .unwrap_or(committed_root); let signed_update = TEST_UPDATER.sign_update(committed_root, last_root); Home::update(sender, signed_update, max_index) @@ -169,7 +169,7 @@ fn it_dispatches_messages_and_accepts_updates() { let roots = (0..2) .map(|_| dispatch_random_message(origin.clone())) .collect::>(); - let last_root = roots.last().unwrap().clone(); + let last_root = *roots.last().unwrap(); // Get updater signature let signed_update = TEST_UPDATER.sign_update(committed_root, last_root); @@ -232,7 +232,7 @@ fn it_rejects_invalid_signature() { origin.clone(), TEST_REMOTE_DOMAIN, TEST_RECIPIENT, - body.clone() + body )); // Get fake updater signature @@ -241,7 +241,7 @@ fn it_rejects_invalid_signature() { // Assert err returned from submitting signed update assert_err!( - Home::update(origin, signed_update.clone(), 10), + Home::update(origin, signed_update, 10), Error::::InvalidUpdaterSignature ); }) diff --git a/pallets/dactr/src/lib.rs b/pallets/dactr/src/lib.rs index 82597e581..357a53c06 100644 --- a/pallets/dactr/src/lib.rs +++ b/pallets/dactr/src/lib.rs @@ -262,23 +262,6 @@ pub mod pallet { NextAppId::::put::(AppId(last_id)); } } - - // #[cfg(feature = "std")] - // impl GenesisConfig { - // /// Direct implementation of `GenesisBuild::build_storage`. - // /// - // /// Kept in order not to break dependency. - // pub fn build_storage(&self) -> Result { - // >::build_storage(self) - // } - - // /// Direct implementation of `GenesisBuild::assimilate_storage`. - // /// - // /// Kept in order not to break dependency. - // pub fn assimilate_storage(&self, storage: &mut sp_runtime::Storage) -> Result<(), String> { - // >::assimilate_storage(self, storage) - // } - // } } impl Pallet { diff --git a/pallets/mocked_runtime/Cargo.toml b/pallets/mocked_runtime/Cargo.toml index 43c499d85..d656f17c0 100644 --- a/pallets/mocked_runtime/Cargo.toml +++ b/pallets/mocked_runtime/Cargo.toml @@ -20,11 +20,11 @@ derive_more = "0.99.17" serde = { version = "1.0.121", features = ["derive"] } frame-support = "4.0.0-dev" -sp-runtime = { version = "24.0.0" } -sp-core = { version = "21.0.0" } +sp-runtime = "24.0.0" +sp-core = "21.0.0" sp-staking = "4.0.0-dev" sp-io = "23.0.0" -sp-version = { version = "22.0.0" } +sp-version = "22.0.0" sp-inherents = "4.0.0-dev" sp-std = "8.0.0" diff --git a/pallets/system/src/lib.rs b/pallets/system/src/lib.rs index 2b3e8e6c1..976b59e74 100644 --- a/pallets/system/src/lib.rs +++ b/pallets/system/src/lib.rs @@ -1734,7 +1734,7 @@ impl Pallet { Self::deposit_event(Event::KilledAccount { account: who }); } - //// Determine whether or not it is possible to update the code. + /// Determine whether or not it is possible to update the code. /// /// Checks the given code if it is a valid runtime wasm blob by instantianting /// it and extracting the runtime version of it. It checks that the runtime version diff --git a/pallets/system/src/mock.rs b/pallets/system/src/mock.rs index cbcf7e73e..9e414c7a4 100644 --- a/pallets/system/src/mock.rs +++ b/pallets/system/src/mock.rs @@ -94,7 +94,6 @@ impl Config for Test { type DbWeight = DbWeight; type Hash = H256; type Hashing = BlakeTwo256; - // type Header = avail_core::header::Header; type HeaderExtensionBuilder = frame_system::header_builder::da::HeaderExtensionBuilder; type Lookup = IdentityLookup; type MaxConsumers = ConstU32<16>; diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 103b1972e..ba26ea2f3 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -21,7 +21,6 @@ #![cfg_attr(not(feature = "std"), no_std)] // `construct_runtime!` does a lot of recursion and requires us to increase the limit to 512. #![recursion_limit = "512"] -#![feature(trivial_bounds)] #![feature(result_option_inspect)] #![allow(macro_expanded_macro_exports_accessed_by_absolute_paths)] @@ -1033,28 +1032,28 @@ mod benches { define_benchmarks!( [frame_benchmarking, BaselineBench::] [pallet_utility, $crate::Utility] - [pallet_babe, crate::Babe] - [pallet_timestamp, crate::Timestamp] - [pallet_indices, crate::Indices] - [pallet_balances, crate::Balances] - [pallet_election_provider_multi_phase, crate::ElectionProviderMultiPhase] - [pallet_staking, crate::Staking] - [pallet_democracy, crate::Democracy] - [pallet_collective, crate::Council] - [pallet_collective, crate::TechnicalCommittee] - [pallet_elections_phragmen, crate::Elections] - [pallet_grandpa, crate::Grandpa] - [pallet_treasury, crate::Treasury] - [pallet_im_online, crate::ImOnline] - [pallet_scheduler, crate::Scheduler] - [pallet_bounties, crate::Bounties] - [pallet_tips, crate::Tips] - [pallet_mmr, crate::Mmr] + [pallet_babe, $crate::Babe] + [pallet_timestamp, $crate::Timestamp] + [pallet_indices, $crate::Indices] + [pallet_balances, $crate::Balances] + [pallet_election_provider_multi_phase, $crate::ElectionProviderMultiPhase] + [pallet_staking, $crate::Staking] + [pallet_democracy, $crate::Democracy] + [pallet_collective, $crate::Council] + [pallet_collective, $crate::TechnicalCommittee] + [pallet_elections_phragmen, $crate::Elections] + [pallet_grandpa, $crate::Grandpa] + [pallet_treasury, $crate::Treasury] + [pallet_im_online, $crate::ImOnline] + [pallet_scheduler, $crate::Scheduler] + [pallet_bounties, $crate::Bounties] + [pallet_tips, $crate::Tips] + [pallet_mmr, $crate::Mmr] [frame_system, SystemBench::] - [da_control, crate::DataAvailability] - [nomad_home, crate::NomadHome] - [nomad_da_bridge, crate::NomadDABridge] + [da_control, $crate::DataAvailability] + [nomad_home, $crate::NomadHome] + [nomad_da_bridge, $crate::NomadDABridge] ); } From 0a62a32d58ef2fb3293a8a21defecb04037fa2f2 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Mon, 4 Sep 2023 16:20:10 +0530 Subject: [PATCH 45/58] Updated multiplier to check for empty block --- pallets/dactr/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pallets/dactr/src/lib.rs b/pallets/dactr/src/lib.rs index 357a53c06..cffa061f8 100644 --- a/pallets/dactr/src/lib.rs +++ b/pallets/dactr/src/lib.rs @@ -278,9 +278,9 @@ impl Pallet { pub fn is_block_weight_acceptable() -> bool { let current_weight = >::block_weight(); let current_normal_weight = current_weight.get(DispatchClass::Normal); - let acceptable_limit = T::WeightInfo::submit_block_length_proposal().saturating_mul(2); - - current_normal_weight.all_lte(acceptable_limit) + // TODO: Recaliberate the mutiplier after updating v2 weights + let acceptable_limit = T::WeightInfo::submit_block_length_proposal().saturating_mul(3); + current_normal_weight.ref_time() <= acceptable_limit.ref_time() } } From 238a344c79827d58a0b835038864f53b94982f22 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Mon, 4 Sep 2023 16:29:53 +0530 Subject: [PATCH 46/58] Updated api_dev of avail-subxt --- avail-subxt/build_api.sh | 2 +- avail-subxt/examples/create_app_key.rs | 2 +- avail-subxt/examples/da_bridge_actor.rs | 2 +- avail-subxt/examples/max_block_submit.rs | 2 +- .../examples/submit_block_length_proposal.rs | 4 +- avail-subxt/examples/submit_data.rs | 2 +- .../submit_data_and_dispatch_data_root.rs | 2 +- avail-subxt/src/api_dev.rs | 8022 ++++++----------- avail-subxt/src/primitives/grandpa.rs | 2 +- 9 files changed, 2797 insertions(+), 5243 deletions(-) diff --git a/avail-subxt/build_api.sh b/avail-subxt/build_api.sh index b3f08fc55..657ad54a9 100755 --- a/avail-subxt/build_api.sh +++ b/avail-subxt/build_api.sh @@ -2,7 +2,7 @@ echo "⛓ Installing SubXt..." cargo install --git https://github.com/paritytech/subxt --tag v0.29.0 subxt-cli || true echo "🔨 Generating Avail-SubXt API from localhost..." -subxt codegen \ +subxt codegen --version 14 \ --derive Clone \ --derive PartialEq \ --derive Eq \ diff --git a/avail-subxt/examples/create_app_key.rs b/avail-subxt/examples/create_app_key.rs index 6ba9018c0..736c5c393 100644 --- a/avail-subxt/examples/create_app_key.rs +++ b/avail-subxt/examples/create_app_key.rs @@ -1,6 +1,6 @@ use anyhow::Result; use avail_subxt::{ - api, api::runtime_types::sp_core::bounded::bounded_vec::BoundedVec, build_client, + api, api::runtime_types::bounded_collections::bounded_vec::BoundedVec, build_client, primitives::AvailExtrinsicParams, AvailConfig, Opts, }; use sp_core::crypto::Pair as _; diff --git a/avail-subxt/examples/da_bridge_actor.rs b/avail-subxt/examples/da_bridge_actor.rs index c0bed109f..d79a60bef 100644 --- a/avail-subxt/examples/da_bridge_actor.rs +++ b/avail-subxt/examples/da_bridge_actor.rs @@ -2,7 +2,7 @@ use anyhow::Result; use avail_subxt::{ api::{ self, data_availability::calls::types::SubmitData, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec, + runtime_types::bounded_collections::bounded_vec::BoundedVec, }, build_client, Opts, }; diff --git a/avail-subxt/examples/max_block_submit.rs b/avail-subxt/examples/max_block_submit.rs index d9d760066..9e95ae306 100644 --- a/avail-subxt/examples/max_block_submit.rs +++ b/avail-subxt/examples/max_block_submit.rs @@ -2,7 +2,7 @@ use std::time::Instant; use anyhow::Result; use avail_subxt::{ - api::{self, runtime_types::sp_core::bounded::bounded_vec::BoundedVec}, + api::{self, runtime_types::bounded_collections::bounded_vec::BoundedVec}, build_client, primitives::AvailExtrinsicParams, Opts, diff --git a/avail-subxt/examples/submit_block_length_proposal.rs b/avail-subxt/examples/submit_block_length_proposal.rs index 3e7d9f722..d6fddd31e 100644 --- a/avail-subxt/examples/submit_block_length_proposal.rs +++ b/avail-subxt/examples/submit_block_length_proposal.rs @@ -4,8 +4,8 @@ use avail_subxt::{ self, data_availability::events as DaEvent, runtime_types::{ - da_control::pallet::Call as DaCall, pallet_sudo::pallet::Call as SudoCall, - sp_core::bounded::bounded_vec::BoundedVec, + bounded_collections::bounded_vec::BoundedVec, da_control::pallet::Call as DaCall, + pallet_sudo::pallet::Call as SudoCall, }, sudo::events as SudoEvent, }, diff --git a/avail-subxt/examples/submit_data.rs b/avail-subxt/examples/submit_data.rs index 14cdb9e77..ae91e7d64 100644 --- a/avail-subxt/examples/submit_data.rs +++ b/avail-subxt/examples/submit_data.rs @@ -3,7 +3,7 @@ use avail_subxt::{ api::{ self, runtime_types::{ - da_control::pallet::Call as DaCall, sp_core::bounded::bounded_vec::BoundedVec, + bounded_collections::bounded_vec::BoundedVec, da_control::pallet::Call as DaCall, }, }, avail::AppUncheckedExtrinsic, diff --git a/avail-subxt/examples/submit_data_and_dispatch_data_root.rs b/avail-subxt/examples/submit_data_and_dispatch_data_root.rs index 8b3301a2c..ae52bd62b 100644 --- a/avail-subxt/examples/submit_data_and_dispatch_data_root.rs +++ b/avail-subxt/examples/submit_data_and_dispatch_data_root.rs @@ -1,6 +1,6 @@ use anyhow::Result; use avail_subxt::{ - api::{self, runtime_types::sp_core::bounded::bounded_vec::BoundedVec}, + api::{self, runtime_types::bounded_collections::bounded_vec::BoundedVec}, build_client, primitives::AvailExtrinsicParams, Opts, diff --git a/avail-subxt/src/api_dev.rs b/avail-subxt/src/api_dev.rs index f3a5a8a75..6b7317667 100644 --- a/avail-subxt/src/api_dev.rs +++ b/avail-subxt/src/api_dev.rs @@ -374,8 +374,6 @@ pub mod api { Babe(babe::Call), #[codec(index = 3)] Timestamp(timestamp::Call), - #[codec(index = 4)] - Authorship(authorship::Call), #[codec(index = 5)] Indices(indices::Call), #[codec(index = 6)] @@ -463,13 +461,6 @@ pub mod api { metadata, )?)); } - if pallet_name == "Authorship" { - return Ok(Call::Authorship(authorship::Call::decode_with_metadata( - &mut &*pallet_bytes, - pallet_ty, - metadata, - )?)); - } if pallet_name == "Indices" { return Ok(Call::Indices(indices::Call::decode_with_metadata( &mut &*pallet_bytes, @@ -686,8 +677,6 @@ pub mod api { Utility(utility::Error), #[codec(index = 2)] Babe(babe::Error), - #[codec(index = 4)] - Authorship(authorship::Error), #[codec(index = 5)] Indices(indices::Error), #[codec(index = 6)] @@ -748,139 +737,134 @@ pub mod api { use ::subxt::metadata::DecodeWithMetadata; let cursor = &mut &pallet_bytes[..]; if pallet_name == "System" { - let variant_error = system::Error::decode_with_metadata(cursor, 123u32, metadata)?; + let variant_error = system::Error::decode_with_metadata(cursor, 128u32, metadata)?; return Ok(Error::System(variant_error)); } if pallet_name == "Utility" { - let variant_error = utility::Error::decode_with_metadata(cursor, 285u32, metadata)?; + let variant_error = utility::Error::decode_with_metadata(cursor, 284u32, metadata)?; return Ok(Error::Utility(variant_error)); } if pallet_name == "Babe" { - let variant_error = babe::Error::decode_with_metadata(cursor, 297u32, metadata)?; + let variant_error = babe::Error::decode_with_metadata(cursor, 300u32, metadata)?; return Ok(Error::Babe(variant_error)); } - if pallet_name == "Authorship" { - let variant_error = - authorship::Error::decode_with_metadata(cursor, 301u32, metadata)?; - return Ok(Error::Authorship(variant_error)); - } if pallet_name == "Indices" { - let variant_error = indices::Error::decode_with_metadata(cursor, 303u32, metadata)?; + let variant_error = indices::Error::decode_with_metadata(cursor, 302u32, metadata)?; return Ok(Error::Indices(variant_error)); } if pallet_name == "Balances" { let variant_error = - balances::Error::decode_with_metadata(cursor, 311u32, metadata)?; + balances::Error::decode_with_metadata(cursor, 317u32, metadata)?; return Ok(Error::Balances(variant_error)); } if pallet_name == "ElectionProviderMultiPhase" { let variant_error = election_provider_multi_phase::Error::decode_with_metadata( - cursor, 324u32, metadata, + cursor, 330u32, metadata, )?; return Ok(Error::ElectionProviderMultiPhase(variant_error)); } if pallet_name == "Staking" { - let variant_error = staking::Error::decode_with_metadata(cursor, 345u32, metadata)?; + let variant_error = staking::Error::decode_with_metadata(cursor, 351u32, metadata)?; return Ok(Error::Staking(variant_error)); } if pallet_name == "Session" { - let variant_error = session::Error::decode_with_metadata(cursor, 350u32, metadata)?; + let variant_error = session::Error::decode_with_metadata(cursor, 356u32, metadata)?; return Ok(Error::Session(variant_error)); } if pallet_name == "Democracy" { let variant_error = - democracy::Error::decode_with_metadata(cursor, 368u32, metadata)?; + democracy::Error::decode_with_metadata(cursor, 374u32, metadata)?; return Ok(Error::Democracy(variant_error)); } if pallet_name == "Council" { - let variant_error = council::Error::decode_with_metadata(cursor, 371u32, metadata)?; + let variant_error = council::Error::decode_with_metadata(cursor, 377u32, metadata)?; return Ok(Error::Council(variant_error)); } if pallet_name == "TechnicalCommittee" { let variant_error = - technical_committee::Error::decode_with_metadata(cursor, 373u32, metadata)?; + technical_committee::Error::decode_with_metadata(cursor, 379u32, metadata)?; return Ok(Error::TechnicalCommittee(variant_error)); } if pallet_name == "Elections" { let variant_error = - elections::Error::decode_with_metadata(cursor, 377u32, metadata)?; + elections::Error::decode_with_metadata(cursor, 383u32, metadata)?; return Ok(Error::Elections(variant_error)); } if pallet_name == "TechnicalMembership" { let variant_error = - technical_membership::Error::decode_with_metadata(cursor, 379u32, metadata)?; + technical_membership::Error::decode_with_metadata(cursor, 385u32, metadata)?; return Ok(Error::TechnicalMembership(variant_error)); } if pallet_name == "Grandpa" { - let variant_error = grandpa::Error::decode_with_metadata(cursor, 383u32, metadata)?; + let variant_error = grandpa::Error::decode_with_metadata(cursor, 389u32, metadata)?; return Ok(Error::Grandpa(variant_error)); } if pallet_name == "Treasury" { let variant_error = - treasury::Error::decode_with_metadata(cursor, 389u32, metadata)?; + treasury::Error::decode_with_metadata(cursor, 395u32, metadata)?; return Ok(Error::Treasury(variant_error)); } if pallet_name == "Sudo" { - let variant_error = sudo::Error::decode_with_metadata(cursor, 390u32, metadata)?; + let variant_error = sudo::Error::decode_with_metadata(cursor, 396u32, metadata)?; return Ok(Error::Sudo(variant_error)); } if pallet_name == "ImOnline" { let variant_error = - im_online::Error::decode_with_metadata(cursor, 398u32, metadata)?; + im_online::Error::decode_with_metadata(cursor, 399u32, metadata)?; return Ok(Error::ImOnline(variant_error)); } if pallet_name == "Scheduler" { let variant_error = - scheduler::Error::decode_with_metadata(cursor, 408u32, metadata)?; + scheduler::Error::decode_with_metadata(cursor, 409u32, metadata)?; return Ok(Error::Scheduler(variant_error)); } if pallet_name == "Bounties" { let variant_error = - bounties::Error::decode_with_metadata(cursor, 412u32, metadata)?; + bounties::Error::decode_with_metadata(cursor, 413u32, metadata)?; return Ok(Error::Bounties(variant_error)); } if pallet_name == "Tips" { - let variant_error = tips::Error::decode_with_metadata(cursor, 414u32, metadata)?; + let variant_error = tips::Error::decode_with_metadata(cursor, 415u32, metadata)?; return Ok(Error::Tips(variant_error)); } if pallet_name == "DataAvailability" { let variant_error = - data_availability::Error::decode_with_metadata(cursor, 416u32, metadata)?; + data_availability::Error::decode_with_metadata(cursor, 417u32, metadata)?; return Ok(Error::DataAvailability(variant_error)); } if pallet_name == "NomadUpdaterManager" { let variant_error = - nomad_updater_manager::Error::decode_with_metadata(cursor, 417u32, metadata)?; + nomad_updater_manager::Error::decode_with_metadata(cursor, 418u32, metadata)?; return Ok(Error::NomadUpdaterManager(variant_error)); } if pallet_name == "NomadHome" { let variant_error = - nomad_home::Error::decode_with_metadata(cursor, 422u32, metadata)?; + nomad_home::Error::decode_with_metadata(cursor, 423u32, metadata)?; return Ok(Error::NomadHome(variant_error)); } if pallet_name == "NomadDABridge" { let variant_error = - nomad_da_bridge::Error::decode_with_metadata(cursor, 423u32, metadata)?; + nomad_da_bridge::Error::decode_with_metadata(cursor, 424u32, metadata)?; return Ok(Error::NomadDABridge(variant_error)); } if pallet_name == "Preimage" { let variant_error = - preimage::Error::decode_with_metadata(cursor, 427u32, metadata)?; + preimage::Error::decode_with_metadata(cursor, 428u32, metadata)?; return Ok(Error::Preimage(variant_error)); } if pallet_name == "Multisig" { let variant_error = - multisig::Error::decode_with_metadata(cursor, 431u32, metadata)?; + multisig::Error::decode_with_metadata(cursor, 432u32, metadata)?; return Ok(Error::Multisig(variant_error)); } if pallet_name == "VoterList" { let variant_error = - voter_list::Error::decode_with_metadata(cursor, 435u32, metadata)?; + voter_list::Error::decode_with_metadata(cursor, 436u32, metadata)?; return Ok(Error::VoterList(variant_error)); } if pallet_name == "NominationPools" { let variant_error = - nomination_pools::Error::decode_with_metadata(cursor, 452u32, metadata)?; + nomination_pools::Error::decode_with_metadata(cursor, 456u32, metadata)?; return Ok(Error::NominationPools(variant_error)); } Err(::subxt::ext::scale_decode::Error::custom(format!( @@ -915,10 +899,6 @@ pub mod api { timestamp::constants::ConstantsApi } - pub fn authorship(&self) -> authorship::constants::ConstantsApi { - authorship::constants::ConstantsApi - } - pub fn indices(&self) -> indices::constants::ConstantsApi { indices::constants::ConstantsApi } @@ -945,6 +925,14 @@ pub mod api { democracy::constants::ConstantsApi } + pub fn council(&self) -> council::constants::ConstantsApi { + council::constants::ConstantsApi + } + + pub fn technical_committee(&self) -> technical_committee::constants::ConstantsApi { + technical_committee::constants::ConstantsApi + } + pub fn elections(&self) -> elections::constants::ConstantsApi { elections::constants::ConstantsApi } @@ -1101,10 +1089,6 @@ pub mod api { timestamp::calls::TransactionApi } - pub fn authorship(&self) -> authorship::calls::TransactionApi { - authorship::calls::TransactionApi - } - pub fn indices(&self) -> indices::calls::TransactionApi { indices::calls::TransactionApi } pub fn balances(&self) -> balances::calls::TransactionApi { @@ -1204,9 +1188,9 @@ pub mod api { .hash(); if runtime_metadata_hash != [ - 68u8, 69u8, 196u8, 250u8, 14u8, 151u8, 13u8, 171u8, 237u8, 210u8, 132u8, 154u8, - 56u8, 170u8, 5u8, 54u8, 221u8, 65u8, 49u8, 171u8, 185u8, 141u8, 113u8, 43u8, 201u8, - 151u8, 164u8, 204u8, 49u8, 152u8, 15u8, 50u8, + 60u8, 198u8, 71u8, 28u8, 37u8, 34u8, 117u8, 2u8, 183u8, 244u8, 198u8, 248u8, 127u8, + 12u8, 126u8, 221u8, 71u8, 208u8, 215u8, 14u8, 250u8, 62u8, 145u8, 207u8, 63u8, + 16u8, 160u8, 106u8, 80u8, 82u8, 194u8, 209u8, ] { Err(::subxt::error::MetadataError::IncompatibleCodegen) } else { @@ -1217,7 +1201,7 @@ pub mod api { use super::{root_mod, runtime_types}; #[doc = "Error for the System pallet"] pub type Error = runtime_types::frame_system::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::frame_system::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -1392,11 +1376,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Make some on-chain remark."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(1)`"] - #[doc = "# "] + #[doc = "See [`Pallet::remark`]."] pub fn remark( &self, remark: ::std::vec::Vec<::core::primitive::u8>, @@ -1414,7 +1394,7 @@ pub mod api { ) } - #[doc = "Set the number of pages in the WebAssembly environment's heap."] + #[doc = "See [`Pallet::set_heap_pages`]."] pub fn set_heap_pages( &self, pages: ::core::primitive::u64, @@ -1432,18 +1412,7 @@ pub mod api { ) } - #[doc = "Set the new runtime code."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`"] - #[doc = "- 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is"] - #[doc = " expensive)."] - #[doc = "- 1 storage write (codec `O(C)`)."] - #[doc = "- 1 digest item."] - #[doc = "- 1 event."] - #[doc = "The weight of this function is dependent on the runtime, but generally this is very"] - #[doc = "expensive. We will treat this as a full block."] - #[doc = "# "] + #[doc = "See [`Pallet::set_code`]."] pub fn set_code( &self, code: ::std::vec::Vec<::core::primitive::u8>, @@ -1460,15 +1429,7 @@ pub mod api { ) } - #[doc = "Set the new runtime code without doing any checks of the given `code`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(C)` where `C` length of `code`"] - #[doc = "- 1 storage write (codec `O(C)`)."] - #[doc = "- 1 digest item."] - #[doc = "- 1 event."] - #[doc = "The weight of this function is dependent on the runtime. We will treat this as a full"] - #[doc = "block. # "] + #[doc = "See [`Pallet::set_code_without_checks`]."] pub fn set_code_without_checks( &self, code: ::std::vec::Vec<::core::primitive::u8>, @@ -1486,7 +1447,7 @@ pub mod api { ) } - #[doc = "Set some items of storage."] + #[doc = "See [`Pallet::set_storage`]."] pub fn set_storage( &self, items: ::std::vec::Vec<( @@ -1506,7 +1467,7 @@ pub mod api { ) } - #[doc = "Kill some items from storage."] + #[doc = "See [`Pallet::kill_storage`]."] pub fn kill_storage( &self, keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, @@ -1524,10 +1485,7 @@ pub mod api { ) } - #[doc = "Kill all storage items with a key that starts with the given prefix."] - #[doc = ""] - #[doc = "**NOTE:** We rely on the Root origin to provide us the number of subkeys under"] - #[doc = "the prefix we are removing to accurately calculate the weight of this function."] + #[doc = "See [`Pallet::kill_prefix`]."] pub fn kill_prefix( &self, prefix: ::std::vec::Vec<::core::primitive::u8>, @@ -1546,7 +1504,7 @@ pub mod api { ) } - #[doc = "Make some on-chain remark and emit event."] + #[doc = "See [`Pallet::remark_with_event`]."] pub fn remark_with_event( &self, remark: ::std::vec::Vec<::core::primitive::u8>, @@ -1728,7 +1686,7 @@ pub mod api { ::subxt::storage::address::StaticStorageMapKey, runtime_types::frame_system::AccountInfo< ::core::primitive::u32, - runtime_types::pallet_balances::AccountData<::core::primitive::u128>, + runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -1741,9 +1699,9 @@ pub mod api { _0.borrow(), )], [ - 6u8, 201u8, 83u8, 32u8, 77u8, 56u8, 30u8, 144u8, 134u8, 20u8, 244u8, - 154u8, 1u8, 165u8, 101u8, 255u8, 35u8, 235u8, 136u8, 0u8, 71u8, 140u8, - 164u8, 69u8, 211u8, 55u8, 14u8, 205u8, 82u8, 80u8, 36u8, 228u8, + 234u8, 12u8, 167u8, 96u8, 2u8, 244u8, 235u8, 62u8, 153u8, 200u8, 96u8, + 74u8, 135u8, 8u8, 35u8, 188u8, 146u8, 249u8, 246u8, 40u8, 224u8, 22u8, + 15u8, 99u8, 150u8, 222u8, 82u8, 85u8, 123u8, 123u8, 19u8, 110u8, ], ) } @@ -1755,7 +1713,7 @@ pub mod api { ::subxt::storage::address::StaticStorageMapKey, runtime_types::frame_system::AccountInfo< ::core::primitive::u32, - runtime_types::pallet_balances::AccountData<::core::primitive::u128>, + runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, >, (), ::subxt::storage::address::Yes, @@ -1766,9 +1724,9 @@ pub mod api { "Account", Vec::new(), [ - 6u8, 201u8, 83u8, 32u8, 77u8, 56u8, 30u8, 144u8, 134u8, 20u8, 244u8, - 154u8, 1u8, 165u8, 101u8, 255u8, 35u8, 235u8, 136u8, 0u8, 71u8, 140u8, - 164u8, 69u8, 211u8, 55u8, 14u8, 205u8, 82u8, 80u8, 36u8, 228u8, + 234u8, 12u8, 167u8, 96u8, 2u8, 244u8, 235u8, 62u8, 153u8, 200u8, 96u8, + 74u8, 135u8, 8u8, 35u8, 188u8, 146u8, 249u8, 246u8, 40u8, 224u8, 22u8, + 15u8, 99u8, 150u8, 222u8, 82u8, 85u8, 123u8, 123u8, 19u8, 110u8, ], ) } @@ -2018,9 +1976,9 @@ pub mod api { (), > { ::subxt::storage::address::Address::new_static("System", "Events", vec![], [ - 150u8, 76u8, 101u8, 238u8, 61u8, 233u8, 105u8, 124u8, 229u8, 118u8, 41u8, - 125u8, 167u8, 184u8, 179u8, 24u8, 186u8, 248u8, 143u8, 7u8, 150u8, 10u8, - 96u8, 224u8, 123u8, 100u8, 98u8, 161u8, 16u8, 11u8, 222u8, 222u8, + 83u8, 225u8, 39u8, 201u8, 167u8, 218u8, 202u8, 102u8, 196u8, 187u8, 47u8, + 114u8, 233u8, 122u8, 181u8, 37u8, 5u8, 19u8, 99u8, 158u8, 100u8, 238u8, + 124u8, 230u8, 105u8, 40u8, 161u8, 73u8, 142u8, 41u8, 158u8, 156u8, ]) } @@ -2054,7 +2012,7 @@ pub mod api { #[doc = " allows light-clients to leverage the changes trie storage tracking mechanism and"] #[doc = " in case of changes fetch the list of events of interest."] #[doc = ""] - #[doc = " The value has the type `(T::BlockNumber, EventIndex)` because if we used only just"] + #[doc = " The value has the type `(BlockNumberFor, EventIndex)` because if we used only just"] #[doc = " the `EventIndex` then in case if the topic has the same contents on the next block"] #[doc = " no notification will be triggered thus the event might be lost."] pub fn event_topics( @@ -2088,7 +2046,7 @@ pub mod api { #[doc = " allows light-clients to leverage the changes trie storage tracking mechanism and"] #[doc = " in case of changes fetch the list of events of interest."] #[doc = ""] - #[doc = " The value has the type `(T::BlockNumber, EventIndex)` because if we used only just"] + #[doc = " The value has the type `(BlockNumberFor, EventIndex)` because if we used only just"] #[doc = " the `EventIndex` then in case if the topic has the same contents on the next block"] #[doc = " no notification will be triggered thus the event might be lost."] pub fn event_topics_root( @@ -2302,9 +2260,9 @@ pub mod api { } pub mod utility { use super::{root_mod, runtime_types}; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_utility::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_utility::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -2437,49 +2395,19 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Send a batch of dispatch calls."] - #[doc = ""] - #[doc = "May be called from any origin except `None`."] - #[doc = ""] - #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] - #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] - #[doc = ""] - #[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] - #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(C) where C is the number of calls to be batched."] - #[doc = "# "] - #[doc = ""] - #[doc = "This will return `Ok` in all circumstances. To determine the success of the batch, an"] - #[doc = "event is deposited. If a call failed and the batch was interrupted, then the"] - #[doc = "`BatchInterrupted` event is deposited, along with the number of successful calls made"] - #[doc = "and the error of the failed call. If all were successful, then the `BatchCompleted`"] - #[doc = "event is deposited."] + #[doc = "See [`Pallet::batch`]."] pub fn batch( &self, calls: ::std::vec::Vec, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static("Utility", "batch", types::Batch { calls }, [ - 2u8, 253u8, 44u8, 76u8, 48u8, 163u8, 72u8, 50u8, 84u8, 165u8, 66u8, 38u8, - 17u8, 139u8, 240u8, 181u8, 51u8, 250u8, 151u8, 5u8, 24u8, 107u8, 155u8, - 89u8, 62u8, 40u8, 242u8, 130u8, 61u8, 162u8, 169u8, 55u8, + 185u8, 77u8, 235u8, 253u8, 246u8, 217u8, 72u8, 126u8, 31u8, 202u8, 208u8, + 197u8, 137u8, 21u8, 250u8, 179u8, 45u8, 47u8, 33u8, 143u8, 112u8, 186u8, + 144u8, 233u8, 68u8, 212u8, 2u8, 226u8, 108u8, 120u8, 90u8, 167u8, ]) } - #[doc = "Send a call through an indexed pseudonym of the sender."] - #[doc = ""] - #[doc = "Filter from origin are passed along. The call will be dispatched with an origin which"] - #[doc = "use the same filter as the origin of this call."] - #[doc = ""] - #[doc = "NOTE: If you need to ensure that any account-based filtering is not honored (i.e."] - #[doc = "because you expect `proxy` to have been used prior in the call stack and you do not want"] - #[doc = "the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`"] - #[doc = "in the Multisig pallet instead."] - #[doc = ""] - #[doc = "NOTE: Prior to version *12, this was called `as_limited_sub`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = "See [`Pallet::as_derivative`]."] pub fn as_derivative( &self, index: ::core::primitive::u16, @@ -2493,28 +2421,14 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 46u8, 214u8, 64u8, 185u8, 3u8, 173u8, 50u8, 1u8, 233u8, 183u8, 77u8, - 18u8, 93u8, 255u8, 223u8, 102u8, 143u8, 34u8, 119u8, 116u8, 182u8, - 156u8, 32u8, 168u8, 82u8, 127u8, 154u8, 166u8, 219u8, 195u8, 181u8, - 0u8, + 38u8, 130u8, 60u8, 98u8, 1u8, 30u8, 91u8, 150u8, 136u8, 134u8, 209u8, + 50u8, 230u8, 241u8, 214u8, 170u8, 59u8, 227u8, 205u8, 37u8, 210u8, + 154u8, 144u8, 200u8, 37u8, 5u8, 193u8, 204u8, 230u8, 33u8, 73u8, 89u8, ], ) } - #[doc = "Send a batch of dispatch calls and atomically execute them."] - #[doc = "The whole transaction will rollback and fail if any of the calls failed."] - #[doc = ""] - #[doc = "May be called from any origin except `None`."] - #[doc = ""] - #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] - #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] - #[doc = ""] - #[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] - #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(C) where C is the number of calls to be batched."] - #[doc = "# "] + #[doc = "See [`Pallet::batch_all`]."] pub fn batch_all( &self, calls: ::std::vec::Vec, @@ -2524,23 +2438,15 @@ pub mod api { "batch_all", types::BatchAll { calls }, [ - 81u8, 106u8, 239u8, 62u8, 92u8, 100u8, 249u8, 155u8, 79u8, 60u8, 38u8, - 107u8, 2u8, 31u8, 42u8, 224u8, 243u8, 68u8, 43u8, 75u8, 177u8, 210u8, - 79u8, 28u8, 217u8, 15u8, 107u8, 171u8, 231u8, 25u8, 145u8, 29u8, + 249u8, 111u8, 52u8, 114u8, 103u8, 77u8, 102u8, 166u8, 103u8, 180u8, + 175u8, 169u8, 249u8, 222u8, 62u8, 74u8, 26u8, 40u8, 196u8, 237u8, + 150u8, 139u8, 157u8, 129u8, 144u8, 126u8, 194u8, 197u8, 137u8, 75u8, + 53u8, 6u8, ], ) } - #[doc = "Dispatches a function call with a provided origin."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Root_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB write (event)."] - #[doc = "- Weight of derivative `call` execution + T::WeightInfo::dispatch_as()."] - #[doc = "# "] + #[doc = "See [`Pallet::dispatch_as`]."] pub fn dispatch_as( &self, as_origin: runtime_types::da_runtime::OriginCaller, @@ -2554,27 +2460,14 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 231u8, 94u8, 74u8, 134u8, 48u8, 38u8, 54u8, 136u8, 79u8, 153u8, 178u8, - 120u8, 59u8, 105u8, 245u8, 5u8, 70u8, 18u8, 59u8, 118u8, 42u8, 200u8, - 78u8, 117u8, 43u8, 237u8, 105u8, 137u8, 183u8, 99u8, 164u8, 140u8, + 132u8, 4u8, 203u8, 68u8, 23u8, 18u8, 122u8, 123u8, 152u8, 4u8, 66u8, + 177u8, 66u8, 16u8, 33u8, 176u8, 149u8, 3u8, 135u8, 65u8, 106u8, 116u8, + 38u8, 94u8, 166u8, 127u8, 231u8, 117u8, 188u8, 212u8, 172u8, 36u8, ], ) } - #[doc = "Send a batch of dispatch calls."] - #[doc = "Unlike `batch`, it allows errors and won't interrupt."] - #[doc = ""] - #[doc = "May be called from any origin except `None`."] - #[doc = ""] - #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] - #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] - #[doc = ""] - #[doc = "If origin is root then the calls are dispatch without checking origin filter. (This"] - #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(C) where C is the number of calls to be batched."] - #[doc = "# "] + #[doc = "See [`Pallet::force_batch`]."] pub fn force_batch( &self, calls: ::std::vec::Vec, @@ -2584,20 +2477,14 @@ pub mod api { "force_batch", types::ForceBatch { calls }, [ - 221u8, 115u8, 115u8, 13u8, 202u8, 100u8, 171u8, 43u8, 165u8, 95u8, - 236u8, 197u8, 31u8, 122u8, 47u8, 208u8, 239u8, 42u8, 181u8, 100u8, - 52u8, 14u8, 208u8, 14u8, 35u8, 153u8, 97u8, 41u8, 162u8, 223u8, 49u8, - 16u8, + 179u8, 14u8, 89u8, 203u8, 32u8, 127u8, 5u8, 218u8, 111u8, 17u8, 169u8, + 130u8, 2u8, 199u8, 127u8, 33u8, 227u8, 210u8, 5u8, 136u8, 234u8, 147u8, + 24u8, 131u8, 150u8, 199u8, 152u8, 79u8, 144u8, 138u8, 75u8, 37u8, ], ) } - #[doc = "Dispatch a function call with a specified weight."] - #[doc = ""] - #[doc = "This function does not check the weight of the call, and instead allows the"] - #[doc = "Root origin to specify the weight of the call."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Root_."] + #[doc = "See [`Pallet::with_weight`]."] pub fn with_weight( &self, call: runtime_types::da_runtime::RuntimeCall, @@ -2611,15 +2498,15 @@ pub mod api { weight, }, [ - 156u8, 180u8, 87u8, 26u8, 74u8, 236u8, 175u8, 18u8, 182u8, 17u8, 15u8, - 7u8, 107u8, 49u8, 118u8, 63u8, 186u8, 79u8, 24u8, 135u8, 130u8, 235u8, - 187u8, 134u8, 161u8, 182u8, 139u8, 151u8, 198u8, 187u8, 73u8, 253u8, + 162u8, 131u8, 239u8, 64u8, 4u8, 30u8, 222u8, 18u8, 70u8, 212u8, 139u8, + 150u8, 81u8, 26u8, 72u8, 189u8, 99u8, 246u8, 127u8, 163u8, 106u8, 67u8, + 63u8, 14u8, 27u8, 69u8, 72u8, 132u8, 39u8, 222u8, 84u8, 43u8, ], ) } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_utility::pallet::Event; pub mod events { use super::runtime_types; @@ -2765,9 +2652,9 @@ pub mod api { } pub mod babe { use super::{root_mod, runtime_types}; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_babe::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_babe::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -2855,10 +2742,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Report authority equivocation/misbehavior. This method will verify"] - #[doc = "the equivocation proof and validate the given key ownership proof"] - #[doc = "against the extracted offender. If both are valid, the offence will"] - #[doc = "be reported."] + #[doc = "See [`Pallet::report_equivocation`]."] pub fn report_equivocation( &self, equivocation_proof: runtime_types::sp_consensus_slots::EquivocationProof< @@ -2886,14 +2770,7 @@ pub mod api { ) } - #[doc = "Report authority equivocation/misbehavior. This method will verify"] - #[doc = "the equivocation proof and validate the given key ownership proof"] - #[doc = "against the extracted offender. If both are valid, the offence will"] - #[doc = "be reported."] - #[doc = "This extrinsic must be called unsigned and it is expected that only"] - #[doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] - #[doc = "if the block author is defined it will be defined as the equivocation"] - #[doc = "reporter."] + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] pub fn report_equivocation_unsigned( &self, equivocation_proof: runtime_types::sp_consensus_slots::EquivocationProof< @@ -2920,10 +2797,7 @@ pub mod api { ) } - #[doc = "Plan an epoch config change. The epoch config change is recorded and will be enacted on"] - #[doc = "the next call to `enact_epoch_change`. The config will be activated one epoch after."] - #[doc = "Multiple calls to this method will replace any existing planned config change that had"] - #[doc = "not been enacted yet."] + #[doc = "See [`Pallet::plan_config_change`]."] pub fn plan_config_change( &self, config: runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, @@ -2968,7 +2842,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::weak_bounded_vec::WeakBoundedVec<( + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec<( runtime_types::sp_consensus_babe::app::Public, ::core::primitive::u64, )>, @@ -3094,7 +2968,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::weak_bounded_vec::WeakBoundedVec<( + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec<( runtime_types::sp_consensus_babe::app::Public, ::core::primitive::u64, )>, @@ -3152,7 +3026,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< [::core::primitive::u8; 32usize], >, ::subxt::storage::address::Yes, @@ -3178,7 +3052,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< [::core::primitive::u8; 32usize], >, (), @@ -3209,9 +3083,9 @@ pub mod api { (), > { ::subxt::storage::address::Address::new_static("Babe", "Initialized", vec![], [ - 56u8, 150u8, 169u8, 106u8, 251u8, 73u8, 237u8, 53u8, 217u8, 32u8, 137u8, - 26u8, 138u8, 233u8, 40u8, 125u8, 33u8, 155u8, 0u8, 26u8, 186u8, 22u8, - 243u8, 43u8, 64u8, 251u8, 74u8, 91u8, 110u8, 127u8, 240u8, 140u8, + 61u8, 100u8, 12u8, 43u8, 50u8, 166u8, 173u8, 130u8, 86u8, 36u8, 92u8, + 221u8, 44u8, 235u8, 241u8, 150u8, 231u8, 108u8, 15u8, 134u8, 12u8, 6u8, + 198u8, 102u8, 63u8, 69u8, 201u8, 171u8, 14u8, 135u8, 254u8, 239u8, ]) } @@ -3323,6 +3197,38 @@ pub mod api { ], ) } + + #[doc = " A list of the last 100 skipped epochs and the corresponding session index"] + #[doc = " when the epoch was skipped."] + #[doc = ""] + #[doc = " This is only used for validating equivocation proofs. An equivocation proof"] + #[doc = " must contains a key-ownership proof for a given session, therefore we need a"] + #[doc = " way to tie together sessions and epoch indices, i.e. we need to validate that"] + #[doc = " a validator was the owner of a given key on a given session, and what the"] + #[doc = " active epoch index was during that session."] + pub fn skipped_epochs( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec<( + ::core::primitive::u64, + ::core::primitive::u32, + )>, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + (), + > { + ::subxt::storage::address::Address::new_static( + "Babe", + "SkippedEpochs", + vec![], + [ + 120u8, 167u8, 144u8, 97u8, 41u8, 216u8, 103u8, 90u8, 3u8, 86u8, 196u8, + 35u8, 160u8, 150u8, 144u8, 233u8, 128u8, 35u8, 119u8, 66u8, 6u8, 63u8, + 114u8, 140u8, 182u8, 228u8, 192u8, 30u8, 50u8, 145u8, 217u8, 108u8, + ], + ) + } } } pub mod constants { @@ -3372,7 +3278,7 @@ pub mod api { } pub mod timestamp { use super::{root_mod, runtime_types}; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_timestamp::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -3403,22 +3309,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Set the current time."] - #[doc = ""] - #[doc = "This call should be invoked exactly once per block. It will panic at the finalization"] - #[doc = "phase, if this call hasn't been invoked by that time."] - #[doc = ""] - #[doc = "The timestamp should be greater than the previous one by the amount specified by"] - #[doc = "`MinimumPeriod`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Inherent`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)"] - #[doc = "- 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in"] - #[doc = " `on_finalize`)"] - #[doc = "- 1 event handler `on_timestamp_set`. Must be `O(1)`."] - #[doc = "# "] + #[doc = "See [`Pallet::set`]."] pub fn set(&self, now: ::core::primitive::u64) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static("Timestamp", "set", types::Set { now }, [ 37u8, 95u8, 49u8, 218u8, 24u8, 22u8, 0u8, 95u8, 72u8, 35u8, 155u8, 199u8, @@ -3495,99 +3386,10 @@ pub mod api { } pub mod authorship { use super::{root_mod, runtime_types}; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub type Error = runtime_types::pallet_authorship::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub type Call = runtime_types::pallet_authorship::pallet::Call; - pub mod calls { - use super::{root_mod, runtime_types}; - type DispatchError = runtime_types::sp_runtime::DispatchError; - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetUncles { - pub new_uncles: ::std::vec::Vec< - runtime_types::avail_core::header::Header< - ::core::primitive::u32, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - >, - } - impl ::subxt::blocks::StaticExtrinsic for SetUncles { - const CALL: &'static str = "set_uncles"; - const PALLET: &'static str = "Authorship"; - } - } - pub struct TransactionApi; - impl TransactionApi { - #[doc = "Provide a set of uncles."] - pub fn set_uncles( - &self, - new_uncles: ::std::vec::Vec< - runtime_types::avail_core::header::Header< - ::core::primitive::u32, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - >, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Authorship", - "set_uncles", - types::SetUncles { new_uncles }, - [ - 6u8, 217u8, 65u8, 59u8, 11u8, 36u8, 246u8, 56u8, 153u8, 132u8, 177u8, - 92u8, 112u8, 6u8, 145u8, 75u8, 109u8, 185u8, 59u8, 171u8, 186u8, 129u8, - 160u8, 66u8, 214u8, 132u8, 185u8, 75u8, 131u8, 102u8, 149u8, 116u8, - ], - ) - } - } - } pub mod storage { use super::runtime_types; pub struct StorageApi; impl StorageApi { - #[doc = " Uncles"] - pub fn uncles( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - runtime_types::pallet_authorship::UncleEntryItem< - ::core::primitive::u32, - ::subxt::utils::H256, - ::subxt::utils::AccountId32, - >, - >, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Authorship", - "Uncles", - vec![], - [ - 249u8, 67u8, 80u8, 23u8, 191u8, 215u8, 207u8, 80u8, 195u8, 243u8, 12u8, - 196u8, 135u8, 67u8, 136u8, 123u8, 60u8, 134u8, 205u8, 104u8, 11u8, - 243u8, 176u8, 135u8, 182u8, 189u8, 134u8, 69u8, 128u8, 114u8, 94u8, - 73u8, - ], - ) - } - #[doc = " Author of current block."] pub fn author( &self, @@ -3610,55 +3412,14 @@ pub mod api { ], ) } - - #[doc = " Whether uncles were already set in this block."] - pub fn did_set_uncles( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::core::primitive::bool, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - (), - > { - ::subxt::storage::address::Address::new_static( - "Authorship", - "DidSetUncles", - vec![], - [ - 26u8, 145u8, 150u8, 110u8, 108u8, 168u8, 93u8, 237u8, 191u8, 236u8, - 44u8, 40u8, 210u8, 183u8, 126u8, 123u8, 103u8, 199u8, 248u8, 155u8, - 222u8, 188u8, 48u8, 227u8, 192u8, 4u8, 57u8, 146u8, 211u8, 229u8, - 154u8, 83u8, - ], - ) - } - } - } - pub mod constants { - use super::runtime_types; - pub struct ConstantsApi; - impl ConstantsApi { - #[doc = " The number of blocks back we should accept uncles."] - #[doc = " This means that we will deal with uncle-parents that are"] - #[doc = " `UncleGenerations + 1` before `now`."] - pub fn uncle_generations( - &self, - ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Authorship", "UncleGenerations", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) - } } } } pub mod indices { use super::{root_mod, runtime_types}; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_indices::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_indices::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -3780,24 +3541,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Assign an previously unassigned index."] - #[doc = ""] - #[doc = "Payment: `Deposit` is reserved from the sender account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `index`: the index to be claimed. This must not be in use."] - #[doc = ""] - #[doc = "Emits `IndexAssigned` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] + #[doc = "See [`Pallet::claim`]."] pub fn claim( &self, index: ::core::primitive::u32, @@ -3809,26 +3553,7 @@ pub mod api { ]) } - #[doc = "Assign an index already owned by the sender to another account. The balance reservation"] - #[doc = "is effectively transferred to the new account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `index`: the index to be re-assigned. This must be owned by the sender."] - #[doc = "- `new`: the new owner of the index. This function is a no-op if it is equal to sender."] - #[doc = ""] - #[doc = "Emits `IndexAssigned` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One transfer operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Indices Accounts, System Account (recipient)"] - #[doc = " - Writes: Indices Accounts, System Account (recipient)"] - #[doc = "# "] + #[doc = "See [`Pallet::transfer`]."] pub fn transfer( &self, new: ::subxt::utils::MultiAddress< @@ -3850,24 +3575,7 @@ pub mod api { ) } - #[doc = "Free up an index owned by the sender."] - #[doc = ""] - #[doc = "Payment: Any previous deposit placed for the index is unreserved in the sender account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must own the index."] - #[doc = ""] - #[doc = "- `index`: the index to be freed. This must be owned by the sender."] - #[doc = ""] - #[doc = "Emits `IndexFreed` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] + #[doc = "See [`Pallet::free`]."] pub fn free( &self, index: ::core::primitive::u32, @@ -3879,27 +3587,7 @@ pub mod api { ]) } - #[doc = "Force an index to an account. This doesn't require a deposit. If the index is already"] - #[doc = "held, then any deposit is reimbursed to its current owner."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Root_."] - #[doc = ""] - #[doc = "- `index`: the index to be (re-)assigned."] - #[doc = "- `new`: the new owner of the index. This function is a no-op if it is equal to sender."] - #[doc = "- `freeze`: if set to `true`, will freeze the index so it cannot be transferred."] - #[doc = ""] - #[doc = "Emits `IndexAssigned` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- Up to one reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Indices Accounts, System Account (original owner)"] - #[doc = " - Writes: Indices Accounts, System Account (original owner)"] - #[doc = "# "] + #[doc = "See [`Pallet::force_transfer`]."] pub fn force_transfer( &self, new: ::subxt::utils::MultiAddress< @@ -3922,24 +3610,7 @@ pub mod api { ) } - #[doc = "Freeze an index so it will always point to the sender account. This consumes the"] - #[doc = "deposit."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the signing account must have a"] - #[doc = "non-frozen account `index`."] - #[doc = ""] - #[doc = "- `index`: the index to be frozen in place."] - #[doc = ""] - #[doc = "Emits `IndexFrozen` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- Up to one slash operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] + #[doc = "See [`Pallet::freeze`]."] pub fn freeze( &self, index: ::core::primitive::u32, @@ -3958,7 +3629,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_indices::pallet::Event; pub mod events { use super::runtime_types; @@ -4108,9 +3779,9 @@ pub mod api { } pub mod balances { use super::{root_mod, runtime_types}; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_balances::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_balances::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -4130,7 +3801,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Transfer { + pub struct TransferAllowDeath { pub dest: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, @@ -4138,8 +3809,8 @@ pub mod api { #[codec(compact)] pub value: ::core::primitive::u128, } - impl ::subxt::blocks::StaticExtrinsic for Transfer { - const CALL: &'static str = "transfer"; + impl ::subxt::blocks::StaticExtrinsic for TransferAllowDeath { + const CALL: &'static str = "transfer_allow_death"; const PALLET: &'static str = "Balances"; } #[derive( @@ -4155,7 +3826,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetBalance { + pub struct SetBalanceDeprecated { pub who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, @@ -4163,10 +3834,10 @@ pub mod api { #[codec(compact)] pub new_free: ::core::primitive::u128, #[codec(compact)] - pub new_reserved: ::core::primitive::u128, + pub old_reserved: ::core::primitive::u128, } - impl ::subxt::blocks::StaticExtrinsic for SetBalance { - const CALL: &'static str = "set_balance"; + impl ::subxt::blocks::StaticExtrinsic for SetBalanceDeprecated { + const CALL: &'static str = "set_balance_deprecated"; const PALLET: &'static str = "Balances"; } #[derive( @@ -4271,94 +3942,127 @@ pub mod api { const CALL: &'static str = "force_unreserve"; const PALLET: &'static str = "Balances"; } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct UpgradeAccounts { + pub who: ::std::vec::Vec<::subxt::utils::AccountId32>, + } + impl ::subxt::blocks::StaticExtrinsic for UpgradeAccounts { + const CALL: &'static str = "upgrade_accounts"; + const PALLET: &'static str = "Balances"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Transfer { + pub dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub value: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for Transfer { + const CALL: &'static str = "transfer"; + const PALLET: &'static str = "Balances"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ForceSetBalance { + pub who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + pub new_free: ::core::primitive::u128, + } + impl ::subxt::blocks::StaticExtrinsic for ForceSetBalance { + const CALL: &'static str = "force_set_balance"; + const PALLET: &'static str = "Balances"; + } } pub struct TransactionApi; impl TransactionApi { - #[doc = "Transfer some liquid free balance to another account."] - #[doc = ""] - #[doc = "`transfer` will set the `FreeBalance` of the sender and receiver."] - #[doc = "If the sender's account is below the existential deposit as a result"] - #[doc = "of the transfer, the account will be reaped."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the transactor."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Dependent on arguments but not critical, given proper implementations for input config"] - #[doc = " types. See related functions below."] - #[doc = "- It contains a limited number of reads and writes internally and no complex"] - #[doc = " computation."] - #[doc = ""] - #[doc = "Related functions:"] - #[doc = ""] - #[doc = " - `ensure_can_withdraw` is always called internally but has a bounded complexity."] - #[doc = " - Transferring balances to accounts that did not exist before will cause"] - #[doc = " `T::OnNewAccount::on_new_account` to be called."] - #[doc = " - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`."] - #[doc = " - `transfer_keep_alive` works the same way as `transfer`, but has an additional check"] - #[doc = " that the transfer will not kill the origin account."] - #[doc = "---------------------------------"] - #[doc = "- Origin account is already in memory, so no DB operations for them."] - #[doc = "# "] - pub fn transfer( + #[doc = "See [`Pallet::transfer_allow_death`]."] + pub fn transfer_allow_death( &self, dest: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, >, value: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Balances", - "transfer", - types::Transfer { dest, value }, + "transfer_allow_death", + types::TransferAllowDeath { dest, value }, [ - 78u8, 137u8, 180u8, 250u8, 225u8, 152u8, 150u8, 139u8, 30u8, 4u8, 57u8, - 241u8, 135u8, 108u8, 67u8, 239u8, 65u8, 13u8, 10u8, 205u8, 125u8, - 208u8, 237u8, 60u8, 18u8, 13u8, 232u8, 47u8, 47u8, 151u8, 79u8, 23u8, + 100u8, 112u8, 63u8, 118u8, 67u8, 47u8, 63u8, 58u8, 249u8, 180u8, 242u8, + 65u8, 237u8, 246u8, 118u8, 80u8, 181u8, 220u8, 5u8, 1u8, 144u8, 184u8, + 214u8, 24u8, 170u8, 165u8, 227u8, 142u8, 9u8, 43u8, 152u8, 101u8, ], ) } - #[doc = "Set the balances of a given account."] - #[doc = ""] - #[doc = "This will alter `FreeBalance` and `ReservedBalance` in storage. it will"] - #[doc = "also alter the total issuance of the system (`TotalIssuance`) appropriately."] - #[doc = "If the new free or reserved balance is below the existential deposit,"] - #[doc = "it will reset the account nonce (`frame_system::AccountNonce`)."] - #[doc = ""] - #[doc = "The dispatch origin for this call is `root`."] - pub fn set_balance( + #[doc = "See [`Pallet::set_balance_deprecated`]."] + pub fn set_balance_deprecated( &self, who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, >, new_free: ::core::primitive::u128, - new_reserved: ::core::primitive::u128, - ) -> ::subxt::tx::Payload { + old_reserved: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Balances", - "set_balance", - types::SetBalance { + "set_balance_deprecated", + types::SetBalanceDeprecated { who, new_free, - new_reserved, + old_reserved, }, [ - 138u8, 168u8, 113u8, 210u8, 97u8, 109u8, 159u8, 154u8, 72u8, 91u8, - 161u8, 167u8, 136u8, 135u8, 79u8, 149u8, 126u8, 91u8, 178u8, 44u8, - 201u8, 4u8, 233u8, 90u8, 183u8, 84u8, 9u8, 170u8, 83u8, 63u8, 32u8, - 187u8, + 135u8, 204u8, 148u8, 253u8, 76u8, 20u8, 79u8, 5u8, 133u8, 232u8, 10u8, + 79u8, 199u8, 52u8, 199u8, 42u8, 124u8, 55u8, 82u8, 71u8, 102u8, 81u8, + 46u8, 101u8, 38u8, 183u8, 219u8, 188u8, 227u8, 255u8, 136u8, 124u8, ], ) } - #[doc = "Exactly as `transfer`, except the origin must be root and the source account may be"] - #[doc = "specified."] - #[doc = "# "] - #[doc = "- Same as transfer, but additional read and write because the source account is not"] - #[doc = " assumed to be in the overlay."] - #[doc = "# "] + #[doc = "See [`Pallet::force_transfer`]."] pub fn force_transfer( &self, source: ::subxt::utils::MultiAddress< @@ -4388,12 +4092,7 @@ pub mod api { ) } - #[doc = "Same as the [`transfer`] call, but with a check that the transfer will not kill the"] - #[doc = "origin account."] - #[doc = ""] - #[doc = "99% of the time you want [`transfer`] instead."] - #[doc = ""] - #[doc = "[`transfer`]: struct.Pallet.html#method.transfer"] + #[doc = "See [`Pallet::transfer_keep_alive`]."] pub fn transfer_keep_alive( &self, dest: ::subxt::utils::MultiAddress< @@ -4414,23 +4113,7 @@ pub mod api { ) } - #[doc = "Transfer the entire transferable balance from the caller account."] - #[doc = ""] - #[doc = "NOTE: This function only attempts to transfer _transferable_ balances. This means that"] - #[doc = "any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be"] - #[doc = "transferred by this function. To ensure that this function results in a killed account,"] - #[doc = "you might need to prepare the account by removing any reference counters, storage"] - #[doc = "deposits, etc..."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be Signed."] - #[doc = ""] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `keep_alive`: A boolean to determine if the `transfer_all` operation should send all"] - #[doc = " of the funds the account has, causing the sender account to be killed (false), or"] - #[doc = " transfer everything except at least the existential deposit, which will guarantee to"] - #[doc = " keep the sender account alive (true). # "] - #[doc = "- O(1). Just like transfer, but reading the user's transferable balance first."] - #[doc = " #"] + #[doc = "See [`Pallet::transfer_all`]."] pub fn transfer_all( &self, dest: ::subxt::utils::MultiAddress< @@ -4452,9 +4135,7 @@ pub mod api { ) } - #[doc = "Unreserve some balance from a user by force."] - #[doc = ""] - #[doc = "Can only be called by ROOT."] + #[doc = "See [`Pallet::force_unreserve`]."] pub fn force_unreserve( &self, who: ::subxt::utils::MultiAddress< @@ -4475,9 +4156,68 @@ pub mod api { ], ) } + + #[doc = "See [`Pallet::upgrade_accounts`]."] + pub fn upgrade_accounts( + &self, + who: ::std::vec::Vec<::subxt::utils::AccountId32>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Balances", + "upgrade_accounts", + types::UpgradeAccounts { who }, + [ + 66u8, 200u8, 179u8, 104u8, 65u8, 2u8, 101u8, 56u8, 130u8, 161u8, 224u8, + 233u8, 255u8, 124u8, 70u8, 122u8, 8u8, 49u8, 103u8, 178u8, 68u8, 47u8, + 214u8, 166u8, 217u8, 116u8, 178u8, 50u8, 212u8, 164u8, 98u8, 226u8, + ], + ) + } + + #[doc = "See [`Pallet::transfer`]."] + pub fn transfer( + &self, + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + value: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Balances", + "transfer", + types::Transfer { dest, value }, + [ + 78u8, 137u8, 180u8, 250u8, 225u8, 152u8, 150u8, 139u8, 30u8, 4u8, 57u8, + 241u8, 135u8, 108u8, 67u8, 239u8, 65u8, 13u8, 10u8, 205u8, 125u8, + 208u8, 237u8, 60u8, 18u8, 13u8, 232u8, 47u8, 47u8, 151u8, 79u8, 23u8, + ], + ) + } + + #[doc = "See [`Pallet::force_set_balance`]."] + pub fn force_set_balance( + &self, + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + new_free: ::core::primitive::u128, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Balances", + "force_set_balance", + types::ForceSetBalance { who, new_free }, + [ + 171u8, 138u8, 53u8, 85u8, 202u8, 35u8, 151u8, 115u8, 143u8, 67u8, 81u8, + 25u8, 250u8, 108u8, 179u8, 46u8, 194u8, 23u8, 169u8, 223u8, 6u8, 179u8, + 240u8, 4u8, 26u8, 9u8, 229u8, 29u8, 248u8, 6u8, 23u8, 232u8, + ], + ) + } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_balances::pallet::Event; pub mod events { use super::runtime_types; @@ -4566,7 +4306,6 @@ pub mod api { pub struct BalanceSet { pub who: ::subxt::utils::AccountId32, pub free: ::core::primitive::u128, - pub reserved: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for BalanceSet { const EVENT: &'static str = "BalanceSet"; @@ -4708,6 +4447,247 @@ pub mod api { const EVENT: &'static str = "Slashed"; const PALLET: &'static str = "Balances"; } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some amount was minted into an account."] + pub struct Minted { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Minted { + const EVENT: &'static str = "Minted"; + const PALLET: &'static str = "Balances"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some amount was burned from an account."] + pub struct Burned { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Burned { + const EVENT: &'static str = "Burned"; + const PALLET: &'static str = "Balances"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some amount was suspended from an account (it can be restored later)."] + pub struct Suspended { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Suspended { + const EVENT: &'static str = "Suspended"; + const PALLET: &'static str = "Balances"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some amount was restored into an account."] + pub struct Restored { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Restored { + const EVENT: &'static str = "Restored"; + const PALLET: &'static str = "Balances"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "An account was upgraded."] + pub struct Upgraded { + pub who: ::subxt::utils::AccountId32, + } + impl ::subxt::events::StaticEvent for Upgraded { + const EVENT: &'static str = "Upgraded"; + const PALLET: &'static str = "Balances"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."] + pub struct Issued { + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Issued { + const EVENT: &'static str = "Issued"; + const PALLET: &'static str = "Balances"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."] + pub struct Rescinded { + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Rescinded { + const EVENT: &'static str = "Rescinded"; + const PALLET: &'static str = "Balances"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some balance was locked."] + pub struct Locked { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Locked { + const EVENT: &'static str = "Locked"; + const PALLET: &'static str = "Balances"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some balance was unlocked."] + pub struct Unlocked { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Unlocked { + const EVENT: &'static str = "Unlocked"; + const PALLET: &'static str = "Balances"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some balance was frozen."] + pub struct Frozen { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Frozen { + const EVENT: &'static str = "Frozen"; + const PALLET: &'static str = "Balances"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Some balance was thawed."] + pub struct Thawed { + pub who: ::subxt::utils::AccountId32, + pub amount: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for Thawed { + const EVENT: &'static str = "Thawed"; + const PALLET: &'static str = "Balances"; + } } pub mod storage { use super::runtime_types; @@ -4787,7 +4767,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_balances::AccountData<::core::primitive::u128>, + runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -4799,9 +4779,10 @@ pub mod api { _0.borrow(), )], [ - 135u8, 46u8, 233u8, 118u8, 128u8, 96u8, 33u8, 62u8, 99u8, 65u8, 196u8, - 52u8, 103u8, 125u8, 58u8, 185u8, 185u8, 203u8, 8u8, 56u8, 49u8, 196u8, - 140u8, 246u8, 196u8, 141u8, 232u8, 245u8, 26u8, 164u8, 193u8, 149u8, + 47u8, 253u8, 83u8, 165u8, 18u8, 176u8, 62u8, 239u8, 78u8, 85u8, 231u8, + 235u8, 157u8, 145u8, 251u8, 35u8, 225u8, 171u8, 82u8, 167u8, 68u8, + 206u8, 28u8, 169u8, 8u8, 93u8, 169u8, 101u8, 180u8, 206u8, 231u8, + 143u8, ], ) } @@ -4834,7 +4815,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_balances::AccountData<::core::primitive::u128>, + runtime_types::pallet_balances::types::AccountData<::core::primitive::u128>, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -4844,9 +4825,10 @@ pub mod api { "Account", Vec::new(), [ - 135u8, 46u8, 233u8, 118u8, 128u8, 96u8, 33u8, 62u8, 99u8, 65u8, 196u8, - 52u8, 103u8, 125u8, 58u8, 185u8, 185u8, 203u8, 8u8, 56u8, 49u8, 196u8, - 140u8, 246u8, 196u8, 141u8, 232u8, 245u8, 26u8, 164u8, 193u8, 149u8, + 47u8, 253u8, 83u8, 165u8, 18u8, 176u8, 62u8, 239u8, 78u8, 85u8, 231u8, + 235u8, 157u8, 145u8, 251u8, 35u8, 225u8, 171u8, 82u8, 167u8, 68u8, + 206u8, 28u8, 169u8, 8u8, 93u8, 169u8, 101u8, 180u8, 206u8, 231u8, + 143u8, ], ) } @@ -4858,8 +4840,8 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::weak_bounded_vec::WeakBoundedVec< - runtime_types::pallet_balances::BalanceLock<::core::primitive::u128>, + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< + runtime_types::pallet_balances::types::BalanceLock<::core::primitive::u128>, >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -4885,8 +4867,8 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::weak_bounded_vec::WeakBoundedVec< - runtime_types::pallet_balances::BalanceLock<::core::primitive::u128>, + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< + runtime_types::pallet_balances::types::BalanceLock<::core::primitive::u128>, >, (), ::subxt::storage::address::Yes, @@ -4910,8 +4892,8 @@ pub mod api { _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - runtime_types::pallet_balances::ReserveData< + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::ReserveData< [::core::primitive::u8; 8usize], ::core::primitive::u128, >, @@ -4940,8 +4922,8 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - runtime_types::pallet_balances::ReserveData< + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::ReserveData< [::core::primitive::u8; 8usize], ::core::primitive::u128, >, @@ -4962,13 +4944,134 @@ pub mod api { ], ) } + + #[doc = " Holds on account balances."] + pub fn holds( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::IdAmount< + runtime_types::da_runtime::RuntimeHoldReason, + ::core::primitive::u128, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "Holds", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 37u8, 176u8, 2u8, 18u8, 109u8, 26u8, 66u8, 81u8, 28u8, 104u8, 149u8, + 117u8, 119u8, 114u8, 196u8, 35u8, 172u8, 155u8, 66u8, 195u8, 98u8, + 37u8, 134u8, 22u8, 106u8, 221u8, 215u8, 97u8, 25u8, 28u8, 21u8, 206u8, + ], + ) + } + + #[doc = " Holds on account balances."] + pub fn holds_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::IdAmount< + runtime_types::da_runtime::RuntimeHoldReason, + ::core::primitive::u128, + >, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "Holds", + Vec::new(), + [ + 37u8, 176u8, 2u8, 18u8, 109u8, 26u8, 66u8, 81u8, 28u8, 104u8, 149u8, + 117u8, 119u8, 114u8, 196u8, 35u8, 172u8, 155u8, 66u8, 195u8, 98u8, + 37u8, 134u8, 22u8, 106u8, 221u8, 215u8, 97u8, 25u8, 28u8, 21u8, 206u8, + ], + ) + } + + #[doc = " Freeze locks on account balances."] + pub fn freezes( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::IdAmount< + (), + ::core::primitive::u128, + >, + >, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "Freezes", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 69u8, 49u8, 165u8, 76u8, 135u8, 142u8, 179u8, 118u8, 50u8, 109u8, 53u8, + 112u8, 110u8, 94u8, 30u8, 93u8, 173u8, 38u8, 27u8, 142u8, 19u8, 5u8, + 163u8, 4u8, 68u8, 218u8, 179u8, 224u8, 118u8, 218u8, 115u8, 64u8, + ], + ) + } + + #[doc = " Freeze locks on account balances."] + pub fn freezes_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::pallet_balances::types::IdAmount< + (), + ::core::primitive::u128, + >, + >, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Balances", + "Freezes", + Vec::new(), + [ + 69u8, 49u8, 165u8, 76u8, 135u8, 142u8, 179u8, 118u8, 50u8, 109u8, 53u8, + 112u8, 110u8, 94u8, 30u8, 93u8, 173u8, 38u8, 27u8, 142u8, 19u8, 5u8, + 163u8, 4u8, 68u8, 218u8, 179u8, 224u8, 118u8, 218u8, 115u8, 64u8, + ], + ) + } } } pub mod constants { use super::runtime_types; pub struct ConstantsApi; impl ConstantsApi { - #[doc = " The minimum amount required to keep an account open."] + #[doc = " The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!"] + #[doc = ""] + #[doc = " If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for"] + #[doc = " this pallet. However, you do so at your own risk: this will open up a major DoS vector."] + #[doc = " In case you have multiple sources of provider references, you may also get unexpected"] + #[doc = " behaviour if you set this to zero."] + #[doc = ""] + #[doc = " Bottom line: Do yourself a favour and make it at least one!"] pub fn existential_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { @@ -4997,12 +5100,30 @@ pub mod api { 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ]) } + + #[doc = " The maximum number of holds that can exist on an account at any time."] + pub fn max_holds(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static("Balances", "MaxHolds", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) + } + + #[doc = " The maximum number of individual freeze locks that can exist on an account at any time."] + pub fn max_freezes(&self) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static("Balances", "MaxFreezes", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) + } } } } pub mod transaction_payment { use super::{root_mod, runtime_types}; - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_transaction_payment::pallet::Event; pub mod events { use super::runtime_types; @@ -5126,7 +5247,7 @@ pub mod api { use super::{root_mod, runtime_types}; #[doc = "Error of the pallet that can be returned in response to dispatches."] pub type Error = runtime_types::pallet_election_provider_multi_phase::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_election_provider_multi_phase::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -5251,20 +5372,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Submit a solution for the unsigned phase."] - #[doc = ""] - #[doc = "The dispatch origin fo this call must be __none__."] - #[doc = ""] - #[doc = "This submission is checked on the fly. Moreover, this unsigned solution is only"] - #[doc = "validated when submitted to the pool from the **local** node. Effectively, this means"] - #[doc = "that only active validators can submit this transaction when authoring a block (similar"] - #[doc = "to an inherent)."] - #[doc = ""] - #[doc = "To prevent any incorrect solution (and thus wasted time/weight), this transaction will"] - #[doc = "panic if the solution submitted by the validator is invalid in any way, effectively"] - #[doc = "putting their authoring reward at risk."] - #[doc = ""] - #[doc = "No deposit or reward is associated with this submission."] + #[doc = "See [`Pallet::submit_unsigned`]."] pub fn submit_unsigned( &self, raw_solution: runtime_types::pallet_election_provider_multi_phase::RawSolution< @@ -5287,11 +5395,7 @@ pub mod api { ) } - #[doc = "Set a new value for `MinimumUntrustedScore`."] - #[doc = ""] - #[doc = "Dispatch origin must be aligned with `T::ForceOrigin`."] - #[doc = ""] - #[doc = "This check can be turned off by setting the value to `None`."] + #[doc = "See [`Pallet::set_minimum_untrusted_score`]."] pub fn set_minimum_untrusted_score( &self, maybe_next_score: ::core::option::Option< @@ -5311,14 +5415,7 @@ pub mod api { ) } - #[doc = "Set a solution in the queue, to be handed out to the client of this pallet in the next"] - #[doc = "call to `ElectionProvider::elect`."] - #[doc = ""] - #[doc = "This can only be set by `T::ForceOrigin`, and only when the phase is `Emergency`."] - #[doc = ""] - #[doc = "The solution is not checked for any feasibility and is assumed to be trustworthy, as any"] - #[doc = "feasibility check itself can in principle cause the election process to fail (due to"] - #[doc = "memory/weight constrains)."] + #[doc = "See [`Pallet::set_emergency_election_result`]."] pub fn set_emergency_election_result( &self, supports: ::std::vec::Vec<( @@ -5338,15 +5435,7 @@ pub mod api { ) } - #[doc = "Submit a solution for the signed phase."] - #[doc = ""] - #[doc = "The dispatch origin fo this call must be __signed__."] - #[doc = ""] - #[doc = "The solution is potentially queued, based on the claimed score and processed at the end"] - #[doc = "of the signed phase."] - #[doc = ""] - #[doc = "A deposit is reserved and recorded for the solution. Based on the outcome, the solution"] - #[doc = "might be rewarded, slashed, or get all or a part of the deposit back."] + #[doc = "See [`Pallet::submit`]."] pub fn submit( &self, raw_solution: runtime_types::pallet_election_provider_multi_phase::RawSolution< @@ -5367,10 +5456,7 @@ pub mod api { ) } - #[doc = "Trigger the governance fallback."] - #[doc = ""] - #[doc = "This can only be called when [`Phase::Emergency`] is enabled, as an alternative to"] - #[doc = "calling [`Call::set_emergency_election_result`]."] + #[doc = "See [`Pallet::governance_fallback`]."] pub fn governance_fallback( &self, maybe_max_voters: ::core::option::Option<::core::primitive::u32>, @@ -5393,7 +5479,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_election_provider_multi_phase::pallet::Event; pub mod events { use super::runtime_types; @@ -5597,6 +5683,8 @@ pub mod api { } #[doc = " Current best solution, signed or unsigned, queued to be returned upon `elect`."] + #[doc = ""] + #[doc = " Always sorted by score."] pub fn queued_solution( &self, ) -> ::subxt::storage::address::Address< @@ -5626,7 +5714,16 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::pallet_election_provider_multi_phase::RoundSnapshot, + runtime_types::pallet_election_provider_multi_phase::RoundSnapshot< + ::subxt::utils::AccountId32, + ( + ::subxt::utils::AccountId32, + ::core::primitive::u64, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + ), + >, ::subxt::storage::address::Yes, (), (), @@ -5733,7 +5830,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec<( + runtime_types::bounded_collections::bounded_vec::BoundedVec<( runtime_types::sp_npos_elections::ElectionScore, ::core::primitive::u32, ::core::primitive::u32, @@ -6162,14 +6259,29 @@ pub mod api { ], ) } + + pub fn miner_max_winners( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static( + "ElectionProviderMultiPhase", + "MinerMaxWinners", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } } } } pub mod staking { use super::{root_mod, runtime_types}; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_staking::pallet::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_staking::pallet::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -6190,10 +6302,6 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Bond { - pub controller: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, #[codec(compact)] pub value: ::core::primitive::u128, pub payee: runtime_types::pallet_staking::RewardDestination< @@ -6365,12 +6473,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SetController { - pub controller: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - } + pub struct SetController; impl ::subxt::blocks::StaticExtrinsic for SetController { const CALL: &'static str = "set_controller"; const PALLET: &'static str = "Staking"; @@ -6743,29 +6846,9 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Take the origin account as a stash and lock up `value` of its balance. `controller` will"] - #[doc = "be the account that controls it."] - #[doc = ""] - #[doc = "`value` must be more than the `minimum_balance` specified by `T::Currency`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the stash account."] - #[doc = ""] - #[doc = "Emits `Bonded`."] - #[doc = "# "] - #[doc = "- Independent of the arguments. Moderate complexity."] - #[doc = "- O(1)."] - #[doc = "- Three extra DB entries."] - #[doc = ""] - #[doc = "NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned"] - #[doc = "unless the `origin` falls below _existential deposit_ and gets removed as dust."] - #[doc = "------------------"] - #[doc = "# "] + #[doc = "See [`Pallet::bond`]."] pub fn bond( &self, - controller: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, value: ::core::primitive::u128, payee: runtime_types::pallet_staking::RewardDestination< ::subxt::utils::AccountId32, @@ -6774,35 +6857,16 @@ pub mod api { ::subxt::tx::Payload::new_static( "Staking", "bond", - types::Bond { - controller, - value, - payee, - }, + types::Bond { value, payee }, [ - 122u8, 113u8, 66u8, 155u8, 72u8, 243u8, 227u8, 93u8, 181u8, 164u8, - 134u8, 177u8, 78u8, 84u8, 252u8, 232u8, 129u8, 228u8, 79u8, 158u8, - 23u8, 9u8, 17u8, 156u8, 202u8, 134u8, 167u8, 169u8, 44u8, 82u8, 166u8, - 158u8, + 45u8, 207u8, 34u8, 221u8, 252u8, 224u8, 162u8, 185u8, 67u8, 224u8, + 88u8, 91u8, 232u8, 114u8, 183u8, 44u8, 39u8, 5u8, 12u8, 163u8, 57u8, + 31u8, 251u8, 58u8, 37u8, 232u8, 206u8, 75u8, 164u8, 26u8, 170u8, 101u8, ], ) } - #[doc = "Add some extra amount that have appeared in the stash `free_balance` into the balance up"] - #[doc = "for staking."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] - #[doc = ""] - #[doc = "Use this if there are additional funds in your stash account that you wish to bond."] - #[doc = "Unlike [`bond`](Self::bond) or [`unbond`](Self::unbond) this function does not impose"] - #[doc = "any limitation on the amount that can be added."] - #[doc = ""] - #[doc = "Emits `Bonded`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- O(1)."] - #[doc = "# "] + #[doc = "See [`Pallet::bond_extra`]."] pub fn bond_extra( &self, max_additional: ::core::primitive::u128, @@ -6819,25 +6883,7 @@ pub mod api { ) } - #[doc = "Schedule a portion of the stash to be unlocked ready for transfer out after the bond"] - #[doc = "period ends. If this leaves an amount actively bonded less than"] - #[doc = "T::Currency::minimum_balance(), then it is increased to the full amount."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] - #[doc = ""] - #[doc = "Once the unlock period is done, you can call `withdraw_unbonded` to actually move"] - #[doc = "the funds out of management ready for transfer."] - #[doc = ""] - #[doc = "No more than a limited number of unlocking chunks (see `MaxUnlockingChunks`)"] - #[doc = "can co-exists at the same time. If there are no unlocking chunks slots available"] - #[doc = "[`Call::withdraw_unbonded`] is called to remove some of the chunks (if possible)."] - #[doc = ""] - #[doc = "If a user encounters the `InsufficientBond` error when calling this extrinsic,"] - #[doc = "they should call `chill` first in order to free up their bonded funds."] - #[doc = ""] - #[doc = "Emits `Unbonded`."] - #[doc = ""] - #[doc = "See also [`Call::withdraw_unbonded`]."] + #[doc = "See [`Pallet::unbond`]."] pub fn unbond( &self, value: ::core::primitive::u128, @@ -6854,21 +6900,7 @@ pub mod api { ) } - #[doc = "Remove any unlocked chunks from the `unlocking` queue from our management."] - #[doc = ""] - #[doc = "This essentially frees up that balance to be used by the stash account to do"] - #[doc = "whatever it wants."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller."] - #[doc = ""] - #[doc = "Emits `Withdrawn`."] - #[doc = ""] - #[doc = "See also [`Call::unbond`]."] - #[doc = ""] - #[doc = "# "] - #[doc = "Complexity O(S) where S is the number of slashing spans to remove"] - #[doc = "NOTE: Weight annotation is the kill scenario, we refund otherwise."] - #[doc = "# "] + #[doc = "See [`Pallet::withdraw_unbonded`]."] pub fn withdraw_unbonded( &self, num_slashing_spans: ::core::primitive::u32, @@ -6886,11 +6918,7 @@ pub mod api { ) } - #[doc = "Declare the desire to validate for the origin controller."] - #[doc = ""] - #[doc = "Effects will be felt at the beginning of the next era."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] + #[doc = "See [`Pallet::validate`]."] pub fn validate( &self, prefs: runtime_types::pallet_staking::ValidatorPrefs, @@ -6907,17 +6935,7 @@ pub mod api { ) } - #[doc = "Declare the desire to nominate `targets` for the origin controller."] - #[doc = ""] - #[doc = "Effects will be felt at the beginning of the next era."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] - #[doc = ""] - #[doc = "# "] - #[doc = "- The transaction's complexity is proportional to the size of `targets` (N)"] - #[doc = "which is capped at CompactAssignments::LIMIT (T::MaxNominations)."] - #[doc = "- Both the reads and writes follow a similar pattern."] - #[doc = "# "] + #[doc = "See [`Pallet::nominate`]."] pub fn nominate( &self, targets: ::std::vec::Vec< @@ -6940,17 +6958,7 @@ pub mod api { ) } - #[doc = "Declare no desire to either validate or nominate."] - #[doc = ""] - #[doc = "Effects will be felt at the beginning of the next era."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- Contains one read."] - #[doc = "- Writes are limited to the `origin` account key."] - #[doc = "# "] + #[doc = "See [`Pallet::chill`]."] pub fn chill(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static("Staking", "chill", types::Chill {}, [ 157u8, 75u8, 243u8, 69u8, 110u8, 192u8, 22u8, 27u8, 107u8, 68u8, 236u8, @@ -6959,22 +6967,7 @@ pub mod api { ]) } - #[doc = "(Re-)set the payment target for a controller."] - #[doc = ""] - #[doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- Contains a limited number of reads."] - #[doc = "- Writes are limited to the `origin` account key."] - #[doc = "---------"] - #[doc = "- Weight: O(1)"] - #[doc = "- DB Weight:"] - #[doc = " - Read: Ledger"] - #[doc = " - Write: Payee"] - #[doc = "# "] + #[doc = "See [`Pallet::set_payee`]."] pub fn set_payee( &self, payee: runtime_types::pallet_staking::RewardDestination< @@ -6994,50 +6987,22 @@ pub mod api { ) } - #[doc = "(Re-)set the controller of a stash."] - #[doc = ""] - #[doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- Contains a limited number of reads."] - #[doc = "- Writes are limited to the `origin` account key."] - #[doc = "----------"] - #[doc = "Weight: O(1)"] - #[doc = "DB Weight:"] - #[doc = "- Read: Bonded, Ledger New Controller, Ledger Old Controller"] - #[doc = "- Write: Bonded, Ledger New Controller, Ledger Old Controller"] - #[doc = "# "] - pub fn set_controller( - &self, - controller: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - ) -> ::subxt::tx::Payload { + #[doc = "See [`Pallet::set_controller`]."] + pub fn set_controller(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", "set_controller", - types::SetController { controller }, + types::SetController {}, [ - 247u8, 209u8, 151u8, 119u8, 208u8, 41u8, 100u8, 77u8, 251u8, 116u8, - 185u8, 248u8, 30u8, 94u8, 240u8, 139u8, 155u8, 102u8, 25u8, 237u8, - 64u8, 215u8, 84u8, 205u8, 152u8, 214u8, 233u8, 47u8, 233u8, 108u8, - 86u8, 99u8, + 172u8, 27u8, 195u8, 188u8, 145u8, 203u8, 190u8, 174u8, 145u8, 43u8, + 253u8, 87u8, 11u8, 229u8, 112u8, 18u8, 57u8, 101u8, 84u8, 235u8, 109u8, + 228u8, 58u8, 129u8, 179u8, 174u8, 245u8, 169u8, 89u8, 240u8, 39u8, + 67u8, ], ) } - #[doc = "Sets the ideal number of validators."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# "] - #[doc = "Weight: O(1)"] - #[doc = "Write: Validator Count"] - #[doc = "# "] + #[doc = "See [`Pallet::set_validator_count`]."] pub fn set_validator_count( &self, new: ::core::primitive::u32, @@ -7055,14 +7020,7 @@ pub mod api { ) } - #[doc = "Increments the ideal number of validators upto maximum of"] - #[doc = "`ElectionProviderBase::MaxWinners`."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# "] - #[doc = "Same as [`Self::set_validator_count`]."] - #[doc = "# "] + #[doc = "See [`Pallet::increase_validator_count`]."] pub fn increase_validator_count( &self, additional: ::core::primitive::u32, @@ -7080,14 +7038,7 @@ pub mod api { ) } - #[doc = "Scale up the ideal number of validators by a factor upto maximum of"] - #[doc = "`ElectionProviderBase::MaxWinners`."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# "] - #[doc = "Same as [`Self::set_validator_count`]."] - #[doc = "# "] + #[doc = "See [`Pallet::scale_validator_count`]."] pub fn scale_validator_count( &self, factor: runtime_types::sp_arithmetic::per_things::Percent, @@ -7105,21 +7056,7 @@ pub mod api { ) } - #[doc = "Force there to be no new eras indefinitely."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# Warning"] - #[doc = ""] - #[doc = "The election process starts multiple blocks before the end of the era."] - #[doc = "Thus the election process may be ongoing when this is called. In this case the"] - #[doc = "election will continue until the next era is triggered."] - #[doc = ""] - #[doc = "# "] - #[doc = "- No arguments."] - #[doc = "- Weight: O(1)"] - #[doc = "- Write: ForceEra"] - #[doc = "# "] + #[doc = "See [`Pallet::force_no_eras`]."] pub fn force_no_eras(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -7134,22 +7071,7 @@ pub mod api { ) } - #[doc = "Force there to be a new era at the end of the next session. After this, it will be"] - #[doc = "reset to normal (non-forced) behaviour."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# Warning"] - #[doc = ""] - #[doc = "The election process starts multiple blocks before the end of the era."] - #[doc = "If this is called just before a new era is triggered, the election process may not"] - #[doc = "have enough blocks to get a result."] - #[doc = ""] - #[doc = "# "] - #[doc = "- No arguments."] - #[doc = "- Weight: O(1)"] - #[doc = "- Write ForceEra"] - #[doc = "# "] + #[doc = "See [`Pallet::force_new_era`]."] pub fn force_new_era(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Staking", @@ -7163,9 +7085,7 @@ pub mod api { ) } - #[doc = "Set the validators who cannot be slashed (if any)."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] + #[doc = "See [`Pallet::set_invulnerables`]."] pub fn set_invulnerables( &self, invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -7182,9 +7102,7 @@ pub mod api { ) } - #[doc = "Force a current staker to become completely unstaked, immediately."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] + #[doc = "See [`Pallet::force_unstake`]."] pub fn force_unstake( &self, stash: ::subxt::utils::AccountId32, @@ -7205,15 +7123,7 @@ pub mod api { ) } - #[doc = "Force there to be a new era at the end of sessions indefinitely."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# Warning"] - #[doc = ""] - #[doc = "The election process starts multiple blocks before the end of the era."] - #[doc = "If this is called just before a new era is triggered, the election process may not"] - #[doc = "have enough blocks to get a result."] + #[doc = "See [`Pallet::force_new_era_always`]."] pub fn force_new_era_always( &self, ) -> ::subxt::tx::Payload { @@ -7229,11 +7139,7 @@ pub mod api { ) } - #[doc = "Cancel enactment of a deferred slash."] - #[doc = ""] - #[doc = "Can be called by the `T::AdminOrigin`."] - #[doc = ""] - #[doc = "Parameters: era and indices of the slashes for that era to kill."] + #[doc = "See [`Pallet::cancel_deferred_slash`]."] pub fn cancel_deferred_slash( &self, era: ::core::primitive::u32, @@ -7252,27 +7158,7 @@ pub mod api { ) } - #[doc = "Pay out all the stakers behind a single validator for a single era."] - #[doc = ""] - #[doc = "- `validator_stash` is the stash account of the validator. Their nominators, up to"] - #[doc = " `T::MaxNominatorRewardedPerValidator`, will also receive their rewards."] - #[doc = "- `era` may be any era between `[current_era - history_depth; current_era]`."] - #[doc = ""] - #[doc = "The origin of this call must be _Signed_. Any account can call this function, even if"] - #[doc = "it is not one of the stakers."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Time complexity: at most O(MaxNominatorRewardedPerValidator)."] - #[doc = "- Contains a limited number of reads and writes."] - #[doc = "-----------"] - #[doc = "N is the Number of payouts for the validator (including the validator)"] - #[doc = "Weight:"] - #[doc = "- Reward Destination Staked: O(N)"] - #[doc = "- Reward Destination Controller (Creating): O(N)"] - #[doc = ""] - #[doc = " NOTE: weights are assuming that payouts are made to alive stash account (Staked)."] - #[doc = " Paying even a dead controller is cheaper weight-wise. We don't do any refunds here."] - #[doc = "# "] + #[doc = "See [`Pallet::payout_stakers`]."] pub fn payout_stakers( &self, validator_stash: ::subxt::utils::AccountId32, @@ -7293,15 +7179,7 @@ pub mod api { ) } - #[doc = "Rebond a portion of the stash scheduled to be unlocked."] - #[doc = ""] - #[doc = "The dispatch origin must be signed by the controller."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Time complexity: O(L), where L is unlocking chunks"] - #[doc = "- Bounded by `MaxUnlockingChunks`."] - #[doc = "- Storage changes: Can't increase storage, only decrease it."] - #[doc = "# "] + #[doc = "See [`Pallet::rebond`]."] pub fn rebond( &self, value: ::core::primitive::u128, @@ -7318,18 +7196,7 @@ pub mod api { ) } - #[doc = "Remove all data structures concerning a staker/stash once it is at a state where it can"] - #[doc = "be considered `dust` in the staking system. The requirements are:"] - #[doc = ""] - #[doc = "1. the `total_balance` of the stash is below existential deposit."] - #[doc = "2. or, the `ledger.total` of the stash is below existential deposit."] - #[doc = ""] - #[doc = "The former can happen in cases like a slash; the latter when a fully unbonded account"] - #[doc = "is still receiving staking rewards in `RewardDestination::Staked`."] - #[doc = ""] - #[doc = "It can be called by anyone, as long as `stash` meets the above requirements."] - #[doc = ""] - #[doc = "Refunds the transaction fees upon successful execution."] + #[doc = "See [`Pallet::reap_stash`]."] pub fn reap_stash( &self, stash: ::subxt::utils::AccountId32, @@ -7350,17 +7217,7 @@ pub mod api { ) } - #[doc = "Remove the given nominations from the calling validator."] - #[doc = ""] - #[doc = "Effects will be felt at the beginning of the next era."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] - #[doc = ""] - #[doc = "- `who`: A list of nominator stash accounts who are nominating this validator which"] - #[doc = " should no longer be nominating this validator."] - #[doc = ""] - #[doc = "Note: Making this call only makes sense if you first set the validator preferences to"] - #[doc = "block any further nominations."] + #[doc = "See [`Pallet::kick`]."] pub fn kick( &self, who: ::std::vec::Vec< @@ -7377,23 +7234,7 @@ pub mod api { ]) } - #[doc = "Update the various staking configurations ."] - #[doc = ""] - #[doc = "* `min_nominator_bond`: The minimum active bond needed to be a nominator."] - #[doc = "* `min_validator_bond`: The minimum active bond needed to be a validator."] - #[doc = "* `max_nominator_count`: The max number of users who can be a nominator at once. When"] - #[doc = " set to `None`, no limit is enforced."] - #[doc = "* `max_validator_count`: The max number of users who can be a validator at once. When"] - #[doc = " set to `None`, no limit is enforced."] - #[doc = "* `chill_threshold`: The ratio of `max_nominator_count` or `max_validator_count` which"] - #[doc = " should be filled in order for the `chill_other` transaction to work."] - #[doc = "* `min_commission`: The minimum amount of commission that each validators must maintain."] - #[doc = " This is checked only upon calling `validate`. Existing validators are not affected."] - #[doc = ""] - #[doc = "RuntimeOrigin must be Root to call this function."] - #[doc = ""] - #[doc = "NOTE: Existing nominators and validators will not be affected by this update."] - #[doc = "to kick people under the new limits, `chill_other` should be called."] + #[doc = "See [`Pallet::set_staking_configs`]."] pub fn set_staking_configs( &self, min_nominator_bond: runtime_types::pallet_staking::pallet::pallet::ConfigOp< @@ -7432,35 +7273,10 @@ pub mod api { 112u8, 175u8, 55u8, 248u8, 64u8, 127u8, 51u8, 65u8, 132u8, 210u8, 88u8, 213u8, ], - ) - } - - #[doc = "Declare a `controller` to stop participating as either a validator or nominator."] - #[doc = ""] - #[doc = "Effects will be felt at the beginning of the next era."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_, but can be called by anyone."] - #[doc = ""] - #[doc = "If the caller is the same as the controller being targeted, then no further checks are"] - #[doc = "enforced, and this function behaves just like `chill`."] - #[doc = ""] - #[doc = "If the caller is different than the controller being targeted, the following conditions"] - #[doc = "must be met:"] - #[doc = ""] - #[doc = "* `controller` must belong to a nominator who has become non-decodable,"] - #[doc = ""] - #[doc = "Or:"] - #[doc = ""] - #[doc = "* A `ChillThreshold` must be set and checked which defines how close to the max"] - #[doc = " nominators or validators we must reach before users can start chilling one-another."] - #[doc = "* A `MaxNominatorCount` and `MaxValidatorCount` must be set which is used to determine"] - #[doc = " how close we are to the threshold."] - #[doc = "* A `MinNominatorBond` and `MinValidatorBond` must be set and checked, which determines"] - #[doc = " if this is a person that should be chilled because they have not met the threshold"] - #[doc = " bond required."] - #[doc = ""] - #[doc = "This can be helpful if bond requirements are updated, and we need to remove old users"] - #[doc = "who do not satisfy these requirements."] + ) + } + + #[doc = "See [`Pallet::chill_other`]."] pub fn chill_other( &self, controller: ::subxt::utils::AccountId32, @@ -7477,9 +7293,7 @@ pub mod api { ) } - #[doc = "Force a validator to have at least the minimum commission. This will not affect a"] - #[doc = "validator who already has a commission greater than or equal to the minimum. Any account"] - #[doc = "can call this."] + #[doc = "See [`Pallet::force_apply_min_commission`]."] pub fn force_apply_min_commission( &self, validator_stash: ::subxt::utils::AccountId32, @@ -7496,10 +7310,7 @@ pub mod api { ) } - #[doc = "Sets the minimum amount of commission that each validators must maintain."] - #[doc = ""] - #[doc = "This call has lower privilege requirements than `set_staking_config` and can be called"] - #[doc = "by the `T::AdminOrigin`. Root can always call this."] + #[doc = "See [`Pallet::set_min_commission`]."] pub fn set_min_commission( &self, new: runtime_types::sp_arithmetic::per_things::Perbill, @@ -7518,7 +7329,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_staking::pallet::pallet::Event; pub mod events { use super::runtime_types; @@ -9419,7 +9230,7 @@ pub mod api { use super::{root_mod, runtime_types}; #[doc = "Error for the session pallet."] pub type Error = runtime_types::pallet_session::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_session::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -9468,20 +9279,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Sets the session key(s) of the function caller to `keys`."] - #[doc = "Allows an account to set its session key prior to becoming a validator."] - #[doc = "This doesn't take effect until the next session."] - #[doc = ""] - #[doc = "The dispatch origin of this function must be signed."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: `O(1)`. Actual cost depends on the number of length of"] - #[doc = " `T::Keys::key_ids()` which is fixed."] - #[doc = "- DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`"] - #[doc = "- DbWrites: `origin account`, `NextKeys`"] - #[doc = "- DbReads per key id: `KeyOwner`"] - #[doc = "- DbWrites per key id: `KeyOwner`"] - #[doc = "# "] + #[doc = "See [`Pallet::set_keys`]."] pub fn set_keys( &self, keys: runtime_types::da_runtime::primitives::SessionKeys, @@ -9499,22 +9297,7 @@ pub mod api { ) } - #[doc = "Removes any session key(s) of the function caller."] - #[doc = ""] - #[doc = "This doesn't take effect until the next session."] - #[doc = ""] - #[doc = "The dispatch origin of this function must be Signed and the account must be either be"] - #[doc = "convertible to a validator ID using the chain's typical addressing system (this usually"] - #[doc = "means being a controller account) or directly convertible into a validator ID (which"] - #[doc = "usually means being a stash account)."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: `O(1)` in number of key types. Actual cost depends on the number of length"] - #[doc = " of `T::Keys::key_ids()` which is fixed."] - #[doc = "- DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`"] - #[doc = "- DbWrites: `NextKeys`, `origin account`"] - #[doc = "- DbWrites per key id: `KeyOwner`"] - #[doc = "# "] + #[doc = "See [`Pallet::purge_keys`]."] pub fn purge_keys(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Session", @@ -9530,7 +9313,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_session::pallet::Event; pub mod events { use super::runtime_types; @@ -9785,9 +9568,9 @@ pub mod api { } pub mod democracy { use super::{root_mod, runtime_types}; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_democracy::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_democracy::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -10183,18 +9966,31 @@ pub mod api { const CALL: &'static str = "cancel_proposal"; const PALLET: &'static str = "Democracy"; } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetMetadata { + pub owner: runtime_types::pallet_democracy::types::MetadataOwner, + pub maybe_hash: ::core::option::Option<::subxt::utils::H256>, + } + impl ::subxt::blocks::StaticExtrinsic for SetMetadata { + const CALL: &'static str = "set_metadata"; + const PALLET: &'static str = "Democracy"; + } } pub struct TransactionApi; impl TransactionApi { - #[doc = "Propose a sensitive action to be taken."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_ and the sender must"] - #[doc = "have funds to cover the deposit."] - #[doc = ""] - #[doc = "- `proposal_hash`: The hash of the proposal preimage."] - #[doc = "- `value`: The amount of deposit (must be at least `MinimumDeposit`)."] - #[doc = ""] - #[doc = "Emits `Proposed`."] + #[doc = "See [`Pallet::propose`]."] pub fn propose( &self, proposal: runtime_types::frame_support::traits::preimages::Bounded< @@ -10215,12 +10011,7 @@ pub mod api { ) } - #[doc = "Signals agreement with a particular proposal."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_ and the sender"] - #[doc = "must have funds to cover the deposit, equal to the original deposit."] - #[doc = ""] - #[doc = "- `proposal`: The index of the proposal to second."] + #[doc = "See [`Pallet::second`]."] pub fn second( &self, proposal: ::core::primitive::u32, @@ -10238,13 +10029,7 @@ pub mod api { ) } - #[doc = "Vote in a referendum. If `vote.is_aye()`, the vote is to enact the proposal;"] - #[doc = "otherwise it is a vote to keep the status quo."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_."] - #[doc = ""] - #[doc = "- `ref_index`: The index of the referendum to vote for."] - #[doc = "- `vote`: The vote configuration."] + #[doc = "See [`Pallet::vote`]."] pub fn vote( &self, ref_index: ::core::primitive::u32, @@ -10265,14 +10050,7 @@ pub mod api { ) } - #[doc = "Schedule an emergency cancellation of a referendum. Cannot happen twice to the same"] - #[doc = "referendum."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `CancellationOrigin`."] - #[doc = ""] - #[doc = "-`ref_index`: The index of the referendum to cancel."] - #[doc = ""] - #[doc = "Weight: `O(1)`."] + #[doc = "See [`Pallet::emergency_cancel`]."] pub fn emergency_cancel( &self, ref_index: ::core::primitive::u32, @@ -10289,12 +10067,7 @@ pub mod api { ) } - #[doc = "Schedule a referendum to be tabled once it is legal to schedule an external"] - #[doc = "referendum."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `ExternalOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal."] + #[doc = "See [`Pallet::external_propose`]."] pub fn external_propose( &self, proposal: runtime_types::frame_support::traits::preimages::Bounded< @@ -10314,17 +10087,7 @@ pub mod api { ) } - #[doc = "Schedule a majority-carries referendum to be tabled next once it is legal to schedule"] - #[doc = "an external referendum."] - #[doc = ""] - #[doc = "The dispatch of this call must be `ExternalMajorityOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal."] - #[doc = ""] - #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] - #[doc = "pre-scheduled `external_propose` call."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] + #[doc = "See [`Pallet::external_propose_majority`]."] pub fn external_propose_majority( &self, proposal: runtime_types::frame_support::traits::preimages::Bounded< @@ -10344,17 +10107,7 @@ pub mod api { ) } - #[doc = "Schedule a negative-turnout-bias referendum to be tabled next once it is legal to"] - #[doc = "schedule an external referendum."] - #[doc = ""] - #[doc = "The dispatch of this call must be `ExternalDefaultOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal."] - #[doc = ""] - #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] - #[doc = "pre-scheduled `external_propose` call."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] + #[doc = "See [`Pallet::external_propose_default`]."] pub fn external_propose_default( &self, proposal: runtime_types::frame_support::traits::preimages::Bounded< @@ -10374,22 +10127,7 @@ pub mod api { ) } - #[doc = "Schedule the currently externally-proposed majority-carries referendum to be tabled"] - #[doc = "immediately. If there is no externally-proposed referendum currently, or if there is one"] - #[doc = "but it is not a majority-carries referendum then it fails."] - #[doc = ""] - #[doc = "The dispatch of this call must be `FastTrackOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The hash of the current external proposal."] - #[doc = "- `voting_period`: The period that is allowed for voting on this proposal. Increased to"] - #[doc = "\tMust be always greater than zero."] - #[doc = "\tFor `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`."] - #[doc = "- `delay`: The number of block after voting has ended in approval and this should be"] - #[doc = " enacted. This doesn't have a minimum amount."] - #[doc = ""] - #[doc = "Emits `Started`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] + #[doc = "See [`Pallet::fast_track`]."] pub fn fast_track( &self, proposal_hash: ::subxt::utils::H256, @@ -10413,15 +10151,7 @@ pub mod api { ) } - #[doc = "Veto and blacklist the external proposal hash."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `VetoOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal to veto and blacklist."] - #[doc = ""] - #[doc = "Emits `Vetoed`."] - #[doc = ""] - #[doc = "Weight: `O(V + log(V))` where V is number of `existing vetoers`"] + #[doc = "See [`Pallet::veto_external`]."] pub fn veto_external( &self, proposal_hash: ::subxt::utils::H256, @@ -10439,13 +10169,7 @@ pub mod api { ) } - #[doc = "Remove a referendum."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Root_."] - #[doc = ""] - #[doc = "- `ref_index`: The index of the referendum to cancel."] - #[doc = ""] - #[doc = "# Weight: `O(1)`."] + #[doc = "See [`Pallet::cancel_referendum`]."] pub fn cancel_referendum( &self, ref_index: ::core::primitive::u32, @@ -10463,26 +10187,7 @@ pub mod api { ) } - #[doc = "Delegate the voting power (with some given conviction) of the sending account."] - #[doc = ""] - #[doc = "The balance delegated is locked for as long as it's delegated, and thereafter for the"] - #[doc = "time appropriate for the conviction's lock period."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_, and the signing account must either:"] - #[doc = " - be delegating already; or"] - #[doc = " - have no voting activity (if there is, then it will need to be removed/consolidated"] - #[doc = " through `reap_vote` or `unvote`)."] - #[doc = ""] - #[doc = "- `to`: The account whose voting the `target` account's voting power will follow."] - #[doc = "- `conviction`: The conviction that will be attached to the delegated votes. When the"] - #[doc = " account is undelegated, the funds will be locked for the corresponding period."] - #[doc = "- `balance`: The amount of the account's balance to be used in delegating. This must not"] - #[doc = " be more than the account's current balance."] - #[doc = ""] - #[doc = "Emits `Delegated`."] - #[doc = ""] - #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] - #[doc = " voted on. Weight is charged as if maximum votes."] + #[doc = "See [`Pallet::delegate`]."] pub fn delegate( &self, to: ::subxt::utils::MultiAddress< @@ -10508,18 +10213,7 @@ pub mod api { ) } - #[doc = "Undelegate the voting power of the sending account."] - #[doc = ""] - #[doc = "Tokens may be unlocked following once an amount of time consistent with the lock period"] - #[doc = "of the conviction with which the delegation was issued."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"] - #[doc = "currently delegating."] - #[doc = ""] - #[doc = "Emits `Undelegated`."] - #[doc = ""] - #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] - #[doc = " voted on. Weight is charged as if maximum votes."] + #[doc = "See [`Pallet::undelegate`]."] pub fn undelegate(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Democracy", @@ -10534,11 +10228,7 @@ pub mod api { ) } - #[doc = "Clears all public proposals."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Root_."] - #[doc = ""] - #[doc = "Weight: `O(1)`."] + #[doc = "See [`Pallet::clear_public_proposals`]."] pub fn clear_public_proposals( &self, ) -> ::subxt::tx::Payload { @@ -10555,13 +10245,7 @@ pub mod api { ) } - #[doc = "Unlock tokens that have an expired lock."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_."] - #[doc = ""] - #[doc = "- `target`: The account to remove the lock on."] - #[doc = ""] - #[doc = "Weight: `O(R)` with R number of vote of target."] + #[doc = "See [`Pallet::unlock`]."] pub fn unlock( &self, target: ::subxt::utils::MultiAddress< @@ -10581,33 +10265,7 @@ pub mod api { ) } - #[doc = "Remove a vote for a referendum."] - #[doc = ""] - #[doc = "If:"] - #[doc = "- the referendum was cancelled, or"] - #[doc = "- the referendum is ongoing, or"] - #[doc = "- the referendum has ended such that"] - #[doc = " - the vote of the account was in opposition to the result; or"] - #[doc = " - there was no conviction to the account's vote; or"] - #[doc = " - the account made a split vote"] - #[doc = "...then the vote is removed cleanly and a following call to `unlock` may result in more"] - #[doc = "funds being available."] - #[doc = ""] - #[doc = "If, however, the referendum has ended and:"] - #[doc = "- it finished corresponding to the vote of the account, and"] - #[doc = "- the account made a standard vote with conviction, and"] - #[doc = "- the lock period of the conviction is not over"] - #[doc = "...then the lock will be aggregated into the overall account's lock, which may involve"] - #[doc = "*overlocking* (where the two locks are combined into a single lock that is the maximum"] - #[doc = "of both the amount locked and the time is it locked for)."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_, and the signer must have a vote"] - #[doc = "registered for referendum `index`."] - #[doc = ""] - #[doc = "- `index`: The index of referendum of the vote to be removed."] - #[doc = ""] - #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] - #[doc = " Weight is calculated for the maximum number of vote."] + #[doc = "See [`Pallet::remove_vote`]."] pub fn remove_vote( &self, index: ::core::primitive::u32, @@ -10625,21 +10283,7 @@ pub mod api { ) } - #[doc = "Remove a vote for a referendum."] - #[doc = ""] - #[doc = "If the `target` is equal to the signer, then this function is exactly equivalent to"] - #[doc = "`remove_vote`. If not equal to the signer, then the vote must have expired,"] - #[doc = "either because the referendum was cancelled, because the voter lost the referendum or"] - #[doc = "because the conviction period is over."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_."] - #[doc = ""] - #[doc = "- `target`: The account of the vote to be removed; this account must have voted for"] - #[doc = " referendum `index`."] - #[doc = "- `index`: The index of referendum of the vote to be removed."] - #[doc = ""] - #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] - #[doc = " Weight is calculated for the maximum number of vote."] + #[doc = "See [`Pallet::remove_other_vote`]."] pub fn remove_other_vote( &self, target: ::subxt::utils::MultiAddress< @@ -10661,21 +10305,7 @@ pub mod api { ) } - #[doc = "Permanently place a proposal into the blacklist. This prevents it from ever being"] - #[doc = "proposed again."] - #[doc = ""] - #[doc = "If called on a queued public or external proposal, then this will result in it being"] - #[doc = "removed. If the `ref_index` supplied is an active referendum with the proposal hash,"] - #[doc = "then it will be cancelled."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `BlacklistOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The proposal hash to blacklist permanently."] - #[doc = "- `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be"] - #[doc = "cancelled."] - #[doc = ""] - #[doc = "Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a"] - #[doc = " reasonable value)."] + #[doc = "See [`Pallet::blacklist`]."] pub fn blacklist( &self, proposal_hash: ::subxt::utils::H256, @@ -10697,13 +10327,7 @@ pub mod api { ) } - #[doc = "Remove a proposal."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `CancelProposalOrigin`."] - #[doc = ""] - #[doc = "- `prop_index`: The index of the proposal to cancel."] - #[doc = ""] - #[doc = "Weight: `O(p)` where `p = PublicProps::::decode_len()`"] + #[doc = "See [`Pallet::cancel_proposal`]."] pub fn cancel_proposal( &self, prop_index: ::core::primitive::u32, @@ -10719,9 +10343,28 @@ pub mod api { ], ) } + + #[doc = "See [`Pallet::set_metadata`]."] + pub fn set_metadata( + &self, + owner: runtime_types::pallet_democracy::types::MetadataOwner, + maybe_hash: ::core::option::Option<::subxt::utils::H256>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "set_metadata", + types::SetMetadata { owner, maybe_hash }, + [ + 192u8, 174u8, 122u8, 229u8, 149u8, 49u8, 155u8, 209u8, 226u8, 255u8, + 46u8, 43u8, 77u8, 164u8, 226u8, 254u8, 207u8, 110u8, 222u8, 131u8, + 220u8, 53u8, 95u8, 170u8, 128u8, 212u8, 236u8, 168u8, 156u8, 29u8, + 151u8, 40u8, + ], + ) + } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_democracy::pallet::Event; pub mod events { use super::runtime_types; @@ -11031,6 +10674,73 @@ pub mod api { const EVENT: &'static str = "ProposalCanceled"; const PALLET: &'static str = "Democracy"; } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Metadata for a proposal or a referendum has been set."] + pub struct MetadataSet { + pub owner: runtime_types::pallet_democracy::types::MetadataOwner, + pub hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for MetadataSet { + const EVENT: &'static str = "MetadataSet"; + const PALLET: &'static str = "Democracy"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Metadata for a proposal or a referendum has been cleared."] + pub struct MetadataCleared { + pub owner: runtime_types::pallet_democracy::types::MetadataOwner, + pub hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for MetadataCleared { + const EVENT: &'static str = "MetadataCleared"; + const PALLET: &'static str = "Democracy"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Metadata has been transferred to new owner."] + pub struct MetadataTransferred { + pub prev_owner: runtime_types::pallet_democracy::types::MetadataOwner, + pub owner: runtime_types::pallet_democracy::types::MetadataOwner, + pub hash: ::subxt::utils::H256, + } + impl ::subxt::events::StaticEvent for MetadataTransferred { + const EVENT: &'static str = "MetadataTransferred"; + const PALLET: &'static str = "Democracy"; + } } pub mod storage { use super::runtime_types; @@ -11064,7 +10774,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec<( + runtime_types::bounded_collections::bounded_vec::BoundedVec<( ::core::primitive::u32, runtime_types::frame_support::traits::preimages::Bounded< runtime_types::da_runtime::RuntimeCall, @@ -11096,7 +10806,7 @@ pub mod api { ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ( - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::subxt::utils::AccountId32, >, ::core::primitive::u128, @@ -11127,7 +10837,7 @@ pub mod api { ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, ( - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::subxt::utils::AccountId32, >, ::core::primitive::u128, @@ -11384,7 +11094,7 @@ pub mod api { ::subxt::storage::address::StaticStorageMapKey, ( ::core::primitive::u32, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::subxt::utils::AccountId32, >, ), @@ -11414,7 +11124,7 @@ pub mod api { ::subxt::storage::address::StaticStorageMapKey, ( ::core::primitive::u32, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::subxt::utils::AccountId32, >, ), @@ -11482,6 +11192,67 @@ pub mod api { ], ) } + + #[doc = " General information concerning any proposal or referendum."] + #[doc = " The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON"] + #[doc = " dump or IPFS hash of a JSON file."] + #[doc = ""] + #[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"] + #[doc = " large preimages."] + pub fn metadata_of( + &self, + _0: impl ::std::borrow::Borrow< + runtime_types::pallet_democracy::types::MetadataOwner, + >, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, + ::subxt::storage::address::Yes, + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "MetadataOf", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 241u8, 106u8, 118u8, 66u8, 219u8, 192u8, 185u8, 117u8, 144u8, 174u8, + 171u8, 207u8, 181u8, 32u8, 133u8, 127u8, 160u8, 218u8, 113u8, 153u8, + 160u8, 7u8, 72u8, 58u8, 187u8, 96u8, 51u8, 236u8, 64u8, 80u8, 123u8, + 254u8, + ], + ) + } + + #[doc = " General information concerning any proposal or referendum."] + #[doc = " The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON"] + #[doc = " dump or IPFS hash of a JSON file."] + #[doc = ""] + #[doc = " Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)"] + #[doc = " large preimages."] + pub fn metadata_of_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + ::subxt::utils::H256, + (), + (), + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "Democracy", + "MetadataOf", + Vec::new(), + [ + 241u8, 106u8, 118u8, 66u8, 219u8, 192u8, 185u8, 117u8, 144u8, 174u8, + 171u8, 207u8, 181u8, 32u8, 133u8, 127u8, 160u8, 218u8, 113u8, 153u8, + 160u8, 7u8, 72u8, 58u8, 187u8, 96u8, 51u8, 236u8, 64u8, 80u8, 123u8, + 254u8, + ], + ) + } } } pub mod constants { @@ -11626,9 +11397,9 @@ pub mod api { } pub mod council { use super::{root_mod, runtime_types}; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_collective::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_collective::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -11739,32 +11510,6 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CloseOldWeight { - pub proposal_hash: ::subxt::utils::H256, - #[codec(compact)] - pub index: ::core::primitive::u32, - #[codec(compact)] - pub proposal_weight_bound: runtime_types::sp_weights::OldWeight, - #[codec(compact)] - pub length_bound: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for CloseOldWeight { - const CALL: &'static str = "close_old_weight"; - const PALLET: &'static str = "Council"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DisapproveProposal { pub proposal_hash: ::subxt::utils::H256, } @@ -11800,38 +11545,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Set the collective's membership."] - #[doc = ""] - #[doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] - #[doc = "- `prime`: The prime member whose vote sets the default."] - #[doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] - #[doc = " weight estimation."] - #[doc = ""] - #[doc = "Requires root origin."] - #[doc = ""] - #[doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] - #[doc = " the weight estimations rely on it to estimate dispatchable weight."] - #[doc = ""] - #[doc = "# WARNING:"] - #[doc = ""] - #[doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] - #[doc = "implementation of the trait [`ChangeMembers`]."] - #[doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] - #[doc = "with other logic managing the member set."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(MP + N)` where:"] - #[doc = " - `M` old-members-count (code- and governance-bounded)"] - #[doc = " - `N` new-members-count (code- and governance-bounded)"] - #[doc = " - `P` proposals-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the"] - #[doc = " members"] - #[doc = " - 1 storage read (codec `O(P)`) for reading the proposals"] - #[doc = " - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal"] - #[doc = " - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one"] - #[doc = "# "] + #[doc = "See [`Pallet::set_members`]."] pub fn set_members( &self, new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -11855,17 +11569,7 @@ pub mod api { ) } - #[doc = "Dispatch a proposal from a member using the `Member` origin."] - #[doc = ""] - #[doc = "Origin must be a member of the collective."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching"] - #[doc = " `proposal`"] - #[doc = "- DB: 1 read (codec `O(M)`) + DB access of `proposal`"] - #[doc = "- 1 event"] - #[doc = "# "] + #[doc = "See [`Pallet::execute`]."] pub fn execute( &self, proposal: runtime_types::da_runtime::RuntimeCall, @@ -11879,41 +11583,14 @@ pub mod api { length_bound, }, [ - 180u8, 228u8, 233u8, 49u8, 240u8, 234u8, 96u8, 169u8, 141u8, 56u8, - 150u8, 18u8, 253u8, 95u8, 224u8, 217u8, 135u8, 77u8, 242u8, 54u8, 4u8, - 36u8, 135u8, 127u8, 85u8, 211u8, 121u8, 82u8, 147u8, 236u8, 106u8, - 189u8, + 120u8, 67u8, 167u8, 131u8, 129u8, 196u8, 182u8, 231u8, 115u8, 240u8, + 97u8, 41u8, 72u8, 48u8, 81u8, 209u8, 64u8, 220u8, 3u8, 231u8, 42u8, + 115u8, 5u8, 16u8, 219u8, 72u8, 133u8, 134u8, 132u8, 46u8, 228u8, 124u8, ], ) } - #[doc = "Add a new proposal to either be voted on or executed directly."] - #[doc = ""] - #[doc = "Requires the sender to be member."] - #[doc = ""] - #[doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] - #[doc = "or put up for voting."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - branching is influenced by `threshold` where:"] - #[doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] - #[doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] - #[doc = "- DB:"] - #[doc = " - 1 storage read `is_member` (codec `O(M)`)"] - #[doc = " - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)"] - #[doc = " - DB accesses influenced by `threshold`:"] - #[doc = " - EITHER storage accesses done by `proposal` (`threshold < 2`)"] - #[doc = " - OR proposal insertion (`threshold <= 2`)"] - #[doc = " - 1 storage mutation `Proposals` (codec `O(P2)`)"] - #[doc = " - 1 storage mutation `ProposalCount` (codec `O(1)`)"] - #[doc = " - 1 storage write `ProposalOf` (codec `O(B)`)"] - #[doc = " - 1 storage write `Voting` (codec `O(M)`)"] - #[doc = " - 1 event"] - #[doc = "# "] + #[doc = "See [`Pallet::propose`]."] pub fn propose( &self, threshold: ::core::primitive::u32, @@ -11929,121 +11606,38 @@ pub mod api { length_bound, }, [ - 7u8, 221u8, 166u8, 248u8, 161u8, 0u8, 133u8, 14u8, 88u8, 208u8, 28u8, - 72u8, 21u8, 143u8, 23u8, 30u8, 182u8, 67u8, 22u8, 67u8, 151u8, 114u8, - 107u8, 183u8, 160u8, 51u8, 14u8, 219u8, 69u8, 119u8, 93u8, 10u8, - ], - ) - } - - #[doc = "Add an aye or nay vote for the sender to the given proposal."] - #[doc = ""] - #[doc = "Requires the sender to be a member."] - #[doc = ""] - #[doc = "Transaction fees will be waived if the member is voting on any particular proposal"] - #[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] - #[doc = "fee."] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] - #[doc = "- DB:"] - #[doc = " - 1 storage read `Members` (codec `O(M)`)"] - #[doc = " - 1 storage mutation `Voting` (codec `O(M)`)"] - #[doc = "- 1 event"] - #[doc = "# "] - pub fn vote( - &self, - proposal: ::subxt::utils::H256, - index: ::core::primitive::u32, - approve: ::core::primitive::bool, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Council", - "vote", - types::Vote { - proposal, - index, - approve, - }, - [ - 110u8, 141u8, 24u8, 33u8, 91u8, 7u8, 89u8, 198u8, 54u8, 10u8, 76u8, - 129u8, 45u8, 20u8, 216u8, 104u8, 231u8, 246u8, 174u8, 205u8, 190u8, - 176u8, 171u8, 113u8, 33u8, 37u8, 155u8, 203u8, 251u8, 34u8, 25u8, - 120u8, + 106u8, 110u8, 82u8, 97u8, 77u8, 203u8, 183u8, 181u8, 43u8, 27u8, 245u8, + 68u8, 7u8, 0u8, 223u8, 98u8, 242u8, 235u8, 118u8, 218u8, 240u8, 126u8, + 137u8, 84u8, 158u8, 72u8, 200u8, 251u8, 218u8, 221u8, 120u8, 190u8, ], - ) - } - - #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] - #[doc = ""] - #[doc = "May be called by any signed account in order to finish voting and close the proposal."] - #[doc = ""] - #[doc = "If called before the end of the voting period it will only close the vote if it is"] - #[doc = "has enough votes to be approved or disapproved."] - #[doc = ""] - #[doc = "If called after the end of the voting period abstentions are counted as rejections"] - #[doc = "unless there is a prime member set and the prime member cast an approval."] - #[doc = ""] - #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] - #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] - #[doc = ""] - #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] - #[doc = "proposal."] - #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] - #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1 + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - `P1` is the complexity of `proposal` preimage."] - #[doc = " - `P2` is proposal-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] - #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] - #[doc = " `O(P2)`)"] - #[doc = " - any mutations done while executing `proposal` (`P1`)"] - #[doc = "- up to 3 events"] - #[doc = "# "] - pub fn close_old_weight( + ) + } + + #[doc = "See [`Pallet::vote`]."] + pub fn vote( &self, - proposal_hash: ::subxt::utils::H256, + proposal: ::subxt::utils::H256, index: ::core::primitive::u32, - proposal_weight_bound: runtime_types::sp_weights::OldWeight, - length_bound: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { + approve: ::core::primitive::bool, + ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Council", - "close_old_weight", - types::CloseOldWeight { - proposal_hash, + "vote", + types::Vote { + proposal, index, - proposal_weight_bound, - length_bound, + approve, }, [ - 206u8, 13u8, 195u8, 139u8, 64u8, 214u8, 244u8, 76u8, 241u8, 64u8, 67u8, - 43u8, 50u8, 76u8, 75u8, 247u8, 214u8, 58u8, 125u8, 72u8, 170u8, 104u8, - 67u8, 78u8, 230u8, 119u8, 78u8, 63u8, 161u8, 159u8, 176u8, 106u8, + 110u8, 141u8, 24u8, 33u8, 91u8, 7u8, 89u8, 198u8, 54u8, 10u8, 76u8, + 129u8, 45u8, 20u8, 216u8, 104u8, 231u8, 246u8, 174u8, 205u8, 190u8, + 176u8, 171u8, 113u8, 33u8, 37u8, 155u8, 203u8, 251u8, 34u8, 25u8, + 120u8, ], ) } - #[doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] - #[doc = "state."] - #[doc = ""] - #[doc = "Must be called by the Root origin."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] - #[doc = ""] - #[doc = "# "] - #[doc = "Complexity: O(P) where P is the number of max proposals"] - #[doc = "DB Weight:"] - #[doc = "* Reads: Proposals"] - #[doc = "* Writes: Voting, Proposals, ProposalOf"] - #[doc = "# "] + #[doc = "See [`Pallet::disapprove_proposal`]."] pub fn disapprove_proposal( &self, proposal_hash: ::subxt::utils::H256, @@ -12060,38 +11654,7 @@ pub mod api { ) } - #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] - #[doc = ""] - #[doc = "May be called by any signed account in order to finish voting and close the proposal."] - #[doc = ""] - #[doc = "If called before the end of the voting period it will only close the vote if it is"] - #[doc = "has enough votes to be approved or disapproved."] - #[doc = ""] - #[doc = "If called after the end of the voting period abstentions are counted as rejections"] - #[doc = "unless there is a prime member set and the prime member cast an approval."] - #[doc = ""] - #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] - #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] - #[doc = ""] - #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] - #[doc = "proposal."] - #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] - #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1 + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - `P1` is the complexity of `proposal` preimage."] - #[doc = " - `P2` is proposal-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] - #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] - #[doc = " `O(P2)`)"] - #[doc = " - any mutations done while executing `proposal` (`P1`)"] - #[doc = "- up to 3 events"] - #[doc = "# "] + #[doc = "See [`Pallet::close`]."] pub fn close( &self, proposal_hash: ::subxt::utils::H256, @@ -12117,7 +11680,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_collective::pallet::Event; pub mod events { use super::runtime_types; @@ -12291,7 +11854,9 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec<::subxt::utils::H256>, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::H256, + >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -12326,10 +11891,10 @@ pub mod api { _0.borrow(), )], [ - 127u8, 4u8, 120u8, 186u8, 68u8, 244u8, 146u8, 244u8, 186u8, 173u8, - 89u8, 90u8, 123u8, 111u8, 16u8, 57u8, 111u8, 169u8, 30u8, 194u8, 202u8, - 183u8, 251u8, 182u8, 29u8, 117u8, 48u8, 63u8, 67u8, 132u8, 119u8, - 238u8, + 77u8, 12u8, 79u8, 198u8, 97u8, 246u8, 215u8, 201u8, 180u8, 97u8, 105u8, + 78u8, 174u8, 129u8, 197u8, 206u8, 100u8, 56u8, 200u8, 49u8, 48u8, + 239u8, 117u8, 122u8, 253u8, 52u8, 11u8, 157u8, 151u8, 241u8, 82u8, + 82u8, ], ) } @@ -12349,10 +11914,10 @@ pub mod api { "ProposalOf", Vec::new(), [ - 127u8, 4u8, 120u8, 186u8, 68u8, 244u8, 146u8, 244u8, 186u8, 173u8, - 89u8, 90u8, 123u8, 111u8, 16u8, 57u8, 111u8, 169u8, 30u8, 194u8, 202u8, - 183u8, 251u8, 182u8, 29u8, 117u8, 48u8, 63u8, 67u8, 132u8, 119u8, - 238u8, + 77u8, 12u8, 79u8, 198u8, 97u8, 246u8, 215u8, 201u8, 180u8, 97u8, 105u8, + 78u8, 174u8, 129u8, 197u8, 206u8, 100u8, 56u8, 200u8, 49u8, 48u8, + 239u8, 117u8, 122u8, 253u8, 52u8, 11u8, 157u8, 151u8, 241u8, 82u8, + 82u8, ], ) } @@ -12467,12 +12032,28 @@ pub mod api { } } } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The maximum weight of a dispatch call that can be proposed and executed."] + pub fn max_proposal_weight( + &self, + ) -> ::subxt::constants::Address { + ::subxt::constants::Address::new_static("Council", "MaxProposalWeight", [ + 222u8, 183u8, 203u8, 169u8, 31u8, 134u8, 28u8, 12u8, 47u8, 140u8, 71u8, + 74u8, 61u8, 55u8, 71u8, 236u8, 215u8, 83u8, 28u8, 70u8, 45u8, 128u8, 184u8, + 57u8, 101u8, 83u8, 42u8, 165u8, 34u8, 155u8, 64u8, 145u8, + ]) + } + } + } } pub mod technical_committee { use super::{root_mod, runtime_types}; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_collective::pallet::Error2; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_collective::pallet::Call2; pub mod calls { use super::{root_mod, runtime_types}; @@ -12583,32 +12164,6 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CloseOldWeight { - pub proposal_hash: ::subxt::utils::H256, - #[codec(compact)] - pub index: ::core::primitive::u32, - #[codec(compact)] - pub proposal_weight_bound: runtime_types::sp_weights::OldWeight, - #[codec(compact)] - pub length_bound: ::core::primitive::u32, - } - impl ::subxt::blocks::StaticExtrinsic for CloseOldWeight { - const CALL: &'static str = "close_old_weight"; - const PALLET: &'static str = "TechnicalCommittee"; - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DisapproveProposal { pub proposal_hash: ::subxt::utils::H256, } @@ -12644,38 +12199,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Set the collective's membership."] - #[doc = ""] - #[doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] - #[doc = "- `prime`: The prime member whose vote sets the default."] - #[doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] - #[doc = " weight estimation."] - #[doc = ""] - #[doc = "Requires root origin."] - #[doc = ""] - #[doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] - #[doc = " the weight estimations rely on it to estimate dispatchable weight."] - #[doc = ""] - #[doc = "# WARNING:"] - #[doc = ""] - #[doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] - #[doc = "implementation of the trait [`ChangeMembers`]."] - #[doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] - #[doc = "with other logic managing the member set."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(MP + N)` where:"] - #[doc = " - `M` old-members-count (code- and governance-bounded)"] - #[doc = " - `N` new-members-count (code- and governance-bounded)"] - #[doc = " - `P` proposals-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the"] - #[doc = " members"] - #[doc = " - 1 storage read (codec `O(P)`) for reading the proposals"] - #[doc = " - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal"] - #[doc = " - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one"] - #[doc = "# "] + #[doc = "See [`Pallet::set_members`]."] pub fn set_members( &self, new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -12699,17 +12223,7 @@ pub mod api { ) } - #[doc = "Dispatch a proposal from a member using the `Member` origin."] - #[doc = ""] - #[doc = "Origin must be a member of the collective."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching"] - #[doc = " `proposal`"] - #[doc = "- DB: 1 read (codec `O(M)`) + DB access of `proposal`"] - #[doc = "- 1 event"] - #[doc = "# "] + #[doc = "See [`Pallet::execute`]."] pub fn execute( &self, proposal: runtime_types::da_runtime::RuntimeCall, @@ -12723,41 +12237,14 @@ pub mod api { length_bound, }, [ - 180u8, 228u8, 233u8, 49u8, 240u8, 234u8, 96u8, 169u8, 141u8, 56u8, - 150u8, 18u8, 253u8, 95u8, 224u8, 217u8, 135u8, 77u8, 242u8, 54u8, 4u8, - 36u8, 135u8, 127u8, 85u8, 211u8, 121u8, 82u8, 147u8, 236u8, 106u8, - 189u8, + 120u8, 67u8, 167u8, 131u8, 129u8, 196u8, 182u8, 231u8, 115u8, 240u8, + 97u8, 41u8, 72u8, 48u8, 81u8, 209u8, 64u8, 220u8, 3u8, 231u8, 42u8, + 115u8, 5u8, 16u8, 219u8, 72u8, 133u8, 134u8, 132u8, 46u8, 228u8, 124u8, ], ) } - #[doc = "Add a new proposal to either be voted on or executed directly."] - #[doc = ""] - #[doc = "Requires the sender to be member."] - #[doc = ""] - #[doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] - #[doc = "or put up for voting."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - branching is influenced by `threshold` where:"] - #[doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] - #[doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] - #[doc = "- DB:"] - #[doc = " - 1 storage read `is_member` (codec `O(M)`)"] - #[doc = " - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)"] - #[doc = " - DB accesses influenced by `threshold`:"] - #[doc = " - EITHER storage accesses done by `proposal` (`threshold < 2`)"] - #[doc = " - OR proposal insertion (`threshold <= 2`)"] - #[doc = " - 1 storage mutation `Proposals` (codec `O(P2)`)"] - #[doc = " - 1 storage mutation `ProposalCount` (codec `O(1)`)"] - #[doc = " - 1 storage write `ProposalOf` (codec `O(B)`)"] - #[doc = " - 1 storage write `Voting` (codec `O(M)`)"] - #[doc = " - 1 event"] - #[doc = "# "] + #[doc = "See [`Pallet::propose`]."] pub fn propose( &self, threshold: ::core::primitive::u32, @@ -12773,28 +12260,14 @@ pub mod api { length_bound, }, [ - 7u8, 221u8, 166u8, 248u8, 161u8, 0u8, 133u8, 14u8, 88u8, 208u8, 28u8, - 72u8, 21u8, 143u8, 23u8, 30u8, 182u8, 67u8, 22u8, 67u8, 151u8, 114u8, - 107u8, 183u8, 160u8, 51u8, 14u8, 219u8, 69u8, 119u8, 93u8, 10u8, + 106u8, 110u8, 82u8, 97u8, 77u8, 203u8, 183u8, 181u8, 43u8, 27u8, 245u8, + 68u8, 7u8, 0u8, 223u8, 98u8, 242u8, 235u8, 118u8, 218u8, 240u8, 126u8, + 137u8, 84u8, 158u8, 72u8, 200u8, 251u8, 218u8, 221u8, 120u8, 190u8, ], ) } - #[doc = "Add an aye or nay vote for the sender to the given proposal."] - #[doc = ""] - #[doc = "Requires the sender to be a member."] - #[doc = ""] - #[doc = "Transaction fees will be waived if the member is voting on any particular proposal"] - #[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] - #[doc = "fee."] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] - #[doc = "- DB:"] - #[doc = " - 1 storage read `Members` (codec `O(M)`)"] - #[doc = " - 1 storage mutation `Voting` (codec `O(M)`)"] - #[doc = "- 1 event"] - #[doc = "# "] + #[doc = "See [`Pallet::vote`]."] pub fn vote( &self, proposal: ::subxt::utils::H256, @@ -12818,76 +12291,7 @@ pub mod api { ) } - #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] - #[doc = ""] - #[doc = "May be called by any signed account in order to finish voting and close the proposal."] - #[doc = ""] - #[doc = "If called before the end of the voting period it will only close the vote if it is"] - #[doc = "has enough votes to be approved or disapproved."] - #[doc = ""] - #[doc = "If called after the end of the voting period abstentions are counted as rejections"] - #[doc = "unless there is a prime member set and the prime member cast an approval."] - #[doc = ""] - #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] - #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] - #[doc = ""] - #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] - #[doc = "proposal."] - #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] - #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1 + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - `P1` is the complexity of `proposal` preimage."] - #[doc = " - `P2` is proposal-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] - #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] - #[doc = " `O(P2)`)"] - #[doc = " - any mutations done while executing `proposal` (`P1`)"] - #[doc = "- up to 3 events"] - #[doc = "# "] - pub fn close_old_weight( - &self, - proposal_hash: ::subxt::utils::H256, - index: ::core::primitive::u32, - proposal_weight_bound: runtime_types::sp_weights::OldWeight, - length_bound: ::core::primitive::u32, - ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "TechnicalCommittee", - "close_old_weight", - types::CloseOldWeight { - proposal_hash, - index, - proposal_weight_bound, - length_bound, - }, - [ - 206u8, 13u8, 195u8, 139u8, 64u8, 214u8, 244u8, 76u8, 241u8, 64u8, 67u8, - 43u8, 50u8, 76u8, 75u8, 247u8, 214u8, 58u8, 125u8, 72u8, 170u8, 104u8, - 67u8, 78u8, 230u8, 119u8, 78u8, 63u8, 161u8, 159u8, 176u8, 106u8, - ], - ) - } - - #[doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] - #[doc = "state."] - #[doc = ""] - #[doc = "Must be called by the Root origin."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] - #[doc = ""] - #[doc = "# "] - #[doc = "Complexity: O(P) where P is the number of max proposals"] - #[doc = "DB Weight:"] - #[doc = "* Reads: Proposals"] - #[doc = "* Writes: Voting, Proposals, ProposalOf"] - #[doc = "# "] + #[doc = "See [`Pallet::disapprove_proposal`]."] pub fn disapprove_proposal( &self, proposal_hash: ::subxt::utils::H256, @@ -12904,38 +12308,7 @@ pub mod api { ) } - #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] - #[doc = ""] - #[doc = "May be called by any signed account in order to finish voting and close the proposal."] - #[doc = ""] - #[doc = "If called before the end of the voting period it will only close the vote if it is"] - #[doc = "has enough votes to be approved or disapproved."] - #[doc = ""] - #[doc = "If called after the end of the voting period abstentions are counted as rejections"] - #[doc = "unless there is a prime member set and the prime member cast an approval."] - #[doc = ""] - #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] - #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] - #[doc = ""] - #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] - #[doc = "proposal."] - #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] - #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1 + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - `P1` is the complexity of `proposal` preimage."] - #[doc = " - `P2` is proposal-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] - #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] - #[doc = " `O(P2)`)"] - #[doc = " - any mutations done while executing `proposal` (`P1`)"] - #[doc = "- up to 3 events"] - #[doc = "# "] + #[doc = "See [`Pallet::close`]."] pub fn close( &self, proposal_hash: ::subxt::utils::H256, @@ -12961,7 +12334,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_collective::pallet::Event2; pub mod events { use super::runtime_types; @@ -13135,7 +12508,9 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec<::subxt::utils::H256>, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::subxt::utils::H256, + >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, (), @@ -13170,10 +12545,10 @@ pub mod api { _0.borrow(), )], [ - 127u8, 4u8, 120u8, 186u8, 68u8, 244u8, 146u8, 244u8, 186u8, 173u8, - 89u8, 90u8, 123u8, 111u8, 16u8, 57u8, 111u8, 169u8, 30u8, 194u8, 202u8, - 183u8, 251u8, 182u8, 29u8, 117u8, 48u8, 63u8, 67u8, 132u8, 119u8, - 238u8, + 77u8, 12u8, 79u8, 198u8, 97u8, 246u8, 215u8, 201u8, 180u8, 97u8, 105u8, + 78u8, 174u8, 129u8, 197u8, 206u8, 100u8, 56u8, 200u8, 49u8, 48u8, + 239u8, 117u8, 122u8, 253u8, 52u8, 11u8, 157u8, 151u8, 241u8, 82u8, + 82u8, ], ) } @@ -13193,10 +12568,10 @@ pub mod api { "ProposalOf", Vec::new(), [ - 127u8, 4u8, 120u8, 186u8, 68u8, 244u8, 146u8, 244u8, 186u8, 173u8, - 89u8, 90u8, 123u8, 111u8, 16u8, 57u8, 111u8, 169u8, 30u8, 194u8, 202u8, - 183u8, 251u8, 182u8, 29u8, 117u8, 48u8, 63u8, 67u8, 132u8, 119u8, - 238u8, + 77u8, 12u8, 79u8, 198u8, 97u8, 246u8, 215u8, 201u8, 180u8, 97u8, 105u8, + 78u8, 174u8, 129u8, 197u8, 206u8, 100u8, 56u8, 200u8, 49u8, 48u8, + 239u8, 117u8, 122u8, 253u8, 52u8, 11u8, 157u8, 151u8, 241u8, 82u8, + 82u8, ], ) } @@ -13321,12 +12696,32 @@ pub mod api { } } } + pub mod constants { + use super::runtime_types; + pub struct ConstantsApi; + impl ConstantsApi { + #[doc = " The maximum weight of a dispatch call that can be proposed and executed."] + pub fn max_proposal_weight( + &self, + ) -> ::subxt::constants::Address { + ::subxt::constants::Address::new_static( + "TechnicalCommittee", + "MaxProposalWeight", + [ + 222u8, 183u8, 203u8, 169u8, 31u8, 134u8, 28u8, 12u8, 47u8, 140u8, 71u8, + 74u8, 61u8, 55u8, 71u8, 236u8, 215u8, 83u8, 28u8, 70u8, 45u8, 128u8, + 184u8, 57u8, 101u8, 83u8, 42u8, 165u8, 34u8, 155u8, 64u8, 145u8, + ], + ) + } + } + } } pub mod elections { use super::{root_mod, runtime_types}; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_elections_phragmen::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_elections_phragmen::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -13463,29 +12858,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Vote for a set of candidates for the upcoming round of election. This can be called to"] - #[doc = "set the initial votes, or update already existing votes."] - #[doc = ""] - #[doc = "Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is"] - #[doc = "reserved. The deposit is based on the number of votes and can be updated over time."] - #[doc = ""] - #[doc = "The `votes` should:"] - #[doc = " - not be empty."] - #[doc = " - be less than the number of possible candidates. Note that all current members and"] - #[doc = " runners-up are also automatically candidates for the next round."] - #[doc = ""] - #[doc = "If `value` is more than `who`'s free balance, then the maximum of the two is used."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed."] - #[doc = ""] - #[doc = "### Warning"] - #[doc = ""] - #[doc = "It is the responsibility of the caller to **NOT** place all of their balance into the"] - #[doc = "lock and keep some for further operations."] - #[doc = ""] - #[doc = "# "] - #[doc = "We assume the maximum weight among all 3 cases: vote_equal, vote_more and vote_less."] - #[doc = "# "] + #[doc = "See [`Pallet::vote`]."] pub fn vote( &self, votes: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -13503,11 +12876,7 @@ pub mod api { ) } - #[doc = "Remove `origin` as a voter."] - #[doc = ""] - #[doc = "This removes the lock and returns the deposit."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed and be a voter."] + #[doc = "See [`Pallet::remove_voter`]."] pub fn remove_voter(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Elections", @@ -13522,21 +12891,7 @@ pub mod api { ) } - #[doc = "Submit oneself for candidacy. A fixed amount of deposit is recorded."] - #[doc = ""] - #[doc = "All candidates are wiped at the end of the term. They either become a member/runner-up,"] - #[doc = "or leave the system while their deposit is slashed."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed."] - #[doc = ""] - #[doc = "### Warning"] - #[doc = ""] - #[doc = "Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]"] - #[doc = "to get their deposit back. Losing the spot in an election will always lead to a slash."] - #[doc = ""] - #[doc = "# "] - #[doc = "The number of current candidates must be provided as witness data."] - #[doc = "# "] + #[doc = "See [`Pallet::submit_candidacy`]."] pub fn submit_candidacy( &self, candidate_count: ::core::primitive::u32, @@ -13554,24 +12909,7 @@ pub mod api { ) } - #[doc = "Renounce one's intention to be a candidate for the next election round. 3 potential"] - #[doc = "outcomes exist:"] - #[doc = ""] - #[doc = "- `origin` is a candidate and not elected in any set. In this case, the deposit is"] - #[doc = " unreserved, returned and origin is removed as a candidate."] - #[doc = "- `origin` is a current runner-up. In this case, the deposit is unreserved, returned and"] - #[doc = " origin is removed as a runner-up."] - #[doc = "- `origin` is a current member. In this case, the deposit is unreserved and origin is"] - #[doc = " removed as a member, consequently not being a candidate for the next round anymore."] - #[doc = " Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they"] - #[doc = " are immediately used. If the prime is renouncing, then no prime will exist until the"] - #[doc = " next round."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed, and have one of the above roles."] - #[doc = ""] - #[doc = "# "] - #[doc = "The type of renouncing must be provided as witness data."] - #[doc = "# "] + #[doc = "See [`Pallet::renounce_candidacy`]."] pub fn renounce_candidacy( &self, renouncing: runtime_types::pallet_elections_phragmen::Renouncing, @@ -13589,24 +12927,7 @@ pub mod api { ) } - #[doc = "Remove a particular member from the set. This is effective immediately and the bond of"] - #[doc = "the outgoing member is slashed."] - #[doc = ""] - #[doc = "If a runner-up is available, then the best runner-up will be removed and replaces the"] - #[doc = "outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is"] - #[doc = "started, else, nothing happens."] - #[doc = ""] - #[doc = "If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,"] - #[doc = "it is returned."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be root."] - #[doc = ""] - #[doc = "Note that this does not affect the designated block number of the next election."] - #[doc = ""] - #[doc = "# "] - #[doc = "If we have a replacement, we use a small weight. Else, since this is a root call and"] - #[doc = "will go into phragmen, we assume full block for now."] - #[doc = "# "] + #[doc = "See [`Pallet::remove_member`]."] pub fn remove_member( &self, who: ::subxt::utils::MultiAddress< @@ -13633,16 +12954,7 @@ pub mod api { ) } - #[doc = "Clean all voters who are defunct (i.e. they do not serve any purpose at all). The"] - #[doc = "deposit of the removed voters are returned."] - #[doc = ""] - #[doc = "This is an root function to be used only for cleaning the state."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be root."] - #[doc = ""] - #[doc = "# "] - #[doc = "The total number of voters and those that are defunct must be provided as witness data."] - #[doc = "# "] + #[doc = "See [`Pallet::clean_defunct_voters`]."] pub fn clean_defunct_voters( &self, num_voters: ::core::primitive::u32, @@ -13665,7 +12977,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_elections_phragmen::pallet::Event; pub mod events { use super::runtime_types; @@ -14083,9 +13395,10 @@ pub mod api { #[doc = " The maximum number of candidates in a phragmen election."] #[doc = ""] - #[doc = " Warning: The election happens onchain, and this value will determine"] - #[doc = " the size of the election. When this limit is reached no more"] - #[doc = " candidates are accepted in the election."] + #[doc = " Warning: This impacts the size of the election which is run onchain. Chose wisely, and"] + #[doc = " consider how it will impact `T::WeightInfo::election_phragmen`."] + #[doc = ""] + #[doc = " When this limit is reached no more candidates are accepted in the election."] pub fn max_candidates( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -14098,7 +13411,9 @@ pub mod api { #[doc = " The maximum number of voters to allow in a phragmen election."] #[doc = ""] - #[doc = " Warning: This impacts the size of the election which is run onchain."] + #[doc = " Warning: This impacts the size of the election which is run onchain. Chose wisely, and"] + #[doc = " consider how it will impact `T::WeightInfo::election_phragmen`."] + #[doc = ""] #[doc = " When the limit is reached the new voters are ignored."] pub fn max_voters(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static("Elections", "MaxVoters", [ @@ -14107,14 +13422,28 @@ pub mod api { 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ]) } + + #[doc = " Maximum numbers of votes per voter."] + #[doc = ""] + #[doc = " Warning: This impacts the size of the election which is run onchain. Chose wisely, and"] + #[doc = " consider how it will impact `T::WeightInfo::election_phragmen`."] + pub fn max_votes_per_voter( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u32> { + ::subxt::constants::Address::new_static("Elections", "MaxVotesPerVoter", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) + } } } } pub mod technical_membership { use super::{root_mod, runtime_types}; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_membership::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_membership::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -14281,9 +13610,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Add a member `who` to the set."] - #[doc = ""] - #[doc = "May only be called from `T::AddOrigin`."] + #[doc = "See [`Pallet::add_member`]."] pub fn add_member( &self, who: ::subxt::utils::MultiAddress< @@ -14303,9 +13630,7 @@ pub mod api { ) } - #[doc = "Remove a member `who` from the set."] - #[doc = ""] - #[doc = "May only be called from `T::RemoveOrigin`."] + #[doc = "See [`Pallet::remove_member`]."] pub fn remove_member( &self, who: ::subxt::utils::MultiAddress< @@ -14326,11 +13651,7 @@ pub mod api { ) } - #[doc = "Swap out one member `remove` for another `add`."] - #[doc = ""] - #[doc = "May only be called from `T::SwapOrigin`."] - #[doc = ""] - #[doc = "Prime membership is *not* passed from `remove` to `add`, if extant."] + #[doc = "See [`Pallet::swap_member`]."] pub fn swap_member( &self, remove: ::subxt::utils::MultiAddress< @@ -14355,10 +13676,7 @@ pub mod api { ) } - #[doc = "Change the membership to a new set, disregarding the existing membership. Be nice and"] - #[doc = "pass `members` pre-sorted."] - #[doc = ""] - #[doc = "May only be called from `T::ResetOrigin`."] + #[doc = "See [`Pallet::reset_members`]."] pub fn reset_members( &self, members: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -14375,11 +13693,7 @@ pub mod api { ) } - #[doc = "Swap out the sending member for some other key `new`."] - #[doc = ""] - #[doc = "May only be called from `Signed` origin of a current member."] - #[doc = ""] - #[doc = "Prime membership is passed from the origin account to `new`, if extant."] + #[doc = "See [`Pallet::change_key`]."] pub fn change_key( &self, new: ::subxt::utils::MultiAddress< @@ -14400,9 +13714,7 @@ pub mod api { ) } - #[doc = "Set the prime member. Must be a current member."] - #[doc = ""] - #[doc = "May only be called from `T::PrimeOrigin`."] + #[doc = "See [`Pallet::set_prime`]."] pub fn set_prime( &self, who: ::subxt::utils::MultiAddress< @@ -14423,9 +13735,7 @@ pub mod api { ) } - #[doc = "Remove the prime member if it exists."] - #[doc = ""] - #[doc = "May only be called from `T::PrimeOrigin`."] + #[doc = "See [`Pallet::clear_prime`]."] pub fn clear_prime(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "TechnicalMembership", @@ -14440,7 +13750,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_membership::pallet::Event; pub mod events { use super::runtime_types; @@ -14568,7 +13878,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::subxt::utils::AccountId32, >, ::subxt::storage::address::Yes, @@ -14614,9 +13924,9 @@ pub mod api { } pub mod grandpa { use super::{root_mod, runtime_types}; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_grandpa::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_grandpa::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -14638,7 +13948,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReportEquivocation { pub equivocation_proof: ::std::boxed::Box< - runtime_types::sp_finality_grandpa::EquivocationProof< + runtime_types::sp_consensus_grandpa::EquivocationProof< ::subxt::utils::H256, ::core::primitive::u32, >, @@ -14664,7 +13974,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReportEquivocationUnsigned { pub equivocation_proof: ::std::boxed::Box< - runtime_types::sp_finality_grandpa::EquivocationProof< + runtime_types::sp_consensus_grandpa::EquivocationProof< ::subxt::utils::H256, ::core::primitive::u32, >, @@ -14699,13 +14009,10 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Report voter equivocation/misbehavior. This method will verify the"] - #[doc = "equivocation proof and validate the given key ownership proof"] - #[doc = "against the extracted offender. If both are valid, the offence"] - #[doc = "will be reported."] + #[doc = "See [`Pallet::report_equivocation`]."] pub fn report_equivocation( &self, - equivocation_proof: runtime_types::sp_finality_grandpa::EquivocationProof< + equivocation_proof: runtime_types::sp_consensus_grandpa::EquivocationProof< ::subxt::utils::H256, ::core::primitive::u32, >, @@ -14727,18 +14034,10 @@ pub mod api { ) } - #[doc = "Report voter equivocation/misbehavior. This method will verify the"] - #[doc = "equivocation proof and validate the given key ownership proof"] - #[doc = "against the extracted offender. If both are valid, the offence"] - #[doc = "will be reported."] - #[doc = ""] - #[doc = "This extrinsic must be called unsigned and it is expected that only"] - #[doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] - #[doc = "if the block author is defined it will be defined as the equivocation"] - #[doc = "reporter."] + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] pub fn report_equivocation_unsigned( &self, - equivocation_proof: runtime_types::sp_finality_grandpa::EquivocationProof< + equivocation_proof: runtime_types::sp_consensus_grandpa::EquivocationProof< ::subxt::utils::H256, ::core::primitive::u32, >, @@ -14759,18 +14058,7 @@ pub mod api { ) } - #[doc = "Note that the current authority set of the GRANDPA finality gadget has stalled."] - #[doc = ""] - #[doc = "This will trigger a forced authority set change at the beginning of the next session, to"] - #[doc = "be enacted `delay` blocks after that. The `delay` should be high enough to safely assume"] - #[doc = "that the block signalling the forced change will not be re-orged e.g. 1000 blocks."] - #[doc = "The block production rate (which may be slowed down because of finality lagging) should"] - #[doc = "be taken into account when choosing the `delay`. The GRANDPA voters based on the new"] - #[doc = "authority will start voting on top of `best_finalized_block_number` for new finalized"] - #[doc = "blocks. `best_finalized_block_number` should be the highest of the latest finalized"] - #[doc = "block of all validators of the new authority set."] - #[doc = ""] - #[doc = "Only callable by root."] + #[doc = "See [`Pallet::note_stalled`]."] pub fn note_stalled( &self, delay: ::core::primitive::u32, @@ -14793,7 +14081,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_grandpa::pallet::Event; pub mod events { use super::runtime_types; @@ -14813,7 +14101,7 @@ pub mod api { #[doc = "New authority set has been applied."] pub struct NewAuthorities { pub authority_set: ::std::vec::Vec<( - runtime_types::sp_finality_grandpa::app::Public, + runtime_types::sp_consensus_grandpa::app::Public, ::core::primitive::u64, )>, } @@ -14969,6 +14257,12 @@ pub mod api { #[doc = " A mapping from grandpa set ID to the index of the *most recent* session for which its"] #[doc = " members were responsible."] #[doc = ""] + #[doc = " This is only used for validating equivocation proofs. An equivocation proof must"] + #[doc = " contains a key-ownership proof for a given session, therefore we need a way to tie"] + #[doc = " together sessions and GRANDPA set ids, i.e. we need to validate that a validator"] + #[doc = " was the owner of a given key on a given session, and what the active set ID was"] + #[doc = " during that session."] + #[doc = ""] #[doc = " TWOX-NOTE: `SetId` is not under user control."] pub fn set_id_session( &self, @@ -14997,6 +14291,12 @@ pub mod api { #[doc = " A mapping from grandpa set ID to the index of the *most recent* session for which its"] #[doc = " members were responsible."] #[doc = ""] + #[doc = " This is only used for validating equivocation proofs. An equivocation proof must"] + #[doc = " contains a key-ownership proof for a given session, therefore we need a way to tie"] + #[doc = " together sessions and GRANDPA set ids, i.e. we need to validate that a validator"] + #[doc = " was the owner of a given key on a given session, and what the active set ID was"] + #[doc = " during that session."] + #[doc = ""] #[doc = " TWOX-NOTE: `SetId` is not under user control."] pub fn set_id_session_root( &self, @@ -15034,6 +14334,22 @@ pub mod api { 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, ]) } + + #[doc = " The maximum number of entries to keep in the set id to session index mapping."] + #[doc = ""] + #[doc = " Since the `SetIdSession` map is only used for validating equivocations this"] + #[doc = " value should relate to the bonding duration of whatever staking system is"] + #[doc = " being used (if any). If equivocation handling is not enabled then this value"] + #[doc = " can be zero."] + pub fn max_set_id_session_entries( + &self, + ) -> ::subxt::constants::Address<::core::primitive::u64> { + ::subxt::constants::Address::new_static("Grandpa", "MaxSetIdSessionEntries", [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, 59u8, + 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, 119u8, + 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, + ]) + } } } } @@ -15041,7 +14357,7 @@ pub mod api { use super::{root_mod, runtime_types}; #[doc = "Error for the treasury pallet."] pub type Error = runtime_types::pallet_treasury::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_treasury::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -15164,15 +14480,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Put forward a suggestion for spending. A deposit proportional to the value"] - #[doc = "is reserved and slashed if the proposal is rejected. It is returned once the"] - #[doc = "proposal is awarded."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(1)"] - #[doc = "- DbReads: `ProposalCount`, `origin account`"] - #[doc = "- DbWrites: `ProposalCount`, `Proposals`, `origin account`"] - #[doc = "# "] + #[doc = "See [`Pallet::propose_spend`]."] pub fn propose_spend( &self, value: ::core::primitive::u128, @@ -15194,15 +14502,7 @@ pub mod api { ) } - #[doc = "Reject a proposed spend. The original deposit will be slashed."] - #[doc = ""] - #[doc = "May only be called from `T::RejectOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(1)"] - #[doc = "- DbReads: `Proposals`, `rejected proposer account`"] - #[doc = "- DbWrites: `Proposals`, `rejected proposer account`"] - #[doc = "# "] + #[doc = "See [`Pallet::reject_proposal`]."] pub fn reject_proposal( &self, proposal_id: ::core::primitive::u32, @@ -15219,16 +14519,7 @@ pub mod api { ) } - #[doc = "Approve a proposal. At a later time, the proposal will be allocated to the beneficiary"] - #[doc = "and the original deposit will be returned."] - #[doc = ""] - #[doc = "May only be called from `T::ApproveOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(1)."] - #[doc = "- DbReads: `Proposals`, `Approvals`"] - #[doc = "- DbWrite: `Approvals`"] - #[doc = "# "] + #[doc = "See [`Pallet::approve_proposal`]."] pub fn approve_proposal( &self, proposal_id: ::core::primitive::u32, @@ -15245,14 +14536,7 @@ pub mod api { ) } - #[doc = "Propose and approve a spend of treasury funds."] - #[doc = ""] - #[doc = "- `origin`: Must be `SpendOrigin` with the `Success` value being at least `amount`."] - #[doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] - #[doc = "- `beneficiary`: The destination account for the transfer."] - #[doc = ""] - #[doc = "NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the"] - #[doc = "beneficiary."] + #[doc = "See [`Pallet::spend`]."] pub fn spend( &self, amount: ::core::primitive::u128, @@ -15276,21 +14560,7 @@ pub mod api { ) } - #[doc = "Force a previously approved proposal to be removed from the approval queue."] - #[doc = "The original deposit will no longer be returned."] - #[doc = ""] - #[doc = "May only be called from `T::RejectOrigin`."] - #[doc = "- `proposal_id`: The index of a proposal"] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(A) where `A` is the number of approvals"] - #[doc = "- Db reads and writes: `Approvals`"] - #[doc = "# "] - #[doc = ""] - #[doc = "Errors:"] - #[doc = "- `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,"] - #[doc = "i.e., the proposal has not been approved. This could also mean the proposal does not"] - #[doc = "exist altogether, thus there is no way it would have been approved in the first place."] + #[doc = "See [`Pallet::remove_approval`]."] pub fn remove_approval( &self, proposal_id: ::core::primitive::u32, @@ -15309,7 +14579,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_treasury::pallet::Event; pub mod events { use super::runtime_types; @@ -15621,7 +14891,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u32, >, ::subxt::storage::address::Yes, @@ -15729,7 +14999,7 @@ pub mod api { use super::{root_mod, runtime_types}; #[doc = "Error for the Sudo pallet"] pub type Error = runtime_types::pallet_sudo::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_sudo::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -15827,16 +15097,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB write (event)."] - #[doc = "- Weight of derivative `call` execution + 10,000."] - #[doc = "# "] + #[doc = "See [`Pallet::sudo`]."] pub fn sudo( &self, call: runtime_types::da_runtime::RuntimeCall, @@ -15848,23 +15109,14 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 24u8, 203u8, 33u8, 250u8, 172u8, 170u8, 123u8, 90u8, 66u8, 35u8, 189u8, - 141u8, 207u8, 26u8, 124u8, 96u8, 123u8, 48u8, 84u8, 161u8, 197u8, 51u8, - 146u8, 136u8, 110u8, 12u8, 173u8, 150u8, 20u8, 53u8, 240u8, 118u8, + 254u8, 11u8, 194u8, 196u8, 104u8, 67u8, 250u8, 58u8, 99u8, 143u8, 1u8, + 190u8, 75u8, 185u8, 161u8, 124u8, 0u8, 151u8, 87u8, 227u8, 90u8, 55u8, + 36u8, 81u8, 244u8, 116u8, 229u8, 176u8, 146u8, 203u8, 144u8, 129u8, ], ) } - #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] - #[doc = "This function does not check the weight of the call, and instead allows the"] - #[doc = "Sudo user to specify the weight of the call."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- The weight of this call is defined by the caller."] - #[doc = "# "] + #[doc = "See [`Pallet::sudo_unchecked_weight`]."] pub fn sudo_unchecked_weight( &self, call: runtime_types::da_runtime::RuntimeCall, @@ -15878,23 +15130,15 @@ pub mod api { weight, }, [ - 52u8, 99u8, 164u8, 13u8, 68u8, 77u8, 89u8, 221u8, 3u8, 99u8, 252u8, - 179u8, 100u8, 149u8, 9u8, 115u8, 84u8, 185u8, 6u8, 189u8, 109u8, 127u8, - 116u8, 10u8, 229u8, 111u8, 196u8, 251u8, 14u8, 112u8, 197u8, 230u8, + 141u8, 196u8, 107u8, 110u8, 14u8, 122u8, 197u8, 165u8, 166u8, 237u8, + 237u8, 210u8, 110u8, 217u8, 11u8, 218u8, 35u8, 155u8, 112u8, 251u8, + 52u8, 249u8, 163u8, 179u8, 126u8, 194u8, 118u8, 8u8, 33u8, 124u8, + 232u8, 8u8, ], ) } - #[doc = "Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo"] - #[doc = "key."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB change."] - #[doc = "# "] + #[doc = "See [`Pallet::set_key`]."] pub fn set_key( &self, new: ::subxt::utils::MultiAddress< @@ -15909,17 +15153,7 @@ pub mod api { ]) } - #[doc = "Authenticates the sudo key and dispatches a function call with `Signed` origin from"] - #[doc = "a given account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB write (event)."] - #[doc = "- Weight of derivative `call` execution + 10,000."] - #[doc = "# "] + #[doc = "See [`Pallet::sudo_as`]."] pub fn sudo_as( &self, who: ::subxt::utils::MultiAddress< @@ -15936,16 +15170,16 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 148u8, 194u8, 25u8, 45u8, 65u8, 242u8, 211u8, 234u8, 185u8, 119u8, - 44u8, 119u8, 55u8, 61u8, 86u8, 212u8, 85u8, 62u8, 213u8, 184u8, 159u8, - 45u8, 181u8, 109u8, 71u8, 34u8, 239u8, 181u8, 163u8, 173u8, 66u8, - 174u8, + 155u8, 128u8, 37u8, 173u8, 167u8, 85u8, 4u8, 198u8, 22u8, 63u8, 80u8, + 152u8, 41u8, 113u8, 173u8, 159u8, 237u8, 226u8, 87u8, 105u8, 223u8, + 197u8, 207u8, 215u8, 227u8, 229u8, 248u8, 232u8, 20u8, 213u8, 93u8, + 210u8, ], ) } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_sudo::pallet::Event; pub mod events { use super::runtime_types; @@ -16040,9 +15274,9 @@ pub mod api { } pub mod im_online { use super::{root_mod, runtime_types}; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_im_online::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_im_online::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -16074,15 +15308,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "# "] - #[doc = "- Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is"] - #[doc = " length of `heartbeat.network_state.external_address`"] - #[doc = " - `O(K)`: decoding of length `K`"] - #[doc = " - `O(E)`: decoding/encoding of length `E`"] - #[doc = "- DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,"] - #[doc = " `ReceivedHeartbeats`"] - #[doc = "- DbWrites: `ReceivedHeartbeats`"] - #[doc = "# "] + #[doc = "See [`Pallet::heartbeat`]."] pub fn heartbeat( &self, heartbeat: runtime_types::pallet_im_online::Heartbeat<::core::primitive::u32>, @@ -16096,16 +15322,16 @@ pub mod api { signature, }, [ - 191u8, 155u8, 217u8, 65u8, 8u8, 34u8, 41u8, 185u8, 187u8, 199u8, 164u8, - 48u8, 76u8, 123u8, 235u8, 182u8, 85u8, 107u8, 48u8, 158u8, 110u8, - 206u8, 145u8, 119u8, 165u8, 253u8, 27u8, 59u8, 0u8, 112u8, 241u8, - 242u8, + 145u8, 227u8, 53u8, 178u8, 195u8, 173u8, 7u8, 209u8, 148u8, 82u8, + 125u8, 236u8, 128u8, 10u8, 134u8, 114u8, 95u8, 104u8, 111u8, 202u8, + 59u8, 192u8, 178u8, 182u8, 102u8, 86u8, 88u8, 50u8, 92u8, 66u8, 144u8, + 131u8, ], ) } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_im_online::pallet::Event; pub mod events { use super::runtime_types; @@ -16218,7 +15444,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::weak_bounded_vec::WeakBoundedVec< + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< runtime_types::pallet_im_online::sr25519::app_sr25519::Public, >, ::subxt::storage::address::Yes, @@ -16232,17 +15458,14 @@ pub mod api { ]) } - #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to"] - #[doc = " `WrapperOpaque`."] + #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] pub fn received_heartbeats( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, _1: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::frame_support::traits::misc::WrapperOpaque< - runtime_types::pallet_im_online::BoundedOpaqueNetworkState, - >, + ::core::primitive::bool, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, @@ -16255,23 +15478,19 @@ pub mod api { ::subxt::storage::address::make_static_storage_map_key(_1.borrow()), ], [ - 244u8, 195u8, 226u8, 146u8, 31u8, 109u8, 70u8, 31u8, 198u8, 97u8, - 116u8, 249u8, 115u8, 191u8, 13u8, 96u8, 12u8, 200u8, 235u8, 254u8, 3u8, - 36u8, 51u8, 43u8, 224u8, 251u8, 76u8, 197u8, 157u8, 173u8, 125u8, - 161u8, + 123u8, 182u8, 145u8, 49u8, 90u8, 110u8, 80u8, 53u8, 62u8, 45u8, 173u8, + 252u8, 126u8, 163u8, 229u8, 173u8, 54u8, 169u8, 61u8, 128u8, 10u8, + 33u8, 254u8, 78u8, 145u8, 134u8, 235u8, 26u8, 177u8, 55u8, 7u8, 75u8, ], ) } - #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex` to"] - #[doc = " `WrapperOpaque`."] + #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] pub fn received_heartbeats_root( &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::frame_support::traits::misc::WrapperOpaque< - runtime_types::pallet_im_online::BoundedOpaqueNetworkState, - >, + ::core::primitive::bool, (), (), ::subxt::storage::address::Yes, @@ -16281,10 +15500,9 @@ pub mod api { "ReceivedHeartbeats", Vec::new(), [ - 244u8, 195u8, 226u8, 146u8, 31u8, 109u8, 70u8, 31u8, 198u8, 97u8, - 116u8, 249u8, 115u8, 191u8, 13u8, 96u8, 12u8, 200u8, 235u8, 254u8, 3u8, - 36u8, 51u8, 43u8, 224u8, 251u8, 76u8, 197u8, 157u8, 173u8, 125u8, - 161u8, + 123u8, 182u8, 145u8, 49u8, 90u8, 110u8, 80u8, 53u8, 62u8, 45u8, 173u8, + 252u8, 126u8, 163u8, 229u8, 173u8, 54u8, 169u8, 61u8, 128u8, 10u8, + 33u8, 254u8, 78u8, 145u8, 134u8, 235u8, 26u8, 177u8, 55u8, 7u8, 75u8, ], ) } @@ -16374,7 +15592,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::weak_bounded_vec::WeakBoundedVec< + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< runtime_types::sp_authority_discovery::app::Public, >, ::subxt::storage::address::Yes, @@ -16399,7 +15617,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::weak_bounded_vec::WeakBoundedVec< + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec< runtime_types::sp_authority_discovery::app::Public, >, ::subxt::storage::address::Yes, @@ -16568,66 +15786,7 @@ pub mod api { 125u8, 222u8, 9u8, 162u8, 38u8, 89u8, 77u8, 187u8, 129u8, 103u8, 21u8, 31u8, 117u8, 101u8, 43u8, 115u8, 170u8, 205u8, 142u8, 26u8, 27u8, 184u8, 152u8, 133u8, 76u8, 203u8, 78u8, 113u8, 51u8, 141u8, 118u8, - 171u8, - ], - ) - } - - #[doc = " Enumerates all reports of a kind along with the time they happened."] - #[doc = ""] - #[doc = " All reports are sorted by the time of offence."] - #[doc = ""] - #[doc = " Note that the actual type of this mapping is `Vec`, this is because values of"] - #[doc = " different types are not supported at the moment so we are doing the manual serialization."] - pub fn reports_by_kind_index( - &self, - _0: impl ::std::borrow::Borrow<[::core::primitive::u8; 16usize]>, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::core::primitive::u8>, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Offences", - "ReportsByKindIndex", - vec![::subxt::storage::address::make_static_storage_map_key( - _0.borrow(), - )], - [ - 203u8, 135u8, 157u8, 163u8, 119u8, 91u8, 139u8, 122u8, 203u8, 203u8, - 165u8, 111u8, 226u8, 245u8, 126u8, 42u8, 106u8, 229u8, 223u8, 183u8, - 139u8, 234u8, 210u8, 211u8, 64u8, 31u8, 196u8, 5u8, 172u8, 81u8, 137u8, - 227u8, - ], - ) - } - - #[doc = " Enumerates all reports of a kind along with the time they happened."] - #[doc = ""] - #[doc = " All reports are sorted by the time of offence."] - #[doc = ""] - #[doc = " Note that the actual type of this mapping is `Vec`, this is because values of"] - #[doc = " different types are not supported at the moment so we are doing the manual serialization."] - pub fn reports_by_kind_index_root( - &self, - ) -> ::subxt::storage::address::Address< - ::subxt::storage::address::StaticStorageMapKey, - ::std::vec::Vec<::core::primitive::u8>, - (), - ::subxt::storage::address::Yes, - ::subxt::storage::address::Yes, - > { - ::subxt::storage::address::Address::new_static( - "Offences", - "ReportsByKindIndex", - Vec::new(), - [ - 203u8, 135u8, 157u8, 163u8, 119u8, 91u8, 139u8, 122u8, 203u8, 203u8, - 165u8, 111u8, 226u8, 245u8, 126u8, 42u8, 106u8, 229u8, 223u8, 183u8, - 139u8, 234u8, 210u8, 211u8, 64u8, 31u8, 196u8, 5u8, 172u8, 81u8, 137u8, - 227u8, + 171u8, ], ) } @@ -16716,9 +15875,9 @@ pub mod api { } pub mod scheduler { use super::{root_mod, runtime_types}; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_scheduler::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_scheduler::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -16867,7 +16026,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Anonymously schedule a task."] + #[doc = "See [`Pallet::schedule`]."] pub fn schedule( &self, when: ::core::primitive::u32, @@ -16888,15 +16047,14 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 82u8, 177u8, 11u8, 16u8, 120u8, 185u8, 189u8, 223u8, 233u8, 65u8, - 249u8, 40u8, 213u8, 144u8, 243u8, 248u8, 81u8, 105u8, 250u8, 62u8, - 113u8, 21u8, 33u8, 161u8, 95u8, 117u8, 88u8, 66u8, 97u8, 14u8, 151u8, - 105u8, + 118u8, 175u8, 77u8, 51u8, 218u8, 44u8, 134u8, 181u8, 73u8, 35u8, 180u8, + 110u8, 34u8, 34u8, 227u8, 216u8, 191u8, 151u8, 40u8, 5u8, 192u8, 156u8, + 134u8, 28u8, 207u8, 191u8, 140u8, 124u8, 49u8, 67u8, 134u8, 91u8, ], ) } - #[doc = "Cancel an anonymously scheduled task."] + #[doc = "See [`Pallet::cancel`]."] pub fn cancel( &self, when: ::core::primitive::u32, @@ -16915,7 +16073,7 @@ pub mod api { ) } - #[doc = "Schedule a named task."] + #[doc = "See [`Pallet::schedule_named`]."] pub fn schedule_named( &self, id: [::core::primitive::u8; 32usize], @@ -16938,14 +16096,14 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 48u8, 84u8, 123u8, 185u8, 88u8, 202u8, 51u8, 158u8, 198u8, 151u8, - 111u8, 75u8, 48u8, 90u8, 226u8, 35u8, 195u8, 34u8, 39u8, 240u8, 74u8, - 15u8, 214u8, 238u8, 139u8, 28u8, 12u8, 24u8, 63u8, 119u8, 89u8, 85u8, + 231u8, 245u8, 223u8, 235u8, 9u8, 66u8, 3u8, 240u8, 255u8, 92u8, 83u8, + 88u8, 97u8, 255u8, 63u8, 65u8, 75u8, 90u8, 73u8, 166u8, 164u8, 18u8, + 6u8, 36u8, 9u8, 250u8, 203u8, 188u8, 68u8, 21u8, 18u8, 101u8, ], ) } - #[doc = "Cancel a named scheduled task."] + #[doc = "See [`Pallet::cancel_named`]."] pub fn cancel_named( &self, id: [::core::primitive::u8; 32usize], @@ -16962,11 +16120,7 @@ pub mod api { ) } - #[doc = "Anonymously schedule a task after a delay."] - #[doc = ""] - #[doc = "# "] - #[doc = "Same as [`schedule`]."] - #[doc = "# "] + #[doc = "See [`Pallet::schedule_after`]."] pub fn schedule_after( &self, after: ::core::primitive::u32, @@ -16987,18 +16141,15 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 45u8, 0u8, 103u8, 106u8, 172u8, 201u8, 173u8, 125u8, 73u8, 111u8, - 104u8, 186u8, 225u8, 13u8, 184u8, 22u8, 224u8, 175u8, 243u8, 26u8, 6u8, - 202u8, 168u8, 176u8, 214u8, 146u8, 168u8, 12u8, 254u8, 0u8, 70u8, 92u8, + 28u8, 134u8, 70u8, 113u8, 185u8, 187u8, 252u8, 62u8, 169u8, 227u8, + 73u8, 166u8, 126u8, 182u8, 143u8, 51u8, 218u8, 100u8, 168u8, 152u8, + 113u8, 24u8, 89u8, 177u8, 183u8, 209u8, 207u8, 173u8, 241u8, 98u8, + 54u8, 231u8, ], ) } - #[doc = "Schedule a named task after a delay."] - #[doc = ""] - #[doc = "# "] - #[doc = "Same as [`schedule_named`](Self::schedule_named)."] - #[doc = "# "] + #[doc = "See [`Pallet::schedule_named_after`]."] pub fn schedule_named_after( &self, id: [::core::primitive::u8; 32usize], @@ -17021,10 +16172,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 13u8, 150u8, 180u8, 1u8, 189u8, 230u8, 251u8, 242u8, 100u8, 148u8, - 38u8, 177u8, 200u8, 90u8, 97u8, 4u8, 213u8, 35u8, 23u8, 165u8, 229u8, - 248u8, 95u8, 132u8, 162u8, 173u8, 137u8, 67u8, 109u8, 75u8, 242u8, - 94u8, + 245u8, 253u8, 61u8, 187u8, 117u8, 126u8, 0u8, 124u8, 108u8, 224u8, + 125u8, 66u8, 20u8, 20u8, 222u8, 67u8, 136u8, 168u8, 28u8, 232u8, 43u8, + 178u8, 249u8, 12u8, 39u8, 39u8, 249u8, 65u8, 95u8, 61u8, 14u8, 226u8, ], ) } @@ -17199,7 +16349,7 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::option::Option< runtime_types::pallet_scheduler::Scheduled< [::core::primitive::u8; 32usize], @@ -17236,7 +16386,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::option::Option< runtime_types::pallet_scheduler::Scheduled< [::core::primitive::u8; 32usize], @@ -17338,6 +16488,10 @@ pub mod api { } #[doc = " The maximum number of scheduled calls in the queue for a single block."] + #[doc = ""] + #[doc = " NOTE:"] + #[doc = " + Dependent pallets' benchmarks might require a higher limit for the setting. Set a"] + #[doc = " higher limit under `runtime-benchmarks` feature."] pub fn max_scheduled_per_block( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -17352,9 +16506,9 @@ pub mod api { } pub mod bounties { use super::{root_mod, runtime_types}; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_bounties::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_bounties::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -17565,18 +16719,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Propose a new bounty."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "Payment: `TipReportDepositBase` will be reserved from the origin account, as well as"] - #[doc = "`DataDepositPerByte` for each byte in `reason`. It will be unreserved upon approval,"] - #[doc = "or slashed when rejected."] - #[doc = ""] - #[doc = "- `curator`: The curator account whom will manage this bounty."] - #[doc = "- `fee`: The curator fee."] - #[doc = "- `value`: The total payment amount of this bounty, curator fee included."] - #[doc = "- `description`: The description of this bounty."] + #[doc = "See [`Pallet::propose_bounty`]."] pub fn propose_bounty( &self, value: ::core::primitive::u128, @@ -17594,14 +16737,7 @@ pub mod api { ) } - #[doc = "Approve a bounty proposal. At a later time, the bounty will be funded and become active"] - #[doc = "and the original deposit will be returned."] - #[doc = ""] - #[doc = "May only be called from `T::SpendOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] + #[doc = "See [`Pallet::approve_bounty`]."] pub fn approve_bounty( &self, bounty_id: ::core::primitive::u32, @@ -17619,13 +16755,7 @@ pub mod api { ) } - #[doc = "Assign a curator to a funded bounty."] - #[doc = ""] - #[doc = "May only be called from `T::SpendOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] + #[doc = "See [`Pallet::propose_curator`]."] pub fn propose_curator( &self, bounty_id: ::core::primitive::u32, @@ -17652,24 +16782,7 @@ pub mod api { ) } - #[doc = "Unassign curator from a bounty."] - #[doc = ""] - #[doc = "This function can only be called by the `RejectOrigin` a signed origin."] - #[doc = ""] - #[doc = "If this function is called by the `RejectOrigin`, we assume that the curator is"] - #[doc = "malicious or inactive. As a result, we will slash the curator when possible."] - #[doc = ""] - #[doc = "If the origin is the curator, we take this as a sign they are unable to do their job and"] - #[doc = "they willingly give up. We could slash them, but for now we allow them to recover their"] - #[doc = "deposit and exit without issue. (We may want to change this if it is abused.)"] - #[doc = ""] - #[doc = "Finally, the origin can be anyone if and only if the curator is \"inactive\". This allows"] - #[doc = "anyone in the community to call out that a curator is not doing their due diligence, and"] - #[doc = "we should pick a new curator. In this case the curator should also be slashed."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] + #[doc = "See [`Pallet::unassign_curator`]."] pub fn unassign_curator( &self, bounty_id: ::core::primitive::u32, @@ -17687,14 +16800,7 @@ pub mod api { ) } - #[doc = "Accept the curator role for a bounty."] - #[doc = "A deposit will be reserved from curator and refund upon successful payout."] - #[doc = ""] - #[doc = "May only be called from the curator."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] + #[doc = "See [`Pallet::accept_curator`]."] pub fn accept_curator( &self, bounty_id: ::core::primitive::u32, @@ -17711,17 +16817,7 @@ pub mod api { ) } - #[doc = "Award bounty to a beneficiary account. The beneficiary will be able to claim the funds"] - #[doc = "after a delay."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be the curator of this bounty."] - #[doc = ""] - #[doc = "- `bounty_id`: Bounty ID to award."] - #[doc = "- `beneficiary`: The beneficiary account whom will receive the payout."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] + #[doc = "See [`Pallet::award_bounty`]."] pub fn award_bounty( &self, bounty_id: ::core::primitive::u32, @@ -17746,15 +16842,7 @@ pub mod api { ) } - #[doc = "Claim the payout from an awarded bounty after payout delay."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be the beneficiary of this bounty."] - #[doc = ""] - #[doc = "- `bounty_id`: Bounty ID to claim."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] + #[doc = "See [`Pallet::claim_bounty`]."] pub fn claim_bounty( &self, bounty_id: ::core::primitive::u32, @@ -17772,16 +16860,7 @@ pub mod api { ) } - #[doc = "Cancel a proposed or active bounty. All the funds will be sent to treasury and"] - #[doc = "the curator deposit will be unreserved if possible."] - #[doc = ""] - #[doc = "Only `T::RejectOrigin` is able to cancel a bounty."] - #[doc = ""] - #[doc = "- `bounty_id`: Bounty ID to cancel."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] + #[doc = "See [`Pallet::close_bounty`]."] pub fn close_bounty( &self, bounty_id: ::core::primitive::u32, @@ -17799,16 +16878,7 @@ pub mod api { ) } - #[doc = "Extend the expiry time of an active bounty."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be the curator of this bounty."] - #[doc = ""] - #[doc = "- `bounty_id`: Bounty ID to extend."] - #[doc = "- `remark`: additional information."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] + #[doc = "See [`Pallet::extend_bounty_expiry`]."] pub fn extend_bounty_expiry( &self, bounty_id: ::core::primitive::u32, @@ -17828,7 +16898,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_bounties::pallet::Event; pub mod events { use super::runtime_types; @@ -18078,7 +17148,9 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec<::core::primitive::u8>, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, @@ -18102,7 +17174,9 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec<::core::primitive::u8>, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, (), (), ::subxt::storage::address::Yes, @@ -18124,7 +17198,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u32, >, ::subxt::storage::address::Yes, @@ -18266,9 +17340,9 @@ pub mod api { } pub mod tips { use super::{root_mod, runtime_types}; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_tips::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_tips::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -18410,25 +17484,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Report something `reason` that deserves a tip and claim any eventual the finder's fee."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "Payment: `TipReportDepositBase` will be reserved from the origin account, as well as"] - #[doc = "`DataDepositPerByte` for each byte in `reason`."] - #[doc = ""] - #[doc = "- `reason`: The reason for, or the thing that deserves, the tip; generally this will be"] - #[doc = " a UTF-8-encoded URL."] - #[doc = "- `who`: The account which should be credited for the tip."] - #[doc = ""] - #[doc = "Emits `NewTip` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: `O(R)` where `R` length of `reason`."] - #[doc = " - encoding and hashing of 'reason'"] - #[doc = "- DbReads: `Reasons`, `Tips`"] - #[doc = "- DbWrites: `Reasons`, `Tips`"] - #[doc = "# "] + #[doc = "See [`Pallet::report_awesome`]."] pub fn report_awesome( &self, reason: ::std::vec::Vec<::core::primitive::u8>, @@ -18450,25 +17506,7 @@ pub mod api { ) } - #[doc = "Retract a prior tip-report from `report_awesome`, and cancel the process of tipping."] - #[doc = ""] - #[doc = "If successful, the original deposit will be unreserved."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the tip identified by `hash`"] - #[doc = "must have been reported by the signing account through `report_awesome` (and not"] - #[doc = "through `tip_new`)."] - #[doc = ""] - #[doc = "- `hash`: The identity of the open tip for which a tip value is declared. This is formed"] - #[doc = " as the hash of the tuple of the original tip `reason` and the beneficiary account ID."] - #[doc = ""] - #[doc = "Emits `TipRetracted` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: `O(1)`"] - #[doc = " - Depends on the length of `T::Hash` which is fixed."] - #[doc = "- DbReads: `Tips`, `origin account`"] - #[doc = "- DbWrites: `Reasons`, `Tips`, `origin account`"] - #[doc = "# "] + #[doc = "See [`Pallet::retract_tip`]."] pub fn retract_tip( &self, hash: ::subxt::utils::H256, @@ -18486,28 +17524,7 @@ pub mod api { ) } - #[doc = "Give a tip for something new; no finder's fee will be taken."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the signing account must be a"] - #[doc = "member of the `Tippers` set."] - #[doc = ""] - #[doc = "- `reason`: The reason for, or the thing that deserves, the tip; generally this will be"] - #[doc = " a UTF-8-encoded URL."] - #[doc = "- `who`: The account which should be credited for the tip."] - #[doc = "- `tip_value`: The amount of tip that the sender would like to give. The median tip"] - #[doc = " value of active tippers will be given to the `who`."] - #[doc = ""] - #[doc = "Emits `NewTip` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: `O(R + T)` where `R` length of `reason`, `T` is the number of tippers."] - #[doc = " - `O(T)`: decoding `Tipper` vec of length `T`. `T` is charged as upper bound given by"] - #[doc = " `ContainsLengthBound`. The actual cost depends on the implementation of"] - #[doc = " `T::Tippers`."] - #[doc = " - `O(R)`: hashing and encoding of reason of length `R`"] - #[doc = "- DbReads: `Tippers`, `Reasons`"] - #[doc = "- DbWrites: `Reasons`, `Tips`"] - #[doc = "# "] + #[doc = "See [`Pallet::tip_new`]."] pub fn tip_new( &self, reason: ::std::vec::Vec<::core::primitive::u8>, @@ -18534,30 +17551,7 @@ pub mod api { ) } - #[doc = "Declare a tip value for an already-open tip."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the signing account must be a"] - #[doc = "member of the `Tippers` set."] - #[doc = ""] - #[doc = "- `hash`: The identity of the open tip for which a tip value is declared. This is formed"] - #[doc = " as the hash of the tuple of the hash of the original tip `reason` and the beneficiary"] - #[doc = " account ID."] - #[doc = "- `tip_value`: The amount of tip that the sender would like to give. The median tip"] - #[doc = " value of active tippers will be given to the `who`."] - #[doc = ""] - #[doc = "Emits `TipClosing` if the threshold of tippers has been reached and the countdown period"] - #[doc = "has started."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length"] - #[doc = " `T`, insert tip and check closing, `T` is charged as upper bound given by"] - #[doc = " `ContainsLengthBound`. The actual cost depends on the implementation of `T::Tippers`."] - #[doc = ""] - #[doc = " Actually weight could be lower as it depends on how many tips are in `OpenTip` but it"] - #[doc = " is weighted as if almost full i.e of length `T-1`."] - #[doc = "- DbReads: `Tippers`, `Tips`"] - #[doc = "- DbWrites: `Tips`"] - #[doc = "# "] + #[doc = "See [`Pallet::tip`]."] pub fn tip( &self, hash: ::subxt::utils::H256, @@ -18576,22 +17570,7 @@ pub mod api { ) } - #[doc = "Close and payout a tip."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "The tip identified by `hash` must have finished its countdown period."] - #[doc = ""] - #[doc = "- `hash`: The identity of the open tip for which a tip value is declared. This is formed"] - #[doc = " as the hash of the tuple of the original tip `reason` and the beneficiary account ID."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length"] - #[doc = " `T`. `T` is charged as upper bound given by `ContainsLengthBound`. The actual cost"] - #[doc = " depends on the implementation of `T::Tippers`."] - #[doc = "- DbReads: `Tips`, `Tippers`, `tip finder`"] - #[doc = "- DbWrites: `Reasons`, `Tips`, `Tippers`, `tip finder`"] - #[doc = "# "] + #[doc = "See [`Pallet::close_tip`]."] pub fn close_tip( &self, hash: ::subxt::utils::H256, @@ -18609,18 +17588,7 @@ pub mod api { ) } - #[doc = "Remove and slash an already-open tip."] - #[doc = ""] - #[doc = "May only be called from `T::RejectOrigin`."] - #[doc = ""] - #[doc = "As a result, the finder is slashed and the deposits are lost."] - #[doc = ""] - #[doc = "Emits `TipSlashed` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = " `T` is charged as upper bound given by `ContainsLengthBound`."] - #[doc = " The actual cost depends on the implementation of `T::Tippers`."] - #[doc = "# "] + #[doc = "See [`Pallet::slash_tip`]."] pub fn slash_tip( &self, hash: ::subxt::utils::H256, @@ -18639,7 +17607,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_tips::pallet::Event; pub mod events { use super::runtime_types; @@ -19020,7 +17988,7 @@ pub mod api { use super::{root_mod, runtime_types}; #[doc = "Error for the System pallet"] pub type Error = runtime_types::da_control::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::da_control::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -19041,7 +18009,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct CreateApplicationKey { - pub key: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + pub key: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, } @@ -19063,7 +18031,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubmitData { - pub data: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + pub data: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, } @@ -19095,10 +18063,10 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Creates an application key if `key` does not exist yet."] + #[doc = "See [`Pallet::create_application_key`]."] pub fn create_application_key( &self, - key: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + key: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, ) -> ::subxt::tx::Payload { @@ -19115,9 +18083,10 @@ pub mod api { ) } + #[doc = "See [`Pallet::submit_data`]."] pub fn submit_data( &self, - data: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + data: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, ) -> ::subxt::tx::Payload { @@ -19134,6 +18103,7 @@ pub mod api { ) } + #[doc = "See [`Pallet::submit_block_length_proposal`]."] pub fn submit_block_length_proposal( &self, rows: ::core::primitive::u32, @@ -19171,8 +18141,9 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "A new application key was created."] pub struct ApplicationKeyCreated { - pub key: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec<::core::primitive::u8>, + pub key: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, pub owner: ::subxt::utils::AccountId32, pub id: runtime_types::avail_core::AppId, } @@ -19195,8 +18166,9 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct DataSubmitted { pub who: ::subxt::utils::AccountId32, - pub data: - runtime_types::sp_core::bounded::bounded_vec::BoundedVec<::core::primitive::u8>, + pub data: runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, } impl ::subxt::events::StaticEvent for DataSubmitted { const EVENT: &'static str = "DataSubmitted"; @@ -19254,7 +18226,7 @@ pub mod api { pub fn app_keys( &self, _0: impl ::std::borrow::Borrow< - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, >, @@ -19388,9 +18360,9 @@ pub mod api { } pub mod nomad_updater_manager { use super::{root_mod, runtime_types}; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::nomad_updater_manager::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::nomad_updater_manager::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -19401,7 +18373,7 @@ pub mod api { pub struct TransactionApi; impl TransactionApi {} } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::nomad_updater_manager::pallet::Event; pub mod events { use super::runtime_types; @@ -19477,9 +18449,9 @@ pub mod api { } pub mod nomad_home { use super::{root_mod, runtime_types}; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::nomad_home::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::nomad_home::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -19503,7 +18475,7 @@ pub mod api { #[codec(compact)] pub destination_domain: ::core::primitive::u32, pub recipient_address: ::subxt::utils::H256, - pub message_body: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + pub message_body: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, } @@ -19576,12 +18548,12 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Dispatch a message to the destination domain and recipient address."] + #[doc = "See [`Pallet::dispatch`]."] pub fn dispatch( &self, destination_domain: ::core::primitive::u32, recipient_address: ::subxt::utils::H256, - message_body: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + message_body: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, ) -> ::subxt::tx::Payload { @@ -19601,7 +18573,7 @@ pub mod api { ) } - #[doc = "Verify/submit signed update."] + #[doc = "See [`Pallet::update`]."] pub fn update( &self, signed_update: runtime_types::nomad_core::update::SignedUpdate, @@ -19622,7 +18594,7 @@ pub mod api { ) } - #[doc = "Verify/slash updater for improper update."] + #[doc = "See [`Pallet::improper_update`]."] pub fn improper_update( &self, signed_update: runtime_types::nomad_core::update::SignedUpdate, @@ -19639,9 +18611,7 @@ pub mod api { ) } - #[doc = "Set new updater on self as well as updater manager."] - #[doc = "Note: Not exposed as pallet call, will only be callable by the"] - #[doc = "GovernanceRouter pallet when implemented."] + #[doc = "See [`Pallet::set_updater`]."] pub fn set_updater( &self, new_updater: ::subxt::utils::H160, @@ -19660,7 +18630,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::nomad_home::pallet::Event; pub mod events { use super::runtime_types; @@ -19946,9 +18916,9 @@ pub mod api { } pub mod nomad_da_bridge { use super::{root_mod, runtime_types}; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::nomad_da_bridge::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::nomad_da_bridge::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -19986,7 +18956,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Dispatch a data root message to the home if the header is valid."] + #[doc = "See [`Pallet::try_dispatch_data_root`]."] pub fn try_dispatch_data_root( &self, destination_domain: ::core::primitive::u32, @@ -20013,7 +18983,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::nomad_da_bridge::pallet::Event; pub mod events { use super::runtime_types; @@ -20059,9 +19029,9 @@ pub mod api { } pub mod preimage { use super::{root_mod, runtime_types}; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_preimage::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_preimage::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -20151,10 +19121,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Register a preimage on-chain."] - #[doc = ""] - #[doc = "If the preimage was previously requested, no fees or deposits are taken for providing"] - #[doc = "the preimage. Otherwise, a deposit is taken proportional to the size of the preimage."] + #[doc = "See [`Pallet::note_preimage`]."] pub fn note_preimage( &self, bytes: ::std::vec::Vec<::core::primitive::u8>, @@ -20171,12 +19138,7 @@ pub mod api { ) } - #[doc = "Clear an unrequested preimage from the runtime storage."] - #[doc = ""] - #[doc = "If `len` is provided, then it will be a much cheaper operation."] - #[doc = ""] - #[doc = "- `hash`: The hash of the preimage to be removed from the store."] - #[doc = "- `len`: The length of the preimage of `hash`."] + #[doc = "See [`Pallet::unnote_preimage`]."] pub fn unnote_preimage( &self, hash: ::subxt::utils::H256, @@ -20194,10 +19156,7 @@ pub mod api { ) } - #[doc = "Request a preimage be uploaded to the chain without paying any fees or deposits."] - #[doc = ""] - #[doc = "If the preimage requests has already been provided on-chain, we unreserve any deposit"] - #[doc = "a user may have paid, and take the control of the preimage out of their hands."] + #[doc = "See [`Pallet::request_preimage`]."] pub fn request_preimage( &self, hash: ::subxt::utils::H256, @@ -20214,9 +19173,7 @@ pub mod api { ) } - #[doc = "Clear a previously made request for a preimage."] - #[doc = ""] - #[doc = "NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`."] + #[doc = "See [`Pallet::unrequest_preimage`]."] pub fn unrequest_preimage( &self, hash: ::subxt::utils::H256, @@ -20235,7 +19192,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_preimage::pallet::Event; pub mod events { use super::runtime_types; @@ -20368,7 +19325,9 @@ pub mod api { _1: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec<::core::primitive::u8>, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, ::subxt::storage::address::Yes, (), ::subxt::storage::address::Yes, @@ -20392,7 +19351,9 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec<::core::primitive::u8>, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, (), (), ::subxt::storage::address::Yes, @@ -20413,9 +19374,9 @@ pub mod api { } pub mod multisig { use super::{root_mod, runtime_types}; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_multisig::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_multisig::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -20522,22 +19483,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Immediately dispatch a multi-signature call using a single approval from the caller."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `other_signatories`: The accounts (other than the sender) who are part of the"] - #[doc = "multi-signature, but do not participate in the approval process."] - #[doc = "- `call`: The call to be executed."] - #[doc = ""] - #[doc = "Result is equivalent to the dispatched result."] - #[doc = ""] - #[doc = "# "] - #[doc = "O(Z + C) where Z is the length of the call and C its execution weight."] - #[doc = "-------------------------------"] - #[doc = "- DB Weight: None"] - #[doc = "- Plus Call Weight"] - #[doc = "# "] + #[doc = "See [`Pallet::as_multi_threshold_1`]."] pub fn as_multi_threshold_1( &self, other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -20551,58 +19497,14 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 189u8, 61u8, 73u8, 79u8, 70u8, 121u8, 135u8, 53u8, 85u8, 127u8, 163u8, - 107u8, 214u8, 113u8, 21u8, 180u8, 238u8, 137u8, 82u8, 24u8, 220u8, - 69u8, 164u8, 87u8, 86u8, 190u8, 92u8, 237u8, 161u8, 250u8, 101u8, 34u8, + 79u8, 9u8, 107u8, 184u8, 104u8, 53u8, 48u8, 252u8, 36u8, 235u8, 60u8, + 247u8, 59u8, 117u8, 95u8, 24u8, 24u8, 117u8, 98u8, 123u8, 46u8, 154u8, + 70u8, 202u8, 242u8, 33u8, 83u8, 248u8, 168u8, 2u8, 214u8, 255u8, ], ) } - #[doc = "Register approval for a dispatch to be made from a deterministic composite account if"] - #[doc = "approved by a total of `threshold - 1` of `other_signatories`."] - #[doc = ""] - #[doc = "If there are enough, then dispatch the call."] - #[doc = ""] - #[doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] - #[doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] - #[doc = "is cancelled."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] - #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] - #[doc = "dispatch. May not be empty."] - #[doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] - #[doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] - #[doc = "transaction index) of the first approval transaction."] - #[doc = "- `call`: The call to be executed."] - #[doc = ""] - #[doc = "NOTE: Unless this is the final approval, you will generally want to use"] - #[doc = "`approve_as_multi` instead, since it only requires a hash of the call."] - #[doc = ""] - #[doc = "Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise"] - #[doc = "on success, result is `Ok` and the result from the interior call, if it was executed,"] - #[doc = "may be found in the deposited `MultisigExecuted` event."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(S + Z + Call)`."] - #[doc = "- Up to one balance-reserve or unreserve operation."] - #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] - #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] - #[doc = "- One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len."] - #[doc = "- One encode & hash, both of complexity `O(S)`."] - #[doc = "- Up to one binary search and insert (`O(logS + S)`)."] - #[doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] - #[doc = "- One event."] - #[doc = "- The weight of the `call`."] - #[doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] - #[doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] - #[doc = "-------------------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Multisig Storage, [Caller Account]"] - #[doc = " - Writes: Multisig Storage, [Caller Account]"] - #[doc = "- Plus Call Weight"] - #[doc = "# "] + #[doc = "See [`Pallet::as_multi`]."] pub fn as_multi( &self, threshold: ::core::primitive::u16, @@ -20624,48 +19526,15 @@ pub mod api { max_weight, }, [ - 251u8, 27u8, 18u8, 198u8, 130u8, 201u8, 173u8, 22u8, 211u8, 57u8, 60u8, - 79u8, 183u8, 213u8, 38u8, 10u8, 72u8, 215u8, 155u8, 7u8, 232u8, 136u8, - 255u8, 49u8, 41u8, 214u8, 79u8, 104u8, 110u8, 174u8, 41u8, 79u8, + 113u8, 91u8, 132u8, 69u8, 120u8, 246u8, 29u8, 206u8, 219u8, 136u8, + 74u8, 109u8, 108u8, 247u8, 31u8, 159u8, 184u8, 37u8, 168u8, 228u8, + 102u8, 239u8, 78u8, 190u8, 25u8, 97u8, 105u8, 178u8, 20u8, 186u8, 5u8, + 188u8, ], ) } - #[doc = "Register approval for a dispatch to be made from a deterministic composite account if"] - #[doc = "approved by a total of `threshold - 1` of `other_signatories`."] - #[doc = ""] - #[doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] - #[doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] - #[doc = "is cancelled."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] - #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] - #[doc = "dispatch. May not be empty."] - #[doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] - #[doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] - #[doc = "transaction index) of the first approval transaction."] - #[doc = "- `call_hash`: The hash of the call to be executed."] - #[doc = ""] - #[doc = "NOTE: If this is the final approval, you will want to use `as_multi` instead."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(S)`."] - #[doc = "- Up to one balance-reserve or unreserve operation."] - #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] - #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] - #[doc = "- One encode & hash, both of complexity `O(S)`."] - #[doc = "- Up to one binary search and insert (`O(logS + S)`)."] - #[doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] - #[doc = "- One event."] - #[doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] - #[doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] - #[doc = "----------------------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Read: Multisig Storage, [Caller Account]"] - #[doc = " - Write: Multisig Storage, [Caller Account]"] - #[doc = "# "] + #[doc = "See [`Pallet::approve_as_multi`]."] pub fn approve_as_multi( &self, threshold: ::core::primitive::u16, @@ -20694,32 +19563,7 @@ pub mod api { ) } - #[doc = "Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously"] - #[doc = "for this operation will be unreserved on success."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] - #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] - #[doc = "dispatch. May not be empty."] - #[doc = "- `timepoint`: The timepoint (block number and transaction index) of the first approval"] - #[doc = "transaction for this dispatch."] - #[doc = "- `call_hash`: The hash of the call to be executed."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(S)`."] - #[doc = "- Up to one balance-reserve or unreserve operation."] - #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] - #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] - #[doc = "- One encode & hash, both of complexity `O(S)`."] - #[doc = "- One event."] - #[doc = "- I/O: 1 read `O(S)`, one remove."] - #[doc = "- Storage: removes one item."] - #[doc = "----------------------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Read: Multisig Storage, [Caller Account], Refund Account"] - #[doc = " - Write: Multisig Storage, [Caller Account], Refund Account"] - #[doc = "# "] + #[doc = "See [`Pallet::cancel_as_multi`]."] pub fn cancel_as_multi( &self, threshold: ::core::primitive::u16, @@ -20746,7 +19590,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_multisig::pallet::Event; pub mod events { use super::runtime_types; @@ -20955,9 +19799,9 @@ pub mod api { } pub mod voter_list { use super::{root_mod, runtime_types}; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_bags_list::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_bags_list::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -21013,16 +19857,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Declare that some `dislocated` account has, through rewards or penalties, sufficiently"] - #[doc = "changed its score that it should properly fall into a different bag than its current"] - #[doc = "one."] - #[doc = ""] - #[doc = "Anyone can call this function about any potentially dislocated account."] - #[doc = ""] - #[doc = "Will always update the stored score of `dislocated` to the correct score, based on"] - #[doc = "`ScoreProvider`."] - #[doc = ""] - #[doc = "If `dislocated` does not exists, it returns an error."] + #[doc = "See [`Pallet::rebag`]."] pub fn rebag( &self, dislocated: ::subxt::utils::MultiAddress< @@ -21042,14 +19877,7 @@ pub mod api { ) } - #[doc = "Move the caller's Id directly in front of `lighter`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and can only be called by the Id of"] - #[doc = "the account going in front of `lighter`."] - #[doc = ""] - #[doc = "Only works if"] - #[doc = "- both nodes are within the same bag,"] - #[doc = "- and `origin` has a greater `Score` than `lighter`."] + #[doc = "See [`Pallet::put_in_front_of`]."] pub fn put_in_front_of( &self, lighter: ::subxt::utils::MultiAddress< @@ -21071,7 +19899,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_bags_list::pallet::Event; pub mod events { use super::runtime_types; @@ -21314,9 +20142,9 @@ pub mod api { } pub mod nomination_pools { use super::{root_mod, runtime_types}; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_nomination_pools::pallet::Error; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_nomination_pools::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -21478,7 +20306,7 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u32, >, - pub state_toggler: ::subxt::utils::MultiAddress< + pub bouncer: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, >, @@ -21511,7 +20339,7 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u32, >, - pub state_toggler: ::subxt::utils::MultiAddress< + pub bouncer: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, >, @@ -21608,6 +20436,9 @@ pub mod api { runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u32>, pub max_members_per_pool: runtime_types::pallet_nomination_pools::ConfigOp<::core::primitive::u32>, + pub global_max_commission: runtime_types::pallet_nomination_pools::ConfigOp< + runtime_types::sp_arithmetic::per_things::Perbill, + >, } impl ::subxt::blocks::StaticExtrinsic for SetConfigs { const CALL: &'static str = "set_configs"; @@ -21634,7 +20465,7 @@ pub mod api { pub new_nominator: runtime_types::pallet_nomination_pools::ConfigOp< ::subxt::utils::AccountId32, >, - pub new_state_toggler: runtime_types::pallet_nomination_pools::ConfigOp< + pub new_bouncer: runtime_types::pallet_nomination_pools::ConfigOp< ::subxt::utils::AccountId32, >, } @@ -21663,19 +20494,164 @@ pub mod api { const CALL: &'static str = "chill"; const PALLET: &'static str = "NominationPools"; } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BondExtraOther { + pub member: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + pub extra: + runtime_types::pallet_nomination_pools::BondExtra<::core::primitive::u128>, + } + impl ::subxt::blocks::StaticExtrinsic for BondExtraOther { + const CALL: &'static str = "bond_extra_other"; + const PALLET: &'static str = "NominationPools"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetClaimPermission { + pub permission: runtime_types::pallet_nomination_pools::ClaimPermission, + } + impl ::subxt::blocks::StaticExtrinsic for SetClaimPermission { + const CALL: &'static str = "set_claim_permission"; + const PALLET: &'static str = "NominationPools"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ClaimPayoutOther { + pub other: ::subxt::utils::AccountId32, + } + impl ::subxt::blocks::StaticExtrinsic for ClaimPayoutOther { + const CALL: &'static str = "claim_payout_other"; + const PALLET: &'static str = "NominationPools"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetCommission { + pub pool_id: ::core::primitive::u32, + pub new_commission: ::core::option::Option<( + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::utils::AccountId32, + )>, + } + impl ::subxt::blocks::StaticExtrinsic for SetCommission { + const CALL: &'static str = "set_commission"; + const PALLET: &'static str = "NominationPools"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetCommissionMax { + pub pool_id: ::core::primitive::u32, + pub max_commission: runtime_types::sp_arithmetic::per_things::Perbill, + } + impl ::subxt::blocks::StaticExtrinsic for SetCommissionMax { + const CALL: &'static str = "set_commission_max"; + const PALLET: &'static str = "NominationPools"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SetCommissionChangeRate { + pub pool_id: ::core::primitive::u32, + pub change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< + ::core::primitive::u32, + >, + } + impl ::subxt::blocks::StaticExtrinsic for SetCommissionChangeRate { + const CALL: &'static str = "set_commission_change_rate"; + const PALLET: &'static str = "NominationPools"; + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ClaimCommission { + pub pool_id: ::core::primitive::u32, + } + impl ::subxt::blocks::StaticExtrinsic for ClaimCommission { + const CALL: &'static str = "claim_commission"; + const PALLET: &'static str = "NominationPools"; + } } pub struct TransactionApi; impl TransactionApi { - #[doc = "Stake funds with a pool. The amount to bond is transferred from the member to the"] - #[doc = "pools account and immediately increases the pools bond."] - #[doc = ""] - #[doc = "# Note"] - #[doc = ""] - #[doc = "* An account can only be a member of a single pool."] - #[doc = "* An account cannot join the same pool multiple times."] - #[doc = "* This call will *not* dust the member account, so the member must have at least"] - #[doc = " `existential deposit + amount` in their account."] - #[doc = "* Only a pool with [`PoolState::Open`] can be joined"] + #[doc = "See [`Pallet::join`]."] pub fn join( &self, amount: ::core::primitive::u128, @@ -21693,12 +20669,7 @@ pub mod api { ) } - #[doc = "Bond `extra` more funds from `origin` into the pool to which they already belong."] - #[doc = ""] - #[doc = "Additional funds can come from either the free balance of the account, of from the"] - #[doc = "accumulated rewards, see [`BondExtra`]."] - #[doc = ""] - #[doc = "Bonding extra funds implies an automatic payout of all pending rewards as well."] + #[doc = "See [`Pallet::bond_extra`]."] pub fn bond_extra( &self, extra: runtime_types::pallet_nomination_pools::BondExtra< @@ -21718,12 +20689,7 @@ pub mod api { ) } - #[doc = "A bonded member can use this to claim their payout based on the rewards that the pool"] - #[doc = "has accumulated since their last claimed payout (OR since joining if this is there first"] - #[doc = "time claiming rewards). The payout will be transferred to the member's account."] - #[doc = ""] - #[doc = "The member will earn rewards pro rata based on the members stake vs the sum of the"] - #[doc = "members in the pools stake. Rewards do not \"expire\"."] + #[doc = "See [`Pallet::claim_payout`]."] pub fn claim_payout(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", @@ -21737,37 +20703,7 @@ pub mod api { ) } - #[doc = "Unbond up to `unbonding_points` of the `member_account`'s funds from the pool. It"] - #[doc = "implicitly collects the rewards one last time, since not doing so would mean some"] - #[doc = "rewards would be forfeited."] - #[doc = ""] - #[doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] - #[doc = "account)."] - #[doc = ""] - #[doc = "# Conditions for a permissionless dispatch."] - #[doc = ""] - #[doc = "* The pool is blocked and the caller is either the root or state-toggler. This is"] - #[doc = " refereed to as a kick."] - #[doc = "* The pool is destroying and the member is not the depositor."] - #[doc = "* The pool is destroying, the member is the depositor and no other members are in the"] - #[doc = " pool."] - #[doc = ""] - #[doc = "## Conditions for permissioned dispatch (i.e. the caller is also the"] - #[doc = "`member_account`):"] - #[doc = ""] - #[doc = "* The caller is not the depositor."] - #[doc = "* The caller is the depositor, the pool is destroying and no other members are in the"] - #[doc = " pool."] - #[doc = ""] - #[doc = "# Note"] - #[doc = ""] - #[doc = "If there are too many unlocking chunks to unbond with the pool account,"] - #[doc = "[`Call::pool_withdraw_unbonded`] can be called to try and minimize unlocking chunks."] - #[doc = "The [`StakingInterface::unbond`] will implicitly call [`Call::pool_withdraw_unbonded`]"] - #[doc = "to try to free chunks if necessary (ie. if unbound was called and no unlocking chunks"] - #[doc = "are available). However, it may not be possible to release the current unlocking chunks,"] - #[doc = "in which case, the result of this call will likely be the `NoMoreChunks` error from the"] - #[doc = "staking system."] + #[doc = "See [`Pallet::unbond`]."] pub fn unbond( &self, member_account: ::subxt::utils::MultiAddress< @@ -21791,12 +20727,7 @@ pub mod api { ) } - #[doc = "Call `withdraw_unbonded` for the pools account. This call can be made by any account."] - #[doc = ""] - #[doc = "This is useful if their are too many unlocking chunks to call `unbond`, and some"] - #[doc = "can be cleared by withdrawing. In the case there are too many unlocking chunks, the user"] - #[doc = "would probably see an error like `NoMoreChunks` emitted from the staking system when"] - #[doc = "they attempt to unbond."] + #[doc = "See [`Pallet::pool_withdraw_unbonded`]."] pub fn pool_withdraw_unbonded( &self, pool_id: ::core::primitive::u32, @@ -21811,31 +20742,13 @@ pub mod api { }, [ 234u8, 49u8, 43u8, 199u8, 55u8, 2u8, 252u8, 39u8, 147u8, 136u8, 34u8, - 239u8, 116u8, 155u8, 129u8, 72u8, 83u8, 161u8, 90u8, 207u8, 1u8, 193u8, - 254u8, 47u8, 40u8, 185u8, 67u8, 55u8, 238u8, 122u8, 140u8, 230u8, - ], - ) - } - - #[doc = "Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an"] - #[doc = "error is returned."] - #[doc = ""] - #[doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] - #[doc = "account)."] - #[doc = ""] - #[doc = "# Conditions for a permissionless dispatch"] - #[doc = ""] - #[doc = "* The pool is in destroy mode and the target is not the depositor."] - #[doc = "* The target is the depositor and they are the only member in the sub pools."] - #[doc = "* The pool is blocked and the caller is either the root or state-toggler."] - #[doc = ""] - #[doc = "# Conditions for permissioned dispatch"] - #[doc = ""] - #[doc = "* The caller is the target and they are not the depositor."] - #[doc = ""] - #[doc = "# Note"] - #[doc = ""] - #[doc = "If the target is the depositor, the pool will be destroyed."] + 239u8, 116u8, 155u8, 129u8, 72u8, 83u8, 161u8, 90u8, 207u8, 1u8, 193u8, + 254u8, 47u8, 40u8, 185u8, 67u8, 55u8, 238u8, 122u8, 140u8, 230u8, + ], + ) + } + + #[doc = "See [`Pallet::withdraw_unbonded`]."] pub fn withdraw_unbonded( &self, member_account: ::subxt::utils::MultiAddress< @@ -21859,23 +20772,7 @@ pub mod api { ) } - #[doc = "Create a new delegation pool."] - #[doc = ""] - #[doc = "# Arguments"] - #[doc = ""] - #[doc = "* `amount` - The amount of funds to delegate to the pool. This also acts of a sort of"] - #[doc = " deposit since the pools creator cannot fully unbond funds until the pool is being"] - #[doc = " destroyed."] - #[doc = "* `index` - A disambiguation index for creating the account. Likely only useful when"] - #[doc = " creating multiple pools in the same extrinsic."] - #[doc = "* `root` - The account to set as [`PoolRoles::root`]."] - #[doc = "* `nominator` - The account to set as the [`PoolRoles::nominator`]."] - #[doc = "* `state_toggler` - The account to set as the [`PoolRoles::state_toggler`]."] - #[doc = ""] - #[doc = "# Note"] - #[doc = ""] - #[doc = "In addition to `amount`, the caller will transfer the existential deposit; so the caller"] - #[doc = "needs at have at least `amount + existential_deposit` transferrable."] + #[doc = "See [`Pallet::create`]."] pub fn create( &self, amount: ::core::primitive::u128, @@ -21887,7 +20784,7 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u32, >, - state_toggler: ::subxt::utils::MultiAddress< + bouncer: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, >, @@ -21899,23 +20796,18 @@ pub mod api { amount, root, nominator, - state_toggler, + bouncer, }, [ - 249u8, 135u8, 178u8, 135u8, 148u8, 28u8, 232u8, 17u8, 166u8, 105u8, - 98u8, 216u8, 201u8, 186u8, 74u8, 174u8, 216u8, 25u8, 34u8, 206u8, - 107u8, 36u8, 248u8, 52u8, 239u8, 23u8, 87u8, 27u8, 4u8, 42u8, 205u8, - 180u8, + 4u8, 111u8, 53u8, 212u8, 226u8, 159u8, 144u8, 191u8, 152u8, 252u8, + 30u8, 169u8, 185u8, 150u8, 229u8, 234u8, 140u8, 46u8, 237u8, 197u8, + 164u8, 233u8, 184u8, 60u8, 51u8, 184u8, 71u8, 40u8, 61u8, 140u8, 204u8, + 100u8, ], ) } - #[doc = "Create a new delegation pool with a previously used pool id"] - #[doc = ""] - #[doc = "# Arguments"] - #[doc = ""] - #[doc = "same as `create` with the inclusion of"] - #[doc = "* `pool_id` - `A valid PoolId."] + #[doc = "See [`Pallet::create_with_pool_id`]."] pub fn create_with_pool_id( &self, amount: ::core::primitive::u128, @@ -21927,7 +20819,7 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u32, >, - state_toggler: ::subxt::utils::MultiAddress< + bouncer: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, >, @@ -21940,24 +20832,18 @@ pub mod api { amount, root, nominator, - state_toggler, + bouncer, pool_id, }, [ - 219u8, 136u8, 46u8, 64u8, 62u8, 176u8, 117u8, 59u8, 234u8, 215u8, - 205u8, 226u8, 39u8, 96u8, 214u8, 74u8, 209u8, 130u8, 2u8, 242u8, 105u8, - 105u8, 114u8, 7u8, 255u8, 177u8, 207u8, 189u8, 133u8, 38u8, 54u8, 14u8, + 102u8, 254u8, 178u8, 47u8, 79u8, 12u8, 230u8, 142u8, 226u8, 205u8, + 25u8, 166u8, 133u8, 0u8, 172u8, 58u8, 75u8, 96u8, 71u8, 187u8, 237u8, + 173u8, 156u8, 20u8, 78u8, 48u8, 62u8, 35u8, 130u8, 8u8, 117u8, 222u8, ], ) } - #[doc = "Nominate on behalf of the pool."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed by the pool nominator or the pool"] - #[doc = "root role."] - #[doc = ""] - #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] - #[doc = "account."] + #[doc = "See [`Pallet::nominate`]."] pub fn nominate( &self, pool_id: ::core::primitive::u32, @@ -21978,16 +20864,7 @@ pub mod api { ) } - #[doc = "Set a new state for the pool."] - #[doc = ""] - #[doc = "If a pool is already in the `Destroying` state, then under no condition can its state"] - #[doc = "change again."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be either:"] - #[doc = ""] - #[doc = "1. signed by the state toggler, or the root role of the pool,"] - #[doc = "2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and"] - #[doc = " then the state of the pool can be permissionlessly changed to `Destroying`."] + #[doc = "See [`Pallet::set_state`]."] pub fn set_state( &self, pool_id: ::core::primitive::u32, @@ -22005,10 +20882,7 @@ pub mod api { ) } - #[doc = "Set a new metadata for the pool."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed by the state toggler, or the root role"] - #[doc = "of the pool."] + #[doc = "See [`Pallet::set_metadata`]."] pub fn set_metadata( &self, pool_id: ::core::primitive::u32, @@ -22026,16 +20900,7 @@ pub mod api { ) } - #[doc = "Update configurations for the nomination pools. The origin for this call must be"] - #[doc = "Root."] - #[doc = ""] - #[doc = "# Arguments"] - #[doc = ""] - #[doc = "* `min_join_bond` - Set [`MinJoinBond`]."] - #[doc = "* `min_create_bond` - Set [`MinCreateBond`]."] - #[doc = "* `max_pools` - Set [`MaxPools`]."] - #[doc = "* `max_members` - Set [`MaxPoolMembers`]."] - #[doc = "* `max_members_per_pool` - Set [`MaxPoolMembersPerPool`]."] + #[doc = "See [`Pallet::set_configs`]."] pub fn set_configs( &self, min_join_bond: runtime_types::pallet_nomination_pools::ConfigOp< @@ -22053,6 +20918,9 @@ pub mod api { max_members_per_pool: runtime_types::pallet_nomination_pools::ConfigOp< ::core::primitive::u32, >, + global_max_commission: runtime_types::pallet_nomination_pools::ConfigOp< + runtime_types::sp_arithmetic::per_things::Perbill, + >, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "NominationPools", @@ -22063,23 +20931,17 @@ pub mod api { max_pools, max_members, max_members_per_pool, + global_max_commission, }, [ - 159u8, 173u8, 159u8, 173u8, 71u8, 89u8, 0u8, 145u8, 157u8, 103u8, 25u8, - 84u8, 129u8, 159u8, 154u8, 60u8, 67u8, 155u8, 13u8, 162u8, 173u8, - 250u8, 168u8, 215u8, 134u8, 141u8, 58u8, 190u8, 90u8, 213u8, 239u8, - 216u8, + 60u8, 29u8, 13u8, 45u8, 37u8, 171u8, 129u8, 133u8, 127u8, 42u8, 104u8, + 45u8, 29u8, 58u8, 209u8, 48u8, 119u8, 255u8, 86u8, 13u8, 243u8, 124u8, + 57u8, 250u8, 156u8, 189u8, 59u8, 88u8, 64u8, 109u8, 219u8, 68u8, ], ) } - #[doc = "Update the roles of the pool."] - #[doc = ""] - #[doc = "The root is the only entity that can change any of the roles, including itself,"] - #[doc = "excluding the depositor, who can never change."] - #[doc = ""] - #[doc = "It emits an event, notifying UIs of the role change. This event is quite relevant to"] - #[doc = "most pool members and they should be informed of changes to pool roles."] + #[doc = "See [`Pallet::update_roles`]."] pub fn update_roles( &self, pool_id: ::core::primitive::u32, @@ -22089,7 +20951,7 @@ pub mod api { new_nominator: runtime_types::pallet_nomination_pools::ConfigOp< ::subxt::utils::AccountId32, >, - new_state_toggler: runtime_types::pallet_nomination_pools::ConfigOp< + new_bouncer: runtime_types::pallet_nomination_pools::ConfigOp< ::subxt::utils::AccountId32, >, ) -> ::subxt::tx::Payload { @@ -22100,24 +20962,17 @@ pub mod api { pool_id, new_root, new_nominator, - new_state_toggler, + new_bouncer, }, [ - 90u8, 1u8, 203u8, 203u8, 244u8, 135u8, 104u8, 176u8, 166u8, 208u8, - 125u8, 144u8, 194u8, 125u8, 225u8, 246u8, 247u8, 5u8, 140u8, 222u8, - 48u8, 111u8, 57u8, 39u8, 240u8, 96u8, 53u8, 29u8, 134u8, 198u8, 129u8, - 223u8, + 58u8, 51u8, 136u8, 162u8, 218u8, 195u8, 121u8, 6u8, 243u8, 69u8, 19u8, + 130u8, 152u8, 180u8, 226u8, 28u8, 0u8, 218u8, 237u8, 56u8, 52u8, 139u8, + 198u8, 155u8, 112u8, 165u8, 142u8, 44u8, 111u8, 197u8, 123u8, 246u8, ], ) } - #[doc = "Chill on behalf of the pool."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed by the pool nominator or the pool"] - #[doc = "root role, same as [`Pallet::nominate`]."] - #[doc = ""] - #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] - #[doc = "account."] + #[doc = "See [`Pallet::chill`]."] pub fn chill( &self, pool_id: ::core::primitive::u32, @@ -22133,6 +20988,152 @@ pub mod api { ], ) } + + #[doc = "See [`Pallet::bond_extra_other`]."] + pub fn bond_extra_other( + &self, + member: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + extra: runtime_types::pallet_nomination_pools::BondExtra< + ::core::primitive::u128, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "bond_extra_other", + types::BondExtraOther { member, extra }, + [ + 217u8, 91u8, 160u8, 244u8, 122u8, 153u8, 236u8, 132u8, 197u8, 31u8, + 124u8, 22u8, 89u8, 146u8, 173u8, 96u8, 167u8, 220u8, 91u8, 27u8, 230u8, + 128u8, 222u8, 128u8, 97u8, 53u8, 226u8, 222u8, 165u8, 133u8, 54u8, + 236u8, + ], + ) + } + + #[doc = "See [`Pallet::set_claim_permission`]."] + pub fn set_claim_permission( + &self, + permission: runtime_types::pallet_nomination_pools::ClaimPermission, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "set_claim_permission", + types::SetClaimPermission { permission }, + [ + 36u8, 137u8, 193u8, 200u8, 57u8, 46u8, 87u8, 236u8, 180u8, 170u8, 90u8, + 99u8, 137u8, 123u8, 99u8, 197u8, 113u8, 119u8, 72u8, 153u8, 207u8, + 189u8, 69u8, 89u8, 225u8, 115u8, 45u8, 32u8, 216u8, 43u8, 92u8, 135u8, + ], + ) + } + + #[doc = "See [`Pallet::claim_payout_other`]."] + pub fn claim_payout_other( + &self, + other: ::subxt::utils::AccountId32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "claim_payout_other", + types::ClaimPayoutOther { other }, + [ + 202u8, 130u8, 122u8, 10u8, 159u8, 181u8, 124u8, 215u8, 23u8, 85u8, + 234u8, 178u8, 169u8, 41u8, 204u8, 226u8, 195u8, 69u8, 168u8, 88u8, + 58u8, 15u8, 3u8, 227u8, 180u8, 183u8, 62u8, 224u8, 39u8, 218u8, 75u8, + 166u8, + ], + ) + } + + #[doc = "See [`Pallet::set_commission`]."] + pub fn set_commission( + &self, + pool_id: ::core::primitive::u32, + new_commission: ::core::option::Option<( + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::utils::AccountId32, + )>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "set_commission", + types::SetCommission { + pool_id, + new_commission, + }, + [ + 144u8, 94u8, 73u8, 69u8, 224u8, 158u8, 244u8, 77u8, 169u8, 219u8, + 101u8, 41u8, 37u8, 211u8, 198u8, 32u8, 92u8, 108u8, 7u8, 27u8, 153u8, + 37u8, 82u8, 174u8, 196u8, 176u8, 196u8, 181u8, 45u8, 81u8, 134u8, + 162u8, + ], + ) + } + + #[doc = "See [`Pallet::set_commission_max`]."] + pub fn set_commission_max( + &self, + pool_id: ::core::primitive::u32, + max_commission: runtime_types::sp_arithmetic::per_things::Perbill, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "set_commission_max", + types::SetCommissionMax { + pool_id, + max_commission, + }, + [ + 180u8, 80u8, 204u8, 129u8, 141u8, 86u8, 45u8, 76u8, 224u8, 123u8, + 212u8, 38u8, 224u8, 79u8, 41u8, 143u8, 237u8, 174u8, 126u8, 1u8, 215u8, + 105u8, 50u8, 46u8, 151u8, 11u8, 118u8, 198u8, 183u8, 95u8, 47u8, 71u8, + ], + ) + } + + #[doc = "See [`Pallet::set_commission_change_rate`]."] + pub fn set_commission_change_rate( + &self, + pool_id: ::core::primitive::u32, + change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< + ::core::primitive::u32, + >, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "set_commission_change_rate", + types::SetCommissionChangeRate { + pool_id, + change_rate, + }, + [ + 138u8, 30u8, 155u8, 127u8, 181u8, 99u8, 89u8, 138u8, 130u8, 53u8, + 224u8, 96u8, 190u8, 14u8, 76u8, 244u8, 142u8, 50u8, 39u8, 245u8, 144u8, + 87u8, 64u8, 206u8, 246u8, 225u8, 111u8, 197u8, 245u8, 182u8, 121u8, + 56u8, + ], + ) + } + + #[doc = "See [`Pallet::claim_commission`]."] + pub fn claim_commission( + &self, + pool_id: ::core::primitive::u32, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "NominationPools", + "claim_commission", + types::ClaimCommission { pool_id }, + [ + 51u8, 64u8, 163u8, 230u8, 2u8, 119u8, 68u8, 5u8, 154u8, 4u8, 84u8, + 149u8, 9u8, 195u8, 173u8, 37u8, 98u8, 48u8, 188u8, 65u8, 81u8, 11u8, + 64u8, 254u8, 126u8, 62u8, 29u8, 204u8, 92u8, 230u8, 240u8, 91u8, + ], + ) + } } } #[doc = "Events of this pallet."] @@ -22357,7 +21358,7 @@ pub mod api { #[doc = "can never change."] pub struct RolesUpdated { pub root: ::core::option::Option<::subxt::utils::AccountId32>, - pub state_toggler: ::core::option::Option<::subxt::utils::AccountId32>, + pub bouncer: ::core::option::Option<::subxt::utils::AccountId32>, pub nominator: ::core::option::Option<::subxt::utils::AccountId32>, } impl ::subxt::events::StaticEvent for RolesUpdated { @@ -22409,6 +21410,99 @@ pub mod api { const EVENT: &'static str = "UnbondingPoolSlashed"; const PALLET: &'static str = "NominationPools"; } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A pool's commission setting has been changed."] + pub struct PoolCommissionUpdated { + pub pool_id: ::core::primitive::u32, + pub current: ::core::option::Option<( + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::utils::AccountId32, + )>, + } + impl ::subxt::events::StaticEvent for PoolCommissionUpdated { + const EVENT: &'static str = "PoolCommissionUpdated"; + const PALLET: &'static str = "NominationPools"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A pool's maximum commission setting has been changed."] + pub struct PoolMaxCommissionUpdated { + pub pool_id: ::core::primitive::u32, + pub max_commission: runtime_types::sp_arithmetic::per_things::Perbill, + } + impl ::subxt::events::StaticEvent for PoolMaxCommissionUpdated { + const EVENT: &'static str = "PoolMaxCommissionUpdated"; + const PALLET: &'static str = "NominationPools"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "A pool's commission `change_rate` has been changed."] + pub struct PoolCommissionChangeRateUpdated { + pub pool_id: ::core::primitive::u32, + pub change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< + ::core::primitive::u32, + >, + } + impl ::subxt::events::StaticEvent for PoolCommissionChangeRateUpdated { + const EVENT: &'static str = "PoolCommissionChangeRateUpdated"; + const PALLET: &'static str = "NominationPools"; + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Pool commission has been claimed."] + pub struct PoolCommissionClaimed { + pub pool_id: ::core::primitive::u32, + pub commission: ::core::primitive::u128, + } + impl ::subxt::events::StaticEvent for PoolCommissionClaimed { + const EVENT: &'static str = "PoolCommissionClaimed"; + const PALLET: &'static str = "NominationPools"; + } } pub mod storage { use super::runtime_types; @@ -22536,6 +21630,31 @@ pub mod api { ) } + #[doc = " The maximum commission that can be charged by a pool. Used on commission payouts to bound"] + #[doc = " pool commissions that are > `GlobalMaxCommission`, necessary if a future"] + #[doc = " `GlobalMaxCommission` is lower than some current pool commissions."] + pub fn global_max_commission( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::storage::address::Yes, + (), + (), + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "GlobalMaxCommission", + vec![], + [ + 2u8, 112u8, 8u8, 116u8, 114u8, 97u8, 250u8, 106u8, 170u8, 215u8, 218u8, + 217u8, 80u8, 235u8, 149u8, 81u8, 85u8, 185u8, 201u8, 127u8, 107u8, + 251u8, 191u8, 231u8, 142u8, 74u8, 8u8, 70u8, 151u8, 238u8, 117u8, + 173u8, + ], + ) + } + #[doc = " Active members."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] @@ -22628,10 +21747,10 @@ pub mod api { _0.borrow(), )], [ - 29u8, 112u8, 96u8, 33u8, 199u8, 248u8, 75u8, 7u8, 24u8, 36u8, 87u8, - 58u8, 109u8, 128u8, 254u8, 113u8, 166u8, 153u8, 55u8, 67u8, 163u8, - 221u8, 234u8, 171u8, 134u8, 254u8, 213u8, 66u8, 21u8, 183u8, 129u8, - 24u8, + 171u8, 143u8, 96u8, 95u8, 196u8, 228u8, 116u8, 22u8, 63u8, 105u8, + 193u8, 77u8, 171u8, 99u8, 144u8, 70u8, 166u8, 55u8, 14u8, 191u8, 156u8, + 17u8, 237u8, 193u8, 228u8, 243u8, 164u8, 187u8, 127u8, 245u8, 117u8, + 238u8, ], ) } @@ -22651,10 +21770,10 @@ pub mod api { "BondedPools", Vec::new(), [ - 29u8, 112u8, 96u8, 33u8, 199u8, 248u8, 75u8, 7u8, 24u8, 36u8, 87u8, - 58u8, 109u8, 128u8, 254u8, 113u8, 166u8, 153u8, 55u8, 67u8, 163u8, - 221u8, 234u8, 171u8, 134u8, 254u8, 213u8, 66u8, 21u8, 183u8, 129u8, - 24u8, + 171u8, 143u8, 96u8, 95u8, 196u8, 228u8, 116u8, 22u8, 63u8, 105u8, + 193u8, 77u8, 171u8, 99u8, 144u8, 70u8, 166u8, 55u8, 14u8, 191u8, 156u8, + 17u8, 237u8, 193u8, 228u8, 243u8, 164u8, 187u8, 127u8, 245u8, 117u8, + 238u8, ], ) } @@ -22681,8 +21800,8 @@ pub mod api { ) } - #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout"] - #[doc = " is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] + #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout is"] + #[doc = " claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] pub fn reward_pools( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -22700,16 +21819,16 @@ pub mod api { _0.borrow(), )], [ - 174u8, 33u8, 134u8, 109u8, 68u8, 246u8, 32u8, 47u8, 244u8, 141u8, - 233u8, 200u8, 126u8, 35u8, 233u8, 145u8, 194u8, 123u8, 51u8, 148u8, - 5u8, 228u8, 224u8, 32u8, 2u8, 115u8, 57u8, 10u8, 36u8, 100u8, 69u8, - 61u8, + 150u8, 53u8, 204u8, 26u8, 187u8, 118u8, 80u8, 133u8, 94u8, 127u8, + 155u8, 78u8, 71u8, 72u8, 0u8, 220u8, 174u8, 174u8, 109u8, 238u8, 13u8, + 120u8, 193u8, 102u8, 219u8, 22u8, 89u8, 117u8, 169u8, 212u8, 64u8, + 204u8, ], ) } - #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout"] - #[doc = " is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] + #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout is"] + #[doc = " claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] pub fn reward_pools_root( &self, ) -> ::subxt::storage::address::Address< @@ -22724,10 +21843,10 @@ pub mod api { "RewardPools", Vec::new(), [ - 174u8, 33u8, 134u8, 109u8, 68u8, 246u8, 32u8, 47u8, 244u8, 141u8, - 233u8, 200u8, 126u8, 35u8, 233u8, 145u8, 194u8, 123u8, 51u8, 148u8, - 5u8, 228u8, 224u8, 32u8, 2u8, 115u8, 57u8, 10u8, 36u8, 100u8, 69u8, - 61u8, + 150u8, 53u8, 204u8, 26u8, 187u8, 118u8, 80u8, 133u8, 94u8, 127u8, + 155u8, 78u8, 71u8, 72u8, 0u8, 220u8, 174u8, 174u8, 109u8, 238u8, 13u8, + 120u8, 193u8, 102u8, 219u8, 22u8, 89u8, 117u8, 169u8, 212u8, 64u8, + 204u8, ], ) } @@ -22755,8 +21874,8 @@ pub mod api { ) } - #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,"] - #[doc = " hence the name sub-pools. Keyed by the bonded pools account."] + #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a"] + #[doc = " bonded pool, hence the name sub-pools. Keyed by the bonded pools account."] pub fn sub_pools_storage( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -22781,8 +21900,8 @@ pub mod api { ) } - #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,"] - #[doc = " hence the name sub-pools. Keyed by the bonded pools account."] + #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a"] + #[doc = " bonded pool, hence the name sub-pools. Keyed by the bonded pools account."] pub fn sub_pools_storage_root( &self, ) -> ::subxt::storage::address::Address< @@ -22833,7 +21952,9 @@ pub mod api { _0: impl ::std::borrow::Borrow<::core::primitive::u32>, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec<::core::primitive::u8>, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -22857,7 +21978,9 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec<::core::primitive::u8>, + runtime_types::bounded_collections::bounded_vec::BoundedVec< + ::core::primitive::u8, + >, (), ::subxt::storage::address::Yes, ::subxt::storage::address::Yes, @@ -22995,6 +22118,53 @@ pub mod api { ], ) } + + #[doc = " Map from a pool member account to their opted claim permission."] + pub fn claim_permissions( + &self, + _0: impl ::std::borrow::Borrow<::subxt::utils::AccountId32>, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::ClaimPermission, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "ClaimPermissions", + vec![::subxt::storage::address::make_static_storage_map_key( + _0.borrow(), + )], + [ + 98u8, 241u8, 185u8, 102u8, 61u8, 53u8, 215u8, 105u8, 2u8, 148u8, 197u8, + 17u8, 107u8, 253u8, 74u8, 159u8, 14u8, 30u8, 213u8, 38u8, 35u8, 163u8, + 249u8, 19u8, 140u8, 201u8, 182u8, 106u8, 0u8, 21u8, 102u8, 15u8, + ], + ) + } + + #[doc = " Map from a pool member account to their opted claim permission."] + pub fn claim_permissions_root( + &self, + ) -> ::subxt::storage::address::Address< + ::subxt::storage::address::StaticStorageMapKey, + runtime_types::pallet_nomination_pools::ClaimPermission, + (), + ::subxt::storage::address::Yes, + ::subxt::storage::address::Yes, + > { + ::subxt::storage::address::Address::new_static( + "NominationPools", + "ClaimPermissions", + Vec::new(), + [ + 98u8, 241u8, 185u8, 102u8, 61u8, 53u8, 215u8, 105u8, 2u8, 148u8, 197u8, + 17u8, 107u8, 253u8, 74u8, 159u8, 14u8, 30u8, 213u8, 38u8, 35u8, 163u8, + 249u8, 19u8, 140u8, 201u8, 182u8, 106u8, 0u8, 21u8, 102u8, 15u8, + ], + ) + } } } pub mod constants { @@ -23321,6 +22491,60 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BlockLengthRows(#[codec(compact)] pub ::core::primitive::u32); } + pub mod bounded_collections { + use super::runtime_types; + pub mod bounded_btree_map { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BoundedBTreeMap<_0, _1>(pub ::subxt::utils::KeyedVec<_0, _1>); + } + pub mod bounded_vec { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BoundedVec<_0>(pub ::std::vec::Vec<_0>); + } + pub mod weak_bounded_vec { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>); + } + } pub mod da_control { use super::runtime_types; pub mod extensions { @@ -23375,22 +22599,24 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Creates an application key if `key` does not exist yet."] + #[doc = "See [`Pallet::create_application_key`]."] create_application_key { - key: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + key: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, }, #[codec(index = 1)] + #[doc = "See [`Pallet::submit_data`]."] submit_data { - data: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + data: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, }, #[codec(index = 2)] + #[doc = "See [`Pallet::submit_block_length_proposal`]."] submit_block_length_proposal { rows: ::core::primitive::u32, cols: ::core::primitive::u32, @@ -23454,7 +22680,7 @@ pub mod api { #[codec(index = 0)] #[doc = "A new application key was created."] ApplicationKeyCreated { - key: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + key: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, owner: ::subxt::utils::AccountId32, @@ -23463,7 +22689,7 @@ pub mod api { #[codec(index = 1)] DataSubmitted { who: ::subxt::utils::AccountId32, - data: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + data: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, }, @@ -23669,7 +22895,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SessionKeys { pub babe: runtime_types::sp_consensus_babe::app::Public, - pub grandpa: runtime_types::sp_finality_grandpa::app::Public, + pub grandpa: runtime_types::sp_consensus_grandpa::app::Public, pub im_online: runtime_types::pallet_im_online::sr25519::app_sr25519::Public, pub authority_discovery: runtime_types::sp_authority_discovery::app::Public, } @@ -23737,8 +22963,6 @@ pub mod api { Babe(runtime_types::pallet_babe::pallet::Call), #[codec(index = 3)] Timestamp(runtime_types::pallet_timestamp::pallet::Call), - #[codec(index = 4)] - Authorship(runtime_types::pallet_authorship::pallet::Call), #[codec(index = 5)] Indices(runtime_types::pallet_indices::pallet::Call), #[codec(index = 6)] @@ -23867,6 +23091,20 @@ pub mod api { #[codec(index = 36)] NominationPools(runtime_types::pallet_nomination_pools::pallet::Event), } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RuntimeHoldReason {} } pub mod finality_grandpa { use super::runtime_types; @@ -24028,26 +23266,6 @@ pub mod api { } pub mod traits { use super::runtime_types; - pub mod misc { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct WrapperOpaque<_0>( - #[codec(compact)] pub ::core::primitive::u32, - pub _0, - ); - } pub mod preimages { use super::runtime_types; #[derive( @@ -24070,7 +23288,7 @@ pub mod api { }, #[codec(index = 1)] Inline( - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, ), @@ -24329,51 +23547,28 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Make some on-chain remark."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(1)`"] - #[doc = "# "] + #[doc = "See [`Pallet::remark`]."] remark { remark: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] - #[doc = "Set the number of pages in the WebAssembly environment's heap."] + #[doc = "See [`Pallet::set_heap_pages`]."] set_heap_pages { pages: ::core::primitive::u64 }, #[codec(index = 2)] - #[doc = "Set the new runtime code."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`"] - #[doc = "- 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is"] - #[doc = " expensive)."] - #[doc = "- 1 storage write (codec `O(C)`)."] - #[doc = "- 1 digest item."] - #[doc = "- 1 event."] - #[doc = "The weight of this function is dependent on the runtime, but generally this is very"] - #[doc = "expensive. We will treat this as a full block."] - #[doc = "# "] + #[doc = "See [`Pallet::set_code`]."] set_code { code: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 3)] - #[doc = "Set the new runtime code without doing any checks of the given `code`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(C)` where `C` length of `code`"] - #[doc = "- 1 storage write (codec `O(C)`)."] - #[doc = "- 1 digest item."] - #[doc = "- 1 event."] - #[doc = "The weight of this function is dependent on the runtime. We will treat this as a full"] - #[doc = "block. # "] + #[doc = "See [`Pallet::set_code_without_checks`]."] set_code_without_checks { code: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 4)] - #[doc = "Set some items of storage."] + #[doc = "See [`Pallet::set_storage`]."] set_storage { items: ::std::vec::Vec<( ::std::vec::Vec<::core::primitive::u8>, @@ -24381,21 +23576,18 @@ pub mod api { )>, }, #[codec(index = 5)] - #[doc = "Kill some items from storage."] + #[doc = "See [`Pallet::kill_storage`]."] kill_storage { keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, }, #[codec(index = 6)] - #[doc = "Kill all storage items with a key that starts with the given prefix."] - #[doc = ""] - #[doc = "**NOTE:** We rely on the Root origin to provide us the number of subkeys under"] - #[doc = "the prefix we are removing to accurately calculate the weight of this function."] + #[doc = "See [`Pallet::kill_prefix`]."] kill_prefix { prefix: ::std::vec::Vec<::core::primitive::u8>, subkeys: ::core::primitive::u32, }, #[codec(index = 7)] - #[doc = "Make some on-chain remark and emit event."] + #[doc = "See [`Pallet::remark_with_event`]."] remark_with_event { remark: ::std::vec::Vec<::core::primitive::u8>, }, @@ -24685,10 +23877,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Dispatch a data root message to the home if the header is valid."] + #[doc = "See [`Pallet::try_dispatch_data_root`]."] try_dispatch_data_root { #[codec(compact)] destination_domain: ::core::primitive::u32, @@ -24714,7 +23906,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] InitializationError, @@ -24736,7 +23928,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] DataRootDispatched { @@ -24765,34 +23957,32 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Dispatch a message to the destination domain and recipient address."] + #[doc = "See [`Pallet::dispatch`]."] dispatch { #[codec(compact)] destination_domain: ::core::primitive::u32, recipient_address: ::subxt::utils::H256, - message_body: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + message_body: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, }, #[codec(index = 1)] - #[doc = "Verify/submit signed update."] + #[doc = "See [`Pallet::update`]."] update { signed_update: runtime_types::nomad_core::update::SignedUpdate, #[codec(compact)] max_index: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "Verify/slash updater for improper update."] + #[doc = "See [`Pallet::improper_update`]."] improper_update { signed_update: runtime_types::nomad_core::update::SignedUpdate, }, #[codec(index = 3)] - #[doc = "Set new updater on self as well as updater manager."] - #[doc = "Note: Not exposed as pallet call, will only be callable by the"] - #[doc = "GovernanceRouter pallet when implemented."] + #[doc = "See [`Pallet::set_updater`]."] set_updater { new_updater: ::subxt::utils::H160 }, } #[derive( @@ -24808,7 +23998,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] InitializationError, @@ -24844,7 +24034,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] Dispatch { @@ -24939,7 +24129,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call {} #[derive( :: subxt :: ext :: codec :: Decode, @@ -24954,7 +24144,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] InitializationError, @@ -24972,7 +24162,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] NewUpdater { @@ -24986,94 +24176,6 @@ pub mod api { } } } - pub mod pallet_authorship { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Provide a set of uncles."] - set_uncles { - new_uncles: ::std::vec::Vec< - runtime_types::avail_core::header::Header< - ::core::primitive::u32, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - >, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "The uncle parent not in the chain."] - InvalidUncleParent, - #[codec(index = 1)] - #[doc = "Uncles already set in the block."] - UnclesAlreadySet, - #[codec(index = 2)] - #[doc = "Too many uncles."] - TooManyUncles, - #[codec(index = 3)] - #[doc = "The uncle is genesis."] - GenesisUncle, - #[codec(index = 4)] - #[doc = "The uncle is too high in chain."] - TooHighUncle, - #[codec(index = 5)] - #[doc = "The uncle is already included."] - UncleAlreadyIncluded, - #[codec(index = 6)] - #[doc = "The uncle isn't recent enough to be included."] - OldUncle, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum UncleEntryItem<_0, _1, _2> { - #[codec(index = 0)] - InclusionHeight(_0), - #[codec(index = 1)] - Uncle(_1, ::core::option::Option<_2>), - } - } pub mod pallet_babe { use super::runtime_types; pub mod pallet { @@ -25091,13 +24193,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Report authority equivocation/misbehavior. This method will verify"] - #[doc = "the equivocation proof and validate the given key ownership proof"] - #[doc = "against the extracted offender. If both are valid, the offence will"] - #[doc = "be reported."] + #[doc = "See [`Pallet::report_equivocation`]."] report_equivocation { equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_slots::EquivocationProof< @@ -25111,14 +24210,7 @@ pub mod api { key_owner_proof: runtime_types::sp_session::MembershipProof, }, #[codec(index = 1)] - #[doc = "Report authority equivocation/misbehavior. This method will verify"] - #[doc = "the equivocation proof and validate the given key ownership proof"] - #[doc = "against the extracted offender. If both are valid, the offence will"] - #[doc = "be reported."] - #[doc = "This extrinsic must be called unsigned and it is expected that only"] - #[doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] - #[doc = "if the block author is defined it will be defined as the equivocation"] - #[doc = "reporter."] + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] report_equivocation_unsigned { equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_slots::EquivocationProof< @@ -25132,10 +24224,7 @@ pub mod api { key_owner_proof: runtime_types::sp_session::MembershipProof, }, #[codec(index = 2)] - #[doc = "Plan an epoch config change. The epoch config change is recorded and will be enacted on"] - #[doc = "the next call to `enact_epoch_change`. The config will be activated one epoch after."] - #[doc = "Multiple calls to this method will replace any existing planned config change that had"] - #[doc = "not been enacted yet."] + #[doc = "See [`Pallet::plan_config_change`]."] plan_config_change { config: runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, }, @@ -25153,7 +24242,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "An equivocation proof provided as part of an equivocation report is invalid."] @@ -25250,19 +24339,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Declare that some `dislocated` account has, through rewards or penalties, sufficiently"] - #[doc = "changed its score that it should properly fall into a different bag than its current"] - #[doc = "one."] - #[doc = ""] - #[doc = "Anyone can call this function about any potentially dislocated account."] - #[doc = ""] - #[doc = "Will always update the stored score of `dislocated` to the correct score, based on"] - #[doc = "`ScoreProvider`."] - #[doc = ""] - #[doc = "If `dislocated` does not exists, it returns an error."] + #[doc = "See [`Pallet::rebag`]."] rebag { dislocated: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -25270,14 +24350,7 @@ pub mod api { >, }, #[codec(index = 1)] - #[doc = "Move the caller's Id directly in front of `lighter`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and can only be called by the Id of"] - #[doc = "the account going in front of `lighter`."] - #[doc = ""] - #[doc = "Only works if"] - #[doc = "- both nodes are within the same bag,"] - #[doc = "- and `origin` has a greater `Score` than `lighter`."] + #[doc = "See [`Pallet::put_in_front_of`]."] put_in_front_of { lighter: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -25298,7 +24371,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "A error in the list interface implementation."] @@ -25317,7 +24390,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "Moved an account from one bag to another."] @@ -25352,35 +24425,11 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Transfer some liquid free balance to another account."] - #[doc = ""] - #[doc = "`transfer` will set the `FreeBalance` of the sender and receiver."] - #[doc = "If the sender's account is below the existential deposit as a result"] - #[doc = "of the transfer, the account will be reaped."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the transactor."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Dependent on arguments but not critical, given proper implementations for input config"] - #[doc = " types. See related functions below."] - #[doc = "- It contains a limited number of reads and writes internally and no complex"] - #[doc = " computation."] - #[doc = ""] - #[doc = "Related functions:"] - #[doc = ""] - #[doc = " - `ensure_can_withdraw` is always called internally but has a bounded complexity."] - #[doc = " - Transferring balances to accounts that did not exist before will cause"] - #[doc = " `T::OnNewAccount::on_new_account` to be called."] - #[doc = " - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`."] - #[doc = " - `transfer_keep_alive` works the same way as `transfer`, but has an additional check"] - #[doc = " that the transfer will not kill the origin account."] - #[doc = "---------------------------------"] - #[doc = "- Origin account is already in memory, so no DB operations for them."] - #[doc = "# "] - transfer { + #[doc = "See [`Pallet::transfer_allow_death`]."] + transfer_allow_death { dest: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, @@ -25389,15 +24438,8 @@ pub mod api { value: ::core::primitive::u128, }, #[codec(index = 1)] - #[doc = "Set the balances of a given account."] - #[doc = ""] - #[doc = "This will alter `FreeBalance` and `ReservedBalance` in storage. it will"] - #[doc = "also alter the total issuance of the system (`TotalIssuance`) appropriately."] - #[doc = "If the new free or reserved balance is below the existential deposit,"] - #[doc = "it will reset the account nonce (`frame_system::AccountNonce`)."] - #[doc = ""] - #[doc = "The dispatch origin for this call is `root`."] - set_balance { + #[doc = "See [`Pallet::set_balance_deprecated`]."] + set_balance_deprecated { who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, @@ -25405,15 +24447,10 @@ pub mod api { #[codec(compact)] new_free: ::core::primitive::u128, #[codec(compact)] - new_reserved: ::core::primitive::u128, + old_reserved: ::core::primitive::u128, }, #[codec(index = 2)] - #[doc = "Exactly as `transfer`, except the origin must be root and the source account may be"] - #[doc = "specified."] - #[doc = "# "] - #[doc = "- Same as transfer, but additional read and write because the source account is not"] - #[doc = " assumed to be in the overlay."] - #[doc = "# "] + #[doc = "See [`Pallet::force_transfer`]."] force_transfer { source: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -25427,12 +24464,7 @@ pub mod api { value: ::core::primitive::u128, }, #[codec(index = 3)] - #[doc = "Same as the [`transfer`] call, but with a check that the transfer will not kill the"] - #[doc = "origin account."] - #[doc = ""] - #[doc = "99% of the time you want [`transfer`] instead."] - #[doc = ""] - #[doc = "[`transfer`]: struct.Pallet.html#method.transfer"] + #[doc = "See [`Pallet::transfer_keep_alive`]."] transfer_keep_alive { dest: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -25442,23 +24474,7 @@ pub mod api { value: ::core::primitive::u128, }, #[codec(index = 4)] - #[doc = "Transfer the entire transferable balance from the caller account."] - #[doc = ""] - #[doc = "NOTE: This function only attempts to transfer _transferable_ balances. This means that"] - #[doc = "any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be"] - #[doc = "transferred by this function. To ensure that this function results in a killed account,"] - #[doc = "you might need to prepare the account by removing any reference counters, storage"] - #[doc = "deposits, etc..."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be Signed."] - #[doc = ""] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `keep_alive`: A boolean to determine if the `transfer_all` operation should send all"] - #[doc = " of the funds the account has, causing the sender account to be killed (false), or"] - #[doc = " transfer everything except at least the existential deposit, which will guarantee to"] - #[doc = " keep the sender account alive (true). # "] - #[doc = "- O(1). Just like transfer, but reading the user's transferable balance first."] - #[doc = " #"] + #[doc = "See [`Pallet::transfer_all`]."] transfer_all { dest: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -25467,9 +24483,7 @@ pub mod api { keep_alive: ::core::primitive::bool, }, #[codec(index = 5)] - #[doc = "Unreserve some balance from a user by force."] - #[doc = ""] - #[doc = "Can only be called by ROOT."] + #[doc = "See [`Pallet::force_unreserve`]."] force_unreserve { who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -25477,6 +24491,31 @@ pub mod api { >, amount: ::core::primitive::u128, }, + #[codec(index = 6)] + #[doc = "See [`Pallet::upgrade_accounts`]."] + upgrade_accounts { + who: ::std::vec::Vec<::subxt::utils::AccountId32>, + }, + #[codec(index = 7)] + #[doc = "See [`Pallet::transfer`]."] + transfer { + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + value: ::core::primitive::u128, + }, + #[codec(index = 8)] + #[doc = "See [`Pallet::force_set_balance`]."] + force_set_balance { + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + new_free: ::core::primitive::u128, + }, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -25491,32 +24530,38 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - #[doc = "Vesting balance too high to send value"] + #[doc = "Vesting balance too high to send value."] VestingBalance, #[codec(index = 1)] - #[doc = "Account liquidity restrictions prevent withdrawal"] + #[doc = "Account liquidity restrictions prevent withdrawal."] LiquidityRestrictions, #[codec(index = 2)] #[doc = "Balance too low to send value."] InsufficientBalance, #[codec(index = 3)] - #[doc = "Value too low to create account due to existential deposit"] + #[doc = "Value too low to create account due to existential deposit."] ExistentialDeposit, #[codec(index = 4)] - #[doc = "Transfer/payment would kill account"] - KeepAlive, + #[doc = "Transfer/payment would kill account."] + Expendability, #[codec(index = 5)] - #[doc = "A vesting schedule already exists for this account"] + #[doc = "A vesting schedule already exists for this account."] ExistingVestingSchedule, #[codec(index = 6)] - #[doc = "Beneficiary account must pre-exist"] + #[doc = "Beneficiary account must pre-exist."] DeadAccount, #[codec(index = 7)] - #[doc = "Number of named reserves exceed MaxReserves"] + #[doc = "Number of named reserves exceed `MaxReserves`."] TooManyReserves, + #[codec(index = 8)] + #[doc = "Number of holds exceed `MaxHolds`."] + TooManyHolds, + #[codec(index = 9)] + #[doc = "Number of freezes exceed `MaxFreezes`."] + TooManyFreezes, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -25531,7 +24576,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "An account was created with some free balance."] @@ -25558,7 +24603,6 @@ pub mod api { BalanceSet { who: ::subxt::utils::AccountId32, free: ::core::primitive::u128, - reserved: ::core::primitive::u128, }, #[codec(index = 4)] #[doc = "Some balance was reserved (moved from free to reserved)."] @@ -25600,82 +24644,174 @@ pub mod api { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, + #[codec(index = 10)] + #[doc = "Some amount was minted into an account."] + Minted { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 11)] + #[doc = "Some amount was burned from an account."] + Burned { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 12)] + #[doc = "Some amount was suspended from an account (it can be restored later)."] + Suspended { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 13)] + #[doc = "Some amount was restored into an account."] + Restored { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 14)] + #[doc = "An account was upgraded."] + Upgraded { who: ::subxt::utils::AccountId32 }, + #[codec(index = 15)] + #[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."] + Issued { amount: ::core::primitive::u128 }, + #[codec(index = 16)] + #[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."] + Rescinded { amount: ::core::primitive::u128 }, + #[codec(index = 17)] + #[doc = "Some balance was locked."] + Locked { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 18)] + #[doc = "Some balance was unlocked."] + Unlocked { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 19)] + #[doc = "Some balance was frozen."] + Frozen { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 20)] + #[doc = "Some balance was thawed."] + Thawed { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + } + } + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AccountData<_0> { + pub free: _0, + pub reserved: _0, + pub frozen: _0, + pub flags: runtime_types::pallet_balances::types::ExtraFlags, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BalanceLock<_0> { + pub id: [::core::primitive::u8; 8usize], + pub amount: _0, + pub reasons: runtime_types::pallet_balances::types::Reasons, + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ExtraFlags(pub ::core::primitive::u128); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct IdAmount<_0, _1> { + pub id: _0, + pub amount: _1, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Reasons { + #[codec(index = 0)] + Fee, + #[codec(index = 1)] + Misc, + #[codec(index = 2)] + All, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ReserveData<_0, _1> { + pub id: _0, + pub amount: _1, } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AccountData<_0> { - pub free: _0, - pub reserved: _0, - pub misc_frozen: _0, - pub fee_frozen: _0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BalanceLock<_0> { - pub id: [::core::primitive::u8; 8usize], - pub amount: _0, - pub reasons: runtime_types::pallet_balances::Reasons, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Reasons { - #[codec(index = 0)] - Fee, - #[codec(index = 1)] - Misc, - #[codec(index = 2)] - All, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ReserveData<_0, _1> { - pub id: _0, - pub amount: _1, } } pub mod pallet_bounties { @@ -25695,47 +24831,23 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Propose a new bounty."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "Payment: `TipReportDepositBase` will be reserved from the origin account, as well as"] - #[doc = "`DataDepositPerByte` for each byte in `reason`. It will be unreserved upon approval,"] - #[doc = "or slashed when rejected."] - #[doc = ""] - #[doc = "- `curator`: The curator account whom will manage this bounty."] - #[doc = "- `fee`: The curator fee."] - #[doc = "- `value`: The total payment amount of this bounty, curator fee included."] - #[doc = "- `description`: The description of this bounty."] + #[doc = "See [`Pallet::propose_bounty`]."] propose_bounty { #[codec(compact)] value: ::core::primitive::u128, description: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] - #[doc = "Approve a bounty proposal. At a later time, the bounty will be funded and become active"] - #[doc = "and the original deposit will be returned."] - #[doc = ""] - #[doc = "May only be called from `T::SpendOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] + #[doc = "See [`Pallet::approve_bounty`]."] approve_bounty { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "Assign a curator to a funded bounty."] - #[doc = ""] - #[doc = "May only be called from `T::SpendOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] + #[doc = "See [`Pallet::propose_curator`]."] propose_curator { #[codec(compact)] bounty_id: ::core::primitive::u32, @@ -25747,53 +24859,19 @@ pub mod api { fee: ::core::primitive::u128, }, #[codec(index = 3)] - #[doc = "Unassign curator from a bounty."] - #[doc = ""] - #[doc = "This function can only be called by the `RejectOrigin` a signed origin."] - #[doc = ""] - #[doc = "If this function is called by the `RejectOrigin`, we assume that the curator is"] - #[doc = "malicious or inactive. As a result, we will slash the curator when possible."] - #[doc = ""] - #[doc = "If the origin is the curator, we take this as a sign they are unable to do their job and"] - #[doc = "they willingly give up. We could slash them, but for now we allow them to recover their"] - #[doc = "deposit and exit without issue. (We may want to change this if it is abused.)"] - #[doc = ""] - #[doc = "Finally, the origin can be anyone if and only if the curator is \"inactive\". This allows"] - #[doc = "anyone in the community to call out that a curator is not doing their due diligence, and"] - #[doc = "we should pick a new curator. In this case the curator should also be slashed."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] + #[doc = "See [`Pallet::unassign_curator`]."] unassign_curator { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 4)] - #[doc = "Accept the curator role for a bounty."] - #[doc = "A deposit will be reserved from curator and refund upon successful payout."] - #[doc = ""] - #[doc = "May only be called from the curator."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] + #[doc = "See [`Pallet::accept_curator`]."] accept_curator { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 5)] - #[doc = "Award bounty to a beneficiary account. The beneficiary will be able to claim the funds"] - #[doc = "after a delay."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be the curator of this bounty."] - #[doc = ""] - #[doc = "- `bounty_id`: Bounty ID to award."] - #[doc = "- `beneficiary`: The beneficiary account whom will receive the payout."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] + #[doc = "See [`Pallet::award_bounty`]."] award_bounty { #[codec(compact)] bounty_id: ::core::primitive::u32, @@ -25803,45 +24881,19 @@ pub mod api { >, }, #[codec(index = 6)] - #[doc = "Claim the payout from an awarded bounty after payout delay."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be the beneficiary of this bounty."] - #[doc = ""] - #[doc = "- `bounty_id`: Bounty ID to claim."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] + #[doc = "See [`Pallet::claim_bounty`]."] claim_bounty { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 7)] - #[doc = "Cancel a proposed or active bounty. All the funds will be sent to treasury and"] - #[doc = "the curator deposit will be unreserved if possible."] - #[doc = ""] - #[doc = "Only `T::RejectOrigin` is able to cancel a bounty."] - #[doc = ""] - #[doc = "- `bounty_id`: Bounty ID to cancel."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] + #[doc = "See [`Pallet::close_bounty`]."] close_bounty { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 8)] - #[doc = "Extend the expiry time of an active bounty."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be the curator of this bounty."] - #[doc = ""] - #[doc = "- `bounty_id`: Bounty ID to extend."] - #[doc = "- `remark`: additional information."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] + #[doc = "See [`Pallet::extend_bounty_expiry`]."] extend_bounty_expiry { #[codec(compact)] bounty_id: ::core::primitive::u32, @@ -25861,7 +24913,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Proposer's balance is too low."] @@ -25911,7 +24963,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "New bounty proposal."] @@ -26016,91 +25068,24 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Set the collective's membership."] - #[doc = ""] - #[doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] - #[doc = "- `prime`: The prime member whose vote sets the default."] - #[doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] - #[doc = " weight estimation."] - #[doc = ""] - #[doc = "Requires root origin."] - #[doc = ""] - #[doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] - #[doc = " the weight estimations rely on it to estimate dispatchable weight."] - #[doc = ""] - #[doc = "# WARNING:"] - #[doc = ""] - #[doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] - #[doc = "implementation of the trait [`ChangeMembers`]."] - #[doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] - #[doc = "with other logic managing the member set."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(MP + N)` where:"] - #[doc = " - `M` old-members-count (code- and governance-bounded)"] - #[doc = " - `N` new-members-count (code- and governance-bounded)"] - #[doc = " - `P` proposals-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the"] - #[doc = " members"] - #[doc = " - 1 storage read (codec `O(P)`) for reading the proposals"] - #[doc = " - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal"] - #[doc = " - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one"] - #[doc = "# "] + #[doc = "See [`Pallet::set_members`]."] set_members { new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, prime: ::core::option::Option<::subxt::utils::AccountId32>, old_count: ::core::primitive::u32, }, #[codec(index = 1)] - #[doc = "Dispatch a proposal from a member using the `Member` origin."] - #[doc = ""] - #[doc = "Origin must be a member of the collective."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching"] - #[doc = " `proposal`"] - #[doc = "- DB: 1 read (codec `O(M)`) + DB access of `proposal`"] - #[doc = "- 1 event"] - #[doc = "# "] + #[doc = "See [`Pallet::execute`]."] execute { proposal: ::std::boxed::Box, #[codec(compact)] length_bound: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "Add a new proposal to either be voted on or executed directly."] - #[doc = ""] - #[doc = "Requires the sender to be member."] - #[doc = ""] - #[doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] - #[doc = "or put up for voting."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - branching is influenced by `threshold` where:"] - #[doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] - #[doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] - #[doc = "- DB:"] - #[doc = " - 1 storage read `is_member` (codec `O(M)`)"] - #[doc = " - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)"] - #[doc = " - DB accesses influenced by `threshold`:"] - #[doc = " - EITHER storage accesses done by `proposal` (`threshold < 2`)"] - #[doc = " - OR proposal insertion (`threshold <= 2`)"] - #[doc = " - 1 storage mutation `Proposals` (codec `O(P2)`)"] - #[doc = " - 1 storage mutation `ProposalCount` (codec `O(1)`)"] - #[doc = " - 1 storage write `ProposalOf` (codec `O(B)`)"] - #[doc = " - 1 storage write `Voting` (codec `O(M)`)"] - #[doc = " - 1 event"] - #[doc = "# "] + #[doc = "See [`Pallet::propose`]."] propose { #[codec(compact)] threshold: ::core::primitive::u32, @@ -26109,118 +25094,18 @@ pub mod api { length_bound: ::core::primitive::u32, }, #[codec(index = 3)] - #[doc = "Add an aye or nay vote for the sender to the given proposal."] - #[doc = ""] - #[doc = "Requires the sender to be a member."] - #[doc = ""] - #[doc = "Transaction fees will be waived if the member is voting on any particular proposal"] - #[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] - #[doc = "fee."] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] - #[doc = "- DB:"] - #[doc = " - 1 storage read `Members` (codec `O(M)`)"] - #[doc = " - 1 storage mutation `Voting` (codec `O(M)`)"] - #[doc = "- 1 event"] - #[doc = "# "] + #[doc = "See [`Pallet::vote`]."] vote { proposal: ::subxt::utils::H256, #[codec(compact)] index: ::core::primitive::u32, approve: ::core::primitive::bool, }, - #[codec(index = 4)] - #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] - #[doc = ""] - #[doc = "May be called by any signed account in order to finish voting and close the proposal."] - #[doc = ""] - #[doc = "If called before the end of the voting period it will only close the vote if it is"] - #[doc = "has enough votes to be approved or disapproved."] - #[doc = ""] - #[doc = "If called after the end of the voting period abstentions are counted as rejections"] - #[doc = "unless there is a prime member set and the prime member cast an approval."] - #[doc = ""] - #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] - #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] - #[doc = ""] - #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] - #[doc = "proposal."] - #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] - #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1 + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - `P1` is the complexity of `proposal` preimage."] - #[doc = " - `P2` is proposal-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] - #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] - #[doc = " `O(P2)`)"] - #[doc = " - any mutations done while executing `proposal` (`P1`)"] - #[doc = "- up to 3 events"] - #[doc = "# "] - close_old_weight { - proposal_hash: ::subxt::utils::H256, - #[codec(compact)] - index: ::core::primitive::u32, - #[codec(compact)] - proposal_weight_bound: runtime_types::sp_weights::OldWeight, - #[codec(compact)] - length_bound: ::core::primitive::u32, - }, #[codec(index = 5)] - #[doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] - #[doc = "state."] - #[doc = ""] - #[doc = "Must be called by the Root origin."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] - #[doc = ""] - #[doc = "# "] - #[doc = "Complexity: O(P) where P is the number of max proposals"] - #[doc = "DB Weight:"] - #[doc = "* Reads: Proposals"] - #[doc = "* Writes: Voting, Proposals, ProposalOf"] - #[doc = "# "] + #[doc = "See [`Pallet::disapprove_proposal`]."] disapprove_proposal { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 6)] - #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] - #[doc = ""] - #[doc = "May be called by any signed account in order to finish voting and close the proposal."] - #[doc = ""] - #[doc = "If called before the end of the voting period it will only close the vote if it is"] - #[doc = "has enough votes to be approved or disapproved."] - #[doc = ""] - #[doc = "If called after the end of the voting period abstentions are counted as rejections"] - #[doc = "unless there is a prime member set and the prime member cast an approval."] - #[doc = ""] - #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] - #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] - #[doc = ""] - #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] - #[doc = "proposal."] - #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] - #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1 + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - `P1` is the complexity of `proposal` preimage."] - #[doc = " - `P2` is proposal-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] - #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] - #[doc = " `O(P2)`)"] - #[doc = " - any mutations done while executing `proposal` (`P1`)"] - #[doc = "- up to 3 events"] - #[doc = "# "] + #[doc = "See [`Pallet::close`]."] close { proposal_hash: ::subxt::utils::H256, #[codec(compact)] @@ -26243,91 +25128,24 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call2 { #[codec(index = 0)] - #[doc = "Set the collective's membership."] - #[doc = ""] - #[doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] - #[doc = "- `prime`: The prime member whose vote sets the default."] - #[doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] - #[doc = " weight estimation."] - #[doc = ""] - #[doc = "Requires root origin."] - #[doc = ""] - #[doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] - #[doc = " the weight estimations rely on it to estimate dispatchable weight."] - #[doc = ""] - #[doc = "# WARNING:"] - #[doc = ""] - #[doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] - #[doc = "implementation of the trait [`ChangeMembers`]."] - #[doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] - #[doc = "with other logic managing the member set."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(MP + N)` where:"] - #[doc = " - `M` old-members-count (code- and governance-bounded)"] - #[doc = " - `N` new-members-count (code- and governance-bounded)"] - #[doc = " - `P` proposals-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the"] - #[doc = " members"] - #[doc = " - 1 storage read (codec `O(P)`) for reading the proposals"] - #[doc = " - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal"] - #[doc = " - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one"] - #[doc = "# "] + #[doc = "See [`Pallet::set_members`]."] set_members { new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, prime: ::core::option::Option<::subxt::utils::AccountId32>, old_count: ::core::primitive::u32, }, #[codec(index = 1)] - #[doc = "Dispatch a proposal from a member using the `Member` origin."] - #[doc = ""] - #[doc = "Origin must be a member of the collective."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching"] - #[doc = " `proposal`"] - #[doc = "- DB: 1 read (codec `O(M)`) + DB access of `proposal`"] - #[doc = "- 1 event"] - #[doc = "# "] + #[doc = "See [`Pallet::execute`]."] execute { proposal: ::std::boxed::Box, #[codec(compact)] length_bound: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "Add a new proposal to either be voted on or executed directly."] - #[doc = ""] - #[doc = "Requires the sender to be member."] - #[doc = ""] - #[doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] - #[doc = "or put up for voting."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - branching is influenced by `threshold` where:"] - #[doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] - #[doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] - #[doc = "- DB:"] - #[doc = " - 1 storage read `is_member` (codec `O(M)`)"] - #[doc = " - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)"] - #[doc = " - DB accesses influenced by `threshold`:"] - #[doc = " - EITHER storage accesses done by `proposal` (`threshold < 2`)"] - #[doc = " - OR proposal insertion (`threshold <= 2`)"] - #[doc = " - 1 storage mutation `Proposals` (codec `O(P2)`)"] - #[doc = " - 1 storage mutation `ProposalCount` (codec `O(1)`)"] - #[doc = " - 1 storage write `ProposalOf` (codec `O(B)`)"] - #[doc = " - 1 storage write `Voting` (codec `O(M)`)"] - #[doc = " - 1 event"] - #[doc = "# "] + #[doc = "See [`Pallet::propose`]."] propose { #[codec(compact)] threshold: ::core::primitive::u32, @@ -26336,118 +25154,18 @@ pub mod api { length_bound: ::core::primitive::u32, }, #[codec(index = 3)] - #[doc = "Add an aye or nay vote for the sender to the given proposal."] - #[doc = ""] - #[doc = "Requires the sender to be a member."] - #[doc = ""] - #[doc = "Transaction fees will be waived if the member is voting on any particular proposal"] - #[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] - #[doc = "fee."] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] - #[doc = "- DB:"] - #[doc = " - 1 storage read `Members` (codec `O(M)`)"] - #[doc = " - 1 storage mutation `Voting` (codec `O(M)`)"] - #[doc = "- 1 event"] - #[doc = "# "] + #[doc = "See [`Pallet::vote`]."] vote { proposal: ::subxt::utils::H256, #[codec(compact)] index: ::core::primitive::u32, approve: ::core::primitive::bool, }, - #[codec(index = 4)] - #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] - #[doc = ""] - #[doc = "May be called by any signed account in order to finish voting and close the proposal."] - #[doc = ""] - #[doc = "If called before the end of the voting period it will only close the vote if it is"] - #[doc = "has enough votes to be approved or disapproved."] - #[doc = ""] - #[doc = "If called after the end of the voting period abstentions are counted as rejections"] - #[doc = "unless there is a prime member set and the prime member cast an approval."] - #[doc = ""] - #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] - #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] - #[doc = ""] - #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] - #[doc = "proposal."] - #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] - #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1 + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - `P1` is the complexity of `proposal` preimage."] - #[doc = " - `P2` is proposal-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] - #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] - #[doc = " `O(P2)`)"] - #[doc = " - any mutations done while executing `proposal` (`P1`)"] - #[doc = "- up to 3 events"] - #[doc = "# "] - close_old_weight { - proposal_hash: ::subxt::utils::H256, - #[codec(compact)] - index: ::core::primitive::u32, - #[codec(compact)] - proposal_weight_bound: runtime_types::sp_weights::OldWeight, - #[codec(compact)] - length_bound: ::core::primitive::u32, - }, #[codec(index = 5)] - #[doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] - #[doc = "state."] - #[doc = ""] - #[doc = "Must be called by the Root origin."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] - #[doc = ""] - #[doc = "# "] - #[doc = "Complexity: O(P) where P is the number of max proposals"] - #[doc = "DB Weight:"] - #[doc = "* Reads: Proposals"] - #[doc = "* Writes: Voting, Proposals, ProposalOf"] - #[doc = "# "] + #[doc = "See [`Pallet::disapprove_proposal`]."] disapprove_proposal { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 6)] - #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] - #[doc = ""] - #[doc = "May be called by any signed account in order to finish voting and close the proposal."] - #[doc = ""] - #[doc = "If called before the end of the voting period it will only close the vote if it is"] - #[doc = "has enough votes to be approved or disapproved."] - #[doc = ""] - #[doc = "If called after the end of the voting period abstentions are counted as rejections"] - #[doc = "unless there is a prime member set and the prime member cast an approval."] - #[doc = ""] - #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] - #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] - #[doc = ""] - #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] - #[doc = "proposal."] - #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] - #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1 + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - `P1` is the complexity of `proposal` preimage."] - #[doc = " - `P2` is proposal-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] - #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] - #[doc = " `O(P2)`)"] - #[doc = " - any mutations done while executing `proposal` (`P1`)"] - #[doc = "- up to 3 events"] - #[doc = "# "] + #[doc = "See [`Pallet::close`]."] close { proposal_hash: ::subxt::utils::H256, #[codec(compact)] @@ -26470,7 +25188,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Account is not a member"] @@ -26516,7 +25234,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error2 { #[codec(index = 0)] #[doc = "Account is not a member"] @@ -26562,7 +25280,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] @@ -26624,7 +25342,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event2 { #[codec(index = 0)] #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] @@ -26765,18 +25483,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Propose a sensitive action to be taken."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_ and the sender must"] - #[doc = "have funds to cover the deposit."] - #[doc = ""] - #[doc = "- `proposal_hash`: The hash of the proposal preimage."] - #[doc = "- `value`: The amount of deposit (must be at least `MinimumDeposit`)."] - #[doc = ""] - #[doc = "Emits `Proposed`."] + #[doc = "See [`Pallet::propose`]."] propose { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::da_runtime::RuntimeCall, @@ -26785,24 +25495,13 @@ pub mod api { value: ::core::primitive::u128, }, #[codec(index = 1)] - #[doc = "Signals agreement with a particular proposal."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_ and the sender"] - #[doc = "must have funds to cover the deposit, equal to the original deposit."] - #[doc = ""] - #[doc = "- `proposal`: The index of the proposal to second."] + #[doc = "See [`Pallet::second`]."] second { #[codec(compact)] proposal: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "Vote in a referendum. If `vote.is_aye()`, the vote is to enact the proposal;"] - #[doc = "otherwise it is a vote to keep the status quo."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_."] - #[doc = ""] - #[doc = "- `ref_index`: The index of the referendum to vote for."] - #[doc = "- `vote`: The vote configuration."] + #[doc = "See [`Pallet::vote`]."] vote { #[codec(compact)] ref_index: ::core::primitive::u32, @@ -26811,127 +25510,47 @@ pub mod api { >, }, #[codec(index = 3)] - #[doc = "Schedule an emergency cancellation of a referendum. Cannot happen twice to the same"] - #[doc = "referendum."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `CancellationOrigin`."] - #[doc = ""] - #[doc = "-`ref_index`: The index of the referendum to cancel."] - #[doc = ""] - #[doc = "Weight: `O(1)`."] + #[doc = "See [`Pallet::emergency_cancel`]."] emergency_cancel { ref_index: ::core::primitive::u32 }, #[codec(index = 4)] - #[doc = "Schedule a referendum to be tabled once it is legal to schedule an external"] - #[doc = "referendum."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `ExternalOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal."] + #[doc = "See [`Pallet::external_propose`]."] external_propose { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::da_runtime::RuntimeCall, >, }, #[codec(index = 5)] - #[doc = "Schedule a majority-carries referendum to be tabled next once it is legal to schedule"] - #[doc = "an external referendum."] - #[doc = ""] - #[doc = "The dispatch of this call must be `ExternalMajorityOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal."] - #[doc = ""] - #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] - #[doc = "pre-scheduled `external_propose` call."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] + #[doc = "See [`Pallet::external_propose_majority`]."] external_propose_majority { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::da_runtime::RuntimeCall, >, }, #[codec(index = 6)] - #[doc = "Schedule a negative-turnout-bias referendum to be tabled next once it is legal to"] - #[doc = "schedule an external referendum."] - #[doc = ""] - #[doc = "The dispatch of this call must be `ExternalDefaultOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal."] - #[doc = ""] - #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] - #[doc = "pre-scheduled `external_propose` call."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] + #[doc = "See [`Pallet::external_propose_default`]."] external_propose_default { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::da_runtime::RuntimeCall, >, }, #[codec(index = 7)] - #[doc = "Schedule the currently externally-proposed majority-carries referendum to be tabled"] - #[doc = "immediately. If there is no externally-proposed referendum currently, or if there is one"] - #[doc = "but it is not a majority-carries referendum then it fails."] - #[doc = ""] - #[doc = "The dispatch of this call must be `FastTrackOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The hash of the current external proposal."] - #[doc = "- `voting_period`: The period that is allowed for voting on this proposal. Increased to"] - #[doc = "\tMust be always greater than zero."] - #[doc = "\tFor `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`."] - #[doc = "- `delay`: The number of block after voting has ended in approval and this should be"] - #[doc = " enacted. This doesn't have a minimum amount."] - #[doc = ""] - #[doc = "Emits `Started`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] + #[doc = "See [`Pallet::fast_track`]."] fast_track { proposal_hash: ::subxt::utils::H256, voting_period: ::core::primitive::u32, delay: ::core::primitive::u32, }, #[codec(index = 8)] - #[doc = "Veto and blacklist the external proposal hash."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `VetoOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal to veto and blacklist."] - #[doc = ""] - #[doc = "Emits `Vetoed`."] - #[doc = ""] - #[doc = "Weight: `O(V + log(V))` where V is number of `existing vetoers`"] + #[doc = "See [`Pallet::veto_external`]."] veto_external { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 9)] - #[doc = "Remove a referendum."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Root_."] - #[doc = ""] - #[doc = "- `ref_index`: The index of the referendum to cancel."] - #[doc = ""] - #[doc = "# Weight: `O(1)`."] + #[doc = "See [`Pallet::cancel_referendum`]."] cancel_referendum { #[codec(compact)] ref_index: ::core::primitive::u32, }, #[codec(index = 10)] - #[doc = "Delegate the voting power (with some given conviction) of the sending account."] - #[doc = ""] - #[doc = "The balance delegated is locked for as long as it's delegated, and thereafter for the"] - #[doc = "time appropriate for the conviction's lock period."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_, and the signing account must either:"] - #[doc = " - be delegating already; or"] - #[doc = " - have no voting activity (if there is, then it will need to be removed/consolidated"] - #[doc = " through `reap_vote` or `unvote`)."] - #[doc = ""] - #[doc = "- `to`: The account whose voting the `target` account's voting power will follow."] - #[doc = "- `conviction`: The conviction that will be attached to the delegated votes. When the"] - #[doc = " account is undelegated, the funds will be locked for the corresponding period."] - #[doc = "- `balance`: The amount of the account's balance to be used in delegating. This must not"] - #[doc = " be more than the account's current balance."] - #[doc = ""] - #[doc = "Emits `Delegated`."] - #[doc = ""] - #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] - #[doc = " voted on. Weight is charged as if maximum votes."] + #[doc = "See [`Pallet::delegate`]."] delegate { to: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -26941,34 +25560,13 @@ pub mod api { balance: ::core::primitive::u128, }, #[codec(index = 11)] - #[doc = "Undelegate the voting power of the sending account."] - #[doc = ""] - #[doc = "Tokens may be unlocked following once an amount of time consistent with the lock period"] - #[doc = "of the conviction with which the delegation was issued."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"] - #[doc = "currently delegating."] - #[doc = ""] - #[doc = "Emits `Undelegated`."] - #[doc = ""] - #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] - #[doc = " voted on. Weight is charged as if maximum votes."] + #[doc = "See [`Pallet::undelegate`]."] undelegate, #[codec(index = 12)] - #[doc = "Clears all public proposals."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Root_."] - #[doc = ""] - #[doc = "Weight: `O(1)`."] + #[doc = "See [`Pallet::clear_public_proposals`]."] clear_public_proposals, #[codec(index = 13)] - #[doc = "Unlock tokens that have an expired lock."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_."] - #[doc = ""] - #[doc = "- `target`: The account to remove the lock on."] - #[doc = ""] - #[doc = "Weight: `O(R)` with R number of vote of target."] + #[doc = "See [`Pallet::unlock`]."] unlock { target: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -26976,50 +25574,10 @@ pub mod api { >, }, #[codec(index = 14)] - #[doc = "Remove a vote for a referendum."] - #[doc = ""] - #[doc = "If:"] - #[doc = "- the referendum was cancelled, or"] - #[doc = "- the referendum is ongoing, or"] - #[doc = "- the referendum has ended such that"] - #[doc = " - the vote of the account was in opposition to the result; or"] - #[doc = " - there was no conviction to the account's vote; or"] - #[doc = " - the account made a split vote"] - #[doc = "...then the vote is removed cleanly and a following call to `unlock` may result in more"] - #[doc = "funds being available."] - #[doc = ""] - #[doc = "If, however, the referendum has ended and:"] - #[doc = "- it finished corresponding to the vote of the account, and"] - #[doc = "- the account made a standard vote with conviction, and"] - #[doc = "- the lock period of the conviction is not over"] - #[doc = "...then the lock will be aggregated into the overall account's lock, which may involve"] - #[doc = "*overlocking* (where the two locks are combined into a single lock that is the maximum"] - #[doc = "of both the amount locked and the time is it locked for)."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_, and the signer must have a vote"] - #[doc = "registered for referendum `index`."] - #[doc = ""] - #[doc = "- `index`: The index of referendum of the vote to be removed."] - #[doc = ""] - #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] - #[doc = " Weight is calculated for the maximum number of vote."] + #[doc = "See [`Pallet::remove_vote`]."] remove_vote { index: ::core::primitive::u32 }, #[codec(index = 15)] - #[doc = "Remove a vote for a referendum."] - #[doc = ""] - #[doc = "If the `target` is equal to the signer, then this function is exactly equivalent to"] - #[doc = "`remove_vote`. If not equal to the signer, then the vote must have expired,"] - #[doc = "either because the referendum was cancelled, because the voter lost the referendum or"] - #[doc = "because the conviction period is over."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_."] - #[doc = ""] - #[doc = "- `target`: The account of the vote to be removed; this account must have voted for"] - #[doc = " referendum `index`."] - #[doc = "- `index`: The index of referendum of the vote to be removed."] - #[doc = ""] - #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] - #[doc = " Weight is calculated for the maximum number of vote."] + #[doc = "See [`Pallet::remove_other_vote`]."] remove_other_vote { target: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -27028,37 +25586,23 @@ pub mod api { index: ::core::primitive::u32, }, #[codec(index = 16)] - #[doc = "Permanently place a proposal into the blacklist. This prevents it from ever being"] - #[doc = "proposed again."] - #[doc = ""] - #[doc = "If called on a queued public or external proposal, then this will result in it being"] - #[doc = "removed. If the `ref_index` supplied is an active referendum with the proposal hash,"] - #[doc = "then it will be cancelled."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `BlacklistOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The proposal hash to blacklist permanently."] - #[doc = "- `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be"] - #[doc = "cancelled."] - #[doc = ""] - #[doc = "Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a"] - #[doc = " reasonable value)."] + #[doc = "See [`Pallet::blacklist`]."] blacklist { proposal_hash: ::subxt::utils::H256, maybe_ref_index: ::core::option::Option<::core::primitive::u32>, - }, - #[codec(index = 17)] - #[doc = "Remove a proposal."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `CancelProposalOrigin`."] - #[doc = ""] - #[doc = "- `prop_index`: The index of the proposal to cancel."] - #[doc = ""] - #[doc = "Weight: `O(p)` where `p = PublicProps::::decode_len()`"] + }, + #[codec(index = 17)] + #[doc = "See [`Pallet::cancel_proposal`]."] cancel_proposal { #[codec(compact)] prop_index: ::core::primitive::u32, }, + #[codec(index = 18)] + #[doc = "See [`Pallet::set_metadata`]."] + set_metadata { + owner: runtime_types::pallet_democracy::types::MetadataOwner, + maybe_hash: ::core::option::Option<::subxt::utils::H256>, + }, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -27073,7 +25617,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Value too low"] @@ -27145,6 +25689,9 @@ pub mod api { #[codec(index = 22)] #[doc = "Voting period too low"] VotingPeriodLow, + #[codec(index = 23)] + #[doc = "The preimage does not exist."] + PreimageNotExist, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -27159,7 +25706,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A motion has been proposed by a public account."] @@ -27230,6 +25777,25 @@ pub mod api { #[codec(index = 13)] #[doc = "A proposal got canceled."] ProposalCanceled { prop_index: ::core::primitive::u32 }, + #[codec(index = 14)] + #[doc = "Metadata for a proposal or a referendum has been set."] + MetadataSet { + owner: runtime_types::pallet_democracy::types::MetadataOwner, + hash: ::subxt::utils::H256, + }, + #[codec(index = 15)] + #[doc = "Metadata for a proposal or a referendum has been cleared."] + MetadataCleared { + owner: runtime_types::pallet_democracy::types::MetadataOwner, + hash: ::subxt::utils::H256, + }, + #[codec(index = 16)] + #[doc = "Metadata has been transferred to new owner."] + MetadataTransferred { + prev_owner: runtime_types::pallet_democracy::types::MetadataOwner, + owner: runtime_types::pallet_democracy::types::MetadataOwner, + hash: ::subxt::utils::H256, + }, } } pub mod types { @@ -27264,6 +25830,27 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum MetadataOwner { + #[codec(index = 0)] + External, + #[codec(index = 1)] + Proposal(::core::primitive::u32), + #[codec(index = 2)] + Referendum(::core::primitive::u32), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ReferendumInfo<_0, _1, _2> { #[codec(index = 0)] Ongoing(runtime_types::pallet_democracy::types::ReferendumStatus<_0, _1, _2>), @@ -27381,7 +25968,7 @@ pub mod api { pub enum Voting<_0, _1, _2> { #[codec(index = 0)] Direct { - votes: runtime_types::sp_core::bounded::bounded_vec::BoundedVec<( + votes: runtime_types::bounded_collections::bounded_vec::BoundedVec<( _2, runtime_types::pallet_democracy::vote::AccountVote<_0>, )>, @@ -27440,9 +26027,9 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { - # [codec (index = 0)] # [doc = "Submit a solution for the unsigned phase."] # [doc = ""] # [doc = "The dispatch origin fo this call must be __none__."] # [doc = ""] # [doc = "This submission is checked on the fly. Moreover, this unsigned solution is only"] # [doc = "validated when submitted to the pool from the **local** node. Effectively, this means"] # [doc = "that only active validators can submit this transaction when authoring a block (similar"] # [doc = "to an inherent)."] # [doc = ""] # [doc = "To prevent any incorrect solution (and thus wasted time/weight), this transaction will"] # [doc = "panic if the solution submitted by the validator is invalid in any way, effectively"] # [doc = "putting their authoring reward at risk."] # [doc = ""] # [doc = "No deposit or reward is associated with this submission."] submit_unsigned { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: da_runtime :: constants :: staking :: NposSolution16 > > , witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } , # [codec (index = 1)] # [doc = "Set a new value for `MinimumUntrustedScore`."] # [doc = ""] # [doc = "Dispatch origin must be aligned with `T::ForceOrigin`."] # [doc = ""] # [doc = "This check can be turned off by setting the value to `None`."] set_minimum_untrusted_score { maybe_next_score : :: core :: option :: Option < runtime_types :: sp_npos_elections :: ElectionScore > , } , # [codec (index = 2)] # [doc = "Set a solution in the queue, to be handed out to the client of this pallet in the next"] # [doc = "call to `ElectionProvider::elect`."] # [doc = ""] # [doc = "This can only be set by `T::ForceOrigin`, and only when the phase is `Emergency`."] # [doc = ""] # [doc = "The solution is not checked for any feasibility and is assumed to be trustworthy, as any"] # [doc = "feasibility check itself can in principle cause the election process to fail (due to"] # [doc = "memory/weight constrains)."] set_emergency_election_result { supports : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: utils :: AccountId32 > ,) > , } , # [codec (index = 3)] # [doc = "Submit a solution for the signed phase."] # [doc = ""] # [doc = "The dispatch origin fo this call must be __signed__."] # [doc = ""] # [doc = "The solution is potentially queued, based on the claimed score and processed at the end"] # [doc = "of the signed phase."] # [doc = ""] # [doc = "A deposit is reserved and recorded for the solution. Based on the outcome, the solution"] # [doc = "might be rewarded, slashed, or get all or a part of the deposit back."] submit { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: da_runtime :: constants :: staking :: NposSolution16 > > , } , # [codec (index = 4)] # [doc = "Trigger the governance fallback."] # [doc = ""] # [doc = "This can only be called when [`Phase::Emergency`] is enabled, as an alternative to"] # [doc = "calling [`Call::set_emergency_election_result`]."] governance_fallback { maybe_max_voters : :: core :: option :: Option < :: core :: primitive :: u32 > , maybe_max_targets : :: core :: option :: Option < :: core :: primitive :: u32 > , } , } + # [codec (index = 0)] # [doc = "See [`Pallet::submit_unsigned`]."] submit_unsigned { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: da_runtime :: constants :: staking :: NposSolution16 > > , witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } , # [codec (index = 1)] # [doc = "See [`Pallet::set_minimum_untrusted_score`]."] set_minimum_untrusted_score { maybe_next_score : :: core :: option :: Option < runtime_types :: sp_npos_elections :: ElectionScore > , } , # [codec (index = 2)] # [doc = "See [`Pallet::set_emergency_election_result`]."] set_emergency_election_result { supports : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: utils :: AccountId32 > ,) > , } , # [codec (index = 3)] # [doc = "See [`Pallet::submit`]."] submit { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: da_runtime :: constants :: staking :: NposSolution16 > > , } , # [codec (index = 4)] # [doc = "See [`Pallet::governance_fallback`]."] governance_fallback { maybe_max_voters : :: core :: option :: Option < :: core :: primitive :: u32 > , maybe_max_targets : :: core :: option :: Option < :: core :: primitive :: u32 > , } , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -27514,7 +26101,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A solution was stored with the given compute."] @@ -27670,7 +26257,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReadySolution { - pub supports: runtime_types::sp_core::bounded::bounded_vec::BoundedVec<( + pub supports: runtime_types::bounded_collections::bounded_vec::BoundedVec<( ::subxt::utils::AccountId32, runtime_types::sp_npos_elections::Support<::subxt::utils::AccountId32>, )>, @@ -27690,15 +26277,9 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RoundSnapshot { - pub voters: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - ::core::primitive::u64, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::subxt::utils::AccountId32, - >, - )>, - pub targets: ::std::vec::Vec<::subxt::utils::AccountId32>, + pub struct RoundSnapshot<_0, _1> { + pub voters: ::std::vec::Vec<_1>, + pub targets: ::std::vec::Vec<_0>, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -27737,105 +26318,31 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Vote for a set of candidates for the upcoming round of election. This can be called to"] - #[doc = "set the initial votes, or update already existing votes."] - #[doc = ""] - #[doc = "Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is"] - #[doc = "reserved. The deposit is based on the number of votes and can be updated over time."] - #[doc = ""] - #[doc = "The `votes` should:"] - #[doc = " - not be empty."] - #[doc = " - be less than the number of possible candidates. Note that all current members and"] - #[doc = " runners-up are also automatically candidates for the next round."] - #[doc = ""] - #[doc = "If `value` is more than `who`'s free balance, then the maximum of the two is used."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed."] - #[doc = ""] - #[doc = "### Warning"] - #[doc = ""] - #[doc = "It is the responsibility of the caller to **NOT** place all of their balance into the"] - #[doc = "lock and keep some for further operations."] - #[doc = ""] - #[doc = "# "] - #[doc = "We assume the maximum weight among all 3 cases: vote_equal, vote_more and vote_less."] - #[doc = "# "] + #[doc = "See [`Pallet::vote`]."] vote { votes: ::std::vec::Vec<::subxt::utils::AccountId32>, #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 1)] - #[doc = "Remove `origin` as a voter."] - #[doc = ""] - #[doc = "This removes the lock and returns the deposit."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed and be a voter."] + #[doc = "See [`Pallet::remove_voter`]."] remove_voter, #[codec(index = 2)] - #[doc = "Submit oneself for candidacy. A fixed amount of deposit is recorded."] - #[doc = ""] - #[doc = "All candidates are wiped at the end of the term. They either become a member/runner-up,"] - #[doc = "or leave the system while their deposit is slashed."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed."] - #[doc = ""] - #[doc = "### Warning"] - #[doc = ""] - #[doc = "Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]"] - #[doc = "to get their deposit back. Losing the spot in an election will always lead to a slash."] - #[doc = ""] - #[doc = "# "] - #[doc = "The number of current candidates must be provided as witness data."] - #[doc = "# "] + #[doc = "See [`Pallet::submit_candidacy`]."] submit_candidacy { #[codec(compact)] candidate_count: ::core::primitive::u32, }, #[codec(index = 3)] - #[doc = "Renounce one's intention to be a candidate for the next election round. 3 potential"] - #[doc = "outcomes exist:"] - #[doc = ""] - #[doc = "- `origin` is a candidate and not elected in any set. In this case, the deposit is"] - #[doc = " unreserved, returned and origin is removed as a candidate."] - #[doc = "- `origin` is a current runner-up. In this case, the deposit is unreserved, returned and"] - #[doc = " origin is removed as a runner-up."] - #[doc = "- `origin` is a current member. In this case, the deposit is unreserved and origin is"] - #[doc = " removed as a member, consequently not being a candidate for the next round anymore."] - #[doc = " Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they"] - #[doc = " are immediately used. If the prime is renouncing, then no prime will exist until the"] - #[doc = " next round."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed, and have one of the above roles."] - #[doc = ""] - #[doc = "# "] - #[doc = "The type of renouncing must be provided as witness data."] - #[doc = "# "] + #[doc = "See [`Pallet::renounce_candidacy`]."] renounce_candidacy { renouncing: runtime_types::pallet_elections_phragmen::Renouncing, }, #[codec(index = 4)] - #[doc = "Remove a particular member from the set. This is effective immediately and the bond of"] - #[doc = "the outgoing member is slashed."] - #[doc = ""] - #[doc = "If a runner-up is available, then the best runner-up will be removed and replaces the"] - #[doc = "outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is"] - #[doc = "started, else, nothing happens."] - #[doc = ""] - #[doc = "If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,"] - #[doc = "it is returned."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be root."] - #[doc = ""] - #[doc = "Note that this does not affect the designated block number of the next election."] - #[doc = ""] - #[doc = "# "] - #[doc = "If we have a replacement, we use a small weight. Else, since this is a root call and"] - #[doc = "will go into phragmen, we assume full block for now."] - #[doc = "# "] + #[doc = "See [`Pallet::remove_member`]."] remove_member { who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -27845,16 +26352,7 @@ pub mod api { rerun_election: ::core::primitive::bool, }, #[codec(index = 5)] - #[doc = "Clean all voters who are defunct (i.e. they do not serve any purpose at all). The"] - #[doc = "deposit of the removed voters are returned."] - #[doc = ""] - #[doc = "This is an root function to be used only for cleaning the state."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be root."] - #[doc = ""] - #[doc = "# "] - #[doc = "The total number of voters and those that are defunct must be provided as witness data."] - #[doc = "# "] + #[doc = "See [`Pallet::clean_defunct_voters`]."] clean_defunct_voters { num_voters: ::core::primitive::u32, num_defunct: ::core::primitive::u32, @@ -27873,7 +26371,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Cannot vote when no candidates or members exist."] @@ -27940,7 +26438,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A new term with new_members. This indicates that enough candidates existed to run"] @@ -28060,16 +26558,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Report voter equivocation/misbehavior. This method will verify the"] - #[doc = "equivocation proof and validate the given key ownership proof"] - #[doc = "against the extracted offender. If both are valid, the offence"] - #[doc = "will be reported."] + #[doc = "See [`Pallet::report_equivocation`]."] report_equivocation { equivocation_proof: ::std::boxed::Box< - runtime_types::sp_finality_grandpa::EquivocationProof< + runtime_types::sp_consensus_grandpa::EquivocationProof< ::subxt::utils::H256, ::core::primitive::u32, >, @@ -28077,18 +26572,10 @@ pub mod api { key_owner_proof: runtime_types::sp_session::MembershipProof, }, #[codec(index = 1)] - #[doc = "Report voter equivocation/misbehavior. This method will verify the"] - #[doc = "equivocation proof and validate the given key ownership proof"] - #[doc = "against the extracted offender. If both are valid, the offence"] - #[doc = "will be reported."] - #[doc = ""] - #[doc = "This extrinsic must be called unsigned and it is expected that only"] - #[doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] - #[doc = "if the block author is defined it will be defined as the equivocation"] - #[doc = "reporter."] + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] report_equivocation_unsigned { equivocation_proof: ::std::boxed::Box< - runtime_types::sp_finality_grandpa::EquivocationProof< + runtime_types::sp_consensus_grandpa::EquivocationProof< ::subxt::utils::H256, ::core::primitive::u32, >, @@ -28096,18 +26583,7 @@ pub mod api { key_owner_proof: runtime_types::sp_session::MembershipProof, }, #[codec(index = 2)] - #[doc = "Note that the current authority set of the GRANDPA finality gadget has stalled."] - #[doc = ""] - #[doc = "This will trigger a forced authority set change at the beginning of the next session, to"] - #[doc = "be enacted `delay` blocks after that. The `delay` should be high enough to safely assume"] - #[doc = "that the block signalling the forced change will not be re-orged e.g. 1000 blocks."] - #[doc = "The block production rate (which may be slowed down because of finality lagging) should"] - #[doc = "be taken into account when choosing the `delay`. The GRANDPA voters based on the new"] - #[doc = "authority will start voting on top of `best_finalized_block_number` for new finalized"] - #[doc = "blocks. `best_finalized_block_number` should be the highest of the latest finalized"] - #[doc = "block of all validators of the new authority set."] - #[doc = ""] - #[doc = "Only callable by root."] + #[doc = "See [`Pallet::note_stalled`]."] note_stalled { delay: ::core::primitive::u32, best_finalized_block_number: ::core::primitive::u32, @@ -28126,7 +26602,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Attempt to signal GRANDPA pause when the authority set isn't live"] @@ -28165,13 +26641,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "New authority set has been applied."] NewAuthorities { authority_set: ::std::vec::Vec<( - runtime_types::sp_finality_grandpa::app::Public, + runtime_types::sp_consensus_grandpa::app::Public, ::core::primitive::u64, )>, }, @@ -28200,8 +26676,8 @@ pub mod api { pub scheduled_at: _0, pub delay: _0, pub next_authorities: - runtime_types::sp_core::bounded::weak_bounded_vec::WeakBoundedVec<( - runtime_types::sp_finality_grandpa::app::Public, + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec<( + runtime_types::sp_consensus_grandpa::app::Public, ::core::primitive::u64, )>, pub forced: ::core::option::Option<_0>, @@ -28247,18 +26723,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "# "] - #[doc = "- Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is"] - #[doc = " length of `heartbeat.network_state.external_address`"] - #[doc = " - `O(K)`: decoding of length `K`"] - #[doc = " - `O(E)`: decoding/encoding of length `E`"] - #[doc = "- DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,"] - #[doc = " `ReceivedHeartbeats`"] - #[doc = "- DbWrites: `ReceivedHeartbeats`"] - #[doc = "# "] + #[doc = "See [`Pallet::heartbeat`]."] heartbeat { heartbeat: runtime_types::pallet_im_online::Heartbeat<::core::primitive::u32>, @@ -28278,7 +26746,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Non existent public key."] @@ -28300,7 +26768,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A new heartbeat was received from `AuthorityId`."] @@ -28370,33 +26838,8 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BoundedOpaqueNetworkState { - pub peer_id: runtime_types::sp_core::bounded::weak_bounded_vec::WeakBoundedVec< - ::core::primitive::u8, - >, - pub external_addresses: - runtime_types::sp_core::bounded::weak_bounded_vec::WeakBoundedVec< - runtime_types::sp_core::bounded::weak_bounded_vec::WeakBoundedVec< - ::core::primitive::u8, - >, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Heartbeat<_0> { pub block_number: _0, - pub network_state: runtime_types::sp_core::offchain::OpaqueNetworkState, pub session_index: _0, pub authority_index: _0, pub validators_len: _0, @@ -28419,49 +26862,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Assign an previously unassigned index."] - #[doc = ""] - #[doc = "Payment: `Deposit` is reserved from the sender account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `index`: the index to be claimed. This must not be in use."] - #[doc = ""] - #[doc = "Emits `IndexAssigned` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] + #[doc = "See [`Pallet::claim`]."] claim { index: ::core::primitive::u32 }, #[codec(index = 1)] - #[doc = "Assign an index already owned by the sender to another account. The balance reservation"] - #[doc = "is effectively transferred to the new account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `index`: the index to be re-assigned. This must be owned by the sender."] - #[doc = "- `new`: the new owner of the index. This function is a no-op if it is equal to sender."] - #[doc = ""] - #[doc = "Emits `IndexAssigned` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One transfer operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Indices Accounts, System Account (recipient)"] - #[doc = " - Writes: Indices Accounts, System Account (recipient)"] - #[doc = "# "] + #[doc = "See [`Pallet::transfer`]."] transfer { new: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -28470,47 +26877,10 @@ pub mod api { index: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "Free up an index owned by the sender."] - #[doc = ""] - #[doc = "Payment: Any previous deposit placed for the index is unreserved in the sender account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must own the index."] - #[doc = ""] - #[doc = "- `index`: the index to be freed. This must be owned by the sender."] - #[doc = ""] - #[doc = "Emits `IndexFreed` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] + #[doc = "See [`Pallet::free`]."] free { index: ::core::primitive::u32 }, #[codec(index = 3)] - #[doc = "Force an index to an account. This doesn't require a deposit. If the index is already"] - #[doc = "held, then any deposit is reimbursed to its current owner."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Root_."] - #[doc = ""] - #[doc = "- `index`: the index to be (re-)assigned."] - #[doc = "- `new`: the new owner of the index. This function is a no-op if it is equal to sender."] - #[doc = "- `freeze`: if set to `true`, will freeze the index so it cannot be transferred."] - #[doc = ""] - #[doc = "Emits `IndexAssigned` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- Up to one reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Indices Accounts, System Account (original owner)"] - #[doc = " - Writes: Indices Accounts, System Account (original owner)"] - #[doc = "# "] + #[doc = "See [`Pallet::force_transfer`]."] force_transfer { new: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -28520,24 +26890,7 @@ pub mod api { freeze: ::core::primitive::bool, }, #[codec(index = 4)] - #[doc = "Freeze an index so it will always point to the sender account. This consumes the"] - #[doc = "deposit."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the signing account must have a"] - #[doc = "non-frozen account `index`."] - #[doc = ""] - #[doc = "- `index`: the index to be frozen in place."] - #[doc = ""] - #[doc = "Emits `IndexFrozen` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- Up to one slash operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] + #[doc = "See [`Pallet::freeze`]."] freeze { index: ::core::primitive::u32 }, } #[derive( @@ -28553,7 +26906,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "The index was not already assigned."] @@ -28584,7 +26937,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A account index was assigned."] @@ -28621,12 +26974,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Add a member `who` to the set."] - #[doc = ""] - #[doc = "May only be called from `T::AddOrigin`."] + #[doc = "See [`Pallet::add_member`]."] add_member { who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -28634,9 +26985,7 @@ pub mod api { >, }, #[codec(index = 1)] - #[doc = "Remove a member `who` from the set."] - #[doc = ""] - #[doc = "May only be called from `T::RemoveOrigin`."] + #[doc = "See [`Pallet::remove_member`]."] remove_member { who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -28644,11 +26993,7 @@ pub mod api { >, }, #[codec(index = 2)] - #[doc = "Swap out one member `remove` for another `add`."] - #[doc = ""] - #[doc = "May only be called from `T::SwapOrigin`."] - #[doc = ""] - #[doc = "Prime membership is *not* passed from `remove` to `add`, if extant."] + #[doc = "See [`Pallet::swap_member`]."] swap_member { remove: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -28660,19 +27005,12 @@ pub mod api { >, }, #[codec(index = 3)] - #[doc = "Change the membership to a new set, disregarding the existing membership. Be nice and"] - #[doc = "pass `members` pre-sorted."] - #[doc = ""] - #[doc = "May only be called from `T::ResetOrigin`."] + #[doc = "See [`Pallet::reset_members`]."] reset_members { members: ::std::vec::Vec<::subxt::utils::AccountId32>, }, #[codec(index = 4)] - #[doc = "Swap out the sending member for some other key `new`."] - #[doc = ""] - #[doc = "May only be called from `Signed` origin of a current member."] - #[doc = ""] - #[doc = "Prime membership is passed from the origin account to `new`, if extant."] + #[doc = "See [`Pallet::change_key`]."] change_key { new: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -28680,9 +27018,7 @@ pub mod api { >, }, #[codec(index = 5)] - #[doc = "Set the prime member. Must be a current member."] - #[doc = ""] - #[doc = "May only be called from `T::PrimeOrigin`."] + #[doc = "See [`Pallet::set_prime`]."] set_prime { who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -28690,9 +27026,7 @@ pub mod api { >, }, #[codec(index = 6)] - #[doc = "Remove the prime member if it exists."] - #[doc = ""] - #[doc = "May only be called from `T::PrimeOrigin`."] + #[doc = "See [`Pallet::clear_prime`]."] clear_prime, } #[derive( @@ -28708,7 +27042,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Already a member."] @@ -28733,7 +27067,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "The given member was added; see the transaction for who."] @@ -28773,75 +27107,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Immediately dispatch a multi-signature call using a single approval from the caller."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `other_signatories`: The accounts (other than the sender) who are part of the"] - #[doc = "multi-signature, but do not participate in the approval process."] - #[doc = "- `call`: The call to be executed."] - #[doc = ""] - #[doc = "Result is equivalent to the dispatched result."] - #[doc = ""] - #[doc = "# "] - #[doc = "O(Z + C) where Z is the length of the call and C its execution weight."] - #[doc = "-------------------------------"] - #[doc = "- DB Weight: None"] - #[doc = "- Plus Call Weight"] - #[doc = "# "] + #[doc = "See [`Pallet::as_multi_threshold_1`]."] as_multi_threshold_1 { other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, call: ::std::boxed::Box, }, #[codec(index = 1)] - #[doc = "Register approval for a dispatch to be made from a deterministic composite account if"] - #[doc = "approved by a total of `threshold - 1` of `other_signatories`."] - #[doc = ""] - #[doc = "If there are enough, then dispatch the call."] - #[doc = ""] - #[doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] - #[doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] - #[doc = "is cancelled."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] - #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] - #[doc = "dispatch. May not be empty."] - #[doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] - #[doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] - #[doc = "transaction index) of the first approval transaction."] - #[doc = "- `call`: The call to be executed."] - #[doc = ""] - #[doc = "NOTE: Unless this is the final approval, you will generally want to use"] - #[doc = "`approve_as_multi` instead, since it only requires a hash of the call."] - #[doc = ""] - #[doc = "Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise"] - #[doc = "on success, result is `Ok` and the result from the interior call, if it was executed,"] - #[doc = "may be found in the deposited `MultisigExecuted` event."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(S + Z + Call)`."] - #[doc = "- Up to one balance-reserve or unreserve operation."] - #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] - #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] - #[doc = "- One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len."] - #[doc = "- One encode & hash, both of complexity `O(S)`."] - #[doc = "- Up to one binary search and insert (`O(logS + S)`)."] - #[doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] - #[doc = "- One event."] - #[doc = "- The weight of the `call`."] - #[doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] - #[doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] - #[doc = "-------------------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Multisig Storage, [Caller Account]"] - #[doc = " - Writes: Multisig Storage, [Caller Account]"] - #[doc = "- Plus Call Weight"] - #[doc = "# "] + #[doc = "See [`Pallet::as_multi`]."] as_multi { threshold: ::core::primitive::u16, other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -28852,41 +27127,7 @@ pub mod api { max_weight: runtime_types::sp_weights::weight_v2::Weight, }, #[codec(index = 2)] - #[doc = "Register approval for a dispatch to be made from a deterministic composite account if"] - #[doc = "approved by a total of `threshold - 1` of `other_signatories`."] - #[doc = ""] - #[doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] - #[doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] - #[doc = "is cancelled."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] - #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] - #[doc = "dispatch. May not be empty."] - #[doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] - #[doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] - #[doc = "transaction index) of the first approval transaction."] - #[doc = "- `call_hash`: The hash of the call to be executed."] - #[doc = ""] - #[doc = "NOTE: If this is the final approval, you will want to use `as_multi` instead."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(S)`."] - #[doc = "- Up to one balance-reserve or unreserve operation."] - #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] - #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] - #[doc = "- One encode & hash, both of complexity `O(S)`."] - #[doc = "- Up to one binary search and insert (`O(logS + S)`)."] - #[doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] - #[doc = "- One event."] - #[doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] - #[doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] - #[doc = "----------------------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Read: Multisig Storage, [Caller Account]"] - #[doc = " - Write: Multisig Storage, [Caller Account]"] - #[doc = "# "] + #[doc = "See [`Pallet::approve_as_multi`]."] approve_as_multi { threshold: ::core::primitive::u16, other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -28897,32 +27138,7 @@ pub mod api { max_weight: runtime_types::sp_weights::weight_v2::Weight, }, #[codec(index = 3)] - #[doc = "Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously"] - #[doc = "for this operation will be unreserved on success."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] - #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] - #[doc = "dispatch. May not be empty."] - #[doc = "- `timepoint`: The timepoint (block number and transaction index) of the first approval"] - #[doc = "transaction for this dispatch."] - #[doc = "- `call_hash`: The hash of the call to be executed."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(S)`."] - #[doc = "- Up to one balance-reserve or unreserve operation."] - #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] - #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] - #[doc = "- One encode & hash, both of complexity `O(S)`."] - #[doc = "- One event."] - #[doc = "- I/O: 1 read `O(S)`, one remove."] - #[doc = "- Storage: removes one item."] - #[doc = "----------------------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Read: Multisig Storage, [Caller Account], Refund Account"] - #[doc = " - Write: Multisig Storage, [Caller Account], Refund Account"] - #[doc = "# "] + #[doc = "See [`Pallet::cancel_as_multi`]."] cancel_as_multi { threshold: ::core::primitive::u16, other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -28944,7 +27160,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Threshold must be 2 or greater."] @@ -29002,7 +27218,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A new multisig operation has begun."] @@ -29059,7 +27275,7 @@ pub mod api { pub when: runtime_types::pallet_multisig::Timepoint<_0>, pub deposit: _1, pub depositor: _2, - pub approvals: runtime_types::sp_core::bounded::bounded_vec::BoundedVec<_2>, + pub approvals: runtime_types::bounded_collections::bounded_vec::BoundedVec<_2>, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -29096,76 +27312,27 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Stake funds with a pool. The amount to bond is transferred from the member to the"] - #[doc = "pools account and immediately increases the pools bond."] - #[doc = ""] - #[doc = "# Note"] - #[doc = ""] - #[doc = "* An account can only be a member of a single pool."] - #[doc = "* An account cannot join the same pool multiple times."] - #[doc = "* This call will *not* dust the member account, so the member must have at least"] - #[doc = " `existential deposit + amount` in their account."] - #[doc = "* Only a pool with [`PoolState::Open`] can be joined"] + #[doc = "See [`Pallet::join`]."] join { #[codec(compact)] amount: ::core::primitive::u128, pool_id: ::core::primitive::u32, }, #[codec(index = 1)] - #[doc = "Bond `extra` more funds from `origin` into the pool to which they already belong."] - #[doc = ""] - #[doc = "Additional funds can come from either the free balance of the account, of from the"] - #[doc = "accumulated rewards, see [`BondExtra`]."] - #[doc = ""] - #[doc = "Bonding extra funds implies an automatic payout of all pending rewards as well."] + #[doc = "See [`Pallet::bond_extra`]."] bond_extra { extra: runtime_types::pallet_nomination_pools::BondExtra< ::core::primitive::u128, >, }, #[codec(index = 2)] - #[doc = "A bonded member can use this to claim their payout based on the rewards that the pool"] - #[doc = "has accumulated since their last claimed payout (OR since joining if this is there first"] - #[doc = "time claiming rewards). The payout will be transferred to the member's account."] - #[doc = ""] - #[doc = "The member will earn rewards pro rata based on the members stake vs the sum of the"] - #[doc = "members in the pools stake. Rewards do not \"expire\"."] + #[doc = "See [`Pallet::claim_payout`]."] claim_payout, #[codec(index = 3)] - #[doc = "Unbond up to `unbonding_points` of the `member_account`'s funds from the pool. It"] - #[doc = "implicitly collects the rewards one last time, since not doing so would mean some"] - #[doc = "rewards would be forfeited."] - #[doc = ""] - #[doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] - #[doc = "account)."] - #[doc = ""] - #[doc = "# Conditions for a permissionless dispatch."] - #[doc = ""] - #[doc = "* The pool is blocked and the caller is either the root or state-toggler. This is"] - #[doc = " refereed to as a kick."] - #[doc = "* The pool is destroying and the member is not the depositor."] - #[doc = "* The pool is destroying, the member is the depositor and no other members are in the"] - #[doc = " pool."] - #[doc = ""] - #[doc = "## Conditions for permissioned dispatch (i.e. the caller is also the"] - #[doc = "`member_account`):"] - #[doc = ""] - #[doc = "* The caller is not the depositor."] - #[doc = "* The caller is the depositor, the pool is destroying and no other members are in the"] - #[doc = " pool."] - #[doc = ""] - #[doc = "# Note"] - #[doc = ""] - #[doc = "If there are too many unlocking chunks to unbond with the pool account,"] - #[doc = "[`Call::pool_withdraw_unbonded`] can be called to try and minimize unlocking chunks."] - #[doc = "The [`StakingInterface::unbond`] will implicitly call [`Call::pool_withdraw_unbonded`]"] - #[doc = "to try to free chunks if necessary (ie. if unbound was called and no unlocking chunks"] - #[doc = "are available). However, it may not be possible to release the current unlocking chunks,"] - #[doc = "in which case, the result of this call will likely be the `NoMoreChunks` error from the"] - #[doc = "staking system."] + #[doc = "See [`Pallet::unbond`]."] unbond { member_account: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -29175,36 +27342,13 @@ pub mod api { unbonding_points: ::core::primitive::u128, }, #[codec(index = 4)] - #[doc = "Call `withdraw_unbonded` for the pools account. This call can be made by any account."] - #[doc = ""] - #[doc = "This is useful if their are too many unlocking chunks to call `unbond`, and some"] - #[doc = "can be cleared by withdrawing. In the case there are too many unlocking chunks, the user"] - #[doc = "would probably see an error like `NoMoreChunks` emitted from the staking system when"] - #[doc = "they attempt to unbond."] + #[doc = "See [`Pallet::pool_withdraw_unbonded`]."] pool_withdraw_unbonded { pool_id: ::core::primitive::u32, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 5)] - #[doc = "Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an"] - #[doc = "error is returned."] - #[doc = ""] - #[doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] - #[doc = "account)."] - #[doc = ""] - #[doc = "# Conditions for a permissionless dispatch"] - #[doc = ""] - #[doc = "* The pool is in destroy mode and the target is not the depositor."] - #[doc = "* The target is the depositor and they are the only member in the sub pools."] - #[doc = "* The pool is blocked and the caller is either the root or state-toggler."] - #[doc = ""] - #[doc = "# Conditions for permissioned dispatch"] - #[doc = ""] - #[doc = "* The caller is the target and they are not the depositor."] - #[doc = ""] - #[doc = "# Note"] - #[doc = ""] - #[doc = "If the target is the depositor, the pool will be destroyed."] + #[doc = "See [`Pallet::withdraw_unbonded`]."] withdraw_unbonded { member_account: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -29213,23 +27357,7 @@ pub mod api { num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 6)] - #[doc = "Create a new delegation pool."] - #[doc = ""] - #[doc = "# Arguments"] - #[doc = ""] - #[doc = "* `amount` - The amount of funds to delegate to the pool. This also acts of a sort of"] - #[doc = " deposit since the pools creator cannot fully unbond funds until the pool is being"] - #[doc = " destroyed."] - #[doc = "* `index` - A disambiguation index for creating the account. Likely only useful when"] - #[doc = " creating multiple pools in the same extrinsic."] - #[doc = "* `root` - The account to set as [`PoolRoles::root`]."] - #[doc = "* `nominator` - The account to set as the [`PoolRoles::nominator`]."] - #[doc = "* `state_toggler` - The account to set as the [`PoolRoles::state_toggler`]."] - #[doc = ""] - #[doc = "# Note"] - #[doc = ""] - #[doc = "In addition to `amount`, the caller will transfer the existential deposit; so the caller"] - #[doc = "needs at have at least `amount + existential_deposit` transferrable."] + #[doc = "See [`Pallet::create`]."] create { #[codec(compact)] amount: ::core::primitive::u128, @@ -29241,18 +27369,13 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u32, >, - state_toggler: ::subxt::utils::MultiAddress< + bouncer: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, >, }, #[codec(index = 7)] - #[doc = "Create a new delegation pool with a previously used pool id"] - #[doc = ""] - #[doc = "# Arguments"] - #[doc = ""] - #[doc = "same as `create` with the inclusion of"] - #[doc = "* `pool_id` - `A valid PoolId."] + #[doc = "See [`Pallet::create_with_pool_id`]."] create_with_pool_id { #[codec(compact)] amount: ::core::primitive::u128, @@ -29264,59 +27387,32 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u32, >, - state_toggler: ::subxt::utils::MultiAddress< + bouncer: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, >, pool_id: ::core::primitive::u32, }, #[codec(index = 8)] - #[doc = "Nominate on behalf of the pool."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed by the pool nominator or the pool"] - #[doc = "root role."] - #[doc = ""] - #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] - #[doc = "account."] + #[doc = "See [`Pallet::nominate`]."] nominate { pool_id: ::core::primitive::u32, validators: ::std::vec::Vec<::subxt::utils::AccountId32>, }, #[codec(index = 9)] - #[doc = "Set a new state for the pool."] - #[doc = ""] - #[doc = "If a pool is already in the `Destroying` state, then under no condition can its state"] - #[doc = "change again."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be either:"] - #[doc = ""] - #[doc = "1. signed by the state toggler, or the root role of the pool,"] - #[doc = "2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and"] - #[doc = " then the state of the pool can be permissionlessly changed to `Destroying`."] + #[doc = "See [`Pallet::set_state`]."] set_state { pool_id: ::core::primitive::u32, state: runtime_types::pallet_nomination_pools::PoolState, }, #[codec(index = 10)] - #[doc = "Set a new metadata for the pool."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed by the state toggler, or the root role"] - #[doc = "of the pool."] + #[doc = "See [`Pallet::set_metadata`]."] set_metadata { pool_id: ::core::primitive::u32, metadata: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 11)] - #[doc = "Update configurations for the nomination pools. The origin for this call must be"] - #[doc = "Root."] - #[doc = ""] - #[doc = "# Arguments"] - #[doc = ""] - #[doc = "* `min_join_bond` - Set [`MinJoinBond`]."] - #[doc = "* `min_create_bond` - Set [`MinCreateBond`]."] - #[doc = "* `max_pools` - Set [`MaxPools`]."] - #[doc = "* `max_members` - Set [`MaxPoolMembers`]."] - #[doc = "* `max_members_per_pool` - Set [`MaxPoolMembersPerPool`]."] + #[doc = "See [`Pallet::set_configs`]."] set_configs { min_join_bond: runtime_types::pallet_nomination_pools::ConfigOp< ::core::primitive::u128, @@ -29333,15 +27429,12 @@ pub mod api { max_members_per_pool: runtime_types::pallet_nomination_pools::ConfigOp< ::core::primitive::u32, >, + global_max_commission: runtime_types::pallet_nomination_pools::ConfigOp< + runtime_types::sp_arithmetic::per_things::Perbill, + >, }, #[codec(index = 12)] - #[doc = "Update the roles of the pool."] - #[doc = ""] - #[doc = "The root is the only entity that can change any of the roles, including itself,"] - #[doc = "excluding the depositor, who can never change."] - #[doc = ""] - #[doc = "It emits an event, notifying UIs of the role change. This event is quite relevant to"] - #[doc = "most pool members and they should be informed of changes to pool roles."] + #[doc = "See [`Pallet::update_roles`]."] update_roles { pool_id: ::core::primitive::u32, new_root: runtime_types::pallet_nomination_pools::ConfigOp< @@ -29350,19 +27443,58 @@ pub mod api { new_nominator: runtime_types::pallet_nomination_pools::ConfigOp< ::subxt::utils::AccountId32, >, - new_state_toggler: runtime_types::pallet_nomination_pools::ConfigOp< + new_bouncer: runtime_types::pallet_nomination_pools::ConfigOp< ::subxt::utils::AccountId32, >, }, #[codec(index = 13)] - #[doc = "Chill on behalf of the pool."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed by the pool nominator or the pool"] - #[doc = "root role, same as [`Pallet::nominate`]."] - #[doc = ""] - #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] - #[doc = "account."] + #[doc = "See [`Pallet::chill`]."] chill { pool_id: ::core::primitive::u32 }, + #[codec(index = 14)] + #[doc = "See [`Pallet::bond_extra_other`]."] + bond_extra_other { + member: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + extra: runtime_types::pallet_nomination_pools::BondExtra< + ::core::primitive::u128, + >, + }, + #[codec(index = 15)] + #[doc = "See [`Pallet::set_claim_permission`]."] + set_claim_permission { + permission: runtime_types::pallet_nomination_pools::ClaimPermission, + }, + #[codec(index = 16)] + #[doc = "See [`Pallet::claim_payout_other`]."] + claim_payout_other { other: ::subxt::utils::AccountId32 }, + #[codec(index = 17)] + #[doc = "See [`Pallet::set_commission`]."] + set_commission { + pool_id: ::core::primitive::u32, + new_commission: ::core::option::Option<( + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::utils::AccountId32, + )>, + }, + #[codec(index = 18)] + #[doc = "See [`Pallet::set_commission_max`]."] + set_commission_max { + pool_id: ::core::primitive::u32, + max_commission: runtime_types::sp_arithmetic::per_things::Perbill, + }, + #[codec(index = 19)] + #[doc = "See [`Pallet::set_commission_change_rate`]."] + set_commission_change_rate { + pool_id: ::core::primitive::u32, + change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< + ::core::primitive::u32, + >, + }, + #[codec(index = 20)] + #[doc = "See [`Pallet::claim_commission`]."] + claim_commission { pool_id: ::core::primitive::u32 }, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -29402,7 +27534,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "A (bonded) pool id does not exist."] @@ -29476,11 +27608,35 @@ pub mod api { #[doc = "Partial unbonding now allowed permissionlessly."] PartialUnbondNotAllowedPermissionlessly, #[codec(index = 21)] + #[doc = "The pool's max commission cannot be set higher than the existing value."] + MaxCommissionRestricted, + #[codec(index = 22)] + #[doc = "The supplied commission exceeds the max allowed commission."] + CommissionExceedsMaximum, + #[codec(index = 23)] + #[doc = "The supplied commission exceeds global maximum commission."] + CommissionExceedsGlobalMaximum, + #[codec(index = 24)] + #[doc = "Not enough blocks have surpassed since the last commission update."] + CommissionChangeThrottled, + #[codec(index = 25)] + #[doc = "The submitted changes to commission change rate are not allowed."] + CommissionChangeRateNotAllowed, + #[codec(index = 26)] + #[doc = "There is no pending commission to claim."] + NoPendingCommission, + #[codec(index = 27)] + #[doc = "No commission current has been set."] + NoCommissionCurrentSet, + #[codec(index = 28)] #[doc = "Pool id currently in use."] PoolIdInUse, - #[codec(index = 22)] + #[codec(index = 29)] #[doc = "Pool id provided is not correct/usable."] InvalidPoolId, + #[codec(index = 30)] + #[doc = "Bonding extra is restricted to the exact pending reward amount."] + BondExtraRestricted, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -29572,7 +27728,7 @@ pub mod api { #[doc = "can never change."] RolesUpdated { root: ::core::option::Option<::subxt::utils::AccountId32>, - state_toggler: ::core::option::Option<::subxt::utils::AccountId32>, + bouncer: ::core::option::Option<::subxt::utils::AccountId32>, nominator: ::core::option::Option<::subxt::utils::AccountId32>, }, #[codec(index = 9)] @@ -29588,6 +27744,35 @@ pub mod api { era: ::core::primitive::u32, balance: ::core::primitive::u128, }, + #[codec(index = 11)] + #[doc = "A pool's commission setting has been changed."] + PoolCommissionUpdated { + pool_id: ::core::primitive::u32, + current: ::core::option::Option<( + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::utils::AccountId32, + )>, + }, + #[codec(index = 12)] + #[doc = "A pool's maximum commission setting has been changed."] + PoolMaxCommissionUpdated { + pool_id: ::core::primitive::u32, + max_commission: runtime_types::sp_arithmetic::per_things::Perbill, + }, + #[codec(index = 13)] + #[doc = "A pool's commission `change_rate` has been changed."] + PoolCommissionChangeRateUpdated { + pool_id: ::core::primitive::u32, + change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< + ::core::primitive::u32, + >, + }, + #[codec(index = 14)] + #[doc = "Pool commission has been claimed."] + PoolCommissionClaimed { + pool_id: ::core::primitive::u32, + commission: ::core::primitive::u128, + }, } } #[derive( @@ -29603,11 +27788,55 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum BondExtra<_0> { + pub enum BondExtra<_0> { + #[codec(index = 0)] + FreeBalance(_0), + #[codec(index = 1)] + Rewards, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BondedPoolInner { + pub commission: runtime_types::pallet_nomination_pools::Commission, + pub member_counter: ::core::primitive::u32, + pub points: ::core::primitive::u128, + pub roles: + runtime_types::pallet_nomination_pools::PoolRoles<::subxt::utils::AccountId32>, + pub state: runtime_types::pallet_nomination_pools::PoolState, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ClaimPermission { #[codec(index = 0)] - FreeBalance(_0), + Permissioned, #[codec(index = 1)] - Rewards, + PermissionlessCompound, + #[codec(index = 2)] + PermissionlessWithdraw, + #[codec(index = 3)] + PermissionlessAll, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -29622,12 +27851,35 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BondedPoolInner { - pub points: ::core::primitive::u128, - pub state: runtime_types::pallet_nomination_pools::PoolState, - pub member_counter: ::core::primitive::u32, - pub roles: - runtime_types::pallet_nomination_pools::PoolRoles<::subxt::utils::AccountId32>, + pub struct Commission { + pub current: ::core::option::Option<( + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::utils::AccountId32, + )>, + pub max: ::core::option::Option, + pub change_rate: ::core::option::Option< + runtime_types::pallet_nomination_pools::CommissionChangeRate< + ::core::primitive::u32, + >, + >, + pub throttle_from: ::core::option::Option<::core::primitive::u32>, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct CommissionChangeRate<_0> { + pub max_increase: runtime_types::sp_arithmetic::per_things::Perbill, + pub min_delay: _0, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -29669,7 +27921,7 @@ pub mod api { pub last_recorded_reward_counter: runtime_types::sp_arithmetic::fixed_point::FixedU128, pub unbonding_eras: - runtime_types::sp_core::bounded::bounded_btree_map::BoundedBTreeMap< + runtime_types::bounded_collections::bounded_btree_map::BoundedBTreeMap< ::core::primitive::u32, ::core::primitive::u128, >, @@ -29691,7 +27943,7 @@ pub mod api { pub depositor: _0, pub root: ::core::option::Option<_0>, pub nominator: ::core::option::Option<_0>, - pub state_toggler: ::core::option::Option<_0>, + pub bouncer: ::core::option::Option<_0>, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -29732,6 +27984,8 @@ pub mod api { runtime_types::sp_arithmetic::fixed_point::FixedU128, pub last_recorded_total_payouts: ::core::primitive::u128, pub total_rewards_claimed: ::core::primitive::u128, + pub total_commission_pending: ::core::primitive::u128, + pub total_commission_claimed: ::core::primitive::u128, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -29748,10 +28002,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubPools { pub no_era: runtime_types::pallet_nomination_pools::UnbondPool, - pub with_era: runtime_types::sp_core::bounded::bounded_btree_map::BoundedBTreeMap< - ::core::primitive::u32, - runtime_types::pallet_nomination_pools::UnbondPool, - >, + pub with_era: + runtime_types::bounded_collections::bounded_btree_map::BoundedBTreeMap< + ::core::primitive::u32, + runtime_types::pallet_nomination_pools::UnbondPool, + >, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -29818,34 +28073,21 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Register a preimage on-chain."] - #[doc = ""] - #[doc = "If the preimage was previously requested, no fees or deposits are taken for providing"] - #[doc = "the preimage. Otherwise, a deposit is taken proportional to the size of the preimage."] + #[doc = "See [`Pallet::note_preimage`]."] note_preimage { bytes: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] - #[doc = "Clear an unrequested preimage from the runtime storage."] - #[doc = ""] - #[doc = "If `len` is provided, then it will be a much cheaper operation."] - #[doc = ""] - #[doc = "- `hash`: The hash of the preimage to be removed from the store."] - #[doc = "- `len`: The length of the preimage of `hash`."] + #[doc = "See [`Pallet::unnote_preimage`]."] unnote_preimage { hash: ::subxt::utils::H256 }, #[codec(index = 2)] - #[doc = "Request a preimage be uploaded to the chain without paying any fees or deposits."] - #[doc = ""] - #[doc = "If the preimage requests has already been provided on-chain, we unreserve any deposit"] - #[doc = "a user may have paid, and take the control of the preimage out of their hands."] + #[doc = "See [`Pallet::request_preimage`]."] request_preimage { hash: ::subxt::utils::H256 }, #[codec(index = 3)] - #[doc = "Clear a previously made request for a preimage."] - #[doc = ""] - #[doc = "NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`."] + #[doc = "See [`Pallet::unrequest_preimage`]."] unrequest_preimage { hash: ::subxt::utils::H256 }, } #[derive( @@ -29861,7 +28103,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Preimage is too large to store on-chain."] @@ -29895,7 +28137,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A preimage has been noted."] @@ -29952,10 +28194,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Anonymously schedule a task."] + #[doc = "See [`Pallet::schedule`]."] schedule { when: ::core::primitive::u32, maybe_periodic: ::core::option::Option<( @@ -29966,13 +28208,13 @@ pub mod api { call: ::std::boxed::Box, }, #[codec(index = 1)] - #[doc = "Cancel an anonymously scheduled task."] + #[doc = "See [`Pallet::cancel`]."] cancel { when: ::core::primitive::u32, index: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "Schedule a named task."] + #[doc = "See [`Pallet::schedule_named`]."] schedule_named { id: [::core::primitive::u8; 32usize], when: ::core::primitive::u32, @@ -29984,16 +28226,12 @@ pub mod api { call: ::std::boxed::Box, }, #[codec(index = 3)] - #[doc = "Cancel a named scheduled task."] + #[doc = "See [`Pallet::cancel_named`]."] cancel_named { id: [::core::primitive::u8; 32usize], }, #[codec(index = 4)] - #[doc = "Anonymously schedule a task after a delay."] - #[doc = ""] - #[doc = "# "] - #[doc = "Same as [`schedule`]."] - #[doc = "# "] + #[doc = "See [`Pallet::schedule_after`]."] schedule_after { after: ::core::primitive::u32, maybe_periodic: ::core::option::Option<( @@ -30004,11 +28242,7 @@ pub mod api { call: ::std::boxed::Box, }, #[codec(index = 5)] - #[doc = "Schedule a named task after a delay."] - #[doc = ""] - #[doc = "# "] - #[doc = "Same as [`schedule_named`](Self::schedule_named)."] - #[doc = "# "] + #[doc = "See [`Pallet::schedule_named_after`]."] schedule_named_after { id: [::core::primitive::u8; 32usize], after: ::core::primitive::u32, @@ -30033,7 +28267,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Failed to schedule a call"] @@ -30146,44 +28380,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Sets the session key(s) of the function caller to `keys`."] - #[doc = "Allows an account to set its session key prior to becoming a validator."] - #[doc = "This doesn't take effect until the next session."] - #[doc = ""] - #[doc = "The dispatch origin of this function must be signed."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: `O(1)`. Actual cost depends on the number of length of"] - #[doc = " `T::Keys::key_ids()` which is fixed."] - #[doc = "- DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`"] - #[doc = "- DbWrites: `origin account`, `NextKeys`"] - #[doc = "- DbReads per key id: `KeyOwner`"] - #[doc = "- DbWrites per key id: `KeyOwner`"] - #[doc = "# "] + #[doc = "See [`Pallet::set_keys`]."] set_keys { keys: runtime_types::da_runtime::primitives::SessionKeys, proof: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] - #[doc = "Removes any session key(s) of the function caller."] - #[doc = ""] - #[doc = "This doesn't take effect until the next session."] - #[doc = ""] - #[doc = "The dispatch origin of this function must be Signed and the account must be either be"] - #[doc = "convertible to a validator ID using the chain's typical addressing system (this usually"] - #[doc = "means being a controller account) or directly convertible into a validator ID (which"] - #[doc = "usually means being a stash account)."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: `O(1)` in number of key types. Actual cost depends on the number of length"] - #[doc = " of `T::Keys::key_ids()` which is fixed."] - #[doc = "- DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`"] - #[doc = "- DbWrites: `NextKeys`, `origin account`"] - #[doc = "- DbWrites per key id: `KeyOwner`"] - #[doc = "# "] + #[doc = "See [`Pallet::purge_keys`]."] purge_keys, } #[derive( @@ -30230,7 +28436,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "New session has happened. Note that the argument is the session index, not the"] @@ -30260,31 +28466,11 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Take the origin account as a stash and lock up `value` of its balance. `controller` will"] - #[doc = "be the account that controls it."] - #[doc = ""] - #[doc = "`value` must be more than the `minimum_balance` specified by `T::Currency`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the stash account."] - #[doc = ""] - #[doc = "Emits `Bonded`."] - #[doc = "# "] - #[doc = "- Independent of the arguments. Moderate complexity."] - #[doc = "- O(1)."] - #[doc = "- Three extra DB entries."] - #[doc = ""] - #[doc = "NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned"] - #[doc = "unless the `origin` falls below _existential deposit_ and gets removed as dust."] - #[doc = "------------------"] - #[doc = "# "] + #[doc = "See [`Pallet::bond`]."] bond { - controller: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, #[codec(compact)] value: ::core::primitive::u128, payee: runtime_types::pallet_staking::RewardDestination< @@ -30292,89 +28478,29 @@ pub mod api { >, }, #[codec(index = 1)] - #[doc = "Add some extra amount that have appeared in the stash `free_balance` into the balance up"] - #[doc = "for staking."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] - #[doc = ""] - #[doc = "Use this if there are additional funds in your stash account that you wish to bond."] - #[doc = "Unlike [`bond`](Self::bond) or [`unbond`](Self::unbond) this function does not impose"] - #[doc = "any limitation on the amount that can be added."] - #[doc = ""] - #[doc = "Emits `Bonded`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- O(1)."] - #[doc = "# "] + #[doc = "See [`Pallet::bond_extra`]."] bond_extra { #[codec(compact)] max_additional: ::core::primitive::u128, }, #[codec(index = 2)] - #[doc = "Schedule a portion of the stash to be unlocked ready for transfer out after the bond"] - #[doc = "period ends. If this leaves an amount actively bonded less than"] - #[doc = "T::Currency::minimum_balance(), then it is increased to the full amount."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] - #[doc = ""] - #[doc = "Once the unlock period is done, you can call `withdraw_unbonded` to actually move"] - #[doc = "the funds out of management ready for transfer."] - #[doc = ""] - #[doc = "No more than a limited number of unlocking chunks (see `MaxUnlockingChunks`)"] - #[doc = "can co-exists at the same time. If there are no unlocking chunks slots available"] - #[doc = "[`Call::withdraw_unbonded`] is called to remove some of the chunks (if possible)."] - #[doc = ""] - #[doc = "If a user encounters the `InsufficientBond` error when calling this extrinsic,"] - #[doc = "they should call `chill` first in order to free up their bonded funds."] - #[doc = ""] - #[doc = "Emits `Unbonded`."] - #[doc = ""] - #[doc = "See also [`Call::withdraw_unbonded`]."] + #[doc = "See [`Pallet::unbond`]."] unbond { #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 3)] - #[doc = "Remove any unlocked chunks from the `unlocking` queue from our management."] - #[doc = ""] - #[doc = "This essentially frees up that balance to be used by the stash account to do"] - #[doc = "whatever it wants."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller."] - #[doc = ""] - #[doc = "Emits `Withdrawn`."] - #[doc = ""] - #[doc = "See also [`Call::unbond`]."] - #[doc = ""] - #[doc = "# "] - #[doc = "Complexity O(S) where S is the number of slashing spans to remove"] - #[doc = "NOTE: Weight annotation is the kill scenario, we refund otherwise."] - #[doc = "# "] + #[doc = "See [`Pallet::withdraw_unbonded`]."] withdraw_unbonded { num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 4)] - #[doc = "Declare the desire to validate for the origin controller."] - #[doc = ""] - #[doc = "Effects will be felt at the beginning of the next era."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] + #[doc = "See [`Pallet::validate`]."] validate { prefs: runtime_types::pallet_staking::ValidatorPrefs, }, #[codec(index = 5)] - #[doc = "Declare the desire to nominate `targets` for the origin controller."] - #[doc = ""] - #[doc = "Effects will be felt at the beginning of the next era."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] - #[doc = ""] - #[doc = "# "] - #[doc = "- The transaction's complexity is proportional to the size of `targets` (N)"] - #[doc = "which is capped at CompactAssignments::LIMIT (T::MaxNominations)."] - #[doc = "- Both the reads and writes follow a similar pattern."] - #[doc = "# "] + #[doc = "See [`Pallet::nominate`]."] nominate { targets: ::std::vec::Vec< ::subxt::utils::MultiAddress< @@ -30384,241 +28510,81 @@ pub mod api { >, }, #[codec(index = 6)] - #[doc = "Declare no desire to either validate or nominate."] - #[doc = ""] - #[doc = "Effects will be felt at the beginning of the next era."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- Contains one read."] - #[doc = "- Writes are limited to the `origin` account key."] - #[doc = "# "] + #[doc = "See [`Pallet::chill`]."] chill, #[codec(index = 7)] - #[doc = "(Re-)set the payment target for a controller."] - #[doc = ""] - #[doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- Contains a limited number of reads."] - #[doc = "- Writes are limited to the `origin` account key."] - #[doc = "---------"] - #[doc = "- Weight: O(1)"] - #[doc = "- DB Weight:"] - #[doc = " - Read: Ledger"] - #[doc = " - Write: Payee"] - #[doc = "# "] + #[doc = "See [`Pallet::set_payee`]."] set_payee { payee: runtime_types::pallet_staking::RewardDestination< ::subxt::utils::AccountId32, >, }, #[codec(index = 8)] - #[doc = "(Re-)set the controller of a stash."] - #[doc = ""] - #[doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- Contains a limited number of reads."] - #[doc = "- Writes are limited to the `origin` account key."] - #[doc = "----------"] - #[doc = "Weight: O(1)"] - #[doc = "DB Weight:"] - #[doc = "- Read: Bonded, Ledger New Controller, Ledger Old Controller"] - #[doc = "- Write: Bonded, Ledger New Controller, Ledger Old Controller"] - #[doc = "# "] - set_controller { - controller: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, + #[doc = "See [`Pallet::set_controller`]."] + set_controller, #[codec(index = 9)] - #[doc = "Sets the ideal number of validators."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# "] - #[doc = "Weight: O(1)"] - #[doc = "Write: Validator Count"] - #[doc = "# "] + #[doc = "See [`Pallet::set_validator_count`]."] set_validator_count { #[codec(compact)] new: ::core::primitive::u32, }, #[codec(index = 10)] - #[doc = "Increments the ideal number of validators upto maximum of"] - #[doc = "`ElectionProviderBase::MaxWinners`."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# "] - #[doc = "Same as [`Self::set_validator_count`]."] - #[doc = "# "] + #[doc = "See [`Pallet::increase_validator_count`]."] increase_validator_count { #[codec(compact)] additional: ::core::primitive::u32, }, #[codec(index = 11)] - #[doc = "Scale up the ideal number of validators by a factor upto maximum of"] - #[doc = "`ElectionProviderBase::MaxWinners`."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# "] - #[doc = "Same as [`Self::set_validator_count`]."] - #[doc = "# "] + #[doc = "See [`Pallet::scale_validator_count`]."] scale_validator_count { factor: runtime_types::sp_arithmetic::per_things::Percent, }, #[codec(index = 12)] - #[doc = "Force there to be no new eras indefinitely."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# Warning"] - #[doc = ""] - #[doc = "The election process starts multiple blocks before the end of the era."] - #[doc = "Thus the election process may be ongoing when this is called. In this case the"] - #[doc = "election will continue until the next era is triggered."] - #[doc = ""] - #[doc = "# "] - #[doc = "- No arguments."] - #[doc = "- Weight: O(1)"] - #[doc = "- Write: ForceEra"] - #[doc = "# "] + #[doc = "See [`Pallet::force_no_eras`]."] force_no_eras, #[codec(index = 13)] - #[doc = "Force there to be a new era at the end of the next session. After this, it will be"] - #[doc = "reset to normal (non-forced) behaviour."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# Warning"] - #[doc = ""] - #[doc = "The election process starts multiple blocks before the end of the era."] - #[doc = "If this is called just before a new era is triggered, the election process may not"] - #[doc = "have enough blocks to get a result."] - #[doc = ""] - #[doc = "# "] - #[doc = "- No arguments."] - #[doc = "- Weight: O(1)"] - #[doc = "- Write ForceEra"] - #[doc = "# "] + #[doc = "See [`Pallet::force_new_era`]."] force_new_era, #[codec(index = 14)] - #[doc = "Set the validators who cannot be slashed (if any)."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] + #[doc = "See [`Pallet::set_invulnerables`]."] set_invulnerables { invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, }, #[codec(index = 15)] - #[doc = "Force a current staker to become completely unstaked, immediately."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] + #[doc = "See [`Pallet::force_unstake`]."] force_unstake { stash: ::subxt::utils::AccountId32, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 16)] - #[doc = "Force there to be a new era at the end of sessions indefinitely."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# Warning"] - #[doc = ""] - #[doc = "The election process starts multiple blocks before the end of the era."] - #[doc = "If this is called just before a new era is triggered, the election process may not"] - #[doc = "have enough blocks to get a result."] + #[doc = "See [`Pallet::force_new_era_always`]."] force_new_era_always, #[codec(index = 17)] - #[doc = "Cancel enactment of a deferred slash."] - #[doc = ""] - #[doc = "Can be called by the `T::AdminOrigin`."] - #[doc = ""] - #[doc = "Parameters: era and indices of the slashes for that era to kill."] + #[doc = "See [`Pallet::cancel_deferred_slash`]."] cancel_deferred_slash { era: ::core::primitive::u32, slash_indices: ::std::vec::Vec<::core::primitive::u32>, }, #[codec(index = 18)] - #[doc = "Pay out all the stakers behind a single validator for a single era."] - #[doc = ""] - #[doc = "- `validator_stash` is the stash account of the validator. Their nominators, up to"] - #[doc = " `T::MaxNominatorRewardedPerValidator`, will also receive their rewards."] - #[doc = "- `era` may be any era between `[current_era - history_depth; current_era]`."] - #[doc = ""] - #[doc = "The origin of this call must be _Signed_. Any account can call this function, even if"] - #[doc = "it is not one of the stakers."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Time complexity: at most O(MaxNominatorRewardedPerValidator)."] - #[doc = "- Contains a limited number of reads and writes."] - #[doc = "-----------"] - #[doc = "N is the Number of payouts for the validator (including the validator)"] - #[doc = "Weight:"] - #[doc = "- Reward Destination Staked: O(N)"] - #[doc = "- Reward Destination Controller (Creating): O(N)"] - #[doc = ""] - #[doc = " NOTE: weights are assuming that payouts are made to alive stash account (Staked)."] - #[doc = " Paying even a dead controller is cheaper weight-wise. We don't do any refunds here."] - #[doc = "# "] + #[doc = "See [`Pallet::payout_stakers`]."] payout_stakers { validator_stash: ::subxt::utils::AccountId32, era: ::core::primitive::u32, }, #[codec(index = 19)] - #[doc = "Rebond a portion of the stash scheduled to be unlocked."] - #[doc = ""] - #[doc = "The dispatch origin must be signed by the controller."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Time complexity: O(L), where L is unlocking chunks"] - #[doc = "- Bounded by `MaxUnlockingChunks`."] - #[doc = "- Storage changes: Can't increase storage, only decrease it."] - #[doc = "# "] + #[doc = "See [`Pallet::rebond`]."] rebond { #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 20)] - #[doc = "Remove all data structures concerning a staker/stash once it is at a state where it can"] - #[doc = "be considered `dust` in the staking system. The requirements are:"] - #[doc = ""] - #[doc = "1. the `total_balance` of the stash is below existential deposit."] - #[doc = "2. or, the `ledger.total` of the stash is below existential deposit."] - #[doc = ""] - #[doc = "The former can happen in cases like a slash; the latter when a fully unbonded account"] - #[doc = "is still receiving staking rewards in `RewardDestination::Staked`."] - #[doc = ""] - #[doc = "It can be called by anyone, as long as `stash` meets the above requirements."] - #[doc = ""] - #[doc = "Refunds the transaction fees upon successful execution."] + #[doc = "See [`Pallet::reap_stash`]."] reap_stash { stash: ::subxt::utils::AccountId32, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 21)] - #[doc = "Remove the given nominations from the calling validator."] - #[doc = ""] - #[doc = "Effects will be felt at the beginning of the next era."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] - #[doc = ""] - #[doc = "- `who`: A list of nominator stash accounts who are nominating this validator which"] - #[doc = " should no longer be nominating this validator."] - #[doc = ""] - #[doc = "Note: Making this call only makes sense if you first set the validator preferences to"] - #[doc = "block any further nominations."] + #[doc = "See [`Pallet::kick`]."] kick { who: ::std::vec::Vec< ::subxt::utils::MultiAddress< @@ -30628,23 +28594,7 @@ pub mod api { >, }, #[codec(index = 22)] - #[doc = "Update the various staking configurations ."] - #[doc = ""] - #[doc = "* `min_nominator_bond`: The minimum active bond needed to be a nominator."] - #[doc = "* `min_validator_bond`: The minimum active bond needed to be a validator."] - #[doc = "* `max_nominator_count`: The max number of users who can be a nominator at once. When"] - #[doc = " set to `None`, no limit is enforced."] - #[doc = "* `max_validator_count`: The max number of users who can be a validator at once. When"] - #[doc = " set to `None`, no limit is enforced."] - #[doc = "* `chill_threshold`: The ratio of `max_nominator_count` or `max_validator_count` which"] - #[doc = " should be filled in order for the `chill_other` transaction to work."] - #[doc = "* `min_commission`: The minimum amount of commission that each validators must maintain."] - #[doc = " This is checked only upon calling `validate`. Existing validators are not affected."] - #[doc = ""] - #[doc = "RuntimeOrigin must be Root to call this function."] - #[doc = ""] - #[doc = "NOTE: Existing nominators and validators will not be affected by this update."] - #[doc = "to kick people under the new limits, `chill_other` should be called."] + #[doc = "See [`Pallet::set_staking_configs`]."] set_staking_configs { min_nominator_bond: runtime_types::pallet_staking::pallet::pallet::ConfigOp< @@ -30671,47 +28621,17 @@ pub mod api { >, }, #[codec(index = 23)] - #[doc = "Declare a `controller` to stop participating as either a validator or nominator."] - #[doc = ""] - #[doc = "Effects will be felt at the beginning of the next era."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_, but can be called by anyone."] - #[doc = ""] - #[doc = "If the caller is the same as the controller being targeted, then no further checks are"] - #[doc = "enforced, and this function behaves just like `chill`."] - #[doc = ""] - #[doc = "If the caller is different than the controller being targeted, the following conditions"] - #[doc = "must be met:"] - #[doc = ""] - #[doc = "* `controller` must belong to a nominator who has become non-decodable,"] - #[doc = ""] - #[doc = "Or:"] - #[doc = ""] - #[doc = "* A `ChillThreshold` must be set and checked which defines how close to the max"] - #[doc = " nominators or validators we must reach before users can start chilling one-another."] - #[doc = "* A `MaxNominatorCount` and `MaxValidatorCount` must be set which is used to determine"] - #[doc = " how close we are to the threshold."] - #[doc = "* A `MinNominatorBond` and `MinValidatorBond` must be set and checked, which determines"] - #[doc = " if this is a person that should be chilled because they have not met the threshold"] - #[doc = " bond required."] - #[doc = ""] - #[doc = "This can be helpful if bond requirements are updated, and we need to remove old users"] - #[doc = "who do not satisfy these requirements."] + #[doc = "See [`Pallet::chill_other`]."] chill_other { controller: ::subxt::utils::AccountId32, }, #[codec(index = 24)] - #[doc = "Force a validator to have at least the minimum commission. This will not affect a"] - #[doc = "validator who already has a commission greater than or equal to the minimum. Any account"] - #[doc = "can call this."] + #[doc = "See [`Pallet::force_apply_min_commission`]."] force_apply_min_commission { validator_stash: ::subxt::utils::AccountId32, }, #[codec(index = 25)] - #[doc = "Sets the minimum amount of commission that each validators must maintain."] - #[doc = ""] - #[doc = "This call has lower privilege requirements than `set_staking_config` and can be called"] - #[doc = "by the `T::AdminOrigin`. Root can always call this."] + #[doc = "See [`Pallet::set_min_commission`]."] set_min_commission { new: runtime_types::sp_arithmetic::per_things::Perbill, }, @@ -30750,7 +28670,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Not a controller account."] @@ -30845,7 +28765,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "The era payout has been set; the first balance is the validator-payout; the second is"] @@ -31087,7 +29007,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Nominations { - pub targets: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + pub targets: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::subxt::utils::AccountId32, >, pub submitted_in: ::core::primitive::u32, @@ -31137,10 +29057,10 @@ pub mod api { pub total: ::core::primitive::u128, #[codec(compact)] pub active: ::core::primitive::u128, - pub unlocking: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + pub unlocking: runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::pallet_staking::UnlockChunk<::core::primitive::u128>, >, - pub claimed_rewards: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + pub claimed_rewards: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u32, >, } @@ -31219,48 +29139,21 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB write (event)."] - #[doc = "- Weight of derivative `call` execution + 10,000."] - #[doc = "# "] + #[doc = "See [`Pallet::sudo`]."] sudo { call: ::std::boxed::Box, }, #[codec(index = 1)] - #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] - #[doc = "This function does not check the weight of the call, and instead allows the"] - #[doc = "Sudo user to specify the weight of the call."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- The weight of this call is defined by the caller."] - #[doc = "# "] + #[doc = "See [`Pallet::sudo_unchecked_weight`]."] sudo_unchecked_weight { call: ::std::boxed::Box, weight: runtime_types::sp_weights::weight_v2::Weight, }, #[codec(index = 2)] - #[doc = "Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo"] - #[doc = "key."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB change."] - #[doc = "# "] + #[doc = "See [`Pallet::set_key`]."] set_key { new: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -31268,17 +29161,7 @@ pub mod api { >, }, #[codec(index = 3)] - #[doc = "Authenticates the sudo key and dispatches a function call with `Signed` origin from"] - #[doc = "a given account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB write (event)."] - #[doc = "- Weight of derivative `call` execution + 10,000."] - #[doc = "# "] + #[doc = "See [`Pallet::sudo_as`]."] sudo_as { who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -31319,7 +29202,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A sudo just took place. \\[result\\]"] @@ -31358,25 +29241,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Set the current time."] - #[doc = ""] - #[doc = "This call should be invoked exactly once per block. It will panic at the finalization"] - #[doc = "phase, if this call hasn't been invoked by that time."] - #[doc = ""] - #[doc = "The timestamp should be greater than the previous one by the amount specified by"] - #[doc = "`MinimumPeriod`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Inherent`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)"] - #[doc = "- 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in"] - #[doc = " `on_finalize`)"] - #[doc = "- 1 event handler `on_timestamp_set`. Must be `O(1)`."] - #[doc = "# "] + #[doc = "See [`Pallet::set`]."] set { #[codec(compact)] now: ::core::primitive::u64, @@ -31401,28 +29269,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Report something `reason` that deserves a tip and claim any eventual the finder's fee."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "Payment: `TipReportDepositBase` will be reserved from the origin account, as well as"] - #[doc = "`DataDepositPerByte` for each byte in `reason`."] - #[doc = ""] - #[doc = "- `reason`: The reason for, or the thing that deserves, the tip; generally this will be"] - #[doc = " a UTF-8-encoded URL."] - #[doc = "- `who`: The account which should be credited for the tip."] - #[doc = ""] - #[doc = "Emits `NewTip` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: `O(R)` where `R` length of `reason`."] - #[doc = " - encoding and hashing of 'reason'"] - #[doc = "- DbReads: `Reasons`, `Tips`"] - #[doc = "- DbWrites: `Reasons`, `Tips`"] - #[doc = "# "] + #[doc = "See [`Pallet::report_awesome`]."] report_awesome { reason: ::std::vec::Vec<::core::primitive::u8>, who: ::subxt::utils::MultiAddress< @@ -31431,49 +29281,10 @@ pub mod api { >, }, #[codec(index = 1)] - #[doc = "Retract a prior tip-report from `report_awesome`, and cancel the process of tipping."] - #[doc = ""] - #[doc = "If successful, the original deposit will be unreserved."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the tip identified by `hash`"] - #[doc = "must have been reported by the signing account through `report_awesome` (and not"] - #[doc = "through `tip_new`)."] - #[doc = ""] - #[doc = "- `hash`: The identity of the open tip for which a tip value is declared. This is formed"] - #[doc = " as the hash of the tuple of the original tip `reason` and the beneficiary account ID."] - #[doc = ""] - #[doc = "Emits `TipRetracted` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: `O(1)`"] - #[doc = " - Depends on the length of `T::Hash` which is fixed."] - #[doc = "- DbReads: `Tips`, `origin account`"] - #[doc = "- DbWrites: `Reasons`, `Tips`, `origin account`"] - #[doc = "# "] + #[doc = "See [`Pallet::retract_tip`]."] retract_tip { hash: ::subxt::utils::H256 }, #[codec(index = 2)] - #[doc = "Give a tip for something new; no finder's fee will be taken."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the signing account must be a"] - #[doc = "member of the `Tippers` set."] - #[doc = ""] - #[doc = "- `reason`: The reason for, or the thing that deserves, the tip; generally this will be"] - #[doc = " a UTF-8-encoded URL."] - #[doc = "- `who`: The account which should be credited for the tip."] - #[doc = "- `tip_value`: The amount of tip that the sender would like to give. The median tip"] - #[doc = " value of active tippers will be given to the `who`."] - #[doc = ""] - #[doc = "Emits `NewTip` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: `O(R + T)` where `R` length of `reason`, `T` is the number of tippers."] - #[doc = " - `O(T)`: decoding `Tipper` vec of length `T`. `T` is charged as upper bound given by"] - #[doc = " `ContainsLengthBound`. The actual cost depends on the implementation of"] - #[doc = " `T::Tippers`."] - #[doc = " - `O(R)`: hashing and encoding of reason of length `R`"] - #[doc = "- DbReads: `Tippers`, `Reasons`"] - #[doc = "- DbWrites: `Reasons`, `Tips`"] - #[doc = "# "] + #[doc = "See [`Pallet::tip_new`]."] tip_new { reason: ::std::vec::Vec<::core::primitive::u8>, who: ::subxt::utils::MultiAddress< @@ -31484,66 +29295,17 @@ pub mod api { tip_value: ::core::primitive::u128, }, #[codec(index = 3)] - #[doc = "Declare a tip value for an already-open tip."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the signing account must be a"] - #[doc = "member of the `Tippers` set."] - #[doc = ""] - #[doc = "- `hash`: The identity of the open tip for which a tip value is declared. This is formed"] - #[doc = " as the hash of the tuple of the hash of the original tip `reason` and the beneficiary"] - #[doc = " account ID."] - #[doc = "- `tip_value`: The amount of tip that the sender would like to give. The median tip"] - #[doc = " value of active tippers will be given to the `who`."] - #[doc = ""] - #[doc = "Emits `TipClosing` if the threshold of tippers has been reached and the countdown period"] - #[doc = "has started."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length"] - #[doc = " `T`, insert tip and check closing, `T` is charged as upper bound given by"] - #[doc = " `ContainsLengthBound`. The actual cost depends on the implementation of `T::Tippers`."] - #[doc = ""] - #[doc = " Actually weight could be lower as it depends on how many tips are in `OpenTip` but it"] - #[doc = " is weighted as if almost full i.e of length `T-1`."] - #[doc = "- DbReads: `Tippers`, `Tips`"] - #[doc = "- DbWrites: `Tips`"] - #[doc = "# "] + #[doc = "See [`Pallet::tip`]."] tip { hash: ::subxt::utils::H256, #[codec(compact)] tip_value: ::core::primitive::u128, }, #[codec(index = 4)] - #[doc = "Close and payout a tip."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "The tip identified by `hash` must have finished its countdown period."] - #[doc = ""] - #[doc = "- `hash`: The identity of the open tip for which a tip value is declared. This is formed"] - #[doc = " as the hash of the tuple of the original tip `reason` and the beneficiary account ID."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length"] - #[doc = " `T`. `T` is charged as upper bound given by `ContainsLengthBound`. The actual cost"] - #[doc = " depends on the implementation of `T::Tippers`."] - #[doc = "- DbReads: `Tips`, `Tippers`, `tip finder`"] - #[doc = "- DbWrites: `Reasons`, `Tips`, `Tippers`, `tip finder`"] - #[doc = "# "] + #[doc = "See [`Pallet::close_tip`]."] close_tip { hash: ::subxt::utils::H256 }, #[codec(index = 5)] - #[doc = "Remove and slash an already-open tip."] - #[doc = ""] - #[doc = "May only be called from `T::RejectOrigin`."] - #[doc = ""] - #[doc = "As a result, the finder is slashed and the deposits are lost."] - #[doc = ""] - #[doc = "Emits `TipSlashed` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = " `T` is charged as upper bound given by `ContainsLengthBound`."] - #[doc = " The actual cost depends on the implementation of `T::Tippers`."] - #[doc = "# "] + #[doc = "See [`Pallet::slash_tip`]."] slash_tip { hash: ::subxt::utils::H256 }, } #[derive( @@ -31559,7 +29321,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "The reason given is just too big."] @@ -31593,7 +29355,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A new tip suggestion has been opened."] @@ -31660,7 +29422,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"] @@ -31723,18 +29485,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Put forward a suggestion for spending. A deposit proportional to the value"] - #[doc = "is reserved and slashed if the proposal is rejected. It is returned once the"] - #[doc = "proposal is awarded."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(1)"] - #[doc = "- DbReads: `ProposalCount`, `origin account`"] - #[doc = "- DbWrites: `ProposalCount`, `Proposals`, `origin account`"] - #[doc = "# "] + #[doc = "See [`Pallet::propose_spend`]."] propose_spend { #[codec(compact)] value: ::core::primitive::u128, @@ -31744,43 +29498,19 @@ pub mod api { >, }, #[codec(index = 1)] - #[doc = "Reject a proposed spend. The original deposit will be slashed."] - #[doc = ""] - #[doc = "May only be called from `T::RejectOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(1)"] - #[doc = "- DbReads: `Proposals`, `rejected proposer account`"] - #[doc = "- DbWrites: `Proposals`, `rejected proposer account`"] - #[doc = "# "] + #[doc = "See [`Pallet::reject_proposal`]."] reject_proposal { #[codec(compact)] proposal_id: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "Approve a proposal. At a later time, the proposal will be allocated to the beneficiary"] - #[doc = "and the original deposit will be returned."] - #[doc = ""] - #[doc = "May only be called from `T::ApproveOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(1)."] - #[doc = "- DbReads: `Proposals`, `Approvals`"] - #[doc = "- DbWrite: `Approvals`"] - #[doc = "# "] + #[doc = "See [`Pallet::approve_proposal`]."] approve_proposal { #[codec(compact)] proposal_id: ::core::primitive::u32, }, #[codec(index = 3)] - #[doc = "Propose and approve a spend of treasury funds."] - #[doc = ""] - #[doc = "- `origin`: Must be `SpendOrigin` with the `Success` value being at least `amount`."] - #[doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] - #[doc = "- `beneficiary`: The destination account for the transfer."] - #[doc = ""] - #[doc = "NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the"] - #[doc = "beneficiary."] + #[doc = "See [`Pallet::spend`]."] spend { #[codec(compact)] amount: ::core::primitive::u128, @@ -31790,21 +29520,7 @@ pub mod api { >, }, #[codec(index = 4)] - #[doc = "Force a previously approved proposal to be removed from the approval queue."] - #[doc = "The original deposit will no longer be returned."] - #[doc = ""] - #[doc = "May only be called from `T::RejectOrigin`."] - #[doc = "- `proposal_id`: The index of a proposal"] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(A) where `A` is the number of approvals"] - #[doc = "- Db reads and writes: `Approvals`"] - #[doc = "# "] - #[doc = ""] - #[doc = "Errors:"] - #[doc = "- `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,"] - #[doc = "i.e., the proposal has not been approved. This could also mean the proposal does not"] - #[doc = "exist altogether, thus there is no way it would have been approved in the first place."] + #[doc = "See [`Pallet::remove_approval`]."] remove_approval { #[codec(compact)] proposal_id: ::core::primitive::u32, @@ -31855,7 +29571,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "New proposal."] @@ -31945,107 +29661,37 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Send a batch of dispatch calls."] - #[doc = ""] - #[doc = "May be called from any origin except `None`."] - #[doc = ""] - #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] - #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] - #[doc = ""] - #[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] - #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(C) where C is the number of calls to be batched."] - #[doc = "# "] - #[doc = ""] - #[doc = "This will return `Ok` in all circumstances. To determine the success of the batch, an"] - #[doc = "event is deposited. If a call failed and the batch was interrupted, then the"] - #[doc = "`BatchInterrupted` event is deposited, along with the number of successful calls made"] - #[doc = "and the error of the failed call. If all were successful, then the `BatchCompleted`"] - #[doc = "event is deposited."] + #[doc = "See [`Pallet::batch`]."] batch { calls: ::std::vec::Vec, }, #[codec(index = 1)] - #[doc = "Send a call through an indexed pseudonym of the sender."] - #[doc = ""] - #[doc = "Filter from origin are passed along. The call will be dispatched with an origin which"] - #[doc = "use the same filter as the origin of this call."] - #[doc = ""] - #[doc = "NOTE: If you need to ensure that any account-based filtering is not honored (i.e."] - #[doc = "because you expect `proxy` to have been used prior in the call stack and you do not want"] - #[doc = "the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`"] - #[doc = "in the Multisig pallet instead."] - #[doc = ""] - #[doc = "NOTE: Prior to version *12, this was called `as_limited_sub`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = "See [`Pallet::as_derivative`]."] as_derivative { index: ::core::primitive::u16, call: ::std::boxed::Box, }, #[codec(index = 2)] - #[doc = "Send a batch of dispatch calls and atomically execute them."] - #[doc = "The whole transaction will rollback and fail if any of the calls failed."] - #[doc = ""] - #[doc = "May be called from any origin except `None`."] - #[doc = ""] - #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] - #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] - #[doc = ""] - #[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] - #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(C) where C is the number of calls to be batched."] - #[doc = "# "] + #[doc = "See [`Pallet::batch_all`]."] batch_all { calls: ::std::vec::Vec, }, #[codec(index = 3)] - #[doc = "Dispatches a function call with a provided origin."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Root_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB write (event)."] - #[doc = "- Weight of derivative `call` execution + T::WeightInfo::dispatch_as()."] - #[doc = "# "] + #[doc = "See [`Pallet::dispatch_as`]."] dispatch_as { as_origin: ::std::boxed::Box, call: ::std::boxed::Box, }, #[codec(index = 4)] - #[doc = "Send a batch of dispatch calls."] - #[doc = "Unlike `batch`, it allows errors and won't interrupt."] - #[doc = ""] - #[doc = "May be called from any origin except `None`."] - #[doc = ""] - #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] - #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] - #[doc = ""] - #[doc = "If origin is root then the calls are dispatch without checking origin filter. (This"] - #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(C) where C is the number of calls to be batched."] - #[doc = "# "] + #[doc = "See [`Pallet::force_batch`]."] force_batch { calls: ::std::vec::Vec, }, #[codec(index = 5)] - #[doc = "Dispatch a function call with a specified weight."] - #[doc = ""] - #[doc = "This function does not check the weight of the call, and instead allows the"] - #[doc = "Root origin to specify the weight of the call."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Root_."] + #[doc = "See [`Pallet::with_weight`]."] with_weight { call: ::std::boxed::Box, weight: runtime_types::sp_weights::weight_v2::Weight, @@ -32064,7 +29710,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Too many calls batched."] @@ -32083,7 +29729,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "Batch of dispatches did not complete fully. Index of first failing dispatch given, as"] @@ -32337,9 +29983,87 @@ pub mod api { pub struct PrimaryPreDigest { pub authority_index: ::core::primitive::u32, pub slot: runtime_types::sp_consensus_slots::Slot, - pub vrf_output: [::core::primitive::u8; 32usize], - pub vrf_proof: [::core::primitive::u8; 64usize], + pub vrf_signature: runtime_types::sp_core::sr25519::vrf::VrfSignature, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SecondaryPlainPreDigest { + pub authority_index: ::core::primitive::u32, + pub slot: runtime_types::sp_consensus_slots::Slot, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SecondaryVRFPreDigest { + pub authority_index: ::core::primitive::u32, + pub slot: runtime_types::sp_consensus_slots::Slot, + pub vrf_signature: runtime_types::sp_core::sr25519::vrf::VrfSignature, } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum AllowedSlots { + #[codec(index = 0)] + PrimarySlots, + #[codec(index = 1)] + PrimaryAndSecondaryPlainSlots, + #[codec(index = 2)] + PrimaryAndSecondaryVRFSlots, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BabeEpochConfiguration { + pub c: (::core::primitive::u64, ::core::primitive::u64), + pub allowed_slots: runtime_types::sp_consensus_babe::AllowedSlots, + } + } + pub mod sp_consensus_grandpa { + use super::runtime_types; + pub mod app { + use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -32353,10 +30077,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SecondaryPlainPreDigest { - pub authority_index: ::core::primitive::u32, - pub slot: runtime_types::sp_consensus_slots::Slot, - } + pub struct Public(pub runtime_types::sp_core::ed25519::Public); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -32370,12 +30091,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SecondaryVRFPreDigest { - pub authority_index: ::core::primitive::u32, - pub slot: runtime_types::sp_consensus_slots::Slot, - pub vrf_output: [::core::primitive::u8; 32usize], - pub vrf_proof: [::core::primitive::u8; 64usize], - } + pub struct Signature(pub runtime_types::sp_core::ed25519::Signature); } #[derive( :: subxt :: ext :: codec :: Decode, @@ -32390,13 +30106,23 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum AllowedSlots { + pub enum Equivocation<_0, _1> { #[codec(index = 0)] - PrimarySlots, + Prevote( + runtime_types::finality_grandpa::Equivocation< + runtime_types::sp_consensus_grandpa::app::Public, + runtime_types::finality_grandpa::Prevote<_0, _1>, + runtime_types::sp_consensus_grandpa::app::Signature, + >, + ), #[codec(index = 1)] - PrimaryAndSecondaryPlainSlots, - #[codec(index = 2)] - PrimaryAndSecondaryVRFSlots, + Precommit( + runtime_types::finality_grandpa::Equivocation< + runtime_types::sp_consensus_grandpa::app::Public, + runtime_types::finality_grandpa::Precommit<_0, _1>, + runtime_types::sp_consensus_grandpa::app::Signature, + >, + ), } #[derive( :: subxt :: ext :: codec :: Decode, @@ -32411,9 +30137,9 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BabeEpochConfiguration { - pub c: (::core::primitive::u64, ::core::primitive::u64), - pub allowed_slots: runtime_types::sp_consensus_babe::AllowedSlots, + pub struct EquivocationProof<_0, _1> { + pub set_id: ::core::primitive::u64, + pub equivocation: runtime_types::sp_consensus_grandpa::Equivocation<_0, _1>, } } pub mod sp_consensus_slots { @@ -32455,60 +30181,6 @@ pub mod api { } pub mod sp_core { use super::runtime_types; - pub mod bounded { - use super::runtime_types; - pub mod bounded_btree_map { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BoundedBTreeMap<_0, _1>(pub ::subxt::utils::KeyedVec<_0, _1>); - } - pub mod bounded_vec { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BoundedVec<_0>(pub ::std::vec::Vec<_0>); - } - pub mod weak_bounded_vec { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>); - } - } pub mod crypto { use super::runtime_types; #[derive( @@ -32574,43 +30246,28 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Signature(pub [::core::primitive::u8; 64usize]); } - pub mod offchain { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct OpaqueMultiaddr(pub ::std::vec::Vec<::core::primitive::u8>); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct OpaqueNetworkState { - pub peer_id: runtime_types::sp_core::OpaquePeerId, - pub external_addresses: - ::std::vec::Vec, - } - } pub mod sr25519 { use super::runtime_types; + pub mod vrf { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct VrfSignature { + pub output: [::core::primitive::u8; 32usize], + pub proof: [::core::primitive::u8; 64usize], + } + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -32653,104 +30310,8 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct OpaquePeerId(pub ::std::vec::Vec<::core::primitive::u8>); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Void {} } - pub mod sp_finality_grandpa { - use super::runtime_types; - pub mod app { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Public(pub runtime_types::sp_core::ed25519::Public); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Signature(pub runtime_types::sp_core::ed25519::Signature); - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Equivocation<_0, _1> { - #[codec(index = 0)] - Prevote( - runtime_types::finality_grandpa::Equivocation< - runtime_types::sp_finality_grandpa::app::Public, - runtime_types::finality_grandpa::Prevote<_0, _1>, - runtime_types::sp_finality_grandpa::app::Signature, - >, - ), - #[codec(index = 1)] - Precommit( - runtime_types::finality_grandpa::Equivocation< - runtime_types::sp_finality_grandpa::app::Public, - runtime_types::finality_grandpa::Precommit<_0, _1>, - runtime_types::sp_finality_grandpa::app::Signature, - >, - ), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct EquivocationProof<_0, _1> { - pub set_id: ::core::primitive::u64, - pub equivocation: runtime_types::sp_finality_grandpa::Equivocation<_0, _1>, - } - } pub mod sp_npos_elections { use super::runtime_types; #[derive( @@ -33435,6 +30996,8 @@ pub mod api { Corruption, #[codec(index = 12)] Unavailable, + #[codec(index = 13)] + RootNotAllowed, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -33489,9 +31052,9 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum TokenError { #[codec(index = 0)] - NoFunds, + FundsUnavailable, #[codec(index = 1)] - WouldDie, + OnlyProvider, #[codec(index = 2)] BelowMinimum, #[codec(index = 3)] @@ -33502,6 +31065,12 @@ pub mod api { Frozen, #[codec(index = 6)] Unsupported, + #[codec(index = 7)] + CannotCreateHold, + #[codec(index = 8)] + NotExpendable, + #[codec(index = 9)] + Blocked, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -33618,21 +31187,6 @@ pub mod api { pub proof_size: ::core::primitive::u64, } } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct OldWeight(pub ::core::primitive::u64); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, diff --git a/avail-subxt/src/primitives/grandpa.rs b/avail-subxt/src/primitives/grandpa.rs index 7bc27f4e9..5cb3c24cc 100644 --- a/avail-subxt/src/primitives/grandpa.rs +++ b/avail-subxt/src/primitives/grandpa.rs @@ -1,7 +1,7 @@ use codec::{Codec, Decode}; use serde::{Serialize, Serializer}; -use crate::api::runtime_types::sp_finality_grandpa::app::Public; +use crate::api::runtime_types::sp_consensus_grandpa::app::Public; #[derive(Decode)] pub struct AuthorityId(pub Public); From 62878d884a24eea2a782553f2b95bc8393a67eec Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Mon, 4 Sep 2023 16:30:37 +0530 Subject: [PATCH 47/58] Enabled submit_block_length_proposal test --- .github/workflows/default.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 12a2e296f..ad3a04ec9 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -232,7 +232,7 @@ jobs: cargo run --release --manifest-path avail-subxt/Cargo.toml --example max_block_submit cargo run --release --manifest-path avail-subxt/Cargo.toml --example submit_data cargo run --release --manifest-path avail-subxt/Cargo.toml --example submit_data_and_dispatch_data_root - # cargo run --release --manifest-path avail-subxt/Cargo.toml --example submit_block_length_proposal + cargo run --release --manifest-path avail-subxt/Cargo.toml --example submit_block_length_proposal # Democracy calls are executable only with fast runtime (with democracy InstantAllowed set to true) # cargo run --release --manifest-path avail-subxt/Cargo.toml --example democracy_external # cargo run --release --manifest-path avail-subxt/Cargo.toml --example submit_block_length_proposal_democracy From d9e0bb450987c460aedd7da785a87d3da3ae0774 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Wed, 6 Sep 2023 23:12:11 +0530 Subject: [PATCH 48/58] bumped spec_version to 12 --- runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index ba26ea2f3..801fd7ead 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -126,7 +126,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // and set impl_version to 0. If only runtime // implementation changes and behavior does not, then leave spec_version as // is and increment impl_version. - spec_version: 11, + spec_version: 12, impl_version: 0, apis: apis::runtime_api_versions(), transaction_version: 1, From 09a681ea6c96ebb32c43106e370e682936371afb Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Thu, 7 Sep 2023 07:07:07 +0530 Subject: [PATCH 49/58] Added FRAME pallet migrations --- runtime/src/migration.rs | 33 ++++++++++++++++++++++++++++++++- runtime/src/primitives.rs | 2 +- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/runtime/src/migration.rs b/runtime/src/migration.rs index 5241c9e9d..87f337701 100644 --- a/runtime/src/migration.rs +++ b/runtime/src/migration.rs @@ -19,12 +19,43 @@ use frame_support::{pallet_prelude::*, traits::OnRuntimeUpgrade}; use pallet_nomination_pools::{ MaxPoolMembers, MaxPoolMembersPerPool, MaxPools, MinCreateBond, MinJoinBond, Pallet, }; +use sp_runtime::Perbill; #[cfg(feature = "try-runtime")] use sp_runtime::TryRuntimeError; #[cfg(feature = "try-runtime")] use sp_std::vec::Vec; -use crate::Weight; +use crate::{Bounties, RocksDbWeight, Runtime, Weight}; + +// Migrations that set `StorageVersion`s which was missed to set. +pub struct SetStorageVersions; + +impl OnRuntimeUpgrade for SetStorageVersions { + fn on_runtime_upgrade() -> Weight { + let storage_version = Bounties::on_chain_storage_version(); + if storage_version < 4 { + StorageVersion::new(4).put::(); + } + + RocksDbWeight::get().reads_writes(1, 1) + } +} +pub struct NominationPoolsMigrationV4OldPallet; +impl Get for NominationPoolsMigrationV4OldPallet { + fn get() -> Perbill { Perbill::zero() } +} + +/// Implements `OnRuntimeUpgrade` trait for upstream migrations +pub type UpstreamMigrations = ( + pallet_im_online::migration::v1::Migration, + pallet_offences::migration::v1::MigrateToV1, + pallet_nomination_pools::migration::v4::MigrateV3ToV5< + Runtime, + NominationPoolsMigrationV4OldPallet, + >, + pallet_scheduler::migration::v3::MigrateToV4, + SetStorageVersions, +); /// Implements `OnRuntimeUpgrade` trait. pub struct Migration {} diff --git a/runtime/src/primitives.rs b/runtime/src/primitives.rs index 9c86fbf51..4e2e308ff 100644 --- a/runtime/src/primitives.rs +++ b/runtime/src/primitives.rs @@ -77,7 +77,7 @@ pub type Executive = frame_executive::Executive< /// All migrations executed on runtime upgrade as a nested tuple of types implementing /// `OnRuntimeUpgrade`. -type Migrations = (migration::Migration,); +type Migrations = (migration::UpstreamMigrations,); /// ID type for named reserves. pub type ReserveIdentifier = [u8; 8]; From 60852b456bdc4f7128cd8fb25f1fe1d47d95046b Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Thu, 7 Sep 2023 09:57:51 +0530 Subject: [PATCH 50/58] apply review suggestions --- pallets/bridges/nomad/da-bridge/src/mock.rs | 2 +- pallets/bridges/nomad/home/src/mock.rs | 2 +- pallets/bridges/nomad/updater-manager/src/mock.rs | 2 +- pallets/system/benches/bench.rs | 2 +- pallets/system/benchmarking/src/mock.rs | 2 +- pallets/system/src/mock.rs | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pallets/bridges/nomad/da-bridge/src/mock.rs b/pallets/bridges/nomad/da-bridge/src/mock.rs index 01994352a..509ba77b8 100644 --- a/pallets/bridges/nomad/da-bridge/src/mock.rs +++ b/pallets/bridges/nomad/da-bridge/src/mock.rs @@ -105,7 +105,7 @@ impl ExtBuilder { let mut t = RuntimeGenesisConfig::default() .system .build_storage() - .unwrap(); + .expect("Genesis build should work"); nomad_home::GenesisConfig:: { updater: self.updater, diff --git a/pallets/bridges/nomad/home/src/mock.rs b/pallets/bridges/nomad/home/src/mock.rs index 87e75a829..74d0f5aac 100644 --- a/pallets/bridges/nomad/home/src/mock.rs +++ b/pallets/bridges/nomad/home/src/mock.rs @@ -91,7 +91,7 @@ impl ExtBuilder { let mut t = RuntimeGenesisConfig::default() .system .build_storage() - .unwrap(); + .expect("Genesis build should work"); home::GenesisConfig:: { updater: self.updater, diff --git a/pallets/bridges/nomad/updater-manager/src/mock.rs b/pallets/bridges/nomad/updater-manager/src/mock.rs index 0b1cd6c59..34cc96b4c 100644 --- a/pallets/bridges/nomad/updater-manager/src/mock.rs +++ b/pallets/bridges/nomad/updater-manager/src/mock.rs @@ -66,7 +66,7 @@ pub fn new_test_ext() -> sp_io::TestExternalities { let t = RuntimeGenesisConfig::default() .system .build_storage() - .unwrap(); + .expect("Genesis build should work"); let mut ext = sp_io::TestExternalities::new(t); ext.execute_with(|| System::set_block_number(1)); ext diff --git a/pallets/system/benches/bench.rs b/pallets/system/benches/bench.rs index 9b9d03431..f8ed80bcb 100644 --- a/pallets/system/benches/bench.rs +++ b/pallets/system/benches/bench.rs @@ -107,7 +107,7 @@ fn new_test_ext() -> sp_io::TestExternalities { RuntimeGenesisConfig::default() .system .build_storage() - .unwrap() + .expect("Genesis build should work") .into() } diff --git a/pallets/system/benchmarking/src/mock.rs b/pallets/system/benchmarking/src/mock.rs index c052e21f3..559f374ca 100644 --- a/pallets/system/benchmarking/src/mock.rs +++ b/pallets/system/benchmarking/src/mock.rs @@ -90,7 +90,7 @@ pub fn new_test_ext() -> sp_io::TestExternalities { let t = RuntimeGenesisConfig::default() .system .build_storage() - .unwrap(); + .expect("Genesis build should work"); let version = sp_version::RuntimeVersion { spec_name: "".into(), diff --git a/pallets/system/src/mock.rs b/pallets/system/src/mock.rs index 9e414c7a4..4b1bd5cd7 100644 --- a/pallets/system/src/mock.rs +++ b/pallets/system/src/mock.rs @@ -127,7 +127,7 @@ pub fn new_test_ext() -> sp_io::TestExternalities { let mut ext: sp_io::TestExternalities = RuntimeGenesisConfig::default() .system .build_storage() - .unwrap() + .expect("Genesis build should work") .into(); // Add to each test the initial weight of a block ext.execute_with(|| { From a1c246f2bd7b6aa6c679d0d9e7077c0a7b23f1c0 Mon Sep 17 00:00:00 2001 From: Leouarz Date: Sat, 9 Sep 2023 15:28:23 +0200 Subject: [PATCH 51/58] Upgrade/polkadot v1.0 (#218) * camel_casing fields of BlockLength * updated api_dev in avail-subxt * feat: Added identity pallet to our module list * feat: Added mandate pallet * Updated avail-core branch reference to main * fix migrations --------- Co-authored-by: Toufeeq Pasha Co-authored-by: Marko Petrlic --- Cargo.lock | 55 + Cargo.toml | 3 + README.md | 2 +- avail-subxt/build_api.sh | 2 + avail-subxt/src/api_dev.rs | 3760 +++++++++++++++++------- pallets/mandate/Cargo.toml | 51 + pallets/mandate/src/benchmarking.rs | 18 + pallets/mandate/src/lib.rs | 75 + pallets/mandate/src/mock.rs | 116 + pallets/mandate/src/tests.rs | 107 + pallets/mandate/src/weights.rs | 71 + pallets/system/benchmarking/Cargo.toml | 2 +- pallets/system/src/limits.rs | 1 + runtime/Cargo.toml | 12 +- runtime/src/apis.rs | 2 + runtime/src/lib.rs | 50 + runtime/src/migration.rs | 309 +- runtime/src/primitives.rs | 2 +- runtime/src/weights/mod.rs | 1 + runtime/src/weights/pallet_mandate.rs | 56 + 20 files changed, 3577 insertions(+), 1118 deletions(-) create mode 100644 pallets/mandate/Cargo.toml create mode 100644 pallets/mandate/src/benchmarking.rs create mode 100644 pallets/mandate/src/lib.rs create mode 100644 pallets/mandate/src/mock.rs create mode 100644 pallets/mandate/src/tests.rs create mode 100644 pallets/mandate/src/weights.rs create mode 100644 runtime/src/weights/mod.rs create mode 100644 runtime/src/weights/pallet_mandate.rs diff --git a/Cargo.lock b/Cargo.lock index 2f165782f..c2441e27d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1927,8 +1927,10 @@ dependencies = [ "pallet-election-provider-multi-phase", "pallet-elections-phragmen", "pallet-grandpa", + "pallet-identity", "pallet-im-online", "pallet-indices", + "pallet-mandate", "pallet-membership", "pallet-mmr", "pallet-multisig", @@ -2582,6 +2584,26 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "enumflags2" +version = "0.7.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c041f5090df68b32bcd905365fd51769c8b9d553fe87fde0b683534f10c01bd2" +dependencies = [ + "enumflags2_derive", +] + +[[package]] +name = "enumflags2_derive" +version = "0.7.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e9a1f9f7d83e59740248a6e14ecf93929ade55027844dfcea78beafccc15745" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.29", +] + [[package]] name = "env_logger" version = "0.9.3" @@ -6127,6 +6149,22 @@ dependencies = [ "sp-std", ] +[[package]] +name = "pallet-identity" +version = "4.0.0-dev" +source = "git+https://github.com/paritytech/substrate.git/?branch=polkadot-v1.0.0#948fbd2fd1233dc26dbb9f9bbc1d2cca2c03945d" +dependencies = [ + "enumflags2", + "frame-benchmarking", + "frame-support", + "frame-system", + "parity-scale-codec", + "scale-info", + "sp-io", + "sp-runtime", + "sp-std", +] + [[package]] name = "pallet-im-online" version = "4.0.0-dev" @@ -6164,6 +6202,23 @@ dependencies = [ "sp-std", ] +[[package]] +name = "pallet-mandate" +version = "1.0.0" +dependencies = [ + "avail-core", + "frame-benchmarking", + "frame-support", + "frame-system", + "pallet-collective", + "parity-scale-codec", + "scale-info", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", +] + [[package]] name = "pallet-membership" version = "4.0.0-dev" diff --git a/Cargo.toml b/Cargo.toml index 0212cca53..982ba710d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,6 +25,7 @@ frame-system-rpc-runtime-api = { path = "pallets/system/rpc/runtime-api" } frame-system-benchmarking = { path = "pallets/system/benchmarking" } # DA Primitives +# TODO: Once the companion PR 'substrate/upgrade-v1.0.0' is merged, change reference to tag avail-core = { version = "0.5", git="https://github.com/availproject/avail-core", branch = "substrate/upgrade-v1.0.0" } kate = { version = "0.8", git="https://github.com/availproject/avail-core", branch = "substrate/upgrade-v1.0.0" } kate-recovery = { version = "0.9", git="https://github.com/availproject/avail-core", branch = "substrate/upgrade-v1.0.0" } @@ -125,6 +126,8 @@ pallet-preimage = { git = "https://github.com/paritytech/substrate.git", branch pallet-nomination-pools = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } pallet-election-provider-support-benchmarking = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } substrate-wasm-builder = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } +pallet-identity = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } + ## RPCs sc-rpc = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v1.0.0" } diff --git a/README.md b/README.md index 7393bd6c7..76255c345 100644 --- a/README.md +++ b/README.md @@ -196,7 +196,7 @@ Since we have block size limits, runtime upgrade is a three step process. Prefer For development purposes, its possible to use sudo calls with unchecked weight to increase block size limits and upload new runtime. In that case, steps are: 1. Use `sudo/sudoCall` to invoke `dataAvailability/submit_block_length_proposal` with increased block limits (eg. 512 rows x 256 columns) -2. Use `sudo/sudoUncheckedWeight(call, weight)` with 0 weight to invoke `system/set_code` and upload `da_runtime.compact.wasm` +2. Use `sudo/sudoUncheckedWeight(call, weight)` with 0 weight to invoke `system/set_code` and upload `da_runtime.compact.compressed.wasm` 3. Use `sudo/sudoCall` to invoke `dataAvailability/submit_block_length_proposal` and revert block limits to initial setting ### Verify upgrade diff --git a/avail-subxt/build_api.sh b/avail-subxt/build_api.sh index 657ad54a9..01536948d 100755 --- a/avail-subxt/build_api.sh +++ b/avail-subxt/build_api.sh @@ -35,6 +35,8 @@ subxt codegen --version 14 \ --derive-for-type avail_core::AppId=derive_more::From \ --url http://localhost:9944 \ | sed -En "s/pub struct KateCommitment/#\[serde\(rename_all = \"camelCase\"\)\] \0/p" \ + | sed -En "s/pub struct HeaderExtension/#\[serde\(rename_all = \"camelCase\"\)\] \0/p" \ + | sed -En "s/pub struct DataLookupItem/#\[serde\(rename_all = \"camelCase\"\)\] \0/p" \ | sed -E '1i \#\[allow(clippy::all)]' \ | rustfmt --edition=2021 --emit=stdout > src/api_dev.rs echo "🎁 Avail-SubXt API generated in 'src/api_dev.rs'" diff --git a/avail-subxt/src/api_dev.rs b/avail-subxt/src/api_dev.rs index 6b7317667..311448689 100644 --- a/avail-subxt/src/api_dev.rs +++ b/avail-subxt/src/api_dev.rs @@ -6,7 +6,7 @@ pub mod api { mod root_mod { pub use super::*; } - pub static PALLETS: [&str; 35usize] = [ + pub static PALLETS: [&str; 37usize] = [ "System", "Utility", "Babe", @@ -42,6 +42,8 @@ pub mod api { "Multisig", "VoterList", "NominationPools", + "Identity", + "Mandate", ]; #[doc = r" The error type returned when there is a runtime issue."] pub type DispatchError = runtime_types::sp_runtime::DispatchError; @@ -117,6 +119,10 @@ pub mod api { VoterList(voter_list::Event), #[codec(index = 36)] NominationPools(nomination_pools::Event), + #[codec(index = 37)] + Identity(identity::Event), + #[codec(index = 38)] + Mandate(mandate::Event), } impl ::subxt::events::RootEvent for Event { fn root_event( @@ -345,6 +351,20 @@ pub mod api { )?, )); } + if pallet_name == "Identity" { + return Ok(Event::Identity(identity::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Mandate" { + return Ok(Event::Mandate(mandate::Event::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } Err(::subxt::ext::scale_decode::Error::custom(format!( "Pallet name '{}' not found in root Event enum", pallet_name @@ -424,6 +444,10 @@ pub mod api { VoterList(voter_list::Call), #[codec(index = 36)] NominationPools(nomination_pools::Call), + #[codec(index = 37)] + Identity(identity::Call), + #[codec(index = 38)] + Mandate(mandate::Call), } impl ::subxt::blocks::RootExtrinsic for Call { fn root_extrinsic( @@ -650,6 +674,20 @@ pub mod api { )?, )); } + if pallet_name == "Identity" { + return Ok(Call::Identity(identity::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } + if pallet_name == "Mandate" { + return Ok(Call::Mandate(mandate::Call::decode_with_metadata( + &mut &*pallet_bytes, + pallet_ty, + metadata, + )?)); + } Err(::subxt::ext::scale_decode::Error::custom(format!( "Pallet name '{}' not found in root Call enum", pallet_name @@ -727,6 +765,8 @@ pub mod api { VoterList(voter_list::Error), #[codec(index = 36)] NominationPools(nomination_pools::Error), + #[codec(index = 37)] + Identity(identity::Error), } impl ::subxt::error::RootError for Error { fn root_error( @@ -737,7 +777,7 @@ pub mod api { use ::subxt::metadata::DecodeWithMetadata; let cursor = &mut &pallet_bytes[..]; if pallet_name == "System" { - let variant_error = system::Error::decode_with_metadata(cursor, 128u32, metadata)?; + let variant_error = system::Error::decode_with_metadata(cursor, 123u32, metadata)?; return Ok(Error::System(variant_error)); } if pallet_name == "Utility" { @@ -745,128 +785,138 @@ pub mod api { return Ok(Error::Utility(variant_error)); } if pallet_name == "Babe" { - let variant_error = babe::Error::decode_with_metadata(cursor, 300u32, metadata)?; + let variant_error = babe::Error::decode_with_metadata(cursor, 297u32, metadata)?; return Ok(Error::Babe(variant_error)); } + if pallet_name == "Authorship" { + let variant_error = + authorship::Error::decode_with_metadata(cursor, 344u32, metadata)?; + return Ok(Error::Authorship(variant_error)); + } if pallet_name == "Indices" { - let variant_error = indices::Error::decode_with_metadata(cursor, 302u32, metadata)?; + let variant_error = indices::Error::decode_with_metadata(cursor, 303u32, metadata)?; return Ok(Error::Indices(variant_error)); } if pallet_name == "Balances" { let variant_error = - balances::Error::decode_with_metadata(cursor, 317u32, metadata)?; + balances::Error::decode_with_metadata(cursor, 311u32, metadata)?; return Ok(Error::Balances(variant_error)); } if pallet_name == "ElectionProviderMultiPhase" { let variant_error = election_provider_multi_phase::Error::decode_with_metadata( - cursor, 330u32, metadata, + cursor, 324u32, metadata, )?; return Ok(Error::ElectionProviderMultiPhase(variant_error)); } if pallet_name == "Staking" { - let variant_error = staking::Error::decode_with_metadata(cursor, 351u32, metadata)?; + let variant_error = staking::Error::decode_with_metadata(cursor, 345u32, metadata)?; return Ok(Error::Staking(variant_error)); } if pallet_name == "Session" { - let variant_error = session::Error::decode_with_metadata(cursor, 356u32, metadata)?; + let variant_error = session::Error::decode_with_metadata(cursor, 350u32, metadata)?; return Ok(Error::Session(variant_error)); } if pallet_name == "Democracy" { let variant_error = - democracy::Error::decode_with_metadata(cursor, 374u32, metadata)?; + democracy::Error::decode_with_metadata(cursor, 368u32, metadata)?; return Ok(Error::Democracy(variant_error)); } if pallet_name == "Council" { - let variant_error = council::Error::decode_with_metadata(cursor, 377u32, metadata)?; + let variant_error = council::Error::decode_with_metadata(cursor, 371u32, metadata)?; return Ok(Error::Council(variant_error)); } if pallet_name == "TechnicalCommittee" { let variant_error = - technical_committee::Error::decode_with_metadata(cursor, 379u32, metadata)?; + technical_committee::Error::decode_with_metadata(cursor, 373u32, metadata)?; return Ok(Error::TechnicalCommittee(variant_error)); } if pallet_name == "Elections" { let variant_error = - elections::Error::decode_with_metadata(cursor, 383u32, metadata)?; + elections::Error::decode_with_metadata(cursor, 377u32, metadata)?; return Ok(Error::Elections(variant_error)); } if pallet_name == "TechnicalMembership" { let variant_error = - technical_membership::Error::decode_with_metadata(cursor, 385u32, metadata)?; + technical_membership::Error::decode_with_metadata(cursor, 379u32, metadata)?; return Ok(Error::TechnicalMembership(variant_error)); } if pallet_name == "Grandpa" { - let variant_error = grandpa::Error::decode_with_metadata(cursor, 389u32, metadata)?; + let variant_error = grandpa::Error::decode_with_metadata(cursor, 383u32, metadata)?; return Ok(Error::Grandpa(variant_error)); } if pallet_name == "Treasury" { let variant_error = - treasury::Error::decode_with_metadata(cursor, 395u32, metadata)?; + treasury::Error::decode_with_metadata(cursor, 389u32, metadata)?; return Ok(Error::Treasury(variant_error)); } if pallet_name == "Sudo" { - let variant_error = sudo::Error::decode_with_metadata(cursor, 396u32, metadata)?; + let variant_error = sudo::Error::decode_with_metadata(cursor, 390u32, metadata)?; return Ok(Error::Sudo(variant_error)); } if pallet_name == "ImOnline" { let variant_error = - im_online::Error::decode_with_metadata(cursor, 399u32, metadata)?; + im_online::Error::decode_with_metadata(cursor, 398u32, metadata)?; return Ok(Error::ImOnline(variant_error)); } if pallet_name == "Scheduler" { let variant_error = - scheduler::Error::decode_with_metadata(cursor, 409u32, metadata)?; + scheduler::Error::decode_with_metadata(cursor, 408u32, metadata)?; return Ok(Error::Scheduler(variant_error)); } if pallet_name == "Bounties" { let variant_error = - bounties::Error::decode_with_metadata(cursor, 413u32, metadata)?; + bounties::Error::decode_with_metadata(cursor, 412u32, metadata)?; return Ok(Error::Bounties(variant_error)); } if pallet_name == "Tips" { - let variant_error = tips::Error::decode_with_metadata(cursor, 415u32, metadata)?; + let variant_error = tips::Error::decode_with_metadata(cursor, 414u32, metadata)?; return Ok(Error::Tips(variant_error)); } if pallet_name == "DataAvailability" { let variant_error = - data_availability::Error::decode_with_metadata(cursor, 417u32, metadata)?; + data_availability::Error::decode_with_metadata(cursor, 416u32, metadata)?; return Ok(Error::DataAvailability(variant_error)); } if pallet_name == "NomadUpdaterManager" { let variant_error = - nomad_updater_manager::Error::decode_with_metadata(cursor, 418u32, metadata)?; + nomad_updater_manager::Error::decode_with_metadata(cursor, 417u32, metadata)?; return Ok(Error::NomadUpdaterManager(variant_error)); } if pallet_name == "NomadHome" { let variant_error = - nomad_home::Error::decode_with_metadata(cursor, 423u32, metadata)?; + nomad_home::Error::decode_with_metadata(cursor, 422u32, metadata)?; return Ok(Error::NomadHome(variant_error)); } if pallet_name == "NomadDABridge" { let variant_error = - nomad_da_bridge::Error::decode_with_metadata(cursor, 424u32, metadata)?; + nomad_da_bridge::Error::decode_with_metadata(cursor, 423u32, metadata)?; return Ok(Error::NomadDABridge(variant_error)); } if pallet_name == "Preimage" { let variant_error = - preimage::Error::decode_with_metadata(cursor, 428u32, metadata)?; + preimage::Error::decode_with_metadata(cursor, 427u32, metadata)?; return Ok(Error::Preimage(variant_error)); } if pallet_name == "Multisig" { let variant_error = - multisig::Error::decode_with_metadata(cursor, 432u32, metadata)?; + multisig::Error::decode_with_metadata(cursor, 431u32, metadata)?; return Ok(Error::Multisig(variant_error)); } if pallet_name == "VoterList" { let variant_error = - voter_list::Error::decode_with_metadata(cursor, 436u32, metadata)?; + voter_list::Error::decode_with_metadata(cursor, 435u32, metadata)?; return Ok(Error::VoterList(variant_error)); } if pallet_name == "NominationPools" { let variant_error = - nomination_pools::Error::decode_with_metadata(cursor, 456u32, metadata)?; + nomination_pools::Error::decode_with_metadata(cursor, 452u32, metadata)?; return Ok(Error::NominationPools(variant_error)); } + if pallet_name == "Identity" { + let variant_error = + identity::Error::decode_with_metadata(cursor, 507u32, metadata)?; + return Ok(Error::Identity(variant_error)); + } Err(::subxt::ext::scale_decode::Error::custom(format!( "Pallet name '{}' not found in root Error enum", pallet_name @@ -982,6 +1032,10 @@ pub mod api { pub fn nomination_pools(&self) -> nomination_pools::constants::ConstantsApi { nomination_pools::constants::ConstantsApi } + + pub fn identity(&self) -> identity::constants::ConstantsApi { + identity::constants::ConstantsApi + } } pub struct StorageApi; impl StorageApi { @@ -1076,6 +1130,8 @@ pub mod api { pub fn nomination_pools(&self) -> nomination_pools::storage::StorageApi { nomination_pools::storage::StorageApi } + + pub fn identity(&self) -> identity::storage::StorageApi { identity::storage::StorageApi } } pub struct TransactionApi; impl TransactionApi { @@ -1176,6 +1232,12 @@ pub mod api { pub fn nomination_pools(&self) -> nomination_pools::calls::TransactionApi { nomination_pools::calls::TransactionApi } + + pub fn identity(&self) -> identity::calls::TransactionApi { + identity::calls::TransactionApi + } + + pub fn mandate(&self) -> mandate::calls::TransactionApi { mandate::calls::TransactionApi } } #[doc = r" check whether the Client you are using is aligned with the statically generated codegen."] pub fn validate_codegen>( @@ -1188,9 +1250,9 @@ pub mod api { .hash(); if runtime_metadata_hash != [ - 60u8, 198u8, 71u8, 28u8, 37u8, 34u8, 117u8, 2u8, 183u8, 244u8, 198u8, 248u8, 127u8, - 12u8, 126u8, 221u8, 71u8, 208u8, 215u8, 14u8, 250u8, 62u8, 145u8, 207u8, 63u8, - 16u8, 160u8, 106u8, 80u8, 82u8, 194u8, 209u8, + 68u8, 69u8, 196u8, 250u8, 14u8, 151u8, 13u8, 171u8, 237u8, 210u8, 132u8, 154u8, + 56u8, 170u8, 5u8, 54u8, 221u8, 65u8, 49u8, 171u8, 185u8, 141u8, 113u8, 43u8, 201u8, + 151u8, 164u8, 204u8, 49u8, 152u8, 15u8, 50u8, ] { Err(::subxt::error::MetadataError::IncompatibleCodegen) } else { @@ -1976,9 +2038,9 @@ pub mod api { (), > { ::subxt::storage::address::Address::new_static("System", "Events", vec![], [ - 83u8, 225u8, 39u8, 201u8, 167u8, 218u8, 202u8, 102u8, 196u8, 187u8, 47u8, - 114u8, 233u8, 122u8, 181u8, 37u8, 5u8, 19u8, 99u8, 158u8, 100u8, 238u8, - 124u8, 230u8, 105u8, 40u8, 161u8, 73u8, 142u8, 41u8, 158u8, 156u8, + 150u8, 76u8, 101u8, 238u8, 61u8, 233u8, 105u8, 124u8, 229u8, 118u8, 41u8, + 125u8, 167u8, 184u8, 179u8, 24u8, 186u8, 248u8, 143u8, 7u8, 150u8, 10u8, + 96u8, 224u8, 123u8, 100u8, 98u8, 161u8, 16u8, 11u8, 222u8, 222u8, ]) } @@ -2401,9 +2463,9 @@ pub mod api { calls: ::std::vec::Vec, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static("Utility", "batch", types::Batch { calls }, [ - 185u8, 77u8, 235u8, 253u8, 246u8, 217u8, 72u8, 126u8, 31u8, 202u8, 208u8, - 197u8, 137u8, 21u8, 250u8, 179u8, 45u8, 47u8, 33u8, 143u8, 112u8, 186u8, - 144u8, 233u8, 68u8, 212u8, 2u8, 226u8, 108u8, 120u8, 90u8, 167u8, + 2u8, 253u8, 44u8, 76u8, 48u8, 163u8, 72u8, 50u8, 84u8, 165u8, 66u8, 38u8, + 17u8, 139u8, 240u8, 181u8, 51u8, 250u8, 151u8, 5u8, 24u8, 107u8, 155u8, + 89u8, 62u8, 40u8, 242u8, 130u8, 61u8, 162u8, 169u8, 55u8, ]) } @@ -2421,9 +2483,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 38u8, 130u8, 60u8, 98u8, 1u8, 30u8, 91u8, 150u8, 136u8, 134u8, 209u8, - 50u8, 230u8, 241u8, 214u8, 170u8, 59u8, 227u8, 205u8, 37u8, 210u8, - 154u8, 144u8, 200u8, 37u8, 5u8, 193u8, 204u8, 230u8, 33u8, 73u8, 89u8, + 46u8, 214u8, 64u8, 185u8, 3u8, 173u8, 50u8, 1u8, 233u8, 183u8, 77u8, + 18u8, 93u8, 255u8, 223u8, 102u8, 143u8, 34u8, 119u8, 116u8, 182u8, + 156u8, 32u8, 168u8, 82u8, 127u8, 154u8, 166u8, 219u8, 195u8, 181u8, + 0u8, ], ) } @@ -2438,10 +2501,9 @@ pub mod api { "batch_all", types::BatchAll { calls }, [ - 249u8, 111u8, 52u8, 114u8, 103u8, 77u8, 102u8, 166u8, 103u8, 180u8, - 175u8, 169u8, 249u8, 222u8, 62u8, 74u8, 26u8, 40u8, 196u8, 237u8, - 150u8, 139u8, 157u8, 129u8, 144u8, 126u8, 194u8, 197u8, 137u8, 75u8, - 53u8, 6u8, + 81u8, 106u8, 239u8, 62u8, 92u8, 100u8, 249u8, 155u8, 79u8, 60u8, 38u8, + 107u8, 2u8, 31u8, 42u8, 224u8, 243u8, 68u8, 43u8, 75u8, 177u8, 210u8, + 79u8, 28u8, 217u8, 15u8, 107u8, 171u8, 231u8, 25u8, 145u8, 29u8, ], ) } @@ -2460,9 +2522,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 132u8, 4u8, 203u8, 68u8, 23u8, 18u8, 122u8, 123u8, 152u8, 4u8, 66u8, - 177u8, 66u8, 16u8, 33u8, 176u8, 149u8, 3u8, 135u8, 65u8, 106u8, 116u8, - 38u8, 94u8, 166u8, 127u8, 231u8, 117u8, 188u8, 212u8, 172u8, 36u8, + 231u8, 94u8, 74u8, 134u8, 48u8, 38u8, 54u8, 136u8, 79u8, 153u8, 178u8, + 120u8, 59u8, 105u8, 245u8, 5u8, 70u8, 18u8, 59u8, 118u8, 42u8, 200u8, + 78u8, 117u8, 43u8, 237u8, 105u8, 137u8, 183u8, 99u8, 164u8, 140u8, ], ) } @@ -2477,9 +2539,10 @@ pub mod api { "force_batch", types::ForceBatch { calls }, [ - 179u8, 14u8, 89u8, 203u8, 32u8, 127u8, 5u8, 218u8, 111u8, 17u8, 169u8, - 130u8, 2u8, 199u8, 127u8, 33u8, 227u8, 210u8, 5u8, 136u8, 234u8, 147u8, - 24u8, 131u8, 150u8, 199u8, 152u8, 79u8, 144u8, 138u8, 75u8, 37u8, + 221u8, 115u8, 115u8, 13u8, 202u8, 100u8, 171u8, 43u8, 165u8, 95u8, + 236u8, 197u8, 31u8, 122u8, 47u8, 208u8, 239u8, 42u8, 181u8, 100u8, + 52u8, 14u8, 208u8, 14u8, 35u8, 153u8, 97u8, 41u8, 162u8, 223u8, 49u8, + 16u8, ], ) } @@ -2498,9 +2561,9 @@ pub mod api { weight, }, [ - 162u8, 131u8, 239u8, 64u8, 4u8, 30u8, 222u8, 18u8, 70u8, 212u8, 139u8, - 150u8, 81u8, 26u8, 72u8, 189u8, 99u8, 246u8, 127u8, 163u8, 106u8, 67u8, - 63u8, 14u8, 27u8, 69u8, 72u8, 132u8, 39u8, 222u8, 84u8, 43u8, + 156u8, 180u8, 87u8, 26u8, 74u8, 236u8, 175u8, 18u8, 182u8, 17u8, 15u8, + 7u8, 107u8, 49u8, 118u8, 63u8, 186u8, 79u8, 24u8, 135u8, 130u8, 235u8, + 187u8, 134u8, 161u8, 182u8, 139u8, 151u8, 198u8, 187u8, 73u8, 253u8, ], ) } @@ -11583,9 +11646,10 @@ pub mod api { length_bound, }, [ - 120u8, 67u8, 167u8, 131u8, 129u8, 196u8, 182u8, 231u8, 115u8, 240u8, - 97u8, 41u8, 72u8, 48u8, 81u8, 209u8, 64u8, 220u8, 3u8, 231u8, 42u8, - 115u8, 5u8, 16u8, 219u8, 72u8, 133u8, 134u8, 132u8, 46u8, 228u8, 124u8, + 180u8, 228u8, 233u8, 49u8, 240u8, 234u8, 96u8, 169u8, 141u8, 56u8, + 150u8, 18u8, 253u8, 95u8, 224u8, 217u8, 135u8, 77u8, 242u8, 54u8, 4u8, + 36u8, 135u8, 127u8, 85u8, 211u8, 121u8, 82u8, 147u8, 236u8, 106u8, + 189u8, ], ) } @@ -11606,9 +11670,9 @@ pub mod api { length_bound, }, [ - 106u8, 110u8, 82u8, 97u8, 77u8, 203u8, 183u8, 181u8, 43u8, 27u8, 245u8, - 68u8, 7u8, 0u8, 223u8, 98u8, 242u8, 235u8, 118u8, 218u8, 240u8, 126u8, - 137u8, 84u8, 158u8, 72u8, 200u8, 251u8, 218u8, 221u8, 120u8, 190u8, + 7u8, 221u8, 166u8, 248u8, 161u8, 0u8, 133u8, 14u8, 88u8, 208u8, 28u8, + 72u8, 21u8, 143u8, 23u8, 30u8, 182u8, 67u8, 22u8, 67u8, 151u8, 114u8, + 107u8, 183u8, 160u8, 51u8, 14u8, 219u8, 69u8, 119u8, 93u8, 10u8, ], ) } @@ -11891,10 +11955,10 @@ pub mod api { _0.borrow(), )], [ - 77u8, 12u8, 79u8, 198u8, 97u8, 246u8, 215u8, 201u8, 180u8, 97u8, 105u8, - 78u8, 174u8, 129u8, 197u8, 206u8, 100u8, 56u8, 200u8, 49u8, 48u8, - 239u8, 117u8, 122u8, 253u8, 52u8, 11u8, 157u8, 151u8, 241u8, 82u8, - 82u8, + 127u8, 4u8, 120u8, 186u8, 68u8, 244u8, 146u8, 244u8, 186u8, 173u8, + 89u8, 90u8, 123u8, 111u8, 16u8, 57u8, 111u8, 169u8, 30u8, 194u8, 202u8, + 183u8, 251u8, 182u8, 29u8, 117u8, 48u8, 63u8, 67u8, 132u8, 119u8, + 238u8, ], ) } @@ -11914,10 +11978,10 @@ pub mod api { "ProposalOf", Vec::new(), [ - 77u8, 12u8, 79u8, 198u8, 97u8, 246u8, 215u8, 201u8, 180u8, 97u8, 105u8, - 78u8, 174u8, 129u8, 197u8, 206u8, 100u8, 56u8, 200u8, 49u8, 48u8, - 239u8, 117u8, 122u8, 253u8, 52u8, 11u8, 157u8, 151u8, 241u8, 82u8, - 82u8, + 127u8, 4u8, 120u8, 186u8, 68u8, 244u8, 146u8, 244u8, 186u8, 173u8, + 89u8, 90u8, 123u8, 111u8, 16u8, 57u8, 111u8, 169u8, 30u8, 194u8, 202u8, + 183u8, 251u8, 182u8, 29u8, 117u8, 48u8, 63u8, 67u8, 132u8, 119u8, + 238u8, ], ) } @@ -12237,9 +12301,10 @@ pub mod api { length_bound, }, [ - 120u8, 67u8, 167u8, 131u8, 129u8, 196u8, 182u8, 231u8, 115u8, 240u8, - 97u8, 41u8, 72u8, 48u8, 81u8, 209u8, 64u8, 220u8, 3u8, 231u8, 42u8, - 115u8, 5u8, 16u8, 219u8, 72u8, 133u8, 134u8, 132u8, 46u8, 228u8, 124u8, + 180u8, 228u8, 233u8, 49u8, 240u8, 234u8, 96u8, 169u8, 141u8, 56u8, + 150u8, 18u8, 253u8, 95u8, 224u8, 217u8, 135u8, 77u8, 242u8, 54u8, 4u8, + 36u8, 135u8, 127u8, 85u8, 211u8, 121u8, 82u8, 147u8, 236u8, 106u8, + 189u8, ], ) } @@ -12260,9 +12325,9 @@ pub mod api { length_bound, }, [ - 106u8, 110u8, 82u8, 97u8, 77u8, 203u8, 183u8, 181u8, 43u8, 27u8, 245u8, - 68u8, 7u8, 0u8, 223u8, 98u8, 242u8, 235u8, 118u8, 218u8, 240u8, 126u8, - 137u8, 84u8, 158u8, 72u8, 200u8, 251u8, 218u8, 221u8, 120u8, 190u8, + 7u8, 221u8, 166u8, 248u8, 161u8, 0u8, 133u8, 14u8, 88u8, 208u8, 28u8, + 72u8, 21u8, 143u8, 23u8, 30u8, 182u8, 67u8, 22u8, 67u8, 151u8, 114u8, + 107u8, 183u8, 160u8, 51u8, 14u8, 219u8, 69u8, 119u8, 93u8, 10u8, ], ) } @@ -12545,10 +12610,10 @@ pub mod api { _0.borrow(), )], [ - 77u8, 12u8, 79u8, 198u8, 97u8, 246u8, 215u8, 201u8, 180u8, 97u8, 105u8, - 78u8, 174u8, 129u8, 197u8, 206u8, 100u8, 56u8, 200u8, 49u8, 48u8, - 239u8, 117u8, 122u8, 253u8, 52u8, 11u8, 157u8, 151u8, 241u8, 82u8, - 82u8, + 127u8, 4u8, 120u8, 186u8, 68u8, 244u8, 146u8, 244u8, 186u8, 173u8, + 89u8, 90u8, 123u8, 111u8, 16u8, 57u8, 111u8, 169u8, 30u8, 194u8, 202u8, + 183u8, 251u8, 182u8, 29u8, 117u8, 48u8, 63u8, 67u8, 132u8, 119u8, + 238u8, ], ) } @@ -12568,10 +12633,10 @@ pub mod api { "ProposalOf", Vec::new(), [ - 77u8, 12u8, 79u8, 198u8, 97u8, 246u8, 215u8, 201u8, 180u8, 97u8, 105u8, - 78u8, 174u8, 129u8, 197u8, 206u8, 100u8, 56u8, 200u8, 49u8, 48u8, - 239u8, 117u8, 122u8, 253u8, 52u8, 11u8, 157u8, 151u8, 241u8, 82u8, - 82u8, + 127u8, 4u8, 120u8, 186u8, 68u8, 244u8, 146u8, 244u8, 186u8, 173u8, + 89u8, 90u8, 123u8, 111u8, 16u8, 57u8, 111u8, 169u8, 30u8, 194u8, 202u8, + 183u8, 251u8, 182u8, 29u8, 117u8, 48u8, 63u8, 67u8, 132u8, 119u8, + 238u8, ], ) } @@ -15109,9 +15174,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 254u8, 11u8, 194u8, 196u8, 104u8, 67u8, 250u8, 58u8, 99u8, 143u8, 1u8, - 190u8, 75u8, 185u8, 161u8, 124u8, 0u8, 151u8, 87u8, 227u8, 90u8, 55u8, - 36u8, 81u8, 244u8, 116u8, 229u8, 176u8, 146u8, 203u8, 144u8, 129u8, + 24u8, 203u8, 33u8, 250u8, 172u8, 170u8, 123u8, 90u8, 66u8, 35u8, 189u8, + 141u8, 207u8, 26u8, 124u8, 96u8, 123u8, 48u8, 84u8, 161u8, 197u8, 51u8, + 146u8, 136u8, 110u8, 12u8, 173u8, 150u8, 20u8, 53u8, 240u8, 118u8, ], ) } @@ -15130,10 +15195,9 @@ pub mod api { weight, }, [ - 141u8, 196u8, 107u8, 110u8, 14u8, 122u8, 197u8, 165u8, 166u8, 237u8, - 237u8, 210u8, 110u8, 217u8, 11u8, 218u8, 35u8, 155u8, 112u8, 251u8, - 52u8, 249u8, 163u8, 179u8, 126u8, 194u8, 118u8, 8u8, 33u8, 124u8, - 232u8, 8u8, + 52u8, 99u8, 164u8, 13u8, 68u8, 77u8, 89u8, 221u8, 3u8, 99u8, 252u8, + 179u8, 100u8, 149u8, 9u8, 115u8, 84u8, 185u8, 6u8, 189u8, 109u8, 127u8, + 116u8, 10u8, 229u8, 111u8, 196u8, 251u8, 14u8, 112u8, 197u8, 230u8, ], ) } @@ -15170,10 +15234,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 155u8, 128u8, 37u8, 173u8, 167u8, 85u8, 4u8, 198u8, 22u8, 63u8, 80u8, - 152u8, 41u8, 113u8, 173u8, 159u8, 237u8, 226u8, 87u8, 105u8, 223u8, - 197u8, 207u8, 215u8, 227u8, 229u8, 248u8, 232u8, 20u8, 213u8, 93u8, - 210u8, + 148u8, 194u8, 25u8, 45u8, 65u8, 242u8, 211u8, 234u8, 185u8, 119u8, + 44u8, 119u8, 55u8, 61u8, 86u8, 212u8, 85u8, 62u8, 213u8, 184u8, 159u8, + 45u8, 181u8, 109u8, 71u8, 34u8, 239u8, 181u8, 163u8, 173u8, 66u8, + 174u8, ], ) } @@ -16047,9 +16111,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 118u8, 175u8, 77u8, 51u8, 218u8, 44u8, 134u8, 181u8, 73u8, 35u8, 180u8, - 110u8, 34u8, 34u8, 227u8, 216u8, 191u8, 151u8, 40u8, 5u8, 192u8, 156u8, - 134u8, 28u8, 207u8, 191u8, 140u8, 124u8, 49u8, 67u8, 134u8, 91u8, + 82u8, 177u8, 11u8, 16u8, 120u8, 185u8, 189u8, 223u8, 233u8, 65u8, + 249u8, 40u8, 213u8, 144u8, 243u8, 248u8, 81u8, 105u8, 250u8, 62u8, + 113u8, 21u8, 33u8, 161u8, 95u8, 117u8, 88u8, 66u8, 97u8, 14u8, 151u8, + 105u8, ], ) } @@ -16096,9 +16161,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 231u8, 245u8, 223u8, 235u8, 9u8, 66u8, 3u8, 240u8, 255u8, 92u8, 83u8, - 88u8, 97u8, 255u8, 63u8, 65u8, 75u8, 90u8, 73u8, 166u8, 164u8, 18u8, - 6u8, 36u8, 9u8, 250u8, 203u8, 188u8, 68u8, 21u8, 18u8, 101u8, + 48u8, 84u8, 123u8, 185u8, 88u8, 202u8, 51u8, 158u8, 198u8, 151u8, + 111u8, 75u8, 48u8, 90u8, 226u8, 35u8, 195u8, 34u8, 39u8, 240u8, 74u8, + 15u8, 214u8, 238u8, 139u8, 28u8, 12u8, 24u8, 63u8, 119u8, 89u8, 85u8, ], ) } @@ -16141,10 +16206,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 28u8, 134u8, 70u8, 113u8, 185u8, 187u8, 252u8, 62u8, 169u8, 227u8, - 73u8, 166u8, 126u8, 182u8, 143u8, 51u8, 218u8, 100u8, 168u8, 152u8, - 113u8, 24u8, 89u8, 177u8, 183u8, 209u8, 207u8, 173u8, 241u8, 98u8, - 54u8, 231u8, + 45u8, 0u8, 103u8, 106u8, 172u8, 201u8, 173u8, 125u8, 73u8, 111u8, + 104u8, 186u8, 225u8, 13u8, 184u8, 22u8, 224u8, 175u8, 243u8, 26u8, 6u8, + 202u8, 168u8, 176u8, 214u8, 146u8, 168u8, 12u8, 254u8, 0u8, 70u8, 92u8, ], ) } @@ -16172,9 +16236,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 245u8, 253u8, 61u8, 187u8, 117u8, 126u8, 0u8, 124u8, 108u8, 224u8, - 125u8, 66u8, 20u8, 20u8, 222u8, 67u8, 136u8, 168u8, 28u8, 232u8, 43u8, - 178u8, 249u8, 12u8, 39u8, 39u8, 249u8, 65u8, 95u8, 61u8, 14u8, 226u8, + 13u8, 150u8, 180u8, 1u8, 189u8, 230u8, 251u8, 242u8, 100u8, 148u8, + 38u8, 177u8, 200u8, 90u8, 97u8, 4u8, 213u8, 35u8, 23u8, 165u8, 229u8, + 248u8, 95u8, 132u8, 162u8, 173u8, 137u8, 67u8, 109u8, 75u8, 242u8, + 94u8, ], ) } @@ -19497,9 +19562,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 79u8, 9u8, 107u8, 184u8, 104u8, 53u8, 48u8, 252u8, 36u8, 235u8, 60u8, - 247u8, 59u8, 117u8, 95u8, 24u8, 24u8, 117u8, 98u8, 123u8, 46u8, 154u8, - 70u8, 202u8, 242u8, 33u8, 83u8, 248u8, 168u8, 2u8, 214u8, 255u8, + 189u8, 61u8, 73u8, 79u8, 70u8, 121u8, 135u8, 53u8, 85u8, 127u8, 163u8, + 107u8, 214u8, 113u8, 21u8, 180u8, 238u8, 137u8, 82u8, 24u8, 220u8, + 69u8, 164u8, 87u8, 86u8, 190u8, 92u8, 237u8, 161u8, 250u8, 101u8, 34u8, ], ) } @@ -19526,10 +19591,9 @@ pub mod api { max_weight, }, [ - 113u8, 91u8, 132u8, 69u8, 120u8, 246u8, 29u8, 206u8, 219u8, 136u8, - 74u8, 109u8, 108u8, 247u8, 31u8, 159u8, 184u8, 37u8, 168u8, 228u8, - 102u8, 239u8, 78u8, 190u8, 25u8, 97u8, 105u8, 178u8, 20u8, 186u8, 5u8, - 188u8, + 251u8, 27u8, 18u8, 198u8, 130u8, 201u8, 173u8, 22u8, 211u8, 57u8, 60u8, + 79u8, 183u8, 213u8, 38u8, 10u8, 72u8, 215u8, 155u8, 7u8, 232u8, 136u8, + 255u8, 49u8, 41u8, 214u8, 79u8, 104u8, 110u8, 174u8, 41u8, 79u8, ], ) } @@ -22491,60 +22555,6 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BlockLengthRows(#[codec(compact)] pub ::core::primitive::u32); } - pub mod bounded_collections { - use super::runtime_types; - pub mod bounded_btree_map { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BoundedBTreeMap<_0, _1>(pub ::subxt::utils::KeyedVec<_0, _1>); - } - pub mod bounded_vec { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BoundedVec<_0>(pub ::std::vec::Vec<_0>); - } - pub mod weak_bounded_vec { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>); - } - } pub mod da_control { use super::runtime_types; pub mod extensions { @@ -22599,24 +22609,22 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::create_application_key`]."] + #[doc = "Creates an application key if `key` does not exist yet."] create_application_key { - key: runtime_types::bounded_collections::bounded_vec::BoundedVec< + key: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< ::core::primitive::u8, >, }, #[codec(index = 1)] - #[doc = "See [`Pallet::submit_data`]."] submit_data { - data: runtime_types::bounded_collections::bounded_vec::BoundedVec< + data: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< ::core::primitive::u8, >, }, #[codec(index = 2)] - #[doc = "See [`Pallet::submit_block_length_proposal`]."] submit_block_length_proposal { rows: ::core::primitive::u32, cols: ::core::primitive::u32, @@ -22680,7 +22688,7 @@ pub mod api { #[codec(index = 0)] #[doc = "A new application key was created."] ApplicationKeyCreated { - key: runtime_types::bounded_collections::bounded_vec::BoundedVec< + key: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< ::core::primitive::u8, >, owner: ::subxt::utils::AccountId32, @@ -22689,7 +22697,7 @@ pub mod api { #[codec(index = 1)] DataSubmitted { who: ::subxt::utils::AccountId32, - data: runtime_types::bounded_collections::bounded_vec::BoundedVec< + data: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< ::core::primitive::u8, >, }, @@ -22895,7 +22903,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SessionKeys { pub babe: runtime_types::sp_consensus_babe::app::Public, - pub grandpa: runtime_types::sp_consensus_grandpa::app::Public, + pub grandpa: runtime_types::sp_finality_grandpa::app::Public, pub im_online: runtime_types::pallet_im_online::sr25519::app_sr25519::Public, pub authority_discovery: runtime_types::sp_authority_discovery::app::Public, } @@ -22963,6 +22971,8 @@ pub mod api { Babe(runtime_types::pallet_babe::pallet::Call), #[codec(index = 3)] Timestamp(runtime_types::pallet_timestamp::pallet::Call), + #[codec(index = 4)] + Authorship(runtime_types::pallet_authorship::pallet::Call), #[codec(index = 5)] Indices(runtime_types::pallet_indices::pallet::Call), #[codec(index = 6)] @@ -23091,20 +23101,6 @@ pub mod api { #[codec(index = 36)] NominationPools(runtime_types::pallet_nomination_pools::pallet::Event), } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum RuntimeHoldReason {} } pub mod finality_grandpa { use super::runtime_types; @@ -23266,6 +23262,26 @@ pub mod api { } pub mod traits { use super::runtime_types; + pub mod misc { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct WrapperOpaque<_0>( + #[codec(compact)] pub ::core::primitive::u32, + pub _0, + ); + } pub mod preimages { use super::runtime_types; #[derive( @@ -23288,7 +23304,7 @@ pub mod api { }, #[codec(index = 1)] Inline( - runtime_types::bounded_collections::bounded_vec::BoundedVec< + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< ::core::primitive::u8, >, ), @@ -23547,28 +23563,51 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::remark`]."] + #[doc = "Make some on-chain remark."] + #[doc = ""] + #[doc = "# "] + #[doc = "- `O(1)`"] + #[doc = "# "] remark { remark: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] - #[doc = "See [`Pallet::set_heap_pages`]."] + #[doc = "Set the number of pages in the WebAssembly environment's heap."] set_heap_pages { pages: ::core::primitive::u64 }, #[codec(index = 2)] - #[doc = "See [`Pallet::set_code`]."] + #[doc = "Set the new runtime code."] + #[doc = ""] + #[doc = "# "] + #[doc = "- `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`"] + #[doc = "- 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is"] + #[doc = " expensive)."] + #[doc = "- 1 storage write (codec `O(C)`)."] + #[doc = "- 1 digest item."] + #[doc = "- 1 event."] + #[doc = "The weight of this function is dependent on the runtime, but generally this is very"] + #[doc = "expensive. We will treat this as a full block."] + #[doc = "# "] set_code { code: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 3)] - #[doc = "See [`Pallet::set_code_without_checks`]."] + #[doc = "Set the new runtime code without doing any checks of the given `code`."] + #[doc = ""] + #[doc = "# "] + #[doc = "- `O(C)` where `C` length of `code`"] + #[doc = "- 1 storage write (codec `O(C)`)."] + #[doc = "- 1 digest item."] + #[doc = "- 1 event."] + #[doc = "The weight of this function is dependent on the runtime. We will treat this as a full"] + #[doc = "block. # "] set_code_without_checks { code: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 4)] - #[doc = "See [`Pallet::set_storage`]."] + #[doc = "Set some items of storage."] set_storage { items: ::std::vec::Vec<( ::std::vec::Vec<::core::primitive::u8>, @@ -23576,18 +23615,21 @@ pub mod api { )>, }, #[codec(index = 5)] - #[doc = "See [`Pallet::kill_storage`]."] + #[doc = "Kill some items from storage."] kill_storage { keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, }, #[codec(index = 6)] - #[doc = "See [`Pallet::kill_prefix`]."] + #[doc = "Kill all storage items with a key that starts with the given prefix."] + #[doc = ""] + #[doc = "**NOTE:** We rely on the Root origin to provide us the number of subkeys under"] + #[doc = "the prefix we are removing to accurately calculate the weight of this function."] kill_prefix { prefix: ::std::vec::Vec<::core::primitive::u8>, subkeys: ::core::primitive::u32, }, #[codec(index = 7)] - #[doc = "See [`Pallet::remark_with_event`]."] + #[doc = "Make some on-chain remark and emit event."] remark_with_event { remark: ::std::vec::Vec<::core::primitive::u8>, }, @@ -23877,10 +23919,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::try_dispatch_data_root`]."] + #[doc = "Dispatch a data root message to the home if the header is valid."] try_dispatch_data_root { #[codec(compact)] destination_domain: ::core::primitive::u32, @@ -23906,7 +23948,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] InitializationError, @@ -23928,7 +23970,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] DataRootDispatched { @@ -23957,32 +23999,34 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::dispatch`]."] + #[doc = "Dispatch a message to the destination domain and recipient address."] dispatch { #[codec(compact)] destination_domain: ::core::primitive::u32, recipient_address: ::subxt::utils::H256, - message_body: runtime_types::bounded_collections::bounded_vec::BoundedVec< + message_body: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< ::core::primitive::u8, >, }, #[codec(index = 1)] - #[doc = "See [`Pallet::update`]."] + #[doc = "Verify/submit signed update."] update { signed_update: runtime_types::nomad_core::update::SignedUpdate, #[codec(compact)] max_index: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "See [`Pallet::improper_update`]."] + #[doc = "Verify/slash updater for improper update."] improper_update { signed_update: runtime_types::nomad_core::update::SignedUpdate, }, #[codec(index = 3)] - #[doc = "See [`Pallet::set_updater`]."] + #[doc = "Set new updater on self as well as updater manager."] + #[doc = "Note: Not exposed as pallet call, will only be callable by the"] + #[doc = "GovernanceRouter pallet when implemented."] set_updater { new_updater: ::subxt::utils::H160 }, } #[derive( @@ -23998,7 +24042,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] InitializationError, @@ -24034,7 +24078,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] Dispatch { @@ -24129,7 +24173,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call {} #[derive( :: subxt :: ext :: codec :: Decode, @@ -24144,7 +24188,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] InitializationError, @@ -24162,7 +24206,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] NewUpdater { @@ -24176,6 +24220,94 @@ pub mod api { } } } + pub mod pallet_authorship { + use super::runtime_types; + pub mod pallet { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + pub enum Call { + #[codec(index = 0)] + #[doc = "Provide a set of uncles."] + set_uncles { + new_uncles: ::std::vec::Vec< + runtime_types::avail_core::header::Header< + ::core::primitive::u32, + runtime_types::sp_runtime::traits::BlakeTwo256, + >, + >, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + pub enum Error { + #[codec(index = 0)] + #[doc = "The uncle parent not in the chain."] + InvalidUncleParent, + #[codec(index = 1)] + #[doc = "Uncles already set in the block."] + UnclesAlreadySet, + #[codec(index = 2)] + #[doc = "Too many uncles."] + TooManyUncles, + #[codec(index = 3)] + #[doc = "The uncle is genesis."] + GenesisUncle, + #[codec(index = 4)] + #[doc = "The uncle is too high in chain."] + TooHighUncle, + #[codec(index = 5)] + #[doc = "The uncle is already included."] + UncleAlreadyIncluded, + #[codec(index = 6)] + #[doc = "The uncle isn't recent enough to be included."] + OldUncle, + } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum UncleEntryItem<_0, _1, _2> { + #[codec(index = 0)] + InclusionHeight(_0), + #[codec(index = 1)] + Uncle(_1, ::core::option::Option<_2>), + } + } pub mod pallet_babe { use super::runtime_types; pub mod pallet { @@ -24193,10 +24325,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::report_equivocation`]."] + #[doc = "Report authority equivocation/misbehavior. This method will verify"] + #[doc = "the equivocation proof and validate the given key ownership proof"] + #[doc = "against the extracted offender. If both are valid, the offence will"] + #[doc = "be reported."] report_equivocation { equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_slots::EquivocationProof< @@ -24210,7 +24345,14 @@ pub mod api { key_owner_proof: runtime_types::sp_session::MembershipProof, }, #[codec(index = 1)] - #[doc = "See [`Pallet::report_equivocation_unsigned`]."] + #[doc = "Report authority equivocation/misbehavior. This method will verify"] + #[doc = "the equivocation proof and validate the given key ownership proof"] + #[doc = "against the extracted offender. If both are valid, the offence will"] + #[doc = "be reported."] + #[doc = "This extrinsic must be called unsigned and it is expected that only"] + #[doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] + #[doc = "if the block author is defined it will be defined as the equivocation"] + #[doc = "reporter."] report_equivocation_unsigned { equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_slots::EquivocationProof< @@ -24224,7 +24366,10 @@ pub mod api { key_owner_proof: runtime_types::sp_session::MembershipProof, }, #[codec(index = 2)] - #[doc = "See [`Pallet::plan_config_change`]."] + #[doc = "Plan an epoch config change. The epoch config change is recorded and will be enacted on"] + #[doc = "the next call to `enact_epoch_change`. The config will be activated one epoch after."] + #[doc = "Multiple calls to this method will replace any existing planned config change that had"] + #[doc = "not been enacted yet."] plan_config_change { config: runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, }, @@ -24242,7 +24387,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "An equivocation proof provided as part of an equivocation report is invalid."] @@ -24339,10 +24484,19 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::rebag`]."] + #[doc = "Declare that some `dislocated` account has, through rewards or penalties, sufficiently"] + #[doc = "changed its score that it should properly fall into a different bag than its current"] + #[doc = "one."] + #[doc = ""] + #[doc = "Anyone can call this function about any potentially dislocated account."] + #[doc = ""] + #[doc = "Will always update the stored score of `dislocated` to the correct score, based on"] + #[doc = "`ScoreProvider`."] + #[doc = ""] + #[doc = "If `dislocated` does not exists, it returns an error."] rebag { dislocated: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -24350,7 +24504,14 @@ pub mod api { >, }, #[codec(index = 1)] - #[doc = "See [`Pallet::put_in_front_of`]."] + #[doc = "Move the caller's Id directly in front of `lighter`."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and can only be called by the Id of"] + #[doc = "the account going in front of `lighter`."] + #[doc = ""] + #[doc = "Only works if"] + #[doc = "- both nodes are within the same bag,"] + #[doc = "- and `origin` has a greater `Score` than `lighter`."] put_in_front_of { lighter: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -24371,7 +24532,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "A error in the list interface implementation."] @@ -24390,7 +24551,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "Moved an account from one bag to another."] @@ -24425,11 +24586,35 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::transfer_allow_death`]."] - transfer_allow_death { + #[doc = "Transfer some liquid free balance to another account."] + #[doc = ""] + #[doc = "`transfer` will set the `FreeBalance` of the sender and receiver."] + #[doc = "If the sender's account is below the existential deposit as a result"] + #[doc = "of the transfer, the account will be reaped."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `Signed` by the transactor."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Dependent on arguments but not critical, given proper implementations for input config"] + #[doc = " types. See related functions below."] + #[doc = "- It contains a limited number of reads and writes internally and no complex"] + #[doc = " computation."] + #[doc = ""] + #[doc = "Related functions:"] + #[doc = ""] + #[doc = " - `ensure_can_withdraw` is always called internally but has a bounded complexity."] + #[doc = " - Transferring balances to accounts that did not exist before will cause"] + #[doc = " `T::OnNewAccount::on_new_account` to be called."] + #[doc = " - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`."] + #[doc = " - `transfer_keep_alive` works the same way as `transfer`, but has an additional check"] + #[doc = " that the transfer will not kill the origin account."] + #[doc = "---------------------------------"] + #[doc = "- Origin account is already in memory, so no DB operations for them."] + #[doc = "# "] + transfer { dest: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, @@ -24438,8 +24623,15 @@ pub mod api { value: ::core::primitive::u128, }, #[codec(index = 1)] - #[doc = "See [`Pallet::set_balance_deprecated`]."] - set_balance_deprecated { + #[doc = "Set the balances of a given account."] + #[doc = ""] + #[doc = "This will alter `FreeBalance` and `ReservedBalance` in storage. it will"] + #[doc = "also alter the total issuance of the system (`TotalIssuance`) appropriately."] + #[doc = "If the new free or reserved balance is below the existential deposit,"] + #[doc = "it will reset the account nonce (`frame_system::AccountNonce`)."] + #[doc = ""] + #[doc = "The dispatch origin for this call is `root`."] + set_balance { who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, @@ -24447,10 +24639,15 @@ pub mod api { #[codec(compact)] new_free: ::core::primitive::u128, #[codec(compact)] - old_reserved: ::core::primitive::u128, + new_reserved: ::core::primitive::u128, }, #[codec(index = 2)] - #[doc = "See [`Pallet::force_transfer`]."] + #[doc = "Exactly as `transfer`, except the origin must be root and the source account may be"] + #[doc = "specified."] + #[doc = "# "] + #[doc = "- Same as transfer, but additional read and write because the source account is not"] + #[doc = " assumed to be in the overlay."] + #[doc = "# "] force_transfer { source: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -24464,7 +24661,12 @@ pub mod api { value: ::core::primitive::u128, }, #[codec(index = 3)] - #[doc = "See [`Pallet::transfer_keep_alive`]."] + #[doc = "Same as the [`transfer`] call, but with a check that the transfer will not kill the"] + #[doc = "origin account."] + #[doc = ""] + #[doc = "99% of the time you want [`transfer`] instead."] + #[doc = ""] + #[doc = "[`transfer`]: struct.Pallet.html#method.transfer"] transfer_keep_alive { dest: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -24474,7 +24676,23 @@ pub mod api { value: ::core::primitive::u128, }, #[codec(index = 4)] - #[doc = "See [`Pallet::transfer_all`]."] + #[doc = "Transfer the entire transferable balance from the caller account."] + #[doc = ""] + #[doc = "NOTE: This function only attempts to transfer _transferable_ balances. This means that"] + #[doc = "any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be"] + #[doc = "transferred by this function. To ensure that this function results in a killed account,"] + #[doc = "you might need to prepare the account by removing any reference counters, storage"] + #[doc = "deposits, etc..."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be Signed."] + #[doc = ""] + #[doc = "- `dest`: The recipient of the transfer."] + #[doc = "- `keep_alive`: A boolean to determine if the `transfer_all` operation should send all"] + #[doc = " of the funds the account has, causing the sender account to be killed (false), or"] + #[doc = " transfer everything except at least the existential deposit, which will guarantee to"] + #[doc = " keep the sender account alive (true). # "] + #[doc = "- O(1). Just like transfer, but reading the user's transferable balance first."] + #[doc = " #"] transfer_all { dest: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -24483,7 +24701,9 @@ pub mod api { keep_alive: ::core::primitive::bool, }, #[codec(index = 5)] - #[doc = "See [`Pallet::force_unreserve`]."] + #[doc = "Unreserve some balance from a user by force."] + #[doc = ""] + #[doc = "Can only be called by ROOT."] force_unreserve { who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -24491,31 +24711,6 @@ pub mod api { >, amount: ::core::primitive::u128, }, - #[codec(index = 6)] - #[doc = "See [`Pallet::upgrade_accounts`]."] - upgrade_accounts { - who: ::std::vec::Vec<::subxt::utils::AccountId32>, - }, - #[codec(index = 7)] - #[doc = "See [`Pallet::transfer`]."] - transfer { - dest: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - value: ::core::primitive::u128, - }, - #[codec(index = 8)] - #[doc = "See [`Pallet::force_set_balance`]."] - force_set_balance { - who: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - #[codec(compact)] - new_free: ::core::primitive::u128, - }, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -24530,38 +24725,32 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] - #[doc = "Vesting balance too high to send value."] + #[doc = "Vesting balance too high to send value"] VestingBalance, #[codec(index = 1)] - #[doc = "Account liquidity restrictions prevent withdrawal."] + #[doc = "Account liquidity restrictions prevent withdrawal"] LiquidityRestrictions, #[codec(index = 2)] #[doc = "Balance too low to send value."] InsufficientBalance, #[codec(index = 3)] - #[doc = "Value too low to create account due to existential deposit."] + #[doc = "Value too low to create account due to existential deposit"] ExistentialDeposit, #[codec(index = 4)] - #[doc = "Transfer/payment would kill account."] - Expendability, + #[doc = "Transfer/payment would kill account"] + KeepAlive, #[codec(index = 5)] - #[doc = "A vesting schedule already exists for this account."] + #[doc = "A vesting schedule already exists for this account"] ExistingVestingSchedule, #[codec(index = 6)] - #[doc = "Beneficiary account must pre-exist."] + #[doc = "Beneficiary account must pre-exist"] DeadAccount, #[codec(index = 7)] - #[doc = "Number of named reserves exceed `MaxReserves`."] + #[doc = "Number of named reserves exceed MaxReserves"] TooManyReserves, - #[codec(index = 8)] - #[doc = "Number of holds exceed `MaxHolds`."] - TooManyHolds, - #[codec(index = 9)] - #[doc = "Number of freezes exceed `MaxFreezes`."] - TooManyFreezes, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -24576,7 +24765,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "An account was created with some free balance."] @@ -24603,6 +24792,7 @@ pub mod api { BalanceSet { who: ::subxt::utils::AccountId32, free: ::core::primitive::u128, + reserved: ::core::primitive::u128, }, #[codec(index = 4)] #[doc = "Some balance was reserved (moved from free to reserved)."] @@ -24644,174 +24834,82 @@ pub mod api { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, - #[codec(index = 10)] - #[doc = "Some amount was minted into an account."] - Minted { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 11)] - #[doc = "Some amount was burned from an account."] - Burned { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 12)] - #[doc = "Some amount was suspended from an account (it can be restored later)."] - Suspended { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 13)] - #[doc = "Some amount was restored into an account."] - Restored { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 14)] - #[doc = "An account was upgraded."] - Upgraded { who: ::subxt::utils::AccountId32 }, - #[codec(index = 15)] - #[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."] - Issued { amount: ::core::primitive::u128 }, - #[codec(index = 16)] - #[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."] - Rescinded { amount: ::core::primitive::u128 }, - #[codec(index = 17)] - #[doc = "Some balance was locked."] - Locked { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 18)] - #[doc = "Some balance was unlocked."] - Unlocked { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 19)] - #[doc = "Some balance was frozen."] - Frozen { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, - #[codec(index = 20)] - #[doc = "Some balance was thawed."] - Thawed { - who: ::subxt::utils::AccountId32, - amount: ::core::primitive::u128, - }, } } - pub mod types { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AccountData<_0> { - pub free: _0, - pub reserved: _0, - pub frozen: _0, - pub flags: runtime_types::pallet_balances::types::ExtraFlags, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BalanceLock<_0> { - pub id: [::core::primitive::u8; 8usize], - pub amount: _0, - pub reasons: runtime_types::pallet_balances::types::Reasons, - } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ExtraFlags(pub ::core::primitive::u128); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct IdAmount<_0, _1> { - pub id: _0, - pub amount: _1, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Reasons { - #[codec(index = 0)] - Fee, - #[codec(index = 1)] - Misc, - #[codec(index = 2)] - All, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ReserveData<_0, _1> { - pub id: _0, - pub amount: _1, - } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AccountData<_0> { + pub free: _0, + pub reserved: _0, + pub misc_frozen: _0, + pub fee_frozen: _0, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BalanceLock<_0> { + pub id: [::core::primitive::u8; 8usize], + pub amount: _0, + pub reasons: runtime_types::pallet_balances::Reasons, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Reasons { + #[codec(index = 0)] + Fee, + #[codec(index = 1)] + Misc, + #[codec(index = 2)] + All, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ReserveData<_0, _1> { + pub id: _0, + pub amount: _1, } } pub mod pallet_bounties { @@ -24831,23 +24929,47 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::propose_bounty`]."] + #[doc = "Propose a new bounty."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "Payment: `TipReportDepositBase` will be reserved from the origin account, as well as"] + #[doc = "`DataDepositPerByte` for each byte in `reason`. It will be unreserved upon approval,"] + #[doc = "or slashed when rejected."] + #[doc = ""] + #[doc = "- `curator`: The curator account whom will manage this bounty."] + #[doc = "- `fee`: The curator fee."] + #[doc = "- `value`: The total payment amount of this bounty, curator fee included."] + #[doc = "- `description`: The description of this bounty."] propose_bounty { #[codec(compact)] value: ::core::primitive::u128, description: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] - #[doc = "See [`Pallet::approve_bounty`]."] + #[doc = "Approve a bounty proposal. At a later time, the bounty will be funded and become active"] + #[doc = "and the original deposit will be returned."] + #[doc = ""] + #[doc = "May only be called from `T::SpendOrigin`."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1)."] + #[doc = "# "] approve_bounty { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "See [`Pallet::propose_curator`]."] + #[doc = "Assign a curator to a funded bounty."] + #[doc = ""] + #[doc = "May only be called from `T::SpendOrigin`."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1)."] + #[doc = "# "] propose_curator { #[codec(compact)] bounty_id: ::core::primitive::u32, @@ -24859,19 +24981,53 @@ pub mod api { fee: ::core::primitive::u128, }, #[codec(index = 3)] - #[doc = "See [`Pallet::unassign_curator`]."] + #[doc = "Unassign curator from a bounty."] + #[doc = ""] + #[doc = "This function can only be called by the `RejectOrigin` a signed origin."] + #[doc = ""] + #[doc = "If this function is called by the `RejectOrigin`, we assume that the curator is"] + #[doc = "malicious or inactive. As a result, we will slash the curator when possible."] + #[doc = ""] + #[doc = "If the origin is the curator, we take this as a sign they are unable to do their job and"] + #[doc = "they willingly give up. We could slash them, but for now we allow them to recover their"] + #[doc = "deposit and exit without issue. (We may want to change this if it is abused.)"] + #[doc = ""] + #[doc = "Finally, the origin can be anyone if and only if the curator is \"inactive\". This allows"] + #[doc = "anyone in the community to call out that a curator is not doing their due diligence, and"] + #[doc = "we should pick a new curator. In this case the curator should also be slashed."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1)."] + #[doc = "# "] unassign_curator { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 4)] - #[doc = "See [`Pallet::accept_curator`]."] + #[doc = "Accept the curator role for a bounty."] + #[doc = "A deposit will be reserved from curator and refund upon successful payout."] + #[doc = ""] + #[doc = "May only be called from the curator."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1)."] + #[doc = "# "] accept_curator { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 5)] - #[doc = "See [`Pallet::award_bounty`]."] + #[doc = "Award bounty to a beneficiary account. The beneficiary will be able to claim the funds"] + #[doc = "after a delay."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be the curator of this bounty."] + #[doc = ""] + #[doc = "- `bounty_id`: Bounty ID to award."] + #[doc = "- `beneficiary`: The beneficiary account whom will receive the payout."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1)."] + #[doc = "# "] award_bounty { #[codec(compact)] bounty_id: ::core::primitive::u32, @@ -24881,19 +25037,45 @@ pub mod api { >, }, #[codec(index = 6)] - #[doc = "See [`Pallet::claim_bounty`]."] + #[doc = "Claim the payout from an awarded bounty after payout delay."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be the beneficiary of this bounty."] + #[doc = ""] + #[doc = "- `bounty_id`: Bounty ID to claim."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1)."] + #[doc = "# "] claim_bounty { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 7)] - #[doc = "See [`Pallet::close_bounty`]."] + #[doc = "Cancel a proposed or active bounty. All the funds will be sent to treasury and"] + #[doc = "the curator deposit will be unreserved if possible."] + #[doc = ""] + #[doc = "Only `T::RejectOrigin` is able to cancel a bounty."] + #[doc = ""] + #[doc = "- `bounty_id`: Bounty ID to cancel."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1)."] + #[doc = "# "] close_bounty { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 8)] - #[doc = "See [`Pallet::extend_bounty_expiry`]."] + #[doc = "Extend the expiry time of an active bounty."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be the curator of this bounty."] + #[doc = ""] + #[doc = "- `bounty_id`: Bounty ID to extend."] + #[doc = "- `remark`: additional information."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1)."] + #[doc = "# "] extend_bounty_expiry { #[codec(compact)] bounty_id: ::core::primitive::u32, @@ -24913,7 +25095,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Proposer's balance is too low."] @@ -24963,7 +25145,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "New bounty proposal."] @@ -25068,24 +25250,91 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::set_members`]."] + #[doc = "Set the collective's membership."] + #[doc = ""] + #[doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] + #[doc = "- `prime`: The prime member whose vote sets the default."] + #[doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] + #[doc = " weight estimation."] + #[doc = ""] + #[doc = "Requires root origin."] + #[doc = ""] + #[doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] + #[doc = " the weight estimations rely on it to estimate dispatchable weight."] + #[doc = ""] + #[doc = "# WARNING:"] + #[doc = ""] + #[doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] + #[doc = "implementation of the trait [`ChangeMembers`]."] + #[doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] + #[doc = "with other logic managing the member set."] + #[doc = ""] + #[doc = "# "] + #[doc = "## Weight"] + #[doc = "- `O(MP + N)` where:"] + #[doc = " - `M` old-members-count (code- and governance-bounded)"] + #[doc = " - `N` new-members-count (code- and governance-bounded)"] + #[doc = " - `P` proposals-count (code-bounded)"] + #[doc = "- DB:"] + #[doc = " - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the"] + #[doc = " members"] + #[doc = " - 1 storage read (codec `O(P)`) for reading the proposals"] + #[doc = " - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal"] + #[doc = " - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one"] + #[doc = "# "] set_members { new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, prime: ::core::option::Option<::subxt::utils::AccountId32>, old_count: ::core::primitive::u32, }, #[codec(index = 1)] - #[doc = "See [`Pallet::execute`]."] + #[doc = "Dispatch a proposal from a member using the `Member` origin."] + #[doc = ""] + #[doc = "Origin must be a member of the collective."] + #[doc = ""] + #[doc = "# "] + #[doc = "## Weight"] + #[doc = "- `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching"] + #[doc = " `proposal`"] + #[doc = "- DB: 1 read (codec `O(M)`) + DB access of `proposal`"] + #[doc = "- 1 event"] + #[doc = "# "] execute { proposal: ::std::boxed::Box, #[codec(compact)] length_bound: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "See [`Pallet::propose`]."] + #[doc = "Add a new proposal to either be voted on or executed directly."] + #[doc = ""] + #[doc = "Requires the sender to be member."] + #[doc = ""] + #[doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] + #[doc = "or put up for voting."] + #[doc = ""] + #[doc = "# "] + #[doc = "## Weight"] + #[doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] + #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] + #[doc = " - `M` is members-count (code- and governance-bounded)"] + #[doc = " - branching is influenced by `threshold` where:"] + #[doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] + #[doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] + #[doc = "- DB:"] + #[doc = " - 1 storage read `is_member` (codec `O(M)`)"] + #[doc = " - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)"] + #[doc = " - DB accesses influenced by `threshold`:"] + #[doc = " - EITHER storage accesses done by `proposal` (`threshold < 2`)"] + #[doc = " - OR proposal insertion (`threshold <= 2`)"] + #[doc = " - 1 storage mutation `Proposals` (codec `O(P2)`)"] + #[doc = " - 1 storage mutation `ProposalCount` (codec `O(1)`)"] + #[doc = " - 1 storage write `ProposalOf` (codec `O(B)`)"] + #[doc = " - 1 storage write `Voting` (codec `O(M)`)"] + #[doc = " - 1 event"] + #[doc = "# "] propose { #[codec(compact)] threshold: ::core::primitive::u32, @@ -25094,18 +25343,118 @@ pub mod api { length_bound: ::core::primitive::u32, }, #[codec(index = 3)] - #[doc = "See [`Pallet::vote`]."] + #[doc = "Add an aye or nay vote for the sender to the given proposal."] + #[doc = ""] + #[doc = "Requires the sender to be a member."] + #[doc = ""] + #[doc = "Transaction fees will be waived if the member is voting on any particular proposal"] + #[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] + #[doc = "fee."] + #[doc = "# "] + #[doc = "## Weight"] + #[doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] + #[doc = "- DB:"] + #[doc = " - 1 storage read `Members` (codec `O(M)`)"] + #[doc = " - 1 storage mutation `Voting` (codec `O(M)`)"] + #[doc = "- 1 event"] + #[doc = "# "] vote { proposal: ::subxt::utils::H256, #[codec(compact)] index: ::core::primitive::u32, approve: ::core::primitive::bool, }, + #[codec(index = 4)] + #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] + #[doc = ""] + #[doc = "May be called by any signed account in order to finish voting and close the proposal."] + #[doc = ""] + #[doc = "If called before the end of the voting period it will only close the vote if it is"] + #[doc = "has enough votes to be approved or disapproved."] + #[doc = ""] + #[doc = "If called after the end of the voting period abstentions are counted as rejections"] + #[doc = "unless there is a prime member set and the prime member cast an approval."] + #[doc = ""] + #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] + #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] + #[doc = ""] + #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] + #[doc = "proposal."] + #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] + #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] + #[doc = ""] + #[doc = "# "] + #[doc = "## Weight"] + #[doc = "- `O(B + M + P1 + P2)` where:"] + #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] + #[doc = " - `M` is members-count (code- and governance-bounded)"] + #[doc = " - `P1` is the complexity of `proposal` preimage."] + #[doc = " - `P2` is proposal-count (code-bounded)"] + #[doc = "- DB:"] + #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] + #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] + #[doc = " `O(P2)`)"] + #[doc = " - any mutations done while executing `proposal` (`P1`)"] + #[doc = "- up to 3 events"] + #[doc = "# "] + close_old_weight { + proposal_hash: ::subxt::utils::H256, + #[codec(compact)] + index: ::core::primitive::u32, + #[codec(compact)] + proposal_weight_bound: runtime_types::sp_weights::OldWeight, + #[codec(compact)] + length_bound: ::core::primitive::u32, + }, #[codec(index = 5)] - #[doc = "See [`Pallet::disapprove_proposal`]."] + #[doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] + #[doc = "state."] + #[doc = ""] + #[doc = "Must be called by the Root origin."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] + #[doc = ""] + #[doc = "# "] + #[doc = "Complexity: O(P) where P is the number of max proposals"] + #[doc = "DB Weight:"] + #[doc = "* Reads: Proposals"] + #[doc = "* Writes: Voting, Proposals, ProposalOf"] + #[doc = "# "] disapprove_proposal { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 6)] - #[doc = "See [`Pallet::close`]."] + #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] + #[doc = ""] + #[doc = "May be called by any signed account in order to finish voting and close the proposal."] + #[doc = ""] + #[doc = "If called before the end of the voting period it will only close the vote if it is"] + #[doc = "has enough votes to be approved or disapproved."] + #[doc = ""] + #[doc = "If called after the end of the voting period abstentions are counted as rejections"] + #[doc = "unless there is a prime member set and the prime member cast an approval."] + #[doc = ""] + #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] + #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] + #[doc = ""] + #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] + #[doc = "proposal."] + #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] + #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] + #[doc = ""] + #[doc = "# "] + #[doc = "## Weight"] + #[doc = "- `O(B + M + P1 + P2)` where:"] + #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] + #[doc = " - `M` is members-count (code- and governance-bounded)"] + #[doc = " - `P1` is the complexity of `proposal` preimage."] + #[doc = " - `P2` is proposal-count (code-bounded)"] + #[doc = "- DB:"] + #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] + #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] + #[doc = " `O(P2)`)"] + #[doc = " - any mutations done while executing `proposal` (`P1`)"] + #[doc = "- up to 3 events"] + #[doc = "# "] close { proposal_hash: ::subxt::utils::H256, #[codec(compact)] @@ -25128,24 +25477,91 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call2 { #[codec(index = 0)] - #[doc = "See [`Pallet::set_members`]."] + #[doc = "Set the collective's membership."] + #[doc = ""] + #[doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] + #[doc = "- `prime`: The prime member whose vote sets the default."] + #[doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] + #[doc = " weight estimation."] + #[doc = ""] + #[doc = "Requires root origin."] + #[doc = ""] + #[doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] + #[doc = " the weight estimations rely on it to estimate dispatchable weight."] + #[doc = ""] + #[doc = "# WARNING:"] + #[doc = ""] + #[doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] + #[doc = "implementation of the trait [`ChangeMembers`]."] + #[doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] + #[doc = "with other logic managing the member set."] + #[doc = ""] + #[doc = "# "] + #[doc = "## Weight"] + #[doc = "- `O(MP + N)` where:"] + #[doc = " - `M` old-members-count (code- and governance-bounded)"] + #[doc = " - `N` new-members-count (code- and governance-bounded)"] + #[doc = " - `P` proposals-count (code-bounded)"] + #[doc = "- DB:"] + #[doc = " - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the"] + #[doc = " members"] + #[doc = " - 1 storage read (codec `O(P)`) for reading the proposals"] + #[doc = " - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal"] + #[doc = " - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one"] + #[doc = "# "] set_members { new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, prime: ::core::option::Option<::subxt::utils::AccountId32>, old_count: ::core::primitive::u32, }, #[codec(index = 1)] - #[doc = "See [`Pallet::execute`]."] + #[doc = "Dispatch a proposal from a member using the `Member` origin."] + #[doc = ""] + #[doc = "Origin must be a member of the collective."] + #[doc = ""] + #[doc = "# "] + #[doc = "## Weight"] + #[doc = "- `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching"] + #[doc = " `proposal`"] + #[doc = "- DB: 1 read (codec `O(M)`) + DB access of `proposal`"] + #[doc = "- 1 event"] + #[doc = "# "] execute { proposal: ::std::boxed::Box, #[codec(compact)] length_bound: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "See [`Pallet::propose`]."] + #[doc = "Add a new proposal to either be voted on or executed directly."] + #[doc = ""] + #[doc = "Requires the sender to be member."] + #[doc = ""] + #[doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] + #[doc = "or put up for voting."] + #[doc = ""] + #[doc = "# "] + #[doc = "## Weight"] + #[doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] + #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] + #[doc = " - `M` is members-count (code- and governance-bounded)"] + #[doc = " - branching is influenced by `threshold` where:"] + #[doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] + #[doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] + #[doc = "- DB:"] + #[doc = " - 1 storage read `is_member` (codec `O(M)`)"] + #[doc = " - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)"] + #[doc = " - DB accesses influenced by `threshold`:"] + #[doc = " - EITHER storage accesses done by `proposal` (`threshold < 2`)"] + #[doc = " - OR proposal insertion (`threshold <= 2`)"] + #[doc = " - 1 storage mutation `Proposals` (codec `O(P2)`)"] + #[doc = " - 1 storage mutation `ProposalCount` (codec `O(1)`)"] + #[doc = " - 1 storage write `ProposalOf` (codec `O(B)`)"] + #[doc = " - 1 storage write `Voting` (codec `O(M)`)"] + #[doc = " - 1 event"] + #[doc = "# "] propose { #[codec(compact)] threshold: ::core::primitive::u32, @@ -25154,18 +25570,118 @@ pub mod api { length_bound: ::core::primitive::u32, }, #[codec(index = 3)] - #[doc = "See [`Pallet::vote`]."] + #[doc = "Add an aye or nay vote for the sender to the given proposal."] + #[doc = ""] + #[doc = "Requires the sender to be a member."] + #[doc = ""] + #[doc = "Transaction fees will be waived if the member is voting on any particular proposal"] + #[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] + #[doc = "fee."] + #[doc = "# "] + #[doc = "## Weight"] + #[doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] + #[doc = "- DB:"] + #[doc = " - 1 storage read `Members` (codec `O(M)`)"] + #[doc = " - 1 storage mutation `Voting` (codec `O(M)`)"] + #[doc = "- 1 event"] + #[doc = "# "] vote { proposal: ::subxt::utils::H256, #[codec(compact)] index: ::core::primitive::u32, approve: ::core::primitive::bool, }, + #[codec(index = 4)] + #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] + #[doc = ""] + #[doc = "May be called by any signed account in order to finish voting and close the proposal."] + #[doc = ""] + #[doc = "If called before the end of the voting period it will only close the vote if it is"] + #[doc = "has enough votes to be approved or disapproved."] + #[doc = ""] + #[doc = "If called after the end of the voting period abstentions are counted as rejections"] + #[doc = "unless there is a prime member set and the prime member cast an approval."] + #[doc = ""] + #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] + #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] + #[doc = ""] + #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] + #[doc = "proposal."] + #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] + #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] + #[doc = ""] + #[doc = "# "] + #[doc = "## Weight"] + #[doc = "- `O(B + M + P1 + P2)` where:"] + #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] + #[doc = " - `M` is members-count (code- and governance-bounded)"] + #[doc = " - `P1` is the complexity of `proposal` preimage."] + #[doc = " - `P2` is proposal-count (code-bounded)"] + #[doc = "- DB:"] + #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] + #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] + #[doc = " `O(P2)`)"] + #[doc = " - any mutations done while executing `proposal` (`P1`)"] + #[doc = "- up to 3 events"] + #[doc = "# "] + close_old_weight { + proposal_hash: ::subxt::utils::H256, + #[codec(compact)] + index: ::core::primitive::u32, + #[codec(compact)] + proposal_weight_bound: runtime_types::sp_weights::OldWeight, + #[codec(compact)] + length_bound: ::core::primitive::u32, + }, #[codec(index = 5)] - #[doc = "See [`Pallet::disapprove_proposal`]."] + #[doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] + #[doc = "state."] + #[doc = ""] + #[doc = "Must be called by the Root origin."] + #[doc = ""] + #[doc = "Parameters:"] + #[doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] + #[doc = ""] + #[doc = "# "] + #[doc = "Complexity: O(P) where P is the number of max proposals"] + #[doc = "DB Weight:"] + #[doc = "* Reads: Proposals"] + #[doc = "* Writes: Voting, Proposals, ProposalOf"] + #[doc = "# "] disapprove_proposal { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 6)] - #[doc = "See [`Pallet::close`]."] + #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] + #[doc = ""] + #[doc = "May be called by any signed account in order to finish voting and close the proposal."] + #[doc = ""] + #[doc = "If called before the end of the voting period it will only close the vote if it is"] + #[doc = "has enough votes to be approved or disapproved."] + #[doc = ""] + #[doc = "If called after the end of the voting period abstentions are counted as rejections"] + #[doc = "unless there is a prime member set and the prime member cast an approval."] + #[doc = ""] + #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] + #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] + #[doc = ""] + #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] + #[doc = "proposal."] + #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] + #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] + #[doc = ""] + #[doc = "# "] + #[doc = "## Weight"] + #[doc = "- `O(B + M + P1 + P2)` where:"] + #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] + #[doc = " - `M` is members-count (code- and governance-bounded)"] + #[doc = " - `P1` is the complexity of `proposal` preimage."] + #[doc = " - `P2` is proposal-count (code-bounded)"] + #[doc = "- DB:"] + #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] + #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] + #[doc = " `O(P2)`)"] + #[doc = " - any mutations done while executing `proposal` (`P1`)"] + #[doc = "- up to 3 events"] + #[doc = "# "] close { proposal_hash: ::subxt::utils::H256, #[codec(compact)] @@ -25188,7 +25704,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Account is not a member"] @@ -25234,7 +25750,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error2 { #[codec(index = 0)] #[doc = "Account is not a member"] @@ -25280,7 +25796,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] @@ -25342,7 +25858,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event2 { #[codec(index = 0)] #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] @@ -25483,10 +25999,18 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::propose`]."] + #[doc = "Propose a sensitive action to be taken."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_ and the sender must"] + #[doc = "have funds to cover the deposit."] + #[doc = ""] + #[doc = "- `proposal_hash`: The hash of the proposal preimage."] + #[doc = "- `value`: The amount of deposit (must be at least `MinimumDeposit`)."] + #[doc = ""] + #[doc = "Emits `Proposed`."] propose { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::da_runtime::RuntimeCall, @@ -25495,13 +26019,24 @@ pub mod api { value: ::core::primitive::u128, }, #[codec(index = 1)] - #[doc = "See [`Pallet::second`]."] + #[doc = "Signals agreement with a particular proposal."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_ and the sender"] + #[doc = "must have funds to cover the deposit, equal to the original deposit."] + #[doc = ""] + #[doc = "- `proposal`: The index of the proposal to second."] second { #[codec(compact)] proposal: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "See [`Pallet::vote`]."] + #[doc = "Vote in a referendum. If `vote.is_aye()`, the vote is to enact the proposal;"] + #[doc = "otherwise it is a vote to keep the status quo."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_."] + #[doc = ""] + #[doc = "- `ref_index`: The index of the referendum to vote for."] + #[doc = "- `vote`: The vote configuration."] vote { #[codec(compact)] ref_index: ::core::primitive::u32, @@ -25510,47 +26045,127 @@ pub mod api { >, }, #[codec(index = 3)] - #[doc = "See [`Pallet::emergency_cancel`]."] + #[doc = "Schedule an emergency cancellation of a referendum. Cannot happen twice to the same"] + #[doc = "referendum."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `CancellationOrigin`."] + #[doc = ""] + #[doc = "-`ref_index`: The index of the referendum to cancel."] + #[doc = ""] + #[doc = "Weight: `O(1)`."] emergency_cancel { ref_index: ::core::primitive::u32 }, #[codec(index = 4)] - #[doc = "See [`Pallet::external_propose`]."] + #[doc = "Schedule a referendum to be tabled once it is legal to schedule an external"] + #[doc = "referendum."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `ExternalOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The preimage hash of the proposal."] external_propose { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::da_runtime::RuntimeCall, >, }, #[codec(index = 5)] - #[doc = "See [`Pallet::external_propose_majority`]."] + #[doc = "Schedule a majority-carries referendum to be tabled next once it is legal to schedule"] + #[doc = "an external referendum."] + #[doc = ""] + #[doc = "The dispatch of this call must be `ExternalMajorityOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The preimage hash of the proposal."] + #[doc = ""] + #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] + #[doc = "pre-scheduled `external_propose` call."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] external_propose_majority { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::da_runtime::RuntimeCall, >, }, #[codec(index = 6)] - #[doc = "See [`Pallet::external_propose_default`]."] + #[doc = "Schedule a negative-turnout-bias referendum to be tabled next once it is legal to"] + #[doc = "schedule an external referendum."] + #[doc = ""] + #[doc = "The dispatch of this call must be `ExternalDefaultOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The preimage hash of the proposal."] + #[doc = ""] + #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] + #[doc = "pre-scheduled `external_propose` call."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] external_propose_default { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::da_runtime::RuntimeCall, >, }, #[codec(index = 7)] - #[doc = "See [`Pallet::fast_track`]."] + #[doc = "Schedule the currently externally-proposed majority-carries referendum to be tabled"] + #[doc = "immediately. If there is no externally-proposed referendum currently, or if there is one"] + #[doc = "but it is not a majority-carries referendum then it fails."] + #[doc = ""] + #[doc = "The dispatch of this call must be `FastTrackOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The hash of the current external proposal."] + #[doc = "- `voting_period`: The period that is allowed for voting on this proposal. Increased to"] + #[doc = "\tMust be always greater than zero."] + #[doc = "\tFor `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`."] + #[doc = "- `delay`: The number of block after voting has ended in approval and this should be"] + #[doc = " enacted. This doesn't have a minimum amount."] + #[doc = ""] + #[doc = "Emits `Started`."] + #[doc = ""] + #[doc = "Weight: `O(1)`"] fast_track { proposal_hash: ::subxt::utils::H256, voting_period: ::core::primitive::u32, delay: ::core::primitive::u32, }, #[codec(index = 8)] - #[doc = "See [`Pallet::veto_external`]."] + #[doc = "Veto and blacklist the external proposal hash."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `VetoOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The preimage hash of the proposal to veto and blacklist."] + #[doc = ""] + #[doc = "Emits `Vetoed`."] + #[doc = ""] + #[doc = "Weight: `O(V + log(V))` where V is number of `existing vetoers`"] veto_external { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 9)] - #[doc = "See [`Pallet::cancel_referendum`]."] + #[doc = "Remove a referendum."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Root_."] + #[doc = ""] + #[doc = "- `ref_index`: The index of the referendum to cancel."] + #[doc = ""] + #[doc = "# Weight: `O(1)`."] cancel_referendum { #[codec(compact)] ref_index: ::core::primitive::u32, }, #[codec(index = 10)] - #[doc = "See [`Pallet::delegate`]."] + #[doc = "Delegate the voting power (with some given conviction) of the sending account."] + #[doc = ""] + #[doc = "The balance delegated is locked for as long as it's delegated, and thereafter for the"] + #[doc = "time appropriate for the conviction's lock period."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_, and the signing account must either:"] + #[doc = " - be delegating already; or"] + #[doc = " - have no voting activity (if there is, then it will need to be removed/consolidated"] + #[doc = " through `reap_vote` or `unvote`)."] + #[doc = ""] + #[doc = "- `to`: The account whose voting the `target` account's voting power will follow."] + #[doc = "- `conviction`: The conviction that will be attached to the delegated votes. When the"] + #[doc = " account is undelegated, the funds will be locked for the corresponding period."] + #[doc = "- `balance`: The amount of the account's balance to be used in delegating. This must not"] + #[doc = " be more than the account's current balance."] + #[doc = ""] + #[doc = "Emits `Delegated`."] + #[doc = ""] + #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] + #[doc = " voted on. Weight is charged as if maximum votes."] delegate { to: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -25560,13 +26175,34 @@ pub mod api { balance: ::core::primitive::u128, }, #[codec(index = 11)] - #[doc = "See [`Pallet::undelegate`]."] + #[doc = "Undelegate the voting power of the sending account."] + #[doc = ""] + #[doc = "Tokens may be unlocked following once an amount of time consistent with the lock period"] + #[doc = "of the conviction with which the delegation was issued."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"] + #[doc = "currently delegating."] + #[doc = ""] + #[doc = "Emits `Undelegated`."] + #[doc = ""] + #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] + #[doc = " voted on. Weight is charged as if maximum votes."] undelegate, #[codec(index = 12)] - #[doc = "See [`Pallet::clear_public_proposals`]."] + #[doc = "Clears all public proposals."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Root_."] + #[doc = ""] + #[doc = "Weight: `O(1)`."] clear_public_proposals, #[codec(index = 13)] - #[doc = "See [`Pallet::unlock`]."] + #[doc = "Unlock tokens that have an expired lock."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_."] + #[doc = ""] + #[doc = "- `target`: The account to remove the lock on."] + #[doc = ""] + #[doc = "Weight: `O(R)` with R number of vote of target."] unlock { target: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -25574,10 +26210,50 @@ pub mod api { >, }, #[codec(index = 14)] - #[doc = "See [`Pallet::remove_vote`]."] + #[doc = "Remove a vote for a referendum."] + #[doc = ""] + #[doc = "If:"] + #[doc = "- the referendum was cancelled, or"] + #[doc = "- the referendum is ongoing, or"] + #[doc = "- the referendum has ended such that"] + #[doc = " - the vote of the account was in opposition to the result; or"] + #[doc = " - there was no conviction to the account's vote; or"] + #[doc = " - the account made a split vote"] + #[doc = "...then the vote is removed cleanly and a following call to `unlock` may result in more"] + #[doc = "funds being available."] + #[doc = ""] + #[doc = "If, however, the referendum has ended and:"] + #[doc = "- it finished corresponding to the vote of the account, and"] + #[doc = "- the account made a standard vote with conviction, and"] + #[doc = "- the lock period of the conviction is not over"] + #[doc = "...then the lock will be aggregated into the overall account's lock, which may involve"] + #[doc = "*overlocking* (where the two locks are combined into a single lock that is the maximum"] + #[doc = "of both the amount locked and the time is it locked for)."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_, and the signer must have a vote"] + #[doc = "registered for referendum `index`."] + #[doc = ""] + #[doc = "- `index`: The index of referendum of the vote to be removed."] + #[doc = ""] + #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] + #[doc = " Weight is calculated for the maximum number of vote."] remove_vote { index: ::core::primitive::u32 }, #[codec(index = 15)] - #[doc = "See [`Pallet::remove_other_vote`]."] + #[doc = "Remove a vote for a referendum."] + #[doc = ""] + #[doc = "If the `target` is equal to the signer, then this function is exactly equivalent to"] + #[doc = "`remove_vote`. If not equal to the signer, then the vote must have expired,"] + #[doc = "either because the referendum was cancelled, because the voter lost the referendum or"] + #[doc = "because the conviction period is over."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be _Signed_."] + #[doc = ""] + #[doc = "- `target`: The account of the vote to be removed; this account must have voted for"] + #[doc = " referendum `index`."] + #[doc = "- `index`: The index of referendum of the vote to be removed."] + #[doc = ""] + #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] + #[doc = " Weight is calculated for the maximum number of vote."] remove_other_vote { target: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -25586,23 +26262,37 @@ pub mod api { index: ::core::primitive::u32, }, #[codec(index = 16)] - #[doc = "See [`Pallet::blacklist`]."] + #[doc = "Permanently place a proposal into the blacklist. This prevents it from ever being"] + #[doc = "proposed again."] + #[doc = ""] + #[doc = "If called on a queued public or external proposal, then this will result in it being"] + #[doc = "removed. If the `ref_index` supplied is an active referendum with the proposal hash,"] + #[doc = "then it will be cancelled."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `BlacklistOrigin`."] + #[doc = ""] + #[doc = "- `proposal_hash`: The proposal hash to blacklist permanently."] + #[doc = "- `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be"] + #[doc = "cancelled."] + #[doc = ""] + #[doc = "Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a"] + #[doc = " reasonable value)."] blacklist { proposal_hash: ::subxt::utils::H256, maybe_ref_index: ::core::option::Option<::core::primitive::u32>, }, #[codec(index = 17)] - #[doc = "See [`Pallet::cancel_proposal`]."] + #[doc = "Remove a proposal."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be `CancelProposalOrigin`."] + #[doc = ""] + #[doc = "- `prop_index`: The index of the proposal to cancel."] + #[doc = ""] + #[doc = "Weight: `O(p)` where `p = PublicProps::::decode_len()`"] cancel_proposal { #[codec(compact)] prop_index: ::core::primitive::u32, }, - #[codec(index = 18)] - #[doc = "See [`Pallet::set_metadata`]."] - set_metadata { - owner: runtime_types::pallet_democracy::types::MetadataOwner, - maybe_hash: ::core::option::Option<::subxt::utils::H256>, - }, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -25617,7 +26307,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Value too low"] @@ -25689,9 +26379,6 @@ pub mod api { #[codec(index = 22)] #[doc = "Voting period too low"] VotingPeriodLow, - #[codec(index = 23)] - #[doc = "The preimage does not exist."] - PreimageNotExist, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -25706,7 +26393,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A motion has been proposed by a public account."] @@ -25777,25 +26464,6 @@ pub mod api { #[codec(index = 13)] #[doc = "A proposal got canceled."] ProposalCanceled { prop_index: ::core::primitive::u32 }, - #[codec(index = 14)] - #[doc = "Metadata for a proposal or a referendum has been set."] - MetadataSet { - owner: runtime_types::pallet_democracy::types::MetadataOwner, - hash: ::subxt::utils::H256, - }, - #[codec(index = 15)] - #[doc = "Metadata for a proposal or a referendum has been cleared."] - MetadataCleared { - owner: runtime_types::pallet_democracy::types::MetadataOwner, - hash: ::subxt::utils::H256, - }, - #[codec(index = 16)] - #[doc = "Metadata has been transferred to new owner."] - MetadataTransferred { - prev_owner: runtime_types::pallet_democracy::types::MetadataOwner, - owner: runtime_types::pallet_democracy::types::MetadataOwner, - hash: ::subxt::utils::H256, - }, } } pub mod types { @@ -25830,27 +26498,6 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum MetadataOwner { - #[codec(index = 0)] - External, - #[codec(index = 1)] - Proposal(::core::primitive::u32), - #[codec(index = 2)] - Referendum(::core::primitive::u32), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ReferendumInfo<_0, _1, _2> { #[codec(index = 0)] Ongoing(runtime_types::pallet_democracy::types::ReferendumStatus<_0, _1, _2>), @@ -25968,7 +26615,7 @@ pub mod api { pub enum Voting<_0, _1, _2> { #[codec(index = 0)] Direct { - votes: runtime_types::bounded_collections::bounded_vec::BoundedVec<( + votes: runtime_types::sp_core::bounded::bounded_vec::BoundedVec<( _2, runtime_types::pallet_democracy::vote::AccountVote<_0>, )>, @@ -26027,9 +26674,9 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { - # [codec (index = 0)] # [doc = "See [`Pallet::submit_unsigned`]."] submit_unsigned { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: da_runtime :: constants :: staking :: NposSolution16 > > , witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } , # [codec (index = 1)] # [doc = "See [`Pallet::set_minimum_untrusted_score`]."] set_minimum_untrusted_score { maybe_next_score : :: core :: option :: Option < runtime_types :: sp_npos_elections :: ElectionScore > , } , # [codec (index = 2)] # [doc = "See [`Pallet::set_emergency_election_result`]."] set_emergency_election_result { supports : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: utils :: AccountId32 > ,) > , } , # [codec (index = 3)] # [doc = "See [`Pallet::submit`]."] submit { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: da_runtime :: constants :: staking :: NposSolution16 > > , } , # [codec (index = 4)] # [doc = "See [`Pallet::governance_fallback`]."] governance_fallback { maybe_max_voters : :: core :: option :: Option < :: core :: primitive :: u32 > , maybe_max_targets : :: core :: option :: Option < :: core :: primitive :: u32 > , } , } + # [codec (index = 0)] # [doc = "Submit a solution for the unsigned phase."] # [doc = ""] # [doc = "The dispatch origin fo this call must be __none__."] # [doc = ""] # [doc = "This submission is checked on the fly. Moreover, this unsigned solution is only"] # [doc = "validated when submitted to the pool from the **local** node. Effectively, this means"] # [doc = "that only active validators can submit this transaction when authoring a block (similar"] # [doc = "to an inherent)."] # [doc = ""] # [doc = "To prevent any incorrect solution (and thus wasted time/weight), this transaction will"] # [doc = "panic if the solution submitted by the validator is invalid in any way, effectively"] # [doc = "putting their authoring reward at risk."] # [doc = ""] # [doc = "No deposit or reward is associated with this submission."] submit_unsigned { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: da_runtime :: constants :: staking :: NposSolution16 > > , witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } , # [codec (index = 1)] # [doc = "Set a new value for `MinimumUntrustedScore`."] # [doc = ""] # [doc = "Dispatch origin must be aligned with `T::ForceOrigin`."] # [doc = ""] # [doc = "This check can be turned off by setting the value to `None`."] set_minimum_untrusted_score { maybe_next_score : :: core :: option :: Option < runtime_types :: sp_npos_elections :: ElectionScore > , } , # [codec (index = 2)] # [doc = "Set a solution in the queue, to be handed out to the client of this pallet in the next"] # [doc = "call to `ElectionProvider::elect`."] # [doc = ""] # [doc = "This can only be set by `T::ForceOrigin`, and only when the phase is `Emergency`."] # [doc = ""] # [doc = "The solution is not checked for any feasibility and is assumed to be trustworthy, as any"] # [doc = "feasibility check itself can in principle cause the election process to fail (due to"] # [doc = "memory/weight constrains)."] set_emergency_election_result { supports : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: utils :: AccountId32 > ,) > , } , # [codec (index = 3)] # [doc = "Submit a solution for the signed phase."] # [doc = ""] # [doc = "The dispatch origin fo this call must be __signed__."] # [doc = ""] # [doc = "The solution is potentially queued, based on the claimed score and processed at the end"] # [doc = "of the signed phase."] # [doc = ""] # [doc = "A deposit is reserved and recorded for the solution. Based on the outcome, the solution"] # [doc = "might be rewarded, slashed, or get all or a part of the deposit back."] submit { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: da_runtime :: constants :: staking :: NposSolution16 > > , } , # [codec (index = 4)] # [doc = "Trigger the governance fallback."] # [doc = ""] # [doc = "This can only be called when [`Phase::Emergency`] is enabled, as an alternative to"] # [doc = "calling [`Call::set_emergency_election_result`]."] governance_fallback { maybe_max_voters : :: core :: option :: Option < :: core :: primitive :: u32 > , maybe_max_targets : :: core :: option :: Option < :: core :: primitive :: u32 > , } , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -26101,7 +26748,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A solution was stored with the given compute."] @@ -26257,7 +26904,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReadySolution { - pub supports: runtime_types::bounded_collections::bounded_vec::BoundedVec<( + pub supports: runtime_types::sp_core::bounded::bounded_vec::BoundedVec<( ::subxt::utils::AccountId32, runtime_types::sp_npos_elections::Support<::subxt::utils::AccountId32>, )>, @@ -26277,9 +26924,15 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RoundSnapshot<_0, _1> { - pub voters: ::std::vec::Vec<_1>, - pub targets: ::std::vec::Vec<_0>, + pub struct RoundSnapshot { + pub voters: ::std::vec::Vec<( + ::subxt::utils::AccountId32, + ::core::primitive::u64, + runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + ::subxt::utils::AccountId32, + >, + )>, + pub targets: ::std::vec::Vec<::subxt::utils::AccountId32>, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -26318,31 +26971,105 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::vote`]."] + #[doc = "Vote for a set of candidates for the upcoming round of election. This can be called to"] + #[doc = "set the initial votes, or update already existing votes."] + #[doc = ""] + #[doc = "Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is"] + #[doc = "reserved. The deposit is based on the number of votes and can be updated over time."] + #[doc = ""] + #[doc = "The `votes` should:"] + #[doc = " - not be empty."] + #[doc = " - be less than the number of possible candidates. Note that all current members and"] + #[doc = " runners-up are also automatically candidates for the next round."] + #[doc = ""] + #[doc = "If `value` is more than `who`'s free balance, then the maximum of the two is used."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed."] + #[doc = ""] + #[doc = "### Warning"] + #[doc = ""] + #[doc = "It is the responsibility of the caller to **NOT** place all of their balance into the"] + #[doc = "lock and keep some for further operations."] + #[doc = ""] + #[doc = "# "] + #[doc = "We assume the maximum weight among all 3 cases: vote_equal, vote_more and vote_less."] + #[doc = "# "] vote { votes: ::std::vec::Vec<::subxt::utils::AccountId32>, #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 1)] - #[doc = "See [`Pallet::remove_voter`]."] + #[doc = "Remove `origin` as a voter."] + #[doc = ""] + #[doc = "This removes the lock and returns the deposit."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed and be a voter."] remove_voter, #[codec(index = 2)] - #[doc = "See [`Pallet::submit_candidacy`]."] + #[doc = "Submit oneself for candidacy. A fixed amount of deposit is recorded."] + #[doc = ""] + #[doc = "All candidates are wiped at the end of the term. They either become a member/runner-up,"] + #[doc = "or leave the system while their deposit is slashed."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed."] + #[doc = ""] + #[doc = "### Warning"] + #[doc = ""] + #[doc = "Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]"] + #[doc = "to get their deposit back. Losing the spot in an election will always lead to a slash."] + #[doc = ""] + #[doc = "# "] + #[doc = "The number of current candidates must be provided as witness data."] + #[doc = "# "] submit_candidacy { #[codec(compact)] candidate_count: ::core::primitive::u32, }, #[codec(index = 3)] - #[doc = "See [`Pallet::renounce_candidacy`]."] + #[doc = "Renounce one's intention to be a candidate for the next election round. 3 potential"] + #[doc = "outcomes exist:"] + #[doc = ""] + #[doc = "- `origin` is a candidate and not elected in any set. In this case, the deposit is"] + #[doc = " unreserved, returned and origin is removed as a candidate."] + #[doc = "- `origin` is a current runner-up. In this case, the deposit is unreserved, returned and"] + #[doc = " origin is removed as a runner-up."] + #[doc = "- `origin` is a current member. In this case, the deposit is unreserved and origin is"] + #[doc = " removed as a member, consequently not being a candidate for the next round anymore."] + #[doc = " Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they"] + #[doc = " are immediately used. If the prime is renouncing, then no prime will exist until the"] + #[doc = " next round."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed, and have one of the above roles."] + #[doc = ""] + #[doc = "# "] + #[doc = "The type of renouncing must be provided as witness data."] + #[doc = "# "] renounce_candidacy { renouncing: runtime_types::pallet_elections_phragmen::Renouncing, }, #[codec(index = 4)] - #[doc = "See [`Pallet::remove_member`]."] + #[doc = "Remove a particular member from the set. This is effective immediately and the bond of"] + #[doc = "the outgoing member is slashed."] + #[doc = ""] + #[doc = "If a runner-up is available, then the best runner-up will be removed and replaces the"] + #[doc = "outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is"] + #[doc = "started, else, nothing happens."] + #[doc = ""] + #[doc = "If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,"] + #[doc = "it is returned."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be root."] + #[doc = ""] + #[doc = "Note that this does not affect the designated block number of the next election."] + #[doc = ""] + #[doc = "# "] + #[doc = "If we have a replacement, we use a small weight. Else, since this is a root call and"] + #[doc = "will go into phragmen, we assume full block for now."] + #[doc = "# "] remove_member { who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -26352,7 +27079,16 @@ pub mod api { rerun_election: ::core::primitive::bool, }, #[codec(index = 5)] - #[doc = "See [`Pallet::clean_defunct_voters`]."] + #[doc = "Clean all voters who are defunct (i.e. they do not serve any purpose at all). The"] + #[doc = "deposit of the removed voters are returned."] + #[doc = ""] + #[doc = "This is an root function to be used only for cleaning the state."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be root."] + #[doc = ""] + #[doc = "# "] + #[doc = "The total number of voters and those that are defunct must be provided as witness data."] + #[doc = "# "] clean_defunct_voters { num_voters: ::core::primitive::u32, num_defunct: ::core::primitive::u32, @@ -26371,7 +27107,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Cannot vote when no candidates or members exist."] @@ -26438,7 +27174,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A new term with new_members. This indicates that enough candidates existed to run"] @@ -26558,13 +27294,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::report_equivocation`]."] + #[doc = "Report voter equivocation/misbehavior. This method will verify the"] + #[doc = "equivocation proof and validate the given key ownership proof"] + #[doc = "against the extracted offender. If both are valid, the offence"] + #[doc = "will be reported."] report_equivocation { equivocation_proof: ::std::boxed::Box< - runtime_types::sp_consensus_grandpa::EquivocationProof< + runtime_types::sp_finality_grandpa::EquivocationProof< ::subxt::utils::H256, ::core::primitive::u32, >, @@ -26572,10 +27311,18 @@ pub mod api { key_owner_proof: runtime_types::sp_session::MembershipProof, }, #[codec(index = 1)] - #[doc = "See [`Pallet::report_equivocation_unsigned`]."] + #[doc = "Report voter equivocation/misbehavior. This method will verify the"] + #[doc = "equivocation proof and validate the given key ownership proof"] + #[doc = "against the extracted offender. If both are valid, the offence"] + #[doc = "will be reported."] + #[doc = ""] + #[doc = "This extrinsic must be called unsigned and it is expected that only"] + #[doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] + #[doc = "if the block author is defined it will be defined as the equivocation"] + #[doc = "reporter."] report_equivocation_unsigned { equivocation_proof: ::std::boxed::Box< - runtime_types::sp_consensus_grandpa::EquivocationProof< + runtime_types::sp_finality_grandpa::EquivocationProof< ::subxt::utils::H256, ::core::primitive::u32, >, @@ -26583,7 +27330,18 @@ pub mod api { key_owner_proof: runtime_types::sp_session::MembershipProof, }, #[codec(index = 2)] - #[doc = "See [`Pallet::note_stalled`]."] + #[doc = "Note that the current authority set of the GRANDPA finality gadget has stalled."] + #[doc = ""] + #[doc = "This will trigger a forced authority set change at the beginning of the next session, to"] + #[doc = "be enacted `delay` blocks after that. The `delay` should be high enough to safely assume"] + #[doc = "that the block signalling the forced change will not be re-orged e.g. 1000 blocks."] + #[doc = "The block production rate (which may be slowed down because of finality lagging) should"] + #[doc = "be taken into account when choosing the `delay`. The GRANDPA voters based on the new"] + #[doc = "authority will start voting on top of `best_finalized_block_number` for new finalized"] + #[doc = "blocks. `best_finalized_block_number` should be the highest of the latest finalized"] + #[doc = "block of all validators of the new authority set."] + #[doc = ""] + #[doc = "Only callable by root."] note_stalled { delay: ::core::primitive::u32, best_finalized_block_number: ::core::primitive::u32, @@ -26602,7 +27360,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Attempt to signal GRANDPA pause when the authority set isn't live"] @@ -26641,13 +27399,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "New authority set has been applied."] NewAuthorities { authority_set: ::std::vec::Vec<( - runtime_types::sp_consensus_grandpa::app::Public, + runtime_types::sp_finality_grandpa::app::Public, ::core::primitive::u64, )>, }, @@ -26676,8 +27434,8 @@ pub mod api { pub scheduled_at: _0, pub delay: _0, pub next_authorities: - runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec<( - runtime_types::sp_consensus_grandpa::app::Public, + runtime_types::sp_core::bounded::weak_bounded_vec::WeakBoundedVec<( + runtime_types::sp_finality_grandpa::app::Public, ::core::primitive::u64, )>, pub forced: ::core::option::Option<_0>, @@ -26723,10 +27481,18 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::heartbeat`]."] + #[doc = "# "] + #[doc = "- Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is"] + #[doc = " length of `heartbeat.network_state.external_address`"] + #[doc = " - `O(K)`: decoding of length `K`"] + #[doc = " - `O(E)`: decoding/encoding of length `E`"] + #[doc = "- DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,"] + #[doc = " `ReceivedHeartbeats`"] + #[doc = "- DbWrites: `ReceivedHeartbeats`"] + #[doc = "# "] heartbeat { heartbeat: runtime_types::pallet_im_online::Heartbeat<::core::primitive::u32>, @@ -26746,7 +27512,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Non existent public key."] @@ -26768,7 +27534,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A new heartbeat was received from `AuthorityId`."] @@ -26838,8 +27604,33 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BoundedOpaqueNetworkState { + pub peer_id: runtime_types::sp_core::bounded::weak_bounded_vec::WeakBoundedVec< + ::core::primitive::u8, + >, + pub external_addresses: + runtime_types::sp_core::bounded::weak_bounded_vec::WeakBoundedVec< + runtime_types::sp_core::bounded::weak_bounded_vec::WeakBoundedVec< + ::core::primitive::u8, + >, + >, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Heartbeat<_0> { pub block_number: _0, + pub network_state: runtime_types::sp_core::offchain::OpaqueNetworkState, pub session_index: _0, pub authority_index: _0, pub validators_len: _0, @@ -26862,13 +27653,49 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::claim`]."] + #[doc = "Assign an previously unassigned index."] + #[doc = ""] + #[doc = "Payment: `Deposit` is reserved from the sender account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `index`: the index to be claimed. This must not be in use."] + #[doc = ""] + #[doc = "Emits `IndexAssigned` if successful."] + #[doc = ""] + #[doc = "# "] + #[doc = "- `O(1)`."] + #[doc = "- One storage mutation (codec `O(1)`)."] + #[doc = "- One reserve operation."] + #[doc = "- One event."] + #[doc = "-------------------"] + #[doc = "- DB Weight: 1 Read/Write (Accounts)"] + #[doc = "# "] claim { index: ::core::primitive::u32 }, #[codec(index = 1)] - #[doc = "See [`Pallet::transfer`]."] + #[doc = "Assign an index already owned by the sender to another account. The balance reservation"] + #[doc = "is effectively transferred to the new account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `index`: the index to be re-assigned. This must be owned by the sender."] + #[doc = "- `new`: the new owner of the index. This function is a no-op if it is equal to sender."] + #[doc = ""] + #[doc = "Emits `IndexAssigned` if successful."] + #[doc = ""] + #[doc = "# "] + #[doc = "- `O(1)`."] + #[doc = "- One storage mutation (codec `O(1)`)."] + #[doc = "- One transfer operation."] + #[doc = "- One event."] + #[doc = "-------------------"] + #[doc = "- DB Weight:"] + #[doc = " - Reads: Indices Accounts, System Account (recipient)"] + #[doc = " - Writes: Indices Accounts, System Account (recipient)"] + #[doc = "# "] transfer { new: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -26877,10 +27704,47 @@ pub mod api { index: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "See [`Pallet::free`]."] + #[doc = "Free up an index owned by the sender."] + #[doc = ""] + #[doc = "Payment: Any previous deposit placed for the index is unreserved in the sender account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the sender must own the index."] + #[doc = ""] + #[doc = "- `index`: the index to be freed. This must be owned by the sender."] + #[doc = ""] + #[doc = "Emits `IndexFreed` if successful."] + #[doc = ""] + #[doc = "# "] + #[doc = "- `O(1)`."] + #[doc = "- One storage mutation (codec `O(1)`)."] + #[doc = "- One reserve operation."] + #[doc = "- One event."] + #[doc = "-------------------"] + #[doc = "- DB Weight: 1 Read/Write (Accounts)"] + #[doc = "# "] free { index: ::core::primitive::u32 }, #[codec(index = 3)] - #[doc = "See [`Pallet::force_transfer`]."] + #[doc = "Force an index to an account. This doesn't require a deposit. If the index is already"] + #[doc = "held, then any deposit is reimbursed to its current owner."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Root_."] + #[doc = ""] + #[doc = "- `index`: the index to be (re-)assigned."] + #[doc = "- `new`: the new owner of the index. This function is a no-op if it is equal to sender."] + #[doc = "- `freeze`: if set to `true`, will freeze the index so it cannot be transferred."] + #[doc = ""] + #[doc = "Emits `IndexAssigned` if successful."] + #[doc = ""] + #[doc = "# "] + #[doc = "- `O(1)`."] + #[doc = "- One storage mutation (codec `O(1)`)."] + #[doc = "- Up to one reserve operation."] + #[doc = "- One event."] + #[doc = "-------------------"] + #[doc = "- DB Weight:"] + #[doc = " - Reads: Indices Accounts, System Account (original owner)"] + #[doc = " - Writes: Indices Accounts, System Account (original owner)"] + #[doc = "# "] force_transfer { new: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -26890,7 +27754,24 @@ pub mod api { freeze: ::core::primitive::bool, }, #[codec(index = 4)] - #[doc = "See [`Pallet::freeze`]."] + #[doc = "Freeze an index so it will always point to the sender account. This consumes the"] + #[doc = "deposit."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the signing account must have a"] + #[doc = "non-frozen account `index`."] + #[doc = ""] + #[doc = "- `index`: the index to be frozen in place."] + #[doc = ""] + #[doc = "Emits `IndexFrozen` if successful."] + #[doc = ""] + #[doc = "# "] + #[doc = "- `O(1)`."] + #[doc = "- One storage mutation (codec `O(1)`)."] + #[doc = "- Up to one slash operation."] + #[doc = "- One event."] + #[doc = "-------------------"] + #[doc = "- DB Weight: 1 Read/Write (Accounts)"] + #[doc = "# "] freeze { index: ::core::primitive::u32 }, } #[derive( @@ -26906,7 +27787,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "The index was not already assigned."] @@ -26937,7 +27818,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A account index was assigned."] @@ -26974,10 +27855,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::add_member`]."] + #[doc = "Add a member `who` to the set."] + #[doc = ""] + #[doc = "May only be called from `T::AddOrigin`."] add_member { who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -26985,7 +27868,9 @@ pub mod api { >, }, #[codec(index = 1)] - #[doc = "See [`Pallet::remove_member`]."] + #[doc = "Remove a member `who` from the set."] + #[doc = ""] + #[doc = "May only be called from `T::RemoveOrigin`."] remove_member { who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -26993,7 +27878,11 @@ pub mod api { >, }, #[codec(index = 2)] - #[doc = "See [`Pallet::swap_member`]."] + #[doc = "Swap out one member `remove` for another `add`."] + #[doc = ""] + #[doc = "May only be called from `T::SwapOrigin`."] + #[doc = ""] + #[doc = "Prime membership is *not* passed from `remove` to `add`, if extant."] swap_member { remove: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -27005,12 +27894,19 @@ pub mod api { >, }, #[codec(index = 3)] - #[doc = "See [`Pallet::reset_members`]."] + #[doc = "Change the membership to a new set, disregarding the existing membership. Be nice and"] + #[doc = "pass `members` pre-sorted."] + #[doc = ""] + #[doc = "May only be called from `T::ResetOrigin`."] reset_members { members: ::std::vec::Vec<::subxt::utils::AccountId32>, }, #[codec(index = 4)] - #[doc = "See [`Pallet::change_key`]."] + #[doc = "Swap out the sending member for some other key `new`."] + #[doc = ""] + #[doc = "May only be called from `Signed` origin of a current member."] + #[doc = ""] + #[doc = "Prime membership is passed from the origin account to `new`, if extant."] change_key { new: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -27018,7 +27914,9 @@ pub mod api { >, }, #[codec(index = 5)] - #[doc = "See [`Pallet::set_prime`]."] + #[doc = "Set the prime member. Must be a current member."] + #[doc = ""] + #[doc = "May only be called from `T::PrimeOrigin`."] set_prime { who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -27026,7 +27924,9 @@ pub mod api { >, }, #[codec(index = 6)] - #[doc = "See [`Pallet::clear_prime`]."] + #[doc = "Remove the prime member if it exists."] + #[doc = ""] + #[doc = "May only be called from `T::PrimeOrigin`."] clear_prime, } #[derive( @@ -27042,7 +27942,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Already a member."] @@ -27067,7 +27967,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "The given member was added; see the transaction for who."] @@ -27107,16 +28007,75 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::as_multi_threshold_1`]."] + #[doc = "Immediately dispatch a multi-signature call using a single approval from the caller."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `other_signatories`: The accounts (other than the sender) who are part of the"] + #[doc = "multi-signature, but do not participate in the approval process."] + #[doc = "- `call`: The call to be executed."] + #[doc = ""] + #[doc = "Result is equivalent to the dispatched result."] + #[doc = ""] + #[doc = "# "] + #[doc = "O(Z + C) where Z is the length of the call and C its execution weight."] + #[doc = "-------------------------------"] + #[doc = "- DB Weight: None"] + #[doc = "- Plus Call Weight"] + #[doc = "# "] as_multi_threshold_1 { other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, call: ::std::boxed::Box, }, #[codec(index = 1)] - #[doc = "See [`Pallet::as_multi`]."] + #[doc = "Register approval for a dispatch to be made from a deterministic composite account if"] + #[doc = "approved by a total of `threshold - 1` of `other_signatories`."] + #[doc = ""] + #[doc = "If there are enough, then dispatch the call."] + #[doc = ""] + #[doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] + #[doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] + #[doc = "is cancelled."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] + #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] + #[doc = "dispatch. May not be empty."] + #[doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] + #[doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] + #[doc = "transaction index) of the first approval transaction."] + #[doc = "- `call`: The call to be executed."] + #[doc = ""] + #[doc = "NOTE: Unless this is the final approval, you will generally want to use"] + #[doc = "`approve_as_multi` instead, since it only requires a hash of the call."] + #[doc = ""] + #[doc = "Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise"] + #[doc = "on success, result is `Ok` and the result from the interior call, if it was executed,"] + #[doc = "may be found in the deposited `MultisigExecuted` event."] + #[doc = ""] + #[doc = "# "] + #[doc = "- `O(S + Z + Call)`."] + #[doc = "- Up to one balance-reserve or unreserve operation."] + #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] + #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] + #[doc = "- One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len."] + #[doc = "- One encode & hash, both of complexity `O(S)`."] + #[doc = "- Up to one binary search and insert (`O(logS + S)`)."] + #[doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] + #[doc = "- One event."] + #[doc = "- The weight of the `call`."] + #[doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] + #[doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] + #[doc = "-------------------------------"] + #[doc = "- DB Weight:"] + #[doc = " - Reads: Multisig Storage, [Caller Account]"] + #[doc = " - Writes: Multisig Storage, [Caller Account]"] + #[doc = "- Plus Call Weight"] + #[doc = "# "] as_multi { threshold: ::core::primitive::u16, other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -27127,7 +28086,41 @@ pub mod api { max_weight: runtime_types::sp_weights::weight_v2::Weight, }, #[codec(index = 2)] - #[doc = "See [`Pallet::approve_as_multi`]."] + #[doc = "Register approval for a dispatch to be made from a deterministic composite account if"] + #[doc = "approved by a total of `threshold - 1` of `other_signatories`."] + #[doc = ""] + #[doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] + #[doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] + #[doc = "is cancelled."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] + #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] + #[doc = "dispatch. May not be empty."] + #[doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] + #[doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] + #[doc = "transaction index) of the first approval transaction."] + #[doc = "- `call_hash`: The hash of the call to be executed."] + #[doc = ""] + #[doc = "NOTE: If this is the final approval, you will want to use `as_multi` instead."] + #[doc = ""] + #[doc = "# "] + #[doc = "- `O(S)`."] + #[doc = "- Up to one balance-reserve or unreserve operation."] + #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] + #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] + #[doc = "- One encode & hash, both of complexity `O(S)`."] + #[doc = "- Up to one binary search and insert (`O(logS + S)`)."] + #[doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] + #[doc = "- One event."] + #[doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] + #[doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] + #[doc = "----------------------------------"] + #[doc = "- DB Weight:"] + #[doc = " - Read: Multisig Storage, [Caller Account]"] + #[doc = " - Write: Multisig Storage, [Caller Account]"] + #[doc = "# "] approve_as_multi { threshold: ::core::primitive::u16, other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -27138,7 +28131,32 @@ pub mod api { max_weight: runtime_types::sp_weights::weight_v2::Weight, }, #[codec(index = 3)] - #[doc = "See [`Pallet::cancel_as_multi`]."] + #[doc = "Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously"] + #[doc = "for this operation will be unreserved on success."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] + #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] + #[doc = "dispatch. May not be empty."] + #[doc = "- `timepoint`: The timepoint (block number and transaction index) of the first approval"] + #[doc = "transaction for this dispatch."] + #[doc = "- `call_hash`: The hash of the call to be executed."] + #[doc = ""] + #[doc = "# "] + #[doc = "- `O(S)`."] + #[doc = "- Up to one balance-reserve or unreserve operation."] + #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] + #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] + #[doc = "- One encode & hash, both of complexity `O(S)`."] + #[doc = "- One event."] + #[doc = "- I/O: 1 read `O(S)`, one remove."] + #[doc = "- Storage: removes one item."] + #[doc = "----------------------------------"] + #[doc = "- DB Weight:"] + #[doc = " - Read: Multisig Storage, [Caller Account], Refund Account"] + #[doc = " - Write: Multisig Storage, [Caller Account], Refund Account"] + #[doc = "# "] cancel_as_multi { threshold: ::core::primitive::u16, other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -27160,7 +28178,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Threshold must be 2 or greater."] @@ -27218,7 +28236,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A new multisig operation has begun."] @@ -27275,7 +28293,7 @@ pub mod api { pub when: runtime_types::pallet_multisig::Timepoint<_0>, pub deposit: _1, pub depositor: _2, - pub approvals: runtime_types::bounded_collections::bounded_vec::BoundedVec<_2>, + pub approvals: runtime_types::sp_core::bounded::bounded_vec::BoundedVec<_2>, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -27312,27 +28330,76 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::join`]."] + #[doc = "Stake funds with a pool. The amount to bond is transferred from the member to the"] + #[doc = "pools account and immediately increases the pools bond."] + #[doc = ""] + #[doc = "# Note"] + #[doc = ""] + #[doc = "* An account can only be a member of a single pool."] + #[doc = "* An account cannot join the same pool multiple times."] + #[doc = "* This call will *not* dust the member account, so the member must have at least"] + #[doc = " `existential deposit + amount` in their account."] + #[doc = "* Only a pool with [`PoolState::Open`] can be joined"] join { #[codec(compact)] amount: ::core::primitive::u128, pool_id: ::core::primitive::u32, }, #[codec(index = 1)] - #[doc = "See [`Pallet::bond_extra`]."] + #[doc = "Bond `extra` more funds from `origin` into the pool to which they already belong."] + #[doc = ""] + #[doc = "Additional funds can come from either the free balance of the account, of from the"] + #[doc = "accumulated rewards, see [`BondExtra`]."] + #[doc = ""] + #[doc = "Bonding extra funds implies an automatic payout of all pending rewards as well."] bond_extra { extra: runtime_types::pallet_nomination_pools::BondExtra< ::core::primitive::u128, >, }, #[codec(index = 2)] - #[doc = "See [`Pallet::claim_payout`]."] + #[doc = "A bonded member can use this to claim their payout based on the rewards that the pool"] + #[doc = "has accumulated since their last claimed payout (OR since joining if this is there first"] + #[doc = "time claiming rewards). The payout will be transferred to the member's account."] + #[doc = ""] + #[doc = "The member will earn rewards pro rata based on the members stake vs the sum of the"] + #[doc = "members in the pools stake. Rewards do not \"expire\"."] claim_payout, #[codec(index = 3)] - #[doc = "See [`Pallet::unbond`]."] + #[doc = "Unbond up to `unbonding_points` of the `member_account`'s funds from the pool. It"] + #[doc = "implicitly collects the rewards one last time, since not doing so would mean some"] + #[doc = "rewards would be forfeited."] + #[doc = ""] + #[doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] + #[doc = "account)."] + #[doc = ""] + #[doc = "# Conditions for a permissionless dispatch."] + #[doc = ""] + #[doc = "* The pool is blocked and the caller is either the root or state-toggler. This is"] + #[doc = " refereed to as a kick."] + #[doc = "* The pool is destroying and the member is not the depositor."] + #[doc = "* The pool is destroying, the member is the depositor and no other members are in the"] + #[doc = " pool."] + #[doc = ""] + #[doc = "## Conditions for permissioned dispatch (i.e. the caller is also the"] + #[doc = "`member_account`):"] + #[doc = ""] + #[doc = "* The caller is not the depositor."] + #[doc = "* The caller is the depositor, the pool is destroying and no other members are in the"] + #[doc = " pool."] + #[doc = ""] + #[doc = "# Note"] + #[doc = ""] + #[doc = "If there are too many unlocking chunks to unbond with the pool account,"] + #[doc = "[`Call::pool_withdraw_unbonded`] can be called to try and minimize unlocking chunks."] + #[doc = "The [`StakingInterface::unbond`] will implicitly call [`Call::pool_withdraw_unbonded`]"] + #[doc = "to try to free chunks if necessary (ie. if unbound was called and no unlocking chunks"] + #[doc = "are available). However, it may not be possible to release the current unlocking chunks,"] + #[doc = "in which case, the result of this call will likely be the `NoMoreChunks` error from the"] + #[doc = "staking system."] unbond { member_account: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -27342,13 +28409,36 @@ pub mod api { unbonding_points: ::core::primitive::u128, }, #[codec(index = 4)] - #[doc = "See [`Pallet::pool_withdraw_unbonded`]."] + #[doc = "Call `withdraw_unbonded` for the pools account. This call can be made by any account."] + #[doc = ""] + #[doc = "This is useful if their are too many unlocking chunks to call `unbond`, and some"] + #[doc = "can be cleared by withdrawing. In the case there are too many unlocking chunks, the user"] + #[doc = "would probably see an error like `NoMoreChunks` emitted from the staking system when"] + #[doc = "they attempt to unbond."] pool_withdraw_unbonded { pool_id: ::core::primitive::u32, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 5)] - #[doc = "See [`Pallet::withdraw_unbonded`]."] + #[doc = "Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an"] + #[doc = "error is returned."] + #[doc = ""] + #[doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] + #[doc = "account)."] + #[doc = ""] + #[doc = "# Conditions for a permissionless dispatch"] + #[doc = ""] + #[doc = "* The pool is in destroy mode and the target is not the depositor."] + #[doc = "* The target is the depositor and they are the only member in the sub pools."] + #[doc = "* The pool is blocked and the caller is either the root or state-toggler."] + #[doc = ""] + #[doc = "# Conditions for permissioned dispatch"] + #[doc = ""] + #[doc = "* The caller is the target and they are not the depositor."] + #[doc = ""] + #[doc = "# Note"] + #[doc = ""] + #[doc = "If the target is the depositor, the pool will be destroyed."] withdraw_unbonded { member_account: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -27357,7 +28447,23 @@ pub mod api { num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 6)] - #[doc = "See [`Pallet::create`]."] + #[doc = "Create a new delegation pool."] + #[doc = ""] + #[doc = "# Arguments"] + #[doc = ""] + #[doc = "* `amount` - The amount of funds to delegate to the pool. This also acts of a sort of"] + #[doc = " deposit since the pools creator cannot fully unbond funds until the pool is being"] + #[doc = " destroyed."] + #[doc = "* `index` - A disambiguation index for creating the account. Likely only useful when"] + #[doc = " creating multiple pools in the same extrinsic."] + #[doc = "* `root` - The account to set as [`PoolRoles::root`]."] + #[doc = "* `nominator` - The account to set as the [`PoolRoles::nominator`]."] + #[doc = "* `state_toggler` - The account to set as the [`PoolRoles::state_toggler`]."] + #[doc = ""] + #[doc = "# Note"] + #[doc = ""] + #[doc = "In addition to `amount`, the caller will transfer the existential deposit; so the caller"] + #[doc = "needs at have at least `amount + existential_deposit` transferrable."] create { #[codec(compact)] amount: ::core::primitive::u128, @@ -27369,13 +28475,18 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u32, >, - bouncer: ::subxt::utils::MultiAddress< + state_toggler: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, >, }, #[codec(index = 7)] - #[doc = "See [`Pallet::create_with_pool_id`]."] + #[doc = "Create a new delegation pool with a previously used pool id"] + #[doc = ""] + #[doc = "# Arguments"] + #[doc = ""] + #[doc = "same as `create` with the inclusion of"] + #[doc = "* `pool_id` - `A valid PoolId."] create_with_pool_id { #[codec(compact)] amount: ::core::primitive::u128, @@ -27387,32 +28498,59 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u32, >, - bouncer: ::subxt::utils::MultiAddress< + state_toggler: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, >, pool_id: ::core::primitive::u32, }, #[codec(index = 8)] - #[doc = "See [`Pallet::nominate`]."] + #[doc = "Nominate on behalf of the pool."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed by the pool nominator or the pool"] + #[doc = "root role."] + #[doc = ""] + #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] + #[doc = "account."] nominate { pool_id: ::core::primitive::u32, validators: ::std::vec::Vec<::subxt::utils::AccountId32>, }, #[codec(index = 9)] - #[doc = "See [`Pallet::set_state`]."] + #[doc = "Set a new state for the pool."] + #[doc = ""] + #[doc = "If a pool is already in the `Destroying` state, then under no condition can its state"] + #[doc = "change again."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be either:"] + #[doc = ""] + #[doc = "1. signed by the state toggler, or the root role of the pool,"] + #[doc = "2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and"] + #[doc = " then the state of the pool can be permissionlessly changed to `Destroying`."] set_state { pool_id: ::core::primitive::u32, state: runtime_types::pallet_nomination_pools::PoolState, }, #[codec(index = 10)] - #[doc = "See [`Pallet::set_metadata`]."] + #[doc = "Set a new metadata for the pool."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed by the state toggler, or the root role"] + #[doc = "of the pool."] set_metadata { pool_id: ::core::primitive::u32, metadata: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 11)] - #[doc = "See [`Pallet::set_configs`]."] + #[doc = "Update configurations for the nomination pools. The origin for this call must be"] + #[doc = "Root."] + #[doc = ""] + #[doc = "# Arguments"] + #[doc = ""] + #[doc = "* `min_join_bond` - Set [`MinJoinBond`]."] + #[doc = "* `min_create_bond` - Set [`MinCreateBond`]."] + #[doc = "* `max_pools` - Set [`MaxPools`]."] + #[doc = "* `max_members` - Set [`MaxPoolMembers`]."] + #[doc = "* `max_members_per_pool` - Set [`MaxPoolMembersPerPool`]."] set_configs { min_join_bond: runtime_types::pallet_nomination_pools::ConfigOp< ::core::primitive::u128, @@ -27429,12 +28567,15 @@ pub mod api { max_members_per_pool: runtime_types::pallet_nomination_pools::ConfigOp< ::core::primitive::u32, >, - global_max_commission: runtime_types::pallet_nomination_pools::ConfigOp< - runtime_types::sp_arithmetic::per_things::Perbill, - >, }, #[codec(index = 12)] - #[doc = "See [`Pallet::update_roles`]."] + #[doc = "Update the roles of the pool."] + #[doc = ""] + #[doc = "The root is the only entity that can change any of the roles, including itself,"] + #[doc = "excluding the depositor, who can never change."] + #[doc = ""] + #[doc = "It emits an event, notifying UIs of the role change. This event is quite relevant to"] + #[doc = "most pool members and they should be informed of changes to pool roles."] update_roles { pool_id: ::core::primitive::u32, new_root: runtime_types::pallet_nomination_pools::ConfigOp< @@ -27443,58 +28584,19 @@ pub mod api { new_nominator: runtime_types::pallet_nomination_pools::ConfigOp< ::subxt::utils::AccountId32, >, - new_bouncer: runtime_types::pallet_nomination_pools::ConfigOp< + new_state_toggler: runtime_types::pallet_nomination_pools::ConfigOp< ::subxt::utils::AccountId32, >, }, #[codec(index = 13)] - #[doc = "See [`Pallet::chill`]."] + #[doc = "Chill on behalf of the pool."] + #[doc = ""] + #[doc = "The dispatch origin of this call must be signed by the pool nominator or the pool"] + #[doc = "root role, same as [`Pallet::nominate`]."] + #[doc = ""] + #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] + #[doc = "account."] chill { pool_id: ::core::primitive::u32 }, - #[codec(index = 14)] - #[doc = "See [`Pallet::bond_extra_other`]."] - bond_extra_other { - member: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - extra: runtime_types::pallet_nomination_pools::BondExtra< - ::core::primitive::u128, - >, - }, - #[codec(index = 15)] - #[doc = "See [`Pallet::set_claim_permission`]."] - set_claim_permission { - permission: runtime_types::pallet_nomination_pools::ClaimPermission, - }, - #[codec(index = 16)] - #[doc = "See [`Pallet::claim_payout_other`]."] - claim_payout_other { other: ::subxt::utils::AccountId32 }, - #[codec(index = 17)] - #[doc = "See [`Pallet::set_commission`]."] - set_commission { - pool_id: ::core::primitive::u32, - new_commission: ::core::option::Option<( - runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::utils::AccountId32, - )>, - }, - #[codec(index = 18)] - #[doc = "See [`Pallet::set_commission_max`]."] - set_commission_max { - pool_id: ::core::primitive::u32, - max_commission: runtime_types::sp_arithmetic::per_things::Perbill, - }, - #[codec(index = 19)] - #[doc = "See [`Pallet::set_commission_change_rate`]."] - set_commission_change_rate { - pool_id: ::core::primitive::u32, - change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< - ::core::primitive::u32, - >, - }, - #[codec(index = 20)] - #[doc = "See [`Pallet::claim_commission`]."] - claim_commission { pool_id: ::core::primitive::u32 }, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -27534,7 +28636,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "A (bonded) pool id does not exist."] @@ -27608,35 +28710,11 @@ pub mod api { #[doc = "Partial unbonding now allowed permissionlessly."] PartialUnbondNotAllowedPermissionlessly, #[codec(index = 21)] - #[doc = "The pool's max commission cannot be set higher than the existing value."] - MaxCommissionRestricted, - #[codec(index = 22)] - #[doc = "The supplied commission exceeds the max allowed commission."] - CommissionExceedsMaximum, - #[codec(index = 23)] - #[doc = "The supplied commission exceeds global maximum commission."] - CommissionExceedsGlobalMaximum, - #[codec(index = 24)] - #[doc = "Not enough blocks have surpassed since the last commission update."] - CommissionChangeThrottled, - #[codec(index = 25)] - #[doc = "The submitted changes to commission change rate are not allowed."] - CommissionChangeRateNotAllowed, - #[codec(index = 26)] - #[doc = "There is no pending commission to claim."] - NoPendingCommission, - #[codec(index = 27)] - #[doc = "No commission current has been set."] - NoCommissionCurrentSet, - #[codec(index = 28)] #[doc = "Pool id currently in use."] PoolIdInUse, - #[codec(index = 29)] + #[codec(index = 22)] #[doc = "Pool id provided is not correct/usable."] InvalidPoolId, - #[codec(index = 30)] - #[doc = "Bonding extra is restricted to the exact pending reward amount."] - BondExtraRestricted, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -27728,7 +28806,7 @@ pub mod api { #[doc = "can never change."] RolesUpdated { root: ::core::option::Option<::subxt::utils::AccountId32>, - bouncer: ::core::option::Option<::subxt::utils::AccountId32>, + state_toggler: ::core::option::Option<::subxt::utils::AccountId32>, nominator: ::core::option::Option<::subxt::utils::AccountId32>, }, #[codec(index = 9)] @@ -27744,35 +28822,6 @@ pub mod api { era: ::core::primitive::u32, balance: ::core::primitive::u128, }, - #[codec(index = 11)] - #[doc = "A pool's commission setting has been changed."] - PoolCommissionUpdated { - pool_id: ::core::primitive::u32, - current: ::core::option::Option<( - runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::utils::AccountId32, - )>, - }, - #[codec(index = 12)] - #[doc = "A pool's maximum commission setting has been changed."] - PoolMaxCommissionUpdated { - pool_id: ::core::primitive::u32, - max_commission: runtime_types::sp_arithmetic::per_things::Perbill, - }, - #[codec(index = 13)] - #[doc = "A pool's commission `change_rate` has been changed."] - PoolCommissionChangeRateUpdated { - pool_id: ::core::primitive::u32, - change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< - ::core::primitive::u32, - >, - }, - #[codec(index = 14)] - #[doc = "Pool commission has been claimed."] - PoolCommissionClaimed { - pool_id: ::core::primitive::u32, - commission: ::core::primitive::u128, - }, } } #[derive( @@ -27808,78 +28857,11 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BondedPoolInner { - pub commission: runtime_types::pallet_nomination_pools::Commission, - pub member_counter: ::core::primitive::u32, pub points: ::core::primitive::u128, + pub state: runtime_types::pallet_nomination_pools::PoolState, + pub member_counter: ::core::primitive::u32, pub roles: runtime_types::pallet_nomination_pools::PoolRoles<::subxt::utils::AccountId32>, - pub state: runtime_types::pallet_nomination_pools::PoolState, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum ClaimPermission { - #[codec(index = 0)] - Permissioned, - #[codec(index = 1)] - PermissionlessCompound, - #[codec(index = 2)] - PermissionlessWithdraw, - #[codec(index = 3)] - PermissionlessAll, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Commission { - pub current: ::core::option::Option<( - runtime_types::sp_arithmetic::per_things::Perbill, - ::subxt::utils::AccountId32, - )>, - pub max: ::core::option::Option, - pub change_rate: ::core::option::Option< - runtime_types::pallet_nomination_pools::CommissionChangeRate< - ::core::primitive::u32, - >, - >, - pub throttle_from: ::core::option::Option<::core::primitive::u32>, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct CommissionChangeRate<_0> { - pub max_increase: runtime_types::sp_arithmetic::per_things::Perbill, - pub min_delay: _0, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -27921,7 +28903,7 @@ pub mod api { pub last_recorded_reward_counter: runtime_types::sp_arithmetic::fixed_point::FixedU128, pub unbonding_eras: - runtime_types::bounded_collections::bounded_btree_map::BoundedBTreeMap< + runtime_types::sp_core::bounded::bounded_btree_map::BoundedBTreeMap< ::core::primitive::u32, ::core::primitive::u128, >, @@ -27943,7 +28925,7 @@ pub mod api { pub depositor: _0, pub root: ::core::option::Option<_0>, pub nominator: ::core::option::Option<_0>, - pub bouncer: ::core::option::Option<_0>, + pub state_toggler: ::core::option::Option<_0>, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -27984,8 +28966,6 @@ pub mod api { runtime_types::sp_arithmetic::fixed_point::FixedU128, pub last_recorded_total_payouts: ::core::primitive::u128, pub total_rewards_claimed: ::core::primitive::u128, - pub total_commission_pending: ::core::primitive::u128, - pub total_commission_claimed: ::core::primitive::u128, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -28002,11 +28982,10 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubPools { pub no_era: runtime_types::pallet_nomination_pools::UnbondPool, - pub with_era: - runtime_types::bounded_collections::bounded_btree_map::BoundedBTreeMap< - ::core::primitive::u32, - runtime_types::pallet_nomination_pools::UnbondPool, - >, + pub with_era: runtime_types::sp_core::bounded::bounded_btree_map::BoundedBTreeMap< + ::core::primitive::u32, + runtime_types::pallet_nomination_pools::UnbondPool, + >, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -28073,21 +29052,34 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::note_preimage`]."] + #[doc = "Register a preimage on-chain."] + #[doc = ""] + #[doc = "If the preimage was previously requested, no fees or deposits are taken for providing"] + #[doc = "the preimage. Otherwise, a deposit is taken proportional to the size of the preimage."] note_preimage { bytes: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] - #[doc = "See [`Pallet::unnote_preimage`]."] + #[doc = "Clear an unrequested preimage from the runtime storage."] + #[doc = ""] + #[doc = "If `len` is provided, then it will be a much cheaper operation."] + #[doc = ""] + #[doc = "- `hash`: The hash of the preimage to be removed from the store."] + #[doc = "- `len`: The length of the preimage of `hash`."] unnote_preimage { hash: ::subxt::utils::H256 }, #[codec(index = 2)] - #[doc = "See [`Pallet::request_preimage`]."] + #[doc = "Request a preimage be uploaded to the chain without paying any fees or deposits."] + #[doc = ""] + #[doc = "If the preimage requests has already been provided on-chain, we unreserve any deposit"] + #[doc = "a user may have paid, and take the control of the preimage out of their hands."] request_preimage { hash: ::subxt::utils::H256 }, #[codec(index = 3)] - #[doc = "See [`Pallet::unrequest_preimage`]."] + #[doc = "Clear a previously made request for a preimage."] + #[doc = ""] + #[doc = "NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`."] unrequest_preimage { hash: ::subxt::utils::H256 }, } #[derive( @@ -28103,7 +29095,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Preimage is too large to store on-chain."] @@ -28137,7 +29129,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A preimage has been noted."] @@ -28194,10 +29186,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::schedule`]."] + #[doc = "Anonymously schedule a task."] schedule { when: ::core::primitive::u32, maybe_periodic: ::core::option::Option<( @@ -28208,13 +29200,13 @@ pub mod api { call: ::std::boxed::Box, }, #[codec(index = 1)] - #[doc = "See [`Pallet::cancel`]."] + #[doc = "Cancel an anonymously scheduled task."] cancel { when: ::core::primitive::u32, index: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "See [`Pallet::schedule_named`]."] + #[doc = "Schedule a named task."] schedule_named { id: [::core::primitive::u8; 32usize], when: ::core::primitive::u32, @@ -28226,12 +29218,16 @@ pub mod api { call: ::std::boxed::Box, }, #[codec(index = 3)] - #[doc = "See [`Pallet::cancel_named`]."] + #[doc = "Cancel a named scheduled task."] cancel_named { id: [::core::primitive::u8; 32usize], }, #[codec(index = 4)] - #[doc = "See [`Pallet::schedule_after`]."] + #[doc = "Anonymously schedule a task after a delay."] + #[doc = ""] + #[doc = "# "] + #[doc = "Same as [`schedule`]."] + #[doc = "# "] schedule_after { after: ::core::primitive::u32, maybe_periodic: ::core::option::Option<( @@ -28242,7 +29238,11 @@ pub mod api { call: ::std::boxed::Box, }, #[codec(index = 5)] - #[doc = "See [`Pallet::schedule_named_after`]."] + #[doc = "Schedule a named task after a delay."] + #[doc = ""] + #[doc = "# "] + #[doc = "Same as [`schedule_named`](Self::schedule_named)."] + #[doc = "# "] schedule_named_after { id: [::core::primitive::u8; 32usize], after: ::core::primitive::u32, @@ -28267,7 +29267,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Failed to schedule a call"] @@ -28380,16 +29380,44 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::set_keys`]."] + #[doc = "Sets the session key(s) of the function caller to `keys`."] + #[doc = "Allows an account to set its session key prior to becoming a validator."] + #[doc = "This doesn't take effect until the next session."] + #[doc = ""] + #[doc = "The dispatch origin of this function must be signed."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Complexity: `O(1)`. Actual cost depends on the number of length of"] + #[doc = " `T::Keys::key_ids()` which is fixed."] + #[doc = "- DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`"] + #[doc = "- DbWrites: `origin account`, `NextKeys`"] + #[doc = "- DbReads per key id: `KeyOwner`"] + #[doc = "- DbWrites per key id: `KeyOwner`"] + #[doc = "# "] set_keys { keys: runtime_types::da_runtime::primitives::SessionKeys, proof: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] - #[doc = "See [`Pallet::purge_keys`]."] + #[doc = "Removes any session key(s) of the function caller."] + #[doc = ""] + #[doc = "This doesn't take effect until the next session."] + #[doc = ""] + #[doc = "The dispatch origin of this function must be Signed and the account must be either be"] + #[doc = "convertible to a validator ID using the chain's typical addressing system (this usually"] + #[doc = "means being a controller account) or directly convertible into a validator ID (which"] + #[doc = "usually means being a stash account)."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Complexity: `O(1)` in number of key types. Actual cost depends on the number of length"] + #[doc = " of `T::Keys::key_ids()` which is fixed."] + #[doc = "- DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`"] + #[doc = "- DbWrites: `NextKeys`, `origin account`"] + #[doc = "- DbWrites per key id: `KeyOwner`"] + #[doc = "# "] purge_keys, } #[derive( @@ -28436,7 +29464,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "New session has happened. Note that the argument is the session index, not the"] @@ -28466,11 +29494,31 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::bond`]."] + #[doc = "Take the origin account as a stash and lock up `value` of its balance. `controller` will"] + #[doc = "be the account that controls it."] + #[doc = ""] + #[doc = "`value` must be more than the `minimum_balance` specified by `T::Currency`."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the stash account."] + #[doc = ""] + #[doc = "Emits `Bonded`."] + #[doc = "# "] + #[doc = "- Independent of the arguments. Moderate complexity."] + #[doc = "- O(1)."] + #[doc = "- Three extra DB entries."] + #[doc = ""] + #[doc = "NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned"] + #[doc = "unless the `origin` falls below _existential deposit_ and gets removed as dust."] + #[doc = "------------------"] + #[doc = "# "] bond { + controller: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, #[codec(compact)] value: ::core::primitive::u128, payee: runtime_types::pallet_staking::RewardDestination< @@ -28478,29 +29526,89 @@ pub mod api { >, }, #[codec(index = 1)] - #[doc = "See [`Pallet::bond_extra`]."] + #[doc = "Add some extra amount that have appeared in the stash `free_balance` into the balance up"] + #[doc = "for staking."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] + #[doc = ""] + #[doc = "Use this if there are additional funds in your stash account that you wish to bond."] + #[doc = "Unlike [`bond`](Self::bond) or [`unbond`](Self::unbond) this function does not impose"] + #[doc = "any limitation on the amount that can be added."] + #[doc = ""] + #[doc = "Emits `Bonded`."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Independent of the arguments. Insignificant complexity."] + #[doc = "- O(1)."] + #[doc = "# "] bond_extra { #[codec(compact)] max_additional: ::core::primitive::u128, }, #[codec(index = 2)] - #[doc = "See [`Pallet::unbond`]."] + #[doc = "Schedule a portion of the stash to be unlocked ready for transfer out after the bond"] + #[doc = "period ends. If this leaves an amount actively bonded less than"] + #[doc = "T::Currency::minimum_balance(), then it is increased to the full amount."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] + #[doc = ""] + #[doc = "Once the unlock period is done, you can call `withdraw_unbonded` to actually move"] + #[doc = "the funds out of management ready for transfer."] + #[doc = ""] + #[doc = "No more than a limited number of unlocking chunks (see `MaxUnlockingChunks`)"] + #[doc = "can co-exists at the same time. If there are no unlocking chunks slots available"] + #[doc = "[`Call::withdraw_unbonded`] is called to remove some of the chunks (if possible)."] + #[doc = ""] + #[doc = "If a user encounters the `InsufficientBond` error when calling this extrinsic,"] + #[doc = "they should call `chill` first in order to free up their bonded funds."] + #[doc = ""] + #[doc = "Emits `Unbonded`."] + #[doc = ""] + #[doc = "See also [`Call::withdraw_unbonded`]."] unbond { #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 3)] - #[doc = "See [`Pallet::withdraw_unbonded`]."] + #[doc = "Remove any unlocked chunks from the `unlocking` queue from our management."] + #[doc = ""] + #[doc = "This essentially frees up that balance to be used by the stash account to do"] + #[doc = "whatever it wants."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the controller."] + #[doc = ""] + #[doc = "Emits `Withdrawn`."] + #[doc = ""] + #[doc = "See also [`Call::unbond`]."] + #[doc = ""] + #[doc = "# "] + #[doc = "Complexity O(S) where S is the number of slashing spans to remove"] + #[doc = "NOTE: Weight annotation is the kill scenario, we refund otherwise."] + #[doc = "# "] withdraw_unbonded { num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 4)] - #[doc = "See [`Pallet::validate`]."] + #[doc = "Declare the desire to validate for the origin controller."] + #[doc = ""] + #[doc = "Effects will be felt at the beginning of the next era."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] validate { prefs: runtime_types::pallet_staking::ValidatorPrefs, }, #[codec(index = 5)] - #[doc = "See [`Pallet::nominate`]."] + #[doc = "Declare the desire to nominate `targets` for the origin controller."] + #[doc = ""] + #[doc = "Effects will be felt at the beginning of the next era."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] + #[doc = ""] + #[doc = "# "] + #[doc = "- The transaction's complexity is proportional to the size of `targets` (N)"] + #[doc = "which is capped at CompactAssignments::LIMIT (T::MaxNominations)."] + #[doc = "- Both the reads and writes follow a similar pattern."] + #[doc = "# "] nominate { targets: ::std::vec::Vec< ::subxt::utils::MultiAddress< @@ -28510,81 +29618,241 @@ pub mod api { >, }, #[codec(index = 6)] - #[doc = "See [`Pallet::chill`]."] + #[doc = "Declare no desire to either validate or nominate."] + #[doc = ""] + #[doc = "Effects will be felt at the beginning of the next era."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Independent of the arguments. Insignificant complexity."] + #[doc = "- Contains one read."] + #[doc = "- Writes are limited to the `origin` account key."] + #[doc = "# "] chill, #[codec(index = 7)] - #[doc = "See [`Pallet::set_payee`]."] + #[doc = "(Re-)set the payment target for a controller."] + #[doc = ""] + #[doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Independent of the arguments. Insignificant complexity."] + #[doc = "- Contains a limited number of reads."] + #[doc = "- Writes are limited to the `origin` account key."] + #[doc = "---------"] + #[doc = "- Weight: O(1)"] + #[doc = "- DB Weight:"] + #[doc = " - Read: Ledger"] + #[doc = " - Write: Payee"] + #[doc = "# "] set_payee { payee: runtime_types::pallet_staking::RewardDestination< ::subxt::utils::AccountId32, >, }, #[codec(index = 8)] - #[doc = "See [`Pallet::set_controller`]."] - set_controller, + #[doc = "(Re-)set the controller of a stash."] + #[doc = ""] + #[doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Independent of the arguments. Insignificant complexity."] + #[doc = "- Contains a limited number of reads."] + #[doc = "- Writes are limited to the `origin` account key."] + #[doc = "----------"] + #[doc = "Weight: O(1)"] + #[doc = "DB Weight:"] + #[doc = "- Read: Bonded, Ledger New Controller, Ledger Old Controller"] + #[doc = "- Write: Bonded, Ledger New Controller, Ledger Old Controller"] + #[doc = "# "] + set_controller { + controller: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + }, #[codec(index = 9)] - #[doc = "See [`Pallet::set_validator_count`]."] + #[doc = "Sets the ideal number of validators."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "# "] + #[doc = "Weight: O(1)"] + #[doc = "Write: Validator Count"] + #[doc = "# "] set_validator_count { #[codec(compact)] new: ::core::primitive::u32, }, #[codec(index = 10)] - #[doc = "See [`Pallet::increase_validator_count`]."] + #[doc = "Increments the ideal number of validators upto maximum of"] + #[doc = "`ElectionProviderBase::MaxWinners`."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "# "] + #[doc = "Same as [`Self::set_validator_count`]."] + #[doc = "# "] increase_validator_count { #[codec(compact)] additional: ::core::primitive::u32, }, #[codec(index = 11)] - #[doc = "See [`Pallet::scale_validator_count`]."] + #[doc = "Scale up the ideal number of validators by a factor upto maximum of"] + #[doc = "`ElectionProviderBase::MaxWinners`."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "# "] + #[doc = "Same as [`Self::set_validator_count`]."] + #[doc = "# "] scale_validator_count { factor: runtime_types::sp_arithmetic::per_things::Percent, }, #[codec(index = 12)] - #[doc = "See [`Pallet::force_no_eras`]."] + #[doc = "Force there to be no new eras indefinitely."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "# Warning"] + #[doc = ""] + #[doc = "The election process starts multiple blocks before the end of the era."] + #[doc = "Thus the election process may be ongoing when this is called. In this case the"] + #[doc = "election will continue until the next era is triggered."] + #[doc = ""] + #[doc = "# "] + #[doc = "- No arguments."] + #[doc = "- Weight: O(1)"] + #[doc = "- Write: ForceEra"] + #[doc = "# "] force_no_eras, #[codec(index = 13)] - #[doc = "See [`Pallet::force_new_era`]."] + #[doc = "Force there to be a new era at the end of the next session. After this, it will be"] + #[doc = "reset to normal (non-forced) behaviour."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "# Warning"] + #[doc = ""] + #[doc = "The election process starts multiple blocks before the end of the era."] + #[doc = "If this is called just before a new era is triggered, the election process may not"] + #[doc = "have enough blocks to get a result."] + #[doc = ""] + #[doc = "# "] + #[doc = "- No arguments."] + #[doc = "- Weight: O(1)"] + #[doc = "- Write ForceEra"] + #[doc = "# "] force_new_era, #[codec(index = 14)] - #[doc = "See [`Pallet::set_invulnerables`]."] + #[doc = "Set the validators who cannot be slashed (if any)."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] set_invulnerables { invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, }, #[codec(index = 15)] - #[doc = "See [`Pallet::force_unstake`]."] + #[doc = "Force a current staker to become completely unstaked, immediately."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] force_unstake { stash: ::subxt::utils::AccountId32, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 16)] - #[doc = "See [`Pallet::force_new_era_always`]."] + #[doc = "Force there to be a new era at the end of sessions indefinitely."] + #[doc = ""] + #[doc = "The dispatch origin must be Root."] + #[doc = ""] + #[doc = "# Warning"] + #[doc = ""] + #[doc = "The election process starts multiple blocks before the end of the era."] + #[doc = "If this is called just before a new era is triggered, the election process may not"] + #[doc = "have enough blocks to get a result."] force_new_era_always, #[codec(index = 17)] - #[doc = "See [`Pallet::cancel_deferred_slash`]."] + #[doc = "Cancel enactment of a deferred slash."] + #[doc = ""] + #[doc = "Can be called by the `T::AdminOrigin`."] + #[doc = ""] + #[doc = "Parameters: era and indices of the slashes for that era to kill."] cancel_deferred_slash { era: ::core::primitive::u32, slash_indices: ::std::vec::Vec<::core::primitive::u32>, }, #[codec(index = 18)] - #[doc = "See [`Pallet::payout_stakers`]."] + #[doc = "Pay out all the stakers behind a single validator for a single era."] + #[doc = ""] + #[doc = "- `validator_stash` is the stash account of the validator. Their nominators, up to"] + #[doc = " `T::MaxNominatorRewardedPerValidator`, will also receive their rewards."] + #[doc = "- `era` may be any era between `[current_era - history_depth; current_era]`."] + #[doc = ""] + #[doc = "The origin of this call must be _Signed_. Any account can call this function, even if"] + #[doc = "it is not one of the stakers."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Time complexity: at most O(MaxNominatorRewardedPerValidator)."] + #[doc = "- Contains a limited number of reads and writes."] + #[doc = "-----------"] + #[doc = "N is the Number of payouts for the validator (including the validator)"] + #[doc = "Weight:"] + #[doc = "- Reward Destination Staked: O(N)"] + #[doc = "- Reward Destination Controller (Creating): O(N)"] + #[doc = ""] + #[doc = " NOTE: weights are assuming that payouts are made to alive stash account (Staked)."] + #[doc = " Paying even a dead controller is cheaper weight-wise. We don't do any refunds here."] + #[doc = "# "] payout_stakers { validator_stash: ::subxt::utils::AccountId32, era: ::core::primitive::u32, }, #[codec(index = 19)] - #[doc = "See [`Pallet::rebond`]."] + #[doc = "Rebond a portion of the stash scheduled to be unlocked."] + #[doc = ""] + #[doc = "The dispatch origin must be signed by the controller."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Time complexity: O(L), where L is unlocking chunks"] + #[doc = "- Bounded by `MaxUnlockingChunks`."] + #[doc = "- Storage changes: Can't increase storage, only decrease it."] + #[doc = "# "] rebond { #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 20)] - #[doc = "See [`Pallet::reap_stash`]."] + #[doc = "Remove all data structures concerning a staker/stash once it is at a state where it can"] + #[doc = "be considered `dust` in the staking system. The requirements are:"] + #[doc = ""] + #[doc = "1. the `total_balance` of the stash is below existential deposit."] + #[doc = "2. or, the `ledger.total` of the stash is below existential deposit."] + #[doc = ""] + #[doc = "The former can happen in cases like a slash; the latter when a fully unbonded account"] + #[doc = "is still receiving staking rewards in `RewardDestination::Staked`."] + #[doc = ""] + #[doc = "It can be called by anyone, as long as `stash` meets the above requirements."] + #[doc = ""] + #[doc = "Refunds the transaction fees upon successful execution."] reap_stash { stash: ::subxt::utils::AccountId32, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 21)] - #[doc = "See [`Pallet::kick`]."] + #[doc = "Remove the given nominations from the calling validator."] + #[doc = ""] + #[doc = "Effects will be felt at the beginning of the next era."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] + #[doc = ""] + #[doc = "- `who`: A list of nominator stash accounts who are nominating this validator which"] + #[doc = " should no longer be nominating this validator."] + #[doc = ""] + #[doc = "Note: Making this call only makes sense if you first set the validator preferences to"] + #[doc = "block any further nominations."] kick { who: ::std::vec::Vec< ::subxt::utils::MultiAddress< @@ -28594,7 +29862,23 @@ pub mod api { >, }, #[codec(index = 22)] - #[doc = "See [`Pallet::set_staking_configs`]."] + #[doc = "Update the various staking configurations ."] + #[doc = ""] + #[doc = "* `min_nominator_bond`: The minimum active bond needed to be a nominator."] + #[doc = "* `min_validator_bond`: The minimum active bond needed to be a validator."] + #[doc = "* `max_nominator_count`: The max number of users who can be a nominator at once. When"] + #[doc = " set to `None`, no limit is enforced."] + #[doc = "* `max_validator_count`: The max number of users who can be a validator at once. When"] + #[doc = " set to `None`, no limit is enforced."] + #[doc = "* `chill_threshold`: The ratio of `max_nominator_count` or `max_validator_count` which"] + #[doc = " should be filled in order for the `chill_other` transaction to work."] + #[doc = "* `min_commission`: The minimum amount of commission that each validators must maintain."] + #[doc = " This is checked only upon calling `validate`. Existing validators are not affected."] + #[doc = ""] + #[doc = "RuntimeOrigin must be Root to call this function."] + #[doc = ""] + #[doc = "NOTE: Existing nominators and validators will not be affected by this update."] + #[doc = "to kick people under the new limits, `chill_other` should be called."] set_staking_configs { min_nominator_bond: runtime_types::pallet_staking::pallet::pallet::ConfigOp< @@ -28621,17 +29905,47 @@ pub mod api { >, }, #[codec(index = 23)] - #[doc = "See [`Pallet::chill_other`]."] + #[doc = "Declare a `controller` to stop participating as either a validator or nominator."] + #[doc = ""] + #[doc = "Effects will be felt at the beginning of the next era."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_, but can be called by anyone."] + #[doc = ""] + #[doc = "If the caller is the same as the controller being targeted, then no further checks are"] + #[doc = "enforced, and this function behaves just like `chill`."] + #[doc = ""] + #[doc = "If the caller is different than the controller being targeted, the following conditions"] + #[doc = "must be met:"] + #[doc = ""] + #[doc = "* `controller` must belong to a nominator who has become non-decodable,"] + #[doc = ""] + #[doc = "Or:"] + #[doc = ""] + #[doc = "* A `ChillThreshold` must be set and checked which defines how close to the max"] + #[doc = " nominators or validators we must reach before users can start chilling one-another."] + #[doc = "* A `MaxNominatorCount` and `MaxValidatorCount` must be set which is used to determine"] + #[doc = " how close we are to the threshold."] + #[doc = "* A `MinNominatorBond` and `MinValidatorBond` must be set and checked, which determines"] + #[doc = " if this is a person that should be chilled because they have not met the threshold"] + #[doc = " bond required."] + #[doc = ""] + #[doc = "This can be helpful if bond requirements are updated, and we need to remove old users"] + #[doc = "who do not satisfy these requirements."] chill_other { controller: ::subxt::utils::AccountId32, }, #[codec(index = 24)] - #[doc = "See [`Pallet::force_apply_min_commission`]."] + #[doc = "Force a validator to have at least the minimum commission. This will not affect a"] + #[doc = "validator who already has a commission greater than or equal to the minimum. Any account"] + #[doc = "can call this."] force_apply_min_commission { validator_stash: ::subxt::utils::AccountId32, }, #[codec(index = 25)] - #[doc = "See [`Pallet::set_min_commission`]."] + #[doc = "Sets the minimum amount of commission that each validators must maintain."] + #[doc = ""] + #[doc = "This call has lower privilege requirements than `set_staking_config` and can be called"] + #[doc = "by the `T::AdminOrigin`. Root can always call this."] set_min_commission { new: runtime_types::sp_arithmetic::per_things::Perbill, }, @@ -28670,7 +29984,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Not a controller account."] @@ -28765,7 +30079,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "The era payout has been set; the first balance is the validator-payout; the second is"] @@ -29007,7 +30321,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Nominations { - pub targets: runtime_types::bounded_collections::bounded_vec::BoundedVec< + pub targets: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< ::subxt::utils::AccountId32, >, pub submitted_in: ::core::primitive::u32, @@ -29057,10 +30371,10 @@ pub mod api { pub total: ::core::primitive::u128, #[codec(compact)] pub active: ::core::primitive::u128, - pub unlocking: runtime_types::bounded_collections::bounded_vec::BoundedVec< + pub unlocking: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< runtime_types::pallet_staking::UnlockChunk<::core::primitive::u128>, >, - pub claimed_rewards: runtime_types::bounded_collections::bounded_vec::BoundedVec< + pub claimed_rewards: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< ::core::primitive::u32, >, } @@ -29139,21 +30453,48 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::sudo`]."] + #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1)."] + #[doc = "- Limited storage reads."] + #[doc = "- One DB write (event)."] + #[doc = "- Weight of derivative `call` execution + 10,000."] + #[doc = "# "] sudo { call: ::std::boxed::Box, }, #[codec(index = 1)] - #[doc = "See [`Pallet::sudo_unchecked_weight`]."] + #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] + #[doc = "This function does not check the weight of the call, and instead allows the"] + #[doc = "Sudo user to specify the weight of the call."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1)."] + #[doc = "- The weight of this call is defined by the caller."] + #[doc = "# "] sudo_unchecked_weight { call: ::std::boxed::Box, weight: runtime_types::sp_weights::weight_v2::Weight, }, #[codec(index = 2)] - #[doc = "See [`Pallet::set_key`]."] + #[doc = "Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo"] + #[doc = "key."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1)."] + #[doc = "- Limited storage reads."] + #[doc = "- One DB change."] + #[doc = "# "] set_key { new: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -29161,7 +30502,17 @@ pub mod api { >, }, #[codec(index = 3)] - #[doc = "See [`Pallet::sudo_as`]."] + #[doc = "Authenticates the sudo key and dispatches a function call with `Signed` origin from"] + #[doc = "a given account."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1)."] + #[doc = "- Limited storage reads."] + #[doc = "- One DB write (event)."] + #[doc = "- Weight of derivative `call` execution + 10,000."] + #[doc = "# "] sudo_as { who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -29202,7 +30553,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A sudo just took place. \\[result\\]"] @@ -29241,10 +30592,25 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::set`]."] + #[doc = "Set the current time."] + #[doc = ""] + #[doc = "This call should be invoked exactly once per block. It will panic at the finalization"] + #[doc = "phase, if this call hasn't been invoked by that time."] + #[doc = ""] + #[doc = "The timestamp should be greater than the previous one by the amount specified by"] + #[doc = "`MinimumPeriod`."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be `Inherent`."] + #[doc = ""] + #[doc = "# "] + #[doc = "- `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)"] + #[doc = "- 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in"] + #[doc = " `on_finalize`)"] + #[doc = "- 1 event handler `on_timestamp_set`. Must be `O(1)`."] + #[doc = "# "] set { #[codec(compact)] now: ::core::primitive::u64, @@ -29269,10 +30635,28 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::report_awesome`]."] + #[doc = "Report something `reason` that deserves a tip and claim any eventual the finder's fee."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "Payment: `TipReportDepositBase` will be reserved from the origin account, as well as"] + #[doc = "`DataDepositPerByte` for each byte in `reason`."] + #[doc = ""] + #[doc = "- `reason`: The reason for, or the thing that deserves, the tip; generally this will be"] + #[doc = " a UTF-8-encoded URL."] + #[doc = "- `who`: The account which should be credited for the tip."] + #[doc = ""] + #[doc = "Emits `NewTip` if successful."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Complexity: `O(R)` where `R` length of `reason`."] + #[doc = " - encoding and hashing of 'reason'"] + #[doc = "- DbReads: `Reasons`, `Tips`"] + #[doc = "- DbWrites: `Reasons`, `Tips`"] + #[doc = "# "] report_awesome { reason: ::std::vec::Vec<::core::primitive::u8>, who: ::subxt::utils::MultiAddress< @@ -29281,10 +30665,49 @@ pub mod api { >, }, #[codec(index = 1)] - #[doc = "See [`Pallet::retract_tip`]."] + #[doc = "Retract a prior tip-report from `report_awesome`, and cancel the process of tipping."] + #[doc = ""] + #[doc = "If successful, the original deposit will be unreserved."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the tip identified by `hash`"] + #[doc = "must have been reported by the signing account through `report_awesome` (and not"] + #[doc = "through `tip_new`)."] + #[doc = ""] + #[doc = "- `hash`: The identity of the open tip for which a tip value is declared. This is formed"] + #[doc = " as the hash of the tuple of the original tip `reason` and the beneficiary account ID."] + #[doc = ""] + #[doc = "Emits `TipRetracted` if successful."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Complexity: `O(1)`"] + #[doc = " - Depends on the length of `T::Hash` which is fixed."] + #[doc = "- DbReads: `Tips`, `origin account`"] + #[doc = "- DbWrites: `Reasons`, `Tips`, `origin account`"] + #[doc = "# "] retract_tip { hash: ::subxt::utils::H256 }, #[codec(index = 2)] - #[doc = "See [`Pallet::tip_new`]."] + #[doc = "Give a tip for something new; no finder's fee will be taken."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the signing account must be a"] + #[doc = "member of the `Tippers` set."] + #[doc = ""] + #[doc = "- `reason`: The reason for, or the thing that deserves, the tip; generally this will be"] + #[doc = " a UTF-8-encoded URL."] + #[doc = "- `who`: The account which should be credited for the tip."] + #[doc = "- `tip_value`: The amount of tip that the sender would like to give. The median tip"] + #[doc = " value of active tippers will be given to the `who`."] + #[doc = ""] + #[doc = "Emits `NewTip` if successful."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Complexity: `O(R + T)` where `R` length of `reason`, `T` is the number of tippers."] + #[doc = " - `O(T)`: decoding `Tipper` vec of length `T`. `T` is charged as upper bound given by"] + #[doc = " `ContainsLengthBound`. The actual cost depends on the implementation of"] + #[doc = " `T::Tippers`."] + #[doc = " - `O(R)`: hashing and encoding of reason of length `R`"] + #[doc = "- DbReads: `Tippers`, `Reasons`"] + #[doc = "- DbWrites: `Reasons`, `Tips`"] + #[doc = "# "] tip_new { reason: ::std::vec::Vec<::core::primitive::u8>, who: ::subxt::utils::MultiAddress< @@ -29295,17 +30718,66 @@ pub mod api { tip_value: ::core::primitive::u128, }, #[codec(index = 3)] - #[doc = "See [`Pallet::tip`]."] + #[doc = "Declare a tip value for an already-open tip."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_ and the signing account must be a"] + #[doc = "member of the `Tippers` set."] + #[doc = ""] + #[doc = "- `hash`: The identity of the open tip for which a tip value is declared. This is formed"] + #[doc = " as the hash of the tuple of the hash of the original tip `reason` and the beneficiary"] + #[doc = " account ID."] + #[doc = "- `tip_value`: The amount of tip that the sender would like to give. The median tip"] + #[doc = " value of active tippers will be given to the `who`."] + #[doc = ""] + #[doc = "Emits `TipClosing` if the threshold of tippers has been reached and the countdown period"] + #[doc = "has started."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Complexity: `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length"] + #[doc = " `T`, insert tip and check closing, `T` is charged as upper bound given by"] + #[doc = " `ContainsLengthBound`. The actual cost depends on the implementation of `T::Tippers`."] + #[doc = ""] + #[doc = " Actually weight could be lower as it depends on how many tips are in `OpenTip` but it"] + #[doc = " is weighted as if almost full i.e of length `T-1`."] + #[doc = "- DbReads: `Tippers`, `Tips`"] + #[doc = "- DbWrites: `Tips`"] + #[doc = "# "] tip { hash: ::subxt::utils::H256, #[codec(compact)] tip_value: ::core::primitive::u128, }, #[codec(index = 4)] - #[doc = "See [`Pallet::close_tip`]."] + #[doc = "Close and payout a tip."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = ""] + #[doc = "The tip identified by `hash` must have finished its countdown period."] + #[doc = ""] + #[doc = "- `hash`: The identity of the open tip for which a tip value is declared. This is formed"] + #[doc = " as the hash of the tuple of the original tip `reason` and the beneficiary account ID."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Complexity: `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length"] + #[doc = " `T`. `T` is charged as upper bound given by `ContainsLengthBound`. The actual cost"] + #[doc = " depends on the implementation of `T::Tippers`."] + #[doc = "- DbReads: `Tips`, `Tippers`, `tip finder`"] + #[doc = "- DbWrites: `Reasons`, `Tips`, `Tippers`, `tip finder`"] + #[doc = "# "] close_tip { hash: ::subxt::utils::H256 }, #[codec(index = 5)] - #[doc = "See [`Pallet::slash_tip`]."] + #[doc = "Remove and slash an already-open tip."] + #[doc = ""] + #[doc = "May only be called from `T::RejectOrigin`."] + #[doc = ""] + #[doc = "As a result, the finder is slashed and the deposits are lost."] + #[doc = ""] + #[doc = "Emits `TipSlashed` if successful."] + #[doc = ""] + #[doc = "# "] + #[doc = " `T` is charged as upper bound given by `ContainsLengthBound`."] + #[doc = " The actual cost depends on the implementation of `T::Tippers`."] + #[doc = "# "] slash_tip { hash: ::subxt::utils::H256 }, } #[derive( @@ -29321,7 +30793,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "The reason given is just too big."] @@ -29355,7 +30827,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A new tip suggestion has been opened."] @@ -29422,7 +30894,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"] @@ -29485,10 +30957,18 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::propose_spend`]."] + #[doc = "Put forward a suggestion for spending. A deposit proportional to the value"] + #[doc = "is reserved and slashed if the proposal is rejected. It is returned once the"] + #[doc = "proposal is awarded."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Complexity: O(1)"] + #[doc = "- DbReads: `ProposalCount`, `origin account`"] + #[doc = "- DbWrites: `ProposalCount`, `Proposals`, `origin account`"] + #[doc = "# "] propose_spend { #[codec(compact)] value: ::core::primitive::u128, @@ -29498,19 +30978,43 @@ pub mod api { >, }, #[codec(index = 1)] - #[doc = "See [`Pallet::reject_proposal`]."] + #[doc = "Reject a proposed spend. The original deposit will be slashed."] + #[doc = ""] + #[doc = "May only be called from `T::RejectOrigin`."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Complexity: O(1)"] + #[doc = "- DbReads: `Proposals`, `rejected proposer account`"] + #[doc = "- DbWrites: `Proposals`, `rejected proposer account`"] + #[doc = "# "] reject_proposal { #[codec(compact)] proposal_id: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "See [`Pallet::approve_proposal`]."] + #[doc = "Approve a proposal. At a later time, the proposal will be allocated to the beneficiary"] + #[doc = "and the original deposit will be returned."] + #[doc = ""] + #[doc = "May only be called from `T::ApproveOrigin`."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Complexity: O(1)."] + #[doc = "- DbReads: `Proposals`, `Approvals`"] + #[doc = "- DbWrite: `Approvals`"] + #[doc = "# "] approve_proposal { #[codec(compact)] proposal_id: ::core::primitive::u32, }, #[codec(index = 3)] - #[doc = "See [`Pallet::spend`]."] + #[doc = "Propose and approve a spend of treasury funds."] + #[doc = ""] + #[doc = "- `origin`: Must be `SpendOrigin` with the `Success` value being at least `amount`."] + #[doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] + #[doc = "- `beneficiary`: The destination account for the transfer."] + #[doc = ""] + #[doc = "NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the"] + #[doc = "beneficiary."] spend { #[codec(compact)] amount: ::core::primitive::u128, @@ -29520,7 +31024,21 @@ pub mod api { >, }, #[codec(index = 4)] - #[doc = "See [`Pallet::remove_approval`]."] + #[doc = "Force a previously approved proposal to be removed from the approval queue."] + #[doc = "The original deposit will no longer be returned."] + #[doc = ""] + #[doc = "May only be called from `T::RejectOrigin`."] + #[doc = "- `proposal_id`: The index of a proposal"] + #[doc = ""] + #[doc = "# "] + #[doc = "- Complexity: O(A) where `A` is the number of approvals"] + #[doc = "- Db reads and writes: `Approvals`"] + #[doc = "# "] + #[doc = ""] + #[doc = "Errors:"] + #[doc = "- `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,"] + #[doc = "i.e., the proposal has not been approved. This could also mean the proposal does not"] + #[doc = "exist altogether, thus there is no way it would have been approved in the first place."] remove_approval { #[codec(compact)] proposal_id: ::core::primitive::u32, @@ -29571,7 +31089,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "New proposal."] @@ -29661,37 +31179,107 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] + #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] pub enum Call { #[codec(index = 0)] - #[doc = "See [`Pallet::batch`]."] + #[doc = "Send a batch of dispatch calls."] + #[doc = ""] + #[doc = "May be called from any origin except `None`."] + #[doc = ""] + #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] + #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] + #[doc = ""] + #[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] + #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Complexity: O(C) where C is the number of calls to be batched."] + #[doc = "# "] + #[doc = ""] + #[doc = "This will return `Ok` in all circumstances. To determine the success of the batch, an"] + #[doc = "event is deposited. If a call failed and the batch was interrupted, then the"] + #[doc = "`BatchInterrupted` event is deposited, along with the number of successful calls made"] + #[doc = "and the error of the failed call. If all were successful, then the `BatchCompleted`"] + #[doc = "event is deposited."] batch { calls: ::std::vec::Vec, }, #[codec(index = 1)] - #[doc = "See [`Pallet::as_derivative`]."] + #[doc = "Send a call through an indexed pseudonym of the sender."] + #[doc = ""] + #[doc = "Filter from origin are passed along. The call will be dispatched with an origin which"] + #[doc = "use the same filter as the origin of this call."] + #[doc = ""] + #[doc = "NOTE: If you need to ensure that any account-based filtering is not honored (i.e."] + #[doc = "because you expect `proxy` to have been used prior in the call stack and you do not want"] + #[doc = "the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`"] + #[doc = "in the Multisig pallet instead."] + #[doc = ""] + #[doc = "NOTE: Prior to version *12, this was called `as_limited_sub`."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Signed_."] as_derivative { index: ::core::primitive::u16, call: ::std::boxed::Box, }, #[codec(index = 2)] - #[doc = "See [`Pallet::batch_all`]."] + #[doc = "Send a batch of dispatch calls and atomically execute them."] + #[doc = "The whole transaction will rollback and fail if any of the calls failed."] + #[doc = ""] + #[doc = "May be called from any origin except `None`."] + #[doc = ""] + #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] + #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] + #[doc = ""] + #[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] + #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Complexity: O(C) where C is the number of calls to be batched."] + #[doc = "# "] batch_all { calls: ::std::vec::Vec, }, #[codec(index = 3)] - #[doc = "See [`Pallet::dispatch_as`]."] + #[doc = "Dispatches a function call with a provided origin."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Root_."] + #[doc = ""] + #[doc = "# "] + #[doc = "- O(1)."] + #[doc = "- Limited storage reads."] + #[doc = "- One DB write (event)."] + #[doc = "- Weight of derivative `call` execution + T::WeightInfo::dispatch_as()."] + #[doc = "# "] dispatch_as { as_origin: ::std::boxed::Box, call: ::std::boxed::Box, }, #[codec(index = 4)] - #[doc = "See [`Pallet::force_batch`]."] + #[doc = "Send a batch of dispatch calls."] + #[doc = "Unlike `batch`, it allows errors and won't interrupt."] + #[doc = ""] + #[doc = "May be called from any origin except `None`."] + #[doc = ""] + #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] + #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] + #[doc = ""] + #[doc = "If origin is root then the calls are dispatch without checking origin filter. (This"] + #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] + #[doc = ""] + #[doc = "# "] + #[doc = "- Complexity: O(C) where C is the number of calls to be batched."] + #[doc = "# "] force_batch { calls: ::std::vec::Vec, }, #[codec(index = 5)] - #[doc = "See [`Pallet::with_weight`]."] + #[doc = "Dispatch a function call with a specified weight."] + #[doc = ""] + #[doc = "This function does not check the weight of the call, and instead allows the"] + #[doc = "Root origin to specify the weight of the call."] + #[doc = ""] + #[doc = "The dispatch origin for this call must be _Root_."] with_weight { call: ::std::boxed::Box, weight: runtime_types::sp_weights::weight_v2::Weight, @@ -29710,7 +31298,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Error` enum of this pallet."] + #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] pub enum Error { #[codec(index = 0)] #[doc = "Too many calls batched."] @@ -29729,7 +31317,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "The `Event` enum of this pallet"] + #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] pub enum Event { #[codec(index = 0)] #[doc = "Batch of dispatches did not complete fully. Index of first failing dispatch given, as"] @@ -29959,111 +31547,14 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum PreDigest { #[codec(index = 1)] - Primary(runtime_types::sp_consensus_babe::digests::PrimaryPreDigest), - #[codec(index = 2)] - SecondaryPlain( - runtime_types::sp_consensus_babe::digests::SecondaryPlainPreDigest, - ), - #[codec(index = 3)] - SecondaryVRF(runtime_types::sp_consensus_babe::digests::SecondaryVRFPreDigest), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct PrimaryPreDigest { - pub authority_index: ::core::primitive::u32, - pub slot: runtime_types::sp_consensus_slots::Slot, - pub vrf_signature: runtime_types::sp_core::sr25519::vrf::VrfSignature, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SecondaryPlainPreDigest { - pub authority_index: ::core::primitive::u32, - pub slot: runtime_types::sp_consensus_slots::Slot, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SecondaryVRFPreDigest { - pub authority_index: ::core::primitive::u32, - pub slot: runtime_types::sp_consensus_slots::Slot, - pub vrf_signature: runtime_types::sp_core::sr25519::vrf::VrfSignature, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum AllowedSlots { - #[codec(index = 0)] - PrimarySlots, - #[codec(index = 1)] - PrimaryAndSecondaryPlainSlots, - #[codec(index = 2)] - PrimaryAndSecondaryVRFSlots, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BabeEpochConfiguration { - pub c: (::core::primitive::u64, ::core::primitive::u64), - pub allowed_slots: runtime_types::sp_consensus_babe::AllowedSlots, - } - } - pub mod sp_consensus_grandpa { - use super::runtime_types; - pub mod app { - use super::runtime_types; + Primary(runtime_types::sp_consensus_babe::digests::PrimaryPreDigest), + #[codec(index = 2)] + SecondaryPlain( + runtime_types::sp_consensus_babe::digests::SecondaryPlainPreDigest, + ), + #[codec(index = 3)] + SecondaryVRF(runtime_types::sp_consensus_babe::digests::SecondaryVRFPreDigest), + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -30077,7 +31568,12 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Public(pub runtime_types::sp_core::ed25519::Public); + pub struct PrimaryPreDigest { + pub authority_index: ::core::primitive::u32, + pub slot: runtime_types::sp_consensus_slots::Slot, + pub vrf_output: [::core::primitive::u8; 32usize], + pub vrf_proof: [::core::primitive::u8; 64usize], + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -30091,7 +31587,29 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Signature(pub runtime_types::sp_core::ed25519::Signature); + pub struct SecondaryPlainPreDigest { + pub authority_index: ::core::primitive::u32, + pub slot: runtime_types::sp_consensus_slots::Slot, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SecondaryVRFPreDigest { + pub authority_index: ::core::primitive::u32, + pub slot: runtime_types::sp_consensus_slots::Slot, + pub vrf_output: [::core::primitive::u8; 32usize], + pub vrf_proof: [::core::primitive::u8; 64usize], + } } #[derive( :: subxt :: ext :: codec :: Decode, @@ -30106,23 +31624,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Equivocation<_0, _1> { + pub enum AllowedSlots { #[codec(index = 0)] - Prevote( - runtime_types::finality_grandpa::Equivocation< - runtime_types::sp_consensus_grandpa::app::Public, - runtime_types::finality_grandpa::Prevote<_0, _1>, - runtime_types::sp_consensus_grandpa::app::Signature, - >, - ), + PrimarySlots, #[codec(index = 1)] - Precommit( - runtime_types::finality_grandpa::Equivocation< - runtime_types::sp_consensus_grandpa::app::Public, - runtime_types::finality_grandpa::Precommit<_0, _1>, - runtime_types::sp_consensus_grandpa::app::Signature, - >, - ), + PrimaryAndSecondaryPlainSlots, + #[codec(index = 2)] + PrimaryAndSecondaryVRFSlots, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -30137,9 +31645,9 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct EquivocationProof<_0, _1> { - pub set_id: ::core::primitive::u64, - pub equivocation: runtime_types::sp_consensus_grandpa::Equivocation<_0, _1>, + pub struct BabeEpochConfiguration { + pub c: (::core::primitive::u64, ::core::primitive::u64), + pub allowed_slots: runtime_types::sp_consensus_babe::AllowedSlots, } } pub mod sp_consensus_slots { @@ -30181,6 +31689,60 @@ pub mod api { } pub mod sp_core { use super::runtime_types; + pub mod bounded { + use super::runtime_types; + pub mod bounded_btree_map { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BoundedBTreeMap<_0, _1>(pub ::subxt::utils::KeyedVec<_0, _1>); + } + pub mod bounded_vec { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BoundedVec<_0>(pub ::std::vec::Vec<_0>); + } + pub mod weak_bounded_vec { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>); + } + } pub mod crypto { use super::runtime_types; #[derive( @@ -30246,28 +31808,43 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Signature(pub [::core::primitive::u8; 64usize]); } - pub mod sr25519 { + pub mod offchain { use super::runtime_types; - pub mod vrf { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct VrfSignature { - pub output: [::core::primitive::u8; 32usize], - pub proof: [::core::primitive::u8; 64usize], - } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct OpaqueMultiaddr(pub ::std::vec::Vec<::core::primitive::u8>); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct OpaqueNetworkState { + pub peer_id: runtime_types::sp_core::OpaquePeerId, + pub external_addresses: + ::std::vec::Vec, } + } + pub mod sr25519 { + use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -30310,8 +31887,104 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct OpaquePeerId(pub ::std::vec::Vec<::core::primitive::u8>); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Void {} } + pub mod sp_finality_grandpa { + use super::runtime_types; + pub mod app { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Public(pub runtime_types::sp_core::ed25519::Public); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Signature(pub runtime_types::sp_core::ed25519::Signature); + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Equivocation<_0, _1> { + #[codec(index = 0)] + Prevote( + runtime_types::finality_grandpa::Equivocation< + runtime_types::sp_finality_grandpa::app::Public, + runtime_types::finality_grandpa::Prevote<_0, _1>, + runtime_types::sp_finality_grandpa::app::Signature, + >, + ), + #[codec(index = 1)] + Precommit( + runtime_types::finality_grandpa::Equivocation< + runtime_types::sp_finality_grandpa::app::Public, + runtime_types::finality_grandpa::Precommit<_0, _1>, + runtime_types::sp_finality_grandpa::app::Signature, + >, + ), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct EquivocationProof<_0, _1> { + pub set_id: ::core::primitive::u64, + pub equivocation: runtime_types::sp_finality_grandpa::Equivocation<_0, _1>, + } + } pub mod sp_npos_elections { use super::runtime_types; #[derive( @@ -30996,8 +32669,6 @@ pub mod api { Corruption, #[codec(index = 12)] Unavailable, - #[codec(index = 13)] - RootNotAllowed, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -31052,9 +32723,9 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum TokenError { #[codec(index = 0)] - FundsUnavailable, + NoFunds, #[codec(index = 1)] - OnlyProvider, + WouldDie, #[codec(index = 2)] BelowMinimum, #[codec(index = 3)] @@ -31065,12 +32736,6 @@ pub mod api { Frozen, #[codec(index = 6)] Unsupported, - #[codec(index = 7)] - CannotCreateHold, - #[codec(index = 8)] - NotExpendable, - #[codec(index = 9)] - Blocked, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -31187,6 +32852,21 @@ pub mod api { pub proof_size: ::core::primitive::u64, } } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct OldWeight(pub ::core::primitive::u64); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, diff --git a/pallets/mandate/Cargo.toml b/pallets/mandate/Cargo.toml new file mode 100644 index 000000000..5ac95f19f --- /dev/null +++ b/pallets/mandate/Cargo.toml @@ -0,0 +1,51 @@ +[package] +name = "pallet-mandate" +version = "1.0.0" +edition = "2021" + +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + +[dependencies] +# Substrate +codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] } +scale-info = { version = "2.5.0", default-features = false, features = ["derive"] } +frame-support = { version = "4.0.0-dev", default-features = false } +frame-system = { version = "4.0.0-dev", default-features = false, path = "../system" } +sp-io = { version = "23.0.0", default-features = false } +sp-runtime = { version = "24.0.0", default-features = false } +sp-std = { version = "8.0.0", default-features = false } + +# Benchmarking +frame-benchmarking = { version = "4.0.0-dev", default-features = false, optional = true } + +[dev-dependencies] +sp-core = { version = "21.0.0", default-features = false } +pallet-collective = { version = "4.0.0-dev", default-features = false } +avail-core = { version = "0.5", features = ["runtime"] } + +[features] +default = ["std"] +std = [ + "codec/std", + "frame-benchmarking?/std", + "frame-support/std", + "frame-system/std", + "scale-info/std", + "sp-core/std", + "sp-io/std", + "sp-runtime/std", + "sp-std/std", + "pallet-collective/std", +] +runtime-benchmarks = [ + "frame-benchmarking/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", +] +try-runtime = [ + "frame-support/try-runtime", + "frame-system/try-runtime", + "sp-runtime/try-runtime", +] diff --git a/pallets/mandate/src/benchmarking.rs b/pallets/mandate/src/benchmarking.rs new file mode 100644 index 000000000..295ec0520 --- /dev/null +++ b/pallets/mandate/src/benchmarking.rs @@ -0,0 +1,18 @@ +#![cfg(feature = "runtime-benchmarks")] + +use frame_benchmarking::benchmarks; +use frame_system::RawOrigin; +use sp_std::prelude::*; + +use super::*; +#[allow(unused)] +use crate::Pallet as Mandate; + +benchmarks! { + where_clause { where ::RuntimeCall: From> } + mandate { + let call: ::RuntimeCall = frame_system::Call::remark { remark: vec![] }.into(); + }: _(RawOrigin::Root, Box::new(call)) + + impl_benchmark_test_suite!(Mandate, crate::mock::new_test_ext(), crate::mock::Test); +} diff --git a/pallets/mandate/src/lib.rs b/pallets/mandate/src/lib.rs new file mode 100644 index 000000000..4dc2e7067 --- /dev/null +++ b/pallets/mandate/src/lib.rs @@ -0,0 +1,75 @@ +#![cfg_attr(not(feature = "std"), no_std)] + +#[cfg(feature = "runtime-benchmarks")] +mod benchmarking; +#[cfg(test)] +mod mock; +#[cfg(test)] +mod tests; +mod weights; + +use frame_support::{ + dispatch::{DispatchResultWithPostInfo, GetDispatchInfo, UnfilteredDispatchable}, + pallet_prelude::*, +}; +use frame_system::pallet_prelude::*; +pub use pallet::*; +use sp_std::prelude::*; +pub use weights::WeightInfo; + +#[frame_support::pallet] +pub mod pallet { + use super::*; + + #[pallet::config] + pub trait Config: frame_system::Config { + /// The overarching event type. + type RuntimeEvent: From> + IsType<::RuntimeEvent>; + + /// A sudo-able call. + type RuntimeCall: Parameter + + UnfilteredDispatchable + + GetDispatchInfo; + + /// Type representing the weight of this pallet + type WeightInfo: WeightInfo; + + /// Someone who can call the mandate extrinsic. + type ApprovedOrigin: EnsureOrigin; + } + + #[pallet::pallet] + pub struct Pallet(_); + + #[pallet::call] + impl Pallet { + #[pallet::call_index(0)] + #[pallet::weight({ + let dispatch_info = call.get_dispatch_info(); + ( + T::WeightInfo::mandate().saturating_add(dispatch_info.weight), + dispatch_info.class + ) + })] + pub fn mandate( + origin: OriginFor, + call: Box<::RuntimeCall>, + ) -> DispatchResultWithPostInfo { + T::ApprovedOrigin::ensure_origin(origin)?; + + let res = call.dispatch_bypass_filter(frame_system::RawOrigin::Root.into()); + Self::deposit_event(Event::RootOp { + result: res.map(|_| ()).map_err(|e| e.error), + }); + + // Sudo user does not pay a fee. + Ok(Pays::No.into()) + } + } + #[pallet::event] + #[pallet::generate_deposit(pub(super) fn deposit_event)] + pub enum Event { + /// A root operation was executed, show result + RootOp { result: DispatchResult }, + } +} diff --git a/pallets/mandate/src/mock.rs b/pallets/mandate/src/mock.rs new file mode 100644 index 000000000..788c18d78 --- /dev/null +++ b/pallets/mandate/src/mock.rs @@ -0,0 +1,116 @@ +use frame_support::{ + pallet_prelude::Weight, + parameter_types, + traits::{EitherOf, EnsureOrigin}, +}; +use frame_system::EnsureRoot; +use sp_core::H256; +use sp_runtime::{ + traits::{BlakeTwo256, ConstU32, IdentityLookup}, + BuildStorage, +}; + +use crate::{self as pallet_mandate}; + +type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; +type Block = frame_system::mocking::MockDaBlock; +type BlockNumber = u32; +type AccountId = u32; + +frame_support::construct_runtime!( + pub struct Test { + System: frame_system, + TechnicalCommittee: pallet_collective, + Mandate: pallet_mandate, + } +); + +parameter_types! { + pub const BlockHashCount: u32 = 250; + pub BlockWeights: frame_system::limits::BlockWeights = + frame_system::limits::BlockWeights::simple_max(Weight::from_parts(1_024, 0)); + pub static ExistentialDeposit: u64 = 0; +} + +impl frame_system::Config for Test { + type AccountData = (); + type AccountId = AccountId; + type BaseCallFilter = frame_support::traits::Everything; + type Block = Block; + type BlockHashCount = BlockHashCount; + type BlockLength = (); + type BlockWeights = (); + type DbWeight = (); + type Hash = H256; + type Hashing = BlakeTwo256; + type HeaderExtensionBuilder = frame_system::header_builder::da::HeaderExtensionBuilder; + type Lookup = IdentityLookup; + type MaxConsumers = ConstU32<16>; + type Nonce = u64; + type OnKilledAccount = (); + type OnNewAccount = (); + type OnSetCode = (); + type PalletInfo = PalletInfo; + type Randomness = frame_system::test_utils::TestRandomness; + type RuntimeCall = RuntimeCall; + type RuntimeEvent = RuntimeEvent; + type RuntimeOrigin = RuntimeOrigin; + type SS58Prefix = (); + type SubmittedDataExtractor = (); + type SystemWeightInfo = (); + type UncheckedExtrinsic = UncheckedExtrinsic; + type Version = (); +} + +parameter_types! { + pub const CouncilMotionDuration: BlockNumber = 10; + pub const CouncilMaxProposals: u32 = 100; + pub const CouncilMaxMembers: u32 = 100; + pub const MaxProposalWeight: Weight = Weight::MAX; +} + +impl pallet_collective::Config for Test { + type DefaultVote = pallet_collective::PrimeDefaultVote; + type MaxMembers = CouncilMaxMembers; + type MaxProposalWeight = MaxProposalWeight; + type MaxProposals = CouncilMaxProposals; + type MotionDuration = CouncilMotionDuration; + type Proposal = RuntimeCall; + type RuntimeEvent = RuntimeEvent; + type RuntimeOrigin = RuntimeOrigin; + type SetMembersOrigin = EnsureRoot; + type WeightInfo = (); +} + +impl pallet_mandate::Config for Test { + type ApprovedOrigin = EitherOf, HalfOfTechnicalCommittee>; + type RuntimeCall = RuntimeCall; + type RuntimeEvent = RuntimeEvent; + type WeightInfo = (); +} + +pub struct HalfOfTechnicalCommittee; +impl EnsureOrigin for HalfOfTechnicalCommittee +where + OuterOrigin: Into, OuterOrigin>> + + From>, +{ + type Success = (); + + fn try_origin(o: OuterOrigin) -> Result { + o.into().and_then(|o| match o { + pallet_collective::RawOrigin::Members(n, m) if n * 2u32 >= 1u32 * m => Ok(()), + r => Err(OuterOrigin::from(r)), + }) + } +} + +/// Create new externalities for `Mandate` module tests. +pub fn new_test_ext() -> sp_io::TestExternalities { + let t = frame_system::GenesisConfig::::default() + .build_storage() + .unwrap(); + let mut ext = sp_io::TestExternalities::new(t); + ext.execute_with(|| System::set_block_number(1)); + ext +} diff --git a/pallets/mandate/src/tests.rs b/pallets/mandate/src/tests.rs new file mode 100644 index 000000000..65f665cbc --- /dev/null +++ b/pallets/mandate/src/tests.rs @@ -0,0 +1,107 @@ +use frame_support::{assert_noop, assert_ok}; +use frame_system::RawOrigin; + +use crate::{ + mock::{new_test_ext, Mandate, RuntimeCall, RuntimeOrigin, System, TechnicalCommittee}, + *, +}; + +const ALICE: u32 = 1u32; +const BOB: u32 = 2u32; +const DAVID: u32 = 3u32; + +#[test] +fn mandate_can_be_called_with_sudo() { + new_test_ext().execute_with(|| { + // Goal: Adding new members to TC via Mandate call. + + // Checking. Making sure that we actually add new members. + let old_members = TechnicalCommittee::members(); + let new_members = [ALICE, BOB, DAVID].to_vec(); + assert_ne!(new_members, old_members); + + // Setting up our call. `old_count` is not really important in this case. + let privileged_call = pallet_collective::Call::set_members { + new_members: new_members.clone(), + prime: None, + old_count: 0, + }; + let call = Box::new(RuntimeCall::TechnicalCommittee(privileged_call)); + + // The Call + let o = RuntimeOrigin::from(RawOrigin::Root); + assert_ok!(Mandate::mandate(o, call)); + + // Checking that the storage has changed + assert_eq!(TechnicalCommittee::members(), new_members); + + // Checking Events + System::assert_last_event(Event::RootOp { result: Ok(()) }.into()); + }); +} + +#[test] +fn mandate_can_be_called_with_technical_committee() { + new_test_ext().execute_with(|| { + // Goal: Adding new members to TC via Mandate call. + + // Making Alice the only members of TC + let sudo = RuntimeOrigin::from(RawOrigin::Root); + assert_ok!(TechnicalCommittee::set_members( + sudo, + [ALICE].to_vec(), + None, + 0 + )); + + // Create Proposal + let new_members = [ALICE, BOB].to_vec(); + let alice_o = RuntimeOrigin::from(RawOrigin::Signed(ALICE)); + let privileged_call = pallet_collective::Call::set_members { + new_members: new_members.clone(), + prime: None, + old_count: 0, + }; + let inner_call = Box::new(RuntimeCall::TechnicalCommittee(privileged_call)); + let outer_call = RuntimeCall::Mandate(crate::pallet::Call::mandate { call: inner_call }); + let proposal = Box::new(outer_call); + let length_bound = proposal.encoded_size() as u32 + 1; + + // The Call. Since TC has only one member, this proposal will be immediately executed. + let res = TechnicalCommittee::propose(alice_o, 1, proposal, length_bound); + assert_ok!(res); + + // Checking that the storage has changed + assert_eq!(TechnicalCommittee::members(), new_members); + + // Checking Events + System::assert_has_event(Event::RootOp { result: Ok(()) }.into()); + }); +} + +#[test] +fn mandate_can_not_be_called_with_normal_signed_origins() { + new_test_ext().execute_with(|| { + // Goal: Adding new members to TC via Mandate call. + + // Checking. Making sure that we actually add new members. + let old_members = TechnicalCommittee::members(); + let new_members = [ALICE, BOB, DAVID].to_vec(); + assert_ne!(new_members, old_members); + + // Setting up our call. `old_count` is not really important in this case. + let privileged_call = pallet_collective::Call::set_members { + new_members: new_members.clone(), + prime: None, + old_count: 0, + }; + let call = Box::new(RuntimeCall::TechnicalCommittee(privileged_call)); + + // The Call + let o = RuntimeOrigin::from(RawOrigin::Signed(ALICE)); + assert_noop!( + Mandate::mandate(o, call), + sp_runtime::DispatchError::BadOrigin + ); + }); +} diff --git a/pallets/mandate/src/weights.rs b/pallets/mandate/src/weights.rs new file mode 100644 index 000000000..00746d878 --- /dev/null +++ b/pallets/mandate/src/weights.rs @@ -0,0 +1,71 @@ +// This file is part of Substrate. + +// Copyright (C) 2022 Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for pallet_mandate +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-09-04, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `fedora`, CPU: `13th Gen Intel(R) Core(TM) i7-13700K` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/data-avail +// benchmark +// pallet +// --chain=dev +// --steps=50 +// --repeat=20 +// --pallet=pallet_mandate +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --heap-pages=4096 +// --header=./HEADER-APACHE2 +// --log=warn +// --output +// ./output/pallet_mandate_weights.rs +// --template +// ./.maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use sp_std::marker::PhantomData; + +/// Weight functions needed for pallet_mandate. +pub trait WeightInfo { + fn mandate() -> Weight; +} + +/// Weights for pallet_mandate using the Data Avaiability node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl WeightInfo for SubstrateWeight { + fn mandate() -> Weight { + // Minimum execution time: 10_211 nanoseconds. + Weight::from_parts(10_586_000, 0) + } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + fn mandate() -> Weight { + // Minimum execution time: 10_211 nanoseconds. + Weight::from_parts(10_586_000, 0) + } +} diff --git a/pallets/system/benchmarking/Cargo.toml b/pallets/system/benchmarking/Cargo.toml index e813401aa..bd4328e4e 100644 --- a/pallets/system/benchmarking/Cargo.toml +++ b/pallets/system/benchmarking/Cargo.toml @@ -17,7 +17,7 @@ avail-core = { version = "0.5", default-features = false, features = ["runtime"] # Substrate codec = { package = "parity-scale-codec", version = "3", default-features = false } -scale-info = { version = "2.1.1", default-features = false, features = ["derive"] } +scale-info = { version = "2.5.0", default-features = false, features = ["derive"] } frame-benchmarking = { version = "4.0.0-dev", default-features = false } frame-support = { version = "4.0.0-dev", default-features = false } frame-system = { path = "../", default-features = false } diff --git a/pallets/system/src/limits.rs b/pallets/system/src/limits.rs index aa36e597c..5db563604 100644 --- a/pallets/system/src/limits.rs +++ b/pallets/system/src/limits.rs @@ -44,6 +44,7 @@ use static_assertions::const_assert; /// Block length limit configuration. #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] +#[cfg_attr(feature = "serde", serde(rename_all = "camelCase"))] #[derive(RuntimeDebug, PartialEq, Clone, PassByCodec, MaxEncodedLen)] pub struct BlockLength { /// Maximal total length in bytes for each extrinsic class. diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index aef622f4a..ea87f48df 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -56,7 +56,7 @@ sp-std = { version = "8.0.0", default-features = false } ## frame dependencies frame-support = { version = "4.0.0-dev", default-features = false } frame-system = { path = "../pallets/system", default-features = false, features = ["serde"] } -frame-executive = { version = "4.0.0-dev", default-features = false } +frame-executive = { path = "../pallets/executive", default-features = false } frame-try-runtime = { version = "0.10.0-dev", default-features = false, optional = true } pallet-balances = { version = "4.0.0-dev", default-features = false } @@ -90,6 +90,9 @@ pallet-multisig = { version = "4.0.0-dev", default-features = false } pallet-child-bounties = { version = "4.0.0-dev", default-features = false } pallet-preimage = { version = "4.0.0-dev", default-features = false } pallet-nomination-pools = { version = "1", default-features = false } +pallet-identity = { version = "4.0.0-dev", default-features = false } + +pallet-mandate = { path = "../pallets/mandate", default-features = false } ## RPCs pallet-transaction-payment-rpc-runtime-api = { version = "4.0.0-dev", default-features = false } @@ -178,11 +181,14 @@ std = [ "sp-consensus-grandpa/std", "sp-io/std", "pallet-child-bounties/std", + "pallet-identity/std", + "da-control/std", "kate/std", "nomad-updater-manager/std", "nomad-home/std", "nomad-da-bridge/std", + "pallet-mandate/std", "sp-npos-elections/std" ] @@ -219,6 +225,8 @@ runtime-benchmarks = [ "pallet-treasury/runtime-benchmarks", "pallet-utility/runtime-benchmarks", "frame-system-benchmarking/runtime-benchmarks", + "pallet-identity/runtime-benchmarks", + "pallet-mandate/runtime-benchmarks", "nomad-updater-manager/runtime-benchmarks" ] @@ -259,6 +267,8 @@ try-runtime = [ "pallet-nomination-pools/try-runtime", "pallet-transaction-payment/try-runtime", "pallet-tips/try-runtime", + "pallet-identity/try-runtime", "avail-core/try-runtime", + "pallet-mandate/try-runtime", "sp-runtime/try-runtime", ] diff --git a/runtime/src/apis.rs b/runtime/src/apis.rs index 844611be0..42574a7ec 100644 --- a/runtime/src/apis.rs +++ b/runtime/src/apis.rs @@ -18,6 +18,8 @@ use sp_runtime::{ use sp_std::{borrow::Cow, vec::Vec}; use sp_version::RuntimeVersion; +#[allow(unused)] +use crate::Identity; use crate::{ constants, mmr, AccountId, AuthorityDiscovery, Babe, Balance, Block, BlockNumber, EpochDuration, Executive, Grandpa, Historical, Index, InherentDataExt, KeyTypeId, Mmr, diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 801fd7ead..684e0c3c3 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -24,6 +24,8 @@ #![feature(result_option_inspect)] #![allow(macro_expanded_macro_exports_accessed_by_absolute_paths)] +mod weights; + use codec::Decode; use frame_election_provider_support::{ onchain, BalancingConfig, ElectionDataProvider, SequentialPhragmen, VoteWeight, @@ -959,6 +961,48 @@ impl nomad_da_bridge::Config for Runtime { type WeightInfo = nomad_da_bridge::weights::SubstrateWeight; } +parameter_types! { + pub const BasicDeposit: Balance = 10 * AVL; + pub const FieldDeposit: Balance = 250 * CENTS; + pub const SubAccountDeposit: Balance = 2 * AVL; + pub const MaxSubAccounts: u32 = 100; + pub const MaxAdditionalFields: u32 = 100; + pub const MaxRegistrars: u32 = 20; +} + +impl pallet_identity::Config for Runtime { + /// The amount held on deposit for a registered identity. + type BasicDeposit = BasicDeposit; + type Currency = Balances; + /// The amount held on deposit per additional field for a registered identity + type FieldDeposit = FieldDeposit; + /// The origin which may forcibly set or remove a name. Root can always do this. + type ForceOrigin = EnsureRootOrHalfCouncil; + /// Maximum number of additional fields that may be stored in an ID. + type MaxAdditionalFields = MaxAdditionalFields; + /// Maxmimum number of registrars allowed in the system. + type MaxRegistrars = MaxRegistrars; + /// The maximum number of sub-accounts allowed per identified account. + type MaxSubAccounts = MaxSubAccounts; + /// The origin which may add or remove registrars. Root can always do this. + type RegistrarOrigin = EnsureRootOrHalfCouncil; + type RuntimeEvent = RuntimeEvent; + type Slashed = Treasury; + /// The amount held on deposit for a registered subaccount. + type SubAccountDeposit = SubAccountDeposit; + type WeightInfo = pallet_identity::weights::SubstrateWeight; +} + +impl pallet_mandate::Config for Runtime { + type ApprovedOrigin = EitherOfDiverse< + EnsureRoot, + pallet_collective::EnsureProportionMoreThan, + >; + type RuntimeCall = RuntimeCall; + type RuntimeEvent = RuntimeEvent; + type WeightInfo = weights::pallet_mandate::WeightInfo; +} + // TODO @miguel Aline this with previous order and ID to keep the compatibility. // Create the runtime by composing the FRAME pallets that were previously configured. construct_runtime!( @@ -1009,6 +1053,8 @@ construct_runtime!( Multisig: pallet_multisig = 34, VoterList: pallet_bags_list:: = 35, NominationPools: pallet_nomination_pools = 36, + Identity: pallet_identity = 37, + Mandate: pallet_mandate = 38, } ); @@ -1054,6 +1100,8 @@ mod benches { [da_control, $crate::DataAvailability] [nomad_home, $crate::NomadHome] [nomad_da_bridge, $crate::NomadDABridge] + [pallet_identity, $crate::Identity] + [pallet_mandate, $crate::Mandate] ); } @@ -1130,6 +1178,8 @@ mod tests { as TryState< BlockNumber, >>::try_state(block, All)?; + as TryState>::try_state(block, All)?; + as TryState>::try_state(block, All)?; as TryState>::try_state(block, All) } diff --git a/runtime/src/migration.rs b/runtime/src/migration.rs index 87f337701..384db3eed 100644 --- a/runtime/src/migration.rs +++ b/runtime/src/migration.rs @@ -25,110 +25,223 @@ use sp_runtime::TryRuntimeError; #[cfg(feature = "try-runtime")] use sp_std::vec::Vec; -use crate::{Bounties, RocksDbWeight, Runtime, Weight}; +use crate::{Bounties, NominationPools, Runtime, Weight}; -// Migrations that set `StorageVersion`s which was missed to set. -pub struct SetStorageVersions; - -impl OnRuntimeUpgrade for SetStorageVersions { - fn on_runtime_upgrade() -> Weight { - let storage_version = Bounties::on_chain_storage_version(); - if storage_version < 4 { - StorageVersion::new(4).put::(); - } - - RocksDbWeight::get().reads_writes(1, 1) - } -} -pub struct NominationPoolsMigrationV4OldPallet; +struct NominationPoolsMigrationV4OldPallet; impl Get for NominationPoolsMigrationV4OldPallet { fn get() -> Perbill { Perbill::zero() } } -/// Implements `OnRuntimeUpgrade` trait for upstream migrations -pub type UpstreamMigrations = ( - pallet_im_online::migration::v1::Migration, - pallet_offences::migration::v1::MigrateToV1, - pallet_nomination_pools::migration::v4::MigrateV3ToV5< - Runtime, - NominationPoolsMigrationV4OldPallet, - >, - pallet_scheduler::migration::v3::MigrateToV4, - SetStorageVersions, -); - /// Implements `OnRuntimeUpgrade` trait. pub struct Migration {} - impl OnRuntimeUpgrade for Migration { - fn on_runtime_upgrade() -> Weight { nomination_pools::migrate() } + fn on_runtime_upgrade() -> Weight { + let weight1 = pallet_im_online::migration::v1::Migration::::on_runtime_upgrade(); + let weight2 = pallet_offences::migration::v1::MigrateToV1::::on_runtime_upgrade(); + let weight3 = nomination_pools::v1_to_v3::on_runtime_upgrade(); + let weight4 = pallet_nomination_pools::migration::v4::MigrateV3ToV5::< + Runtime, + NominationPoolsMigrationV4OldPallet, + >::on_runtime_upgrade(); + let weight5 = scheduler::remove_corrupt_agenda_and_v3_to_v4::on_runtime_upgrade(); + let weight6 = bounties::v1_to_v4::on_runtime_upgrade(); + + weight1 + .saturating_add(weight2) + .saturating_add(weight3) + .saturating_add(weight4) + .saturating_add(weight5) + .saturating_add(weight6) + } #[cfg(feature = "try-runtime")] - fn pre_upgrade() -> Result, TryRuntimeError> { Ok(nomination_pools::pre_upgrade()?) } + fn pre_upgrade() -> Result, TryRuntimeError> { + bounties::v1_to_v4::pre_upgrade()?; + nomination_pools::v1_to_v3::pre_upgrade()?; + + let state1 = pallet_im_online::migration::v1::Migration::::pre_upgrade()?; + let state2 = pallet_offences::migration::v1::MigrateToV1::::pre_upgrade()?; + let state3 = pallet_nomination_pools::migration::v4::MigrateV3ToV5::< + Runtime, + NominationPoolsMigrationV4OldPallet, + >::pre_upgrade()?; + let state4 = scheduler::remove_corrupt_agenda_and_v3_to_v4::pre_upgrade()?; + + let combined_state = (state1, state2, state3, state4).encode(); + + Ok(combined_state) + } #[cfg(feature = "try-runtime")] - fn post_upgrade(prev_count: Vec) -> Result<(), TryRuntimeError> { - Ok(nomination_pools::post_upgrade(prev_count)?) + fn post_upgrade(state: Vec) -> Result<(), TryRuntimeError> { + bounties::v1_to_v4::post_upgrade(sp_std::vec![])?; + nomination_pools::v1_to_v3::post_upgrade(sp_std::vec![])?; + + let (state1, state2, state3, state4): (Vec, Vec, Vec, Vec) = + Decode::decode(&mut &state[..]).expect("Encoded state is always a valid tuple; qed"); + + pallet_im_online::migration::v1::Migration::::post_upgrade(state1)?; + pallet_offences::migration::v1::MigrateToV1::::post_upgrade(state2)?; + pallet_nomination_pools::migration::v4::MigrateV3ToV5::< + Runtime, + NominationPoolsMigrationV4OldPallet, + >::post_upgrade(state3)?; + scheduler::remove_corrupt_agenda_and_v3_to_v4::post_upgrade(state4)?; + + Ok(()) } } -mod nomination_pools { +mod scheduler { use super::*; - use crate::Runtime; - /// The current storage version. - const STORAGE_VERSION: StorageVersion = StorageVersion::new(1); + // We remove the calls that got scheduler but never triggered, they are not decodable and make the migration fail + pub mod remove_corrupt_agenda_and_v3_to_v4 { + use super::*; + use crate::Runtime; + + const CORRUPTED_AGENDAS: [u32; 4] = [38_674, 86_664, 124_473, 128_931]; + + #[cfg(feature = "try-runtime")] + pub fn pre_upgrade() -> Result, &'static str> { + let agendas = pallet_scheduler::Agenda::::iter().count() as u32; + let mut corrupted_agendas: u32 = 0; + for block in &CORRUPTED_AGENDAS { + if pallet_scheduler::Agenda::::contains_key(block) { + corrupted_agendas += 1; + } + } - /// Wrapper for all migrations of this pallet. - pub(crate) fn migrate() -> Weight { - let onchain_version = Pallet::::on_chain_storage_version(); - let mut weight: Weight = Weight::zero(); + log::info!("Number of agendas: {}", agendas); + log::info!("Number of corrupted agendas: {}", corrupted_agendas); - if onchain_version < 1 { - weight = weight.saturating_add(v0_to_v1::migrate()); + // This print out some error logs cause 4 corrupted agendas cannot and should not be migrated + // let _ = pallet_scheduler::migration::v3::MigrateToV4::::pre_upgrade(); + + let encoded_data = (agendas, corrupted_agendas).encode(); + Ok(encoded_data) } - STORAGE_VERSION.put::>(); - weight.saturating_add(::DbWeight::get().writes(1)) + pub fn on_runtime_upgrade() -> Weight { + let weight: Weight = Weight::zero(); + + for block in &CORRUPTED_AGENDAS { + if pallet_scheduler::Agenda::::contains_key(block) { + pallet_scheduler::Agenda::::remove(block); + weight.saturating_add( + ::DbWeight::get().reads_writes(1, 1), + ); + log::info!("Removed agenda at block: {:?}", block); + } else { + weight.saturating_add( + ::DbWeight::get().reads(1), + ); + log::info!("No agenda at block: {:?}", block); + } + } + + let migration_weight = + pallet_scheduler::migration::v3::MigrateToV4::::on_runtime_upgrade(); + + weight.saturating_add(migration_weight) + } + + #[cfg(feature = "try-runtime")] + pub fn post_upgrade(state: Vec) -> Result<(), TryRuntimeError> { + let (agendas, corrupted_agendas_blocks): (u32, u32) = + Decode::decode(&mut &state[..]).expect("Encoded data is always a valid tuple; qed"); + let valid_agendas = agendas - corrupted_agendas_blocks; + let current_agendas = pallet_scheduler::Agenda::::iter().count() as u32; + + ensure!( + current_agendas == valid_agendas, + "Corrupted agendas did not get cleared" + ); + let encoded_data = (valid_agendas).encode(); + pallet_scheduler::migration::v3::MigrateToV4::::post_upgrade(encoded_data)?; + + Ok(()) + } } +} - #[cfg(feature = "try-runtime")] - pub(crate) fn pre_upgrade() -> Result, &'static str> { Ok(sp_std::vec![]) } +mod bounties { + use super::*; - #[cfg(feature = "try-runtime")] - pub(crate) fn post_upgrade(_state: Vec) -> Result<(), &'static str> { - use crate::constants::nomination_pools::*; - - ensure!( - MinJoinBond::::get() == MIN_JOIN_BOND, - "Expected `nomination_pools::MinJoinBond == 1 * AVL`" - ); - ensure!( - MinCreateBond::::get() == MIN_CREATE_BOND, - "Expected `nomination_pools::MinCreateBond == 10 * AVL`" - ); - ensure!( - MaxPools::::get() == Some(MAX_POOLS), - "Expected `nomination_pools::MaxPools == 16`" - ); - ensure!( - MaxPoolMembersPerPool::::get() == Some(MAX_MEMBERS_PER_POOL), - "Expected `nomination_pools::MaxPoolMembersPerPool == 100`" - ); - ensure!( - MaxPoolMembers::::get() == Some(MAX_MEMBERS), - "Expected `nomination_pools::MaxMembers == 1600`" - ); + // Migrations that set `StorageVersion`s which was missed to set. + pub mod v1_to_v4 { + use super::*; - Ok(()) + #[cfg(feature = "try-runtime")] + pub fn pre_upgrade() -> Result, &'static str> { + let storage_version = Bounties::on_chain_storage_version(); + log::info!("Old bounties storage version: {:?}", storage_version); + Ok(sp_std::vec![]) + } + + // Here we update the storage version to be consistent even if pallet was initialized correctly + pub fn on_runtime_upgrade() -> Weight { + let storage_version = Bounties::on_chain_storage_version(); + if storage_version < 4 { + StorageVersion::new(4).put::(); + } + + ::DbWeight::get().reads_writes(1, 1) + } + + #[cfg(feature = "try-runtime")] + pub fn post_upgrade(_: Vec) -> Result<(), &'static str> { + let storage_version = Bounties::on_chain_storage_version(); + log::info!("New bounties storage version: {:?}", storage_version); + Ok(()) + } } +} - mod v0_to_v1 { +mod nomination_pools { + use super::*; + + #[allow(dead_code)] + pub mod v0_to_v1 { use super::*; - use crate::constants::nomination_pools::*; + use crate::{constants::nomination_pools::*, Runtime}; + + /// The current storage version. + pub const STORAGE_VERSION: StorageVersion = StorageVersion::new(1); + + #[cfg(feature = "try-runtime")] + pub(crate) fn pre_upgrade() -> Result, &'static str> { Ok(sp_std::vec![]) } + + #[cfg(feature = "try-runtime")] + pub(crate) fn post_upgrade(_state: Vec) -> Result<(), &'static str> { + use crate::constants::nomination_pools::*; + + ensure!( + MinJoinBond::::get() == MIN_JOIN_BOND, + "Expected `nomination_pools::MinJoinBond == 1 * AVL`" + ); + ensure!( + MinCreateBond::::get() == MIN_CREATE_BOND, + "Expected `nomination_pools::MinCreateBond == 10 * AVL`" + ); + ensure!( + MaxPools::::get() == Some(MAX_POOLS), + "Expected `nomination_pools::MaxPools == 16`" + ); + ensure!( + MaxPoolMembersPerPool::::get() == Some(MAX_MEMBERS_PER_POOL), + "Expected `nomination_pools::MaxPoolMembersPerPool == 100`" + ); + ensure!( + MaxPoolMembers::::get() == Some(MAX_MEMBERS), + "Expected `nomination_pools::MaxMembers == 1600`" + ); + + Ok(()) + } /// It sets `min_create_bond = 10 AVL` and - pub(crate) fn migrate() -> Weight { + pub(crate) fn on_runtime_upgrade() -> Weight { log::info!(target: "runtime::migration", "Nomination pools migration from V0 to V1"); MinJoinBond::::put(MIN_JOIN_BOND); MinCreateBond::::put(MIN_CREATE_BOND); @@ -138,5 +251,53 @@ mod nomination_pools { ::DbWeight::get().writes(5u64) } + + /// Wrapper for all migrations of this pallet. + pub(crate) fn migrate() -> Weight { + let onchain_version = Pallet::::on_chain_storage_version(); + let mut weight: Weight = Weight::zero(); + + if onchain_version < 1 { + weight = weight.saturating_add(v0_to_v1::on_runtime_upgrade()); + } + + v0_to_v1::STORAGE_VERSION.put::>(); + weight.saturating_add(::DbWeight::get().writes(1)) + } + } + + // Migrations that set `StorageVersion`s which was missed to set. + pub mod v1_to_v3 { + use super::*; + + #[cfg(feature = "try-runtime")] + pub fn pre_upgrade() -> Result, &'static str> { + let storage_version = NominationPools::on_chain_storage_version(); + log::info!( + "Old nomination pools storage version: {:?}", + storage_version + ); + Ok(sp_std::vec![]) + } + + // Here we update the storage version to be consistent even if pallet was initialized correctly + pub fn on_runtime_upgrade() -> Weight { + let storage_version = NominationPools::on_chain_storage_version(); + if storage_version < 3 { + StorageVersion::new(3).put::(); + } + + ::DbWeight::get().reads_writes(1, 1) + } + + #[cfg(feature = "try-runtime")] + pub fn post_upgrade(_: Vec) -> Result<(), &'static str> { + let storage_version = NominationPools::on_chain_storage_version(); + log::info!( + "New nomination pools storage version: {:?}", + storage_version + ); + Ok(()) + } } } diff --git a/runtime/src/primitives.rs b/runtime/src/primitives.rs index 4e2e308ff..9c86fbf51 100644 --- a/runtime/src/primitives.rs +++ b/runtime/src/primitives.rs @@ -77,7 +77,7 @@ pub type Executive = frame_executive::Executive< /// All migrations executed on runtime upgrade as a nested tuple of types implementing /// `OnRuntimeUpgrade`. -type Migrations = (migration::UpstreamMigrations,); +type Migrations = (migration::Migration,); /// ID type for named reserves. pub type ReserveIdentifier = [u8; 8]; diff --git a/runtime/src/weights/mod.rs b/runtime/src/weights/mod.rs new file mode 100644 index 000000000..0c0623924 --- /dev/null +++ b/runtime/src/weights/mod.rs @@ -0,0 +1 @@ +pub mod pallet_mandate; diff --git a/runtime/src/weights/pallet_mandate.rs b/runtime/src/weights/pallet_mandate.rs new file mode 100644 index 000000000..5ae29b316 --- /dev/null +++ b/runtime/src/weights/pallet_mandate.rs @@ -0,0 +1,56 @@ +// This file is part of Substrate. + +// Copyright (C) 2022 Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_mandate` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-09-04, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `fedora`, CPU: `13th Gen Intel(R) Core(TM) i7-13700K` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/data-avail +// benchmark +// pallet +// --chain=dev +// --steps=50 +// --repeat=20 +// --pallet=pallet_mandate +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --heap-pages=4096 +// --header=./HEADER-APACHE2 +// --log=warn +// --output +// ./output/pallet_mandate.rs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `pallet_mandate`. +pub struct WeightInfo(PhantomData); +impl pallet_mandate::WeightInfo for WeightInfo { + fn mandate() -> Weight { + // Minimum execution time: 9_919 nanoseconds. + Weight::from_parts(10_437_000, 0) + } +} From 133ea82ca4615fca6d00a9c048a19ddf0240c9d6 Mon Sep 17 00:00:00 2001 From: Leouarz Date: Sat, 9 Sep 2023 16:24:46 +0200 Subject: [PATCH 52/58] merge upstream, generate subxt metadata, add block to scheduler migration --- avail-subxt/src/api_dev.rs | 4214 ++++++++++-------------------------- runtime/src/migration.rs | 3 +- 2 files changed, 1111 insertions(+), 3106 deletions(-) diff --git a/avail-subxt/src/api_dev.rs b/avail-subxt/src/api_dev.rs index 318255a2f..0a285e043 100644 --- a/avail-subxt/src/api_dev.rs +++ b/avail-subxt/src/api_dev.rs @@ -777,144 +777,139 @@ pub mod api { use ::subxt::metadata::DecodeWithMetadata; let cursor = &mut &pallet_bytes[..]; if pallet_name == "System" { - let variant_error = system::Error::decode_with_metadata(cursor, 125u32, metadata)?; + let variant_error = system::Error::decode_with_metadata(cursor, 130u32, metadata)?; return Ok(Error::System(variant_error)); } if pallet_name == "Utility" { - let variant_error = utility::Error::decode_with_metadata(cursor, 328u32, metadata)?; + let variant_error = utility::Error::decode_with_metadata(cursor, 327u32, metadata)?; return Ok(Error::Utility(variant_error)); } if pallet_name == "Babe" { - let variant_error = babe::Error::decode_with_metadata(cursor, 340u32, metadata)?; + let variant_error = babe::Error::decode_with_metadata(cursor, 343u32, metadata)?; return Ok(Error::Babe(variant_error)); } - if pallet_name == "Authorship" { - let variant_error = - authorship::Error::decode_with_metadata(cursor, 344u32, metadata)?; - return Ok(Error::Authorship(variant_error)); - } if pallet_name == "Indices" { - let variant_error = indices::Error::decode_with_metadata(cursor, 346u32, metadata)?; + let variant_error = indices::Error::decode_with_metadata(cursor, 345u32, metadata)?; return Ok(Error::Indices(variant_error)); } if pallet_name == "Balances" { let variant_error = - balances::Error::decode_with_metadata(cursor, 354u32, metadata)?; + balances::Error::decode_with_metadata(cursor, 360u32, metadata)?; return Ok(Error::Balances(variant_error)); } if pallet_name == "ElectionProviderMultiPhase" { let variant_error = election_provider_multi_phase::Error::decode_with_metadata( - cursor, 367u32, metadata, + cursor, 373u32, metadata, )?; return Ok(Error::ElectionProviderMultiPhase(variant_error)); } if pallet_name == "Staking" { - let variant_error = staking::Error::decode_with_metadata(cursor, 388u32, metadata)?; + let variant_error = staking::Error::decode_with_metadata(cursor, 394u32, metadata)?; return Ok(Error::Staking(variant_error)); } if pallet_name == "Session" { - let variant_error = session::Error::decode_with_metadata(cursor, 393u32, metadata)?; + let variant_error = session::Error::decode_with_metadata(cursor, 399u32, metadata)?; return Ok(Error::Session(variant_error)); } if pallet_name == "Democracy" { let variant_error = - democracy::Error::decode_with_metadata(cursor, 411u32, metadata)?; + democracy::Error::decode_with_metadata(cursor, 417u32, metadata)?; return Ok(Error::Democracy(variant_error)); } if pallet_name == "Council" { - let variant_error = council::Error::decode_with_metadata(cursor, 414u32, metadata)?; + let variant_error = council::Error::decode_with_metadata(cursor, 420u32, metadata)?; return Ok(Error::Council(variant_error)); } if pallet_name == "TechnicalCommittee" { let variant_error = - technical_committee::Error::decode_with_metadata(cursor, 416u32, metadata)?; + technical_committee::Error::decode_with_metadata(cursor, 422u32, metadata)?; return Ok(Error::TechnicalCommittee(variant_error)); } if pallet_name == "Elections" { let variant_error = - elections::Error::decode_with_metadata(cursor, 420u32, metadata)?; + elections::Error::decode_with_metadata(cursor, 426u32, metadata)?; return Ok(Error::Elections(variant_error)); } if pallet_name == "TechnicalMembership" { let variant_error = - technical_membership::Error::decode_with_metadata(cursor, 422u32, metadata)?; + technical_membership::Error::decode_with_metadata(cursor, 428u32, metadata)?; return Ok(Error::TechnicalMembership(variant_error)); } if pallet_name == "Grandpa" { - let variant_error = grandpa::Error::decode_with_metadata(cursor, 426u32, metadata)?; + let variant_error = grandpa::Error::decode_with_metadata(cursor, 432u32, metadata)?; return Ok(Error::Grandpa(variant_error)); } if pallet_name == "Treasury" { let variant_error = - treasury::Error::decode_with_metadata(cursor, 432u32, metadata)?; + treasury::Error::decode_with_metadata(cursor, 438u32, metadata)?; return Ok(Error::Treasury(variant_error)); } if pallet_name == "Sudo" { - let variant_error = sudo::Error::decode_with_metadata(cursor, 433u32, metadata)?; + let variant_error = sudo::Error::decode_with_metadata(cursor, 439u32, metadata)?; return Ok(Error::Sudo(variant_error)); } if pallet_name == "ImOnline" { let variant_error = - im_online::Error::decode_with_metadata(cursor, 441u32, metadata)?; + im_online::Error::decode_with_metadata(cursor, 442u32, metadata)?; return Ok(Error::ImOnline(variant_error)); } if pallet_name == "Scheduler" { let variant_error = - scheduler::Error::decode_with_metadata(cursor, 451u32, metadata)?; + scheduler::Error::decode_with_metadata(cursor, 452u32, metadata)?; return Ok(Error::Scheduler(variant_error)); } if pallet_name == "Bounties" { let variant_error = - bounties::Error::decode_with_metadata(cursor, 455u32, metadata)?; + bounties::Error::decode_with_metadata(cursor, 456u32, metadata)?; return Ok(Error::Bounties(variant_error)); } if pallet_name == "Tips" { - let variant_error = tips::Error::decode_with_metadata(cursor, 457u32, metadata)?; + let variant_error = tips::Error::decode_with_metadata(cursor, 458u32, metadata)?; return Ok(Error::Tips(variant_error)); } if pallet_name == "DataAvailability" { let variant_error = - data_availability::Error::decode_with_metadata(cursor, 459u32, metadata)?; + data_availability::Error::decode_with_metadata(cursor, 460u32, metadata)?; return Ok(Error::DataAvailability(variant_error)); } if pallet_name == "NomadUpdaterManager" { let variant_error = - nomad_updater_manager::Error::decode_with_metadata(cursor, 460u32, metadata)?; + nomad_updater_manager::Error::decode_with_metadata(cursor, 461u32, metadata)?; return Ok(Error::NomadUpdaterManager(variant_error)); } if pallet_name == "NomadHome" { let variant_error = - nomad_home::Error::decode_with_metadata(cursor, 465u32, metadata)?; + nomad_home::Error::decode_with_metadata(cursor, 466u32, metadata)?; return Ok(Error::NomadHome(variant_error)); } if pallet_name == "NomadDABridge" { let variant_error = - nomad_da_bridge::Error::decode_with_metadata(cursor, 466u32, metadata)?; + nomad_da_bridge::Error::decode_with_metadata(cursor, 467u32, metadata)?; return Ok(Error::NomadDABridge(variant_error)); } if pallet_name == "Preimage" { let variant_error = - preimage::Error::decode_with_metadata(cursor, 470u32, metadata)?; + preimage::Error::decode_with_metadata(cursor, 471u32, metadata)?; return Ok(Error::Preimage(variant_error)); } if pallet_name == "Multisig" { let variant_error = - multisig::Error::decode_with_metadata(cursor, 474u32, metadata)?; + multisig::Error::decode_with_metadata(cursor, 475u32, metadata)?; return Ok(Error::Multisig(variant_error)); } if pallet_name == "VoterList" { let variant_error = - voter_list::Error::decode_with_metadata(cursor, 478u32, metadata)?; + voter_list::Error::decode_with_metadata(cursor, 479u32, metadata)?; return Ok(Error::VoterList(variant_error)); } if pallet_name == "NominationPools" { let variant_error = - nomination_pools::Error::decode_with_metadata(cursor, 495u32, metadata)?; + nomination_pools::Error::decode_with_metadata(cursor, 499u32, metadata)?; return Ok(Error::NominationPools(variant_error)); } if pallet_name == "Identity" { let variant_error = - identity::Error::decode_with_metadata(cursor, 507u32, metadata)?; + identity::Error::decode_with_metadata(cursor, 511u32, metadata)?; return Ok(Error::Identity(variant_error)); } Err(::subxt::ext::scale_decode::Error::custom(format!( @@ -1250,9 +1245,9 @@ pub mod api { .hash(); if runtime_metadata_hash != [ - 95u8, 200u8, 63u8, 120u8, 111u8, 95u8, 101u8, 241u8, 126u8, 223u8, 74u8, 198u8, - 208u8, 106u8, 244u8, 239u8, 182u8, 193u8, 50u8, 254u8, 137u8, 50u8, 52u8, 184u8, - 241u8, 228u8, 203u8, 247u8, 193u8, 205u8, 158u8, 38u8, + 74u8, 73u8, 11u8, 210u8, 139u8, 115u8, 23u8, 22u8, 120u8, 16u8, 98u8, 176u8, 185u8, + 72u8, 71u8, 93u8, 31u8, 12u8, 216u8, 219u8, 172u8, 152u8, 112u8, 50u8, 137u8, + 133u8, 239u8, 237u8, 229u8, 228u8, 61u8, 74u8, ] { Err(::subxt::error::MetadataError::IncompatibleCodegen) } else { @@ -2038,9 +2033,9 @@ pub mod api { (), > { ::subxt::storage::address::Address::new_static("System", "Events", vec![], [ - 0u8, 81u8, 218u8, 171u8, 200u8, 86u8, 36u8, 162u8, 95u8, 224u8, 129u8, 1u8, - 186u8, 154u8, 16u8, 159u8, 96u8, 154u8, 146u8, 244u8, 87u8, 2u8, 67u8, - 132u8, 213u8, 74u8, 214u8, 191u8, 15u8, 5u8, 143u8, 46u8, + 135u8, 70u8, 188u8, 138u8, 189u8, 89u8, 46u8, 4u8, 225u8, 244u8, 212u8, + 189u8, 221u8, 105u8, 161u8, 239u8, 176u8, 2u8, 188u8, 39u8, 88u8, 209u8, + 24u8, 183u8, 165u8, 251u8, 104u8, 239u8, 253u8, 88u8, 150u8, 34u8, ]) } @@ -2463,9 +2458,9 @@ pub mod api { calls: ::std::vec::Vec, ) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static("Utility", "batch", types::Batch { calls }, [ - 162u8, 47u8, 212u8, 156u8, 189u8, 80u8, 247u8, 183u8, 13u8, 95u8, 89u8, - 91u8, 228u8, 94u8, 252u8, 248u8, 179u8, 221u8, 187u8, 219u8, 205u8, 255u8, - 91u8, 148u8, 88u8, 145u8, 145u8, 147u8, 85u8, 242u8, 152u8, 85u8, + 220u8, 133u8, 43u8, 120u8, 158u8, 223u8, 27u8, 148u8, 207u8, 167u8, 54u8, + 93u8, 208u8, 199u8, 29u8, 110u8, 176u8, 77u8, 51u8, 216u8, 24u8, 86u8, + 103u8, 71u8, 108u8, 82u8, 226u8, 22u8, 10u8, 20u8, 117u8, 152u8, ]) } @@ -2483,10 +2478,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 247u8, 86u8, 221u8, 216u8, 187u8, 146u8, 164u8, 177u8, 211u8, 27u8, - 66u8, 166u8, 57u8, 127u8, 197u8, 46u8, 35u8, 159u8, 108u8, 119u8, 28u8, - 26u8, 148u8, 43u8, 187u8, 226u8, 159u8, 177u8, 87u8, 255u8, 173u8, - 131u8, + 239u8, 156u8, 200u8, 232u8, 225u8, 151u8, 177u8, 64u8, 199u8, 123u8, + 24u8, 52u8, 146u8, 2u8, 241u8, 222u8, 167u8, 163u8, 114u8, 219u8, + 189u8, 191u8, 40u8, 46u8, 202u8, 193u8, 199u8, 56u8, 174u8, 208u8, + 222u8, 75u8, ], ) } @@ -2501,9 +2496,10 @@ pub mod api { "batch_all", types::BatchAll { calls }, [ - 74u8, 219u8, 12u8, 83u8, 166u8, 178u8, 11u8, 23u8, 33u8, 200u8, 32u8, - 95u8, 108u8, 233u8, 135u8, 170u8, 155u8, 190u8, 242u8, 245u8, 14u8, - 155u8, 7u8, 105u8, 178u8, 38u8, 7u8, 5u8, 205u8, 85u8, 46u8, 115u8, + 185u8, 233u8, 231u8, 241u8, 193u8, 136u8, 5u8, 61u8, 231u8, 118u8, + 125u8, 171u8, 22u8, 38u8, 232u8, 111u8, 246u8, 100u8, 180u8, 49u8, + 91u8, 152u8, 164u8, 72u8, 11u8, 18u8, 158u8, 169u8, 127u8, 166u8, + 110u8, 103u8, ], ) } @@ -2522,10 +2518,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 133u8, 76u8, 140u8, 166u8, 229u8, 105u8, 252u8, 199u8, 30u8, 62u8, - 244u8, 23u8, 208u8, 139u8, 17u8, 44u8, 118u8, 251u8, 185u8, 179u8, - 101u8, 243u8, 189u8, 223u8, 99u8, 217u8, 224u8, 186u8, 201u8, 184u8, - 201u8, 49u8, + 226u8, 139u8, 100u8, 52u8, 85u8, 42u8, 128u8, 91u8, 168u8, 35u8, 121u8, + 33u8, 1u8, 31u8, 236u8, 163u8, 103u8, 101u8, 221u8, 247u8, 145u8, + 227u8, 89u8, 27u8, 77u8, 8u8, 241u8, 118u8, 201u8, 230u8, 233u8, 174u8, ], ) } @@ -2540,10 +2535,9 @@ pub mod api { "force_batch", types::ForceBatch { calls }, [ - 200u8, 88u8, 62u8, 43u8, 145u8, 54u8, 115u8, 198u8, 254u8, 180u8, 76u8, - 192u8, 128u8, 186u8, 167u8, 47u8, 255u8, 200u8, 146u8, 59u8, 212u8, - 248u8, 163u8, 200u8, 237u8, 219u8, 41u8, 157u8, 80u8, 115u8, 217u8, - 137u8, + 155u8, 173u8, 143u8, 165u8, 78u8, 137u8, 69u8, 108u8, 80u8, 119u8, + 86u8, 60u8, 4u8, 197u8, 39u8, 23u8, 193u8, 48u8, 98u8, 84u8, 63u8, + 135u8, 66u8, 165u8, 228u8, 8u8, 16u8, 212u8, 45u8, 6u8, 107u8, 129u8, ], ) } @@ -2562,9 +2556,10 @@ pub mod api { weight, }, [ - 59u8, 40u8, 39u8, 149u8, 111u8, 212u8, 53u8, 94u8, 218u8, 63u8, 231u8, - 77u8, 142u8, 33u8, 55u8, 132u8, 196u8, 197u8, 178u8, 208u8, 236u8, - 193u8, 80u8, 72u8, 86u8, 135u8, 17u8, 182u8, 38u8, 81u8, 73u8, 98u8, + 212u8, 227u8, 1u8, 152u8, 56u8, 137u8, 254u8, 209u8, 221u8, 124u8, + 89u8, 1u8, 218u8, 114u8, 133u8, 15u8, 166u8, 228u8, 234u8, 59u8, 72u8, + 122u8, 173u8, 118u8, 105u8, 108u8, 226u8, 26u8, 203u8, 91u8, 209u8, + 39u8, ], ) } @@ -10407,9 +10402,28 @@ pub mod api { ], ) } + + #[doc = "See [`Pallet::set_metadata`]."] + pub fn set_metadata( + &self, + owner: runtime_types::pallet_democracy::types::MetadataOwner, + maybe_hash: ::core::option::Option<::subxt::utils::H256>, + ) -> ::subxt::tx::Payload { + ::subxt::tx::Payload::new_static( + "Democracy", + "set_metadata", + types::SetMetadata { owner, maybe_hash }, + [ + 192u8, 174u8, 122u8, 229u8, 149u8, 49u8, 155u8, 209u8, 226u8, 255u8, + 46u8, 43u8, 77u8, 164u8, 226u8, 254u8, 207u8, 110u8, 222u8, 131u8, + 220u8, 53u8, 95u8, 170u8, 128u8, 212u8, 236u8, 168u8, 156u8, 29u8, + 151u8, 40u8, + ], + ) + } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_democracy::pallet::Event; pub mod events { use super::runtime_types; @@ -11628,10 +11642,10 @@ pub mod api { length_bound, }, [ - 198u8, 87u8, 116u8, 221u8, 113u8, 19u8, 112u8, 232u8, 174u8, 30u8, - 89u8, 100u8, 201u8, 230u8, 90u8, 71u8, 51u8, 44u8, 160u8, 176u8, 158u8, - 121u8, 104u8, 65u8, 123u8, 210u8, 169u8, 136u8, 1u8, 240u8, 234u8, - 43u8, + 1u8, 38u8, 214u8, 226u8, 97u8, 229u8, 11u8, 242u8, 214u8, 241u8, 236u8, + 153u8, 130u8, 210u8, 175u8, 160u8, 127u8, 82u8, 98u8, 101u8, 63u8, + 153u8, 87u8, 60u8, 224u8, 216u8, 240u8, 157u8, 184u8, 81u8, 44u8, + 237u8, ], ) } @@ -11652,9 +11666,9 @@ pub mod api { length_bound, }, [ - 164u8, 216u8, 6u8, 170u8, 87u8, 172u8, 87u8, 143u8, 0u8, 83u8, 116u8, - 185u8, 238u8, 71u8, 143u8, 46u8, 228u8, 113u8, 246u8, 153u8, 47u8, - 62u8, 43u8, 130u8, 204u8, 242u8, 218u8, 3u8, 194u8, 26u8, 133u8, 25u8, + 148u8, 42u8, 1u8, 63u8, 46u8, 63u8, 176u8, 201u8, 181u8, 83u8, 197u8, + 39u8, 100u8, 27u8, 88u8, 17u8, 58u8, 140u8, 2u8, 63u8, 211u8, 5u8, + 250u8, 61u8, 0u8, 64u8, 99u8, 112u8, 71u8, 13u8, 32u8, 255u8, ], ) } @@ -11937,9 +11951,10 @@ pub mod api { _0.borrow(), )], [ - 245u8, 171u8, 227u8, 191u8, 139u8, 41u8, 19u8, 77u8, 192u8, 167u8, - 33u8, 207u8, 17u8, 75u8, 248u8, 105u8, 251u8, 217u8, 77u8, 169u8, 47u8, - 225u8, 226u8, 70u8, 125u8, 67u8, 110u8, 195u8, 227u8, 52u8, 17u8, 99u8, + 211u8, 81u8, 191u8, 143u8, 109u8, 169u8, 12u8, 12u8, 190u8, 218u8, + 108u8, 146u8, 228u8, 21u8, 63u8, 28u8, 185u8, 152u8, 226u8, 164u8, + 169u8, 85u8, 69u8, 235u8, 226u8, 212u8, 218u8, 115u8, 19u8, 127u8, + 138u8, 178u8, ], ) } @@ -11959,9 +11974,10 @@ pub mod api { "ProposalOf", Vec::new(), [ - 245u8, 171u8, 227u8, 191u8, 139u8, 41u8, 19u8, 77u8, 192u8, 167u8, - 33u8, 207u8, 17u8, 75u8, 248u8, 105u8, 251u8, 217u8, 77u8, 169u8, 47u8, - 225u8, 226u8, 70u8, 125u8, 67u8, 110u8, 195u8, 227u8, 52u8, 17u8, 99u8, + 211u8, 81u8, 191u8, 143u8, 109u8, 169u8, 12u8, 12u8, 190u8, 218u8, + 108u8, 146u8, 228u8, 21u8, 63u8, 28u8, 185u8, 152u8, 226u8, 164u8, + 169u8, 85u8, 69u8, 235u8, 226u8, 212u8, 218u8, 115u8, 19u8, 127u8, + 138u8, 178u8, ], ) } @@ -12281,10 +12297,10 @@ pub mod api { length_bound, }, [ - 198u8, 87u8, 116u8, 221u8, 113u8, 19u8, 112u8, 232u8, 174u8, 30u8, - 89u8, 100u8, 201u8, 230u8, 90u8, 71u8, 51u8, 44u8, 160u8, 176u8, 158u8, - 121u8, 104u8, 65u8, 123u8, 210u8, 169u8, 136u8, 1u8, 240u8, 234u8, - 43u8, + 1u8, 38u8, 214u8, 226u8, 97u8, 229u8, 11u8, 242u8, 214u8, 241u8, 236u8, + 153u8, 130u8, 210u8, 175u8, 160u8, 127u8, 82u8, 98u8, 101u8, 63u8, + 153u8, 87u8, 60u8, 224u8, 216u8, 240u8, 157u8, 184u8, 81u8, 44u8, + 237u8, ], ) } @@ -12305,9 +12321,9 @@ pub mod api { length_bound, }, [ - 164u8, 216u8, 6u8, 170u8, 87u8, 172u8, 87u8, 143u8, 0u8, 83u8, 116u8, - 185u8, 238u8, 71u8, 143u8, 46u8, 228u8, 113u8, 246u8, 153u8, 47u8, - 62u8, 43u8, 130u8, 204u8, 242u8, 218u8, 3u8, 194u8, 26u8, 133u8, 25u8, + 148u8, 42u8, 1u8, 63u8, 46u8, 63u8, 176u8, 201u8, 181u8, 83u8, 197u8, + 39u8, 100u8, 27u8, 88u8, 17u8, 58u8, 140u8, 2u8, 63u8, 211u8, 5u8, + 250u8, 61u8, 0u8, 64u8, 99u8, 112u8, 71u8, 13u8, 32u8, 255u8, ], ) } @@ -12590,9 +12606,10 @@ pub mod api { _0.borrow(), )], [ - 245u8, 171u8, 227u8, 191u8, 139u8, 41u8, 19u8, 77u8, 192u8, 167u8, - 33u8, 207u8, 17u8, 75u8, 248u8, 105u8, 251u8, 217u8, 77u8, 169u8, 47u8, - 225u8, 226u8, 70u8, 125u8, 67u8, 110u8, 195u8, 227u8, 52u8, 17u8, 99u8, + 211u8, 81u8, 191u8, 143u8, 109u8, 169u8, 12u8, 12u8, 190u8, 218u8, + 108u8, 146u8, 228u8, 21u8, 63u8, 28u8, 185u8, 152u8, 226u8, 164u8, + 169u8, 85u8, 69u8, 235u8, 226u8, 212u8, 218u8, 115u8, 19u8, 127u8, + 138u8, 178u8, ], ) } @@ -12612,9 +12629,10 @@ pub mod api { "ProposalOf", Vec::new(), [ - 245u8, 171u8, 227u8, 191u8, 139u8, 41u8, 19u8, 77u8, 192u8, 167u8, - 33u8, 207u8, 17u8, 75u8, 248u8, 105u8, 251u8, 217u8, 77u8, 169u8, 47u8, - 225u8, 226u8, 70u8, 125u8, 67u8, 110u8, 195u8, 227u8, 52u8, 17u8, 99u8, + 211u8, 81u8, 191u8, 143u8, 109u8, 169u8, 12u8, 12u8, 190u8, 218u8, + 108u8, 146u8, 228u8, 21u8, 63u8, 28u8, 185u8, 152u8, 226u8, 164u8, + 169u8, 85u8, 69u8, 235u8, 226u8, 212u8, 218u8, 115u8, 19u8, 127u8, + 138u8, 178u8, ], ) } @@ -15152,10 +15170,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 126u8, 151u8, 82u8, 38u8, 67u8, 149u8, 126u8, 220u8, 107u8, 133u8, - 149u8, 47u8, 46u8, 28u8, 21u8, 239u8, 253u8, 176u8, 231u8, 124u8, - 150u8, 127u8, 72u8, 205u8, 234u8, 45u8, 132u8, 32u8, 184u8, 75u8, 31u8, - 201u8, + 115u8, 211u8, 9u8, 14u8, 126u8, 94u8, 205u8, 184u8, 36u8, 23u8, 96u8, + 244u8, 87u8, 102u8, 70u8, 124u8, 96u8, 70u8, 60u8, 202u8, 38u8, 47u8, + 123u8, 55u8, 24u8, 93u8, 169u8, 85u8, 247u8, 45u8, 112u8, 230u8, ], ) } @@ -15174,9 +15191,10 @@ pub mod api { weight, }, [ - 74u8, 19u8, 83u8, 84u8, 119u8, 0u8, 69u8, 87u8, 11u8, 156u8, 19u8, - 235u8, 170u8, 164u8, 5u8, 144u8, 157u8, 170u8, 106u8, 74u8, 18u8, - 129u8, 250u8, 9u8, 200u8, 52u8, 65u8, 6u8, 213u8, 216u8, 48u8, 174u8, + 49u8, 133u8, 238u8, 204u8, 210u8, 155u8, 88u8, 95u8, 201u8, 135u8, + 189u8, 255u8, 81u8, 67u8, 155u8, 238u8, 79u8, 240u8, 148u8, 174u8, + 32u8, 120u8, 143u8, 123u8, 22u8, 232u8, 100u8, 83u8, 79u8, 84u8, 118u8, + 42u8, ], ) } @@ -15213,9 +15231,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 15u8, 75u8, 186u8, 43u8, 252u8, 87u8, 185u8, 90u8, 17u8, 202u8, 15u8, - 237u8, 18u8, 136u8, 172u8, 49u8, 18u8, 0u8, 204u8, 4u8, 222u8, 46u8, - 177u8, 26u8, 195u8, 241u8, 236u8, 17u8, 154u8, 145u8, 110u8, 83u8, + 171u8, 1u8, 142u8, 53u8, 76u8, 179u8, 179u8, 181u8, 77u8, 118u8, 240u8, + 228u8, 12u8, 121u8, 254u8, 104u8, 40u8, 217u8, 143u8, 138u8, 147u8, + 212u8, 102u8, 69u8, 137u8, 125u8, 201u8, 32u8, 168u8, 31u8, 94u8, + 150u8, ], ) } @@ -16089,10 +16108,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 132u8, 192u8, 19u8, 192u8, 196u8, 62u8, 208u8, 193u8, 23u8, 227u8, - 143u8, 95u8, 218u8, 209u8, 189u8, 183u8, 42u8, 34u8, 213u8, 69u8, - 225u8, 124u8, 11u8, 155u8, 244u8, 82u8, 109u8, 30u8, 182u8, 243u8, - 190u8, 93u8, + 105u8, 180u8, 206u8, 231u8, 176u8, 22u8, 221u8, 120u8, 43u8, 150u8, + 44u8, 204u8, 152u8, 22u8, 118u8, 101u8, 165u8, 245u8, 183u8, 228u8, + 129u8, 166u8, 134u8, 12u8, 174u8, 212u8, 77u8, 239u8, 31u8, 127u8, + 111u8, 133u8, ], ) } @@ -16139,10 +16158,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 182u8, 139u8, 229u8, 211u8, 254u8, 4u8, 93u8, 96u8, 70u8, 109u8, 196u8, - 140u8, 140u8, 184u8, 185u8, 8u8, 196u8, 225u8, 105u8, 183u8, 120u8, - 177u8, 211u8, 40u8, 245u8, 244u8, 71u8, 181u8, 48u8, 74u8, 211u8, - 123u8, + 43u8, 11u8, 8u8, 156u8, 239u8, 243u8, 176u8, 94u8, 154u8, 37u8, 78u8, + 176u8, 83u8, 12u8, 138u8, 79u8, 150u8, 238u8, 29u8, 116u8, 214u8, 57u8, + 211u8, 168u8, 121u8, 77u8, 134u8, 43u8, 72u8, 95u8, 225u8, 222u8, ], ) } @@ -16185,9 +16203,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 151u8, 78u8, 57u8, 186u8, 179u8, 254u8, 164u8, 45u8, 196u8, 198u8, - 144u8, 73u8, 114u8, 8u8, 215u8, 231u8, 83u8, 7u8, 73u8, 139u8, 112u8, - 213u8, 89u8, 19u8, 47u8, 47u8, 136u8, 128u8, 123u8, 131u8, 98u8, 53u8, + 86u8, 137u8, 116u8, 38u8, 238u8, 121u8, 182u8, 136u8, 166u8, 41u8, + 25u8, 157u8, 160u8, 43u8, 48u8, 98u8, 142u8, 89u8, 252u8, 50u8, 103u8, + 214u8, 227u8, 189u8, 37u8, 37u8, 242u8, 199u8, 147u8, 236u8, 92u8, + 39u8, ], ) } @@ -16215,9 +16234,9 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 242u8, 198u8, 254u8, 9u8, 255u8, 227u8, 60u8, 103u8, 3u8, 152u8, 103u8, - 136u8, 162u8, 207u8, 215u8, 105u8, 153u8, 59u8, 77u8, 198u8, 149u8, - 96u8, 87u8, 4u8, 48u8, 178u8, 146u8, 193u8, 157u8, 127u8, 114u8, 63u8, + 11u8, 176u8, 139u8, 184u8, 50u8, 135u8, 66u8, 173u8, 89u8, 244u8, 31u8, + 35u8, 245u8, 198u8, 98u8, 28u8, 193u8, 14u8, 206u8, 74u8, 221u8, 140u8, + 47u8, 94u8, 190u8, 2u8, 152u8, 21u8, 0u8, 192u8, 121u8, 105u8, ], ) } @@ -19540,9 +19559,10 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 208u8, 9u8, 77u8, 122u8, 185u8, 9u8, 5u8, 118u8, 78u8, 129u8, 88u8, - 102u8, 37u8, 175u8, 34u8, 188u8, 7u8, 151u8, 240u8, 237u8, 46u8, 86u8, - 170u8, 103u8, 119u8, 96u8, 163u8, 70u8, 191u8, 88u8, 32u8, 210u8, + 27u8, 55u8, 124u8, 217u8, 104u8, 143u8, 19u8, 237u8, 35u8, 3u8, 224u8, + 74u8, 236u8, 148u8, 238u8, 153u8, 30u8, 114u8, 140u8, 25u8, 212u8, + 99u8, 63u8, 16u8, 122u8, 180u8, 247u8, 104u8, 147u8, 28u8, 202u8, + 114u8, ], ) } @@ -19569,9 +19589,10 @@ pub mod api { max_weight, }, [ - 54u8, 186u8, 227u8, 85u8, 68u8, 154u8, 5u8, 230u8, 152u8, 31u8, 170u8, - 133u8, 186u8, 212u8, 8u8, 252u8, 135u8, 76u8, 235u8, 32u8, 106u8, 50u8, - 233u8, 91u8, 171u8, 25u8, 4u8, 140u8, 218u8, 44u8, 161u8, 155u8, + 161u8, 78u8, 65u8, 172u8, 140u8, 82u8, 98u8, 186u8, 176u8, 164u8, + 226u8, 67u8, 10u8, 126u8, 182u8, 129u8, 173u8, 92u8, 224u8, 8u8, 140u8, + 227u8, 111u8, 61u8, 85u8, 239u8, 65u8, 62u8, 159u8, 251u8, 218u8, + 134u8, ], ) } @@ -22255,7 +22276,7 @@ pub mod api { } pub mod identity { use super::{root_mod, runtime_types}; - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_identity::pallet::Error; #[doc = "Identity pallet declaration."] pub type Call = runtime_types::pallet_identity::pallet::Call; @@ -22608,19 +22629,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { - #[doc = "Add a registrar to the system."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `T::RegistrarOrigin`."] - #[doc = ""] - #[doc = "- `account`: the account of the registrar."] - #[doc = ""] - #[doc = "Emits `RegistrarAdded` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(R)` where `R` registrar-count (governance-bounded and code-bounded)."] - #[doc = "- One storage mutation (codec `O(R)`)."] - #[doc = "- One event."] - #[doc = "# "] + #[doc = "See [`Pallet::add_registrar`]."] pub fn add_registrar( &self, account: ::subxt::utils::MultiAddress< @@ -22640,25 +22649,7 @@ pub mod api { ) } - #[doc = "Set an account's identity information and reserve the appropriate deposit."] - #[doc = ""] - #[doc = "If the account already has identity information, the deposit is taken as part payment"] - #[doc = "for the new deposit."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `info`: The identity information."] - #[doc = ""] - #[doc = "Emits `IdentitySet` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(X + X' + R)`"] - #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)"] - #[doc = " - where `R` judgements-count (registrar-count-bounded)"] - #[doc = "- One balance reserve operation."] - #[doc = "- One storage mutation (codec-read `O(X' + R)`, codec-write `O(X + R)`)."] - #[doc = "- One event."] - #[doc = "# "] + #[doc = "See [`Pallet::set_identity`]."] pub fn set_identity( &self, info: runtime_types::pallet_identity::types::IdentityInfo, @@ -22677,27 +22668,7 @@ pub mod api { ) } - #[doc = "Set the sub-accounts of the sender."] - #[doc = ""] - #[doc = "Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned"] - #[doc = "and an amount `SubAccountDeposit` will be reserved for each item in `subs`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "identity."] - #[doc = ""] - #[doc = "- `subs`: The identity's (new) sub-accounts."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(P + S)`"] - #[doc = " - where `P` old-subs-count (hard- and deposit-bounded)."] - #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] - #[doc = "- At most one balance operations."] - #[doc = "- DB:"] - #[doc = " - `P + S` storage mutations (codec complexity `O(1)`)"] - #[doc = " - One storage read (codec complexity `O(P)`)."] - #[doc = " - One storage write (codec complexity `O(S)`)."] - #[doc = " - One storage-exists (`IdentityOf::contains_key`)."] - #[doc = "# "] + #[doc = "See [`Pallet::set_subs`]."] pub fn set_subs( &self, subs: ::std::vec::Vec<( @@ -22718,24 +22689,7 @@ pub mod api { ) } - #[doc = "Clear an account's identity info and all sub-accounts and return all deposits."] - #[doc = ""] - #[doc = "Payment: All reserved balances on the account are returned."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "identity."] - #[doc = ""] - #[doc = "Emits `IdentityCleared` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(R + S + X)`"] - #[doc = " - where `R` registrar-count (governance-bounded)."] - #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] - #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] - #[doc = "- One balance-unreserve operation."] - #[doc = "- `2` storage reads and `S + 2` storage deletions."] - #[doc = "- One event."] - #[doc = "# "] + #[doc = "See [`Pallet::clear_identity`]."] pub fn clear_identity(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( "Identity", @@ -22750,29 +22704,7 @@ pub mod api { ) } - #[doc = "Request a judgement from a registrar."] - #[doc = ""] - #[doc = "Payment: At most `max_fee` will be reserved for payment to the registrar if judgement"] - #[doc = "given."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] - #[doc = "registered identity."] - #[doc = ""] - #[doc = "- `reg_index`: The index of the registrar whose judgement is requested."] - #[doc = "- `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:"] - #[doc = ""] - #[doc = "```nocompile"] - #[doc = "Self::registrars().get(reg_index).unwrap().fee"] - #[doc = "```"] - #[doc = ""] - #[doc = "Emits `JudgementRequested` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(R + X)`."] - #[doc = "- One balance-reserve operation."] - #[doc = "- Storage: 1 read `O(R)`, 1 mutate `O(X + R)`."] - #[doc = "- One event."] - #[doc = "# "] + #[doc = "See [`Pallet::request_judgement`]."] pub fn request_judgement( &self, reg_index: ::core::primitive::u32, @@ -22790,23 +22722,7 @@ pub mod api { ) } - #[doc = "Cancel a previous request."] - #[doc = ""] - #[doc = "Payment: A previously reserved deposit is returned on success."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] - #[doc = "registered identity."] - #[doc = ""] - #[doc = "- `reg_index`: The index of the registrar whose judgement is no longer requested."] - #[doc = ""] - #[doc = "Emits `JudgementUnrequested` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(R + X)`."] - #[doc = "- One balance-reserve operation."] - #[doc = "- One storage mutation `O(R + X)`."] - #[doc = "- One event"] - #[doc = "# "] + #[doc = "See [`Pallet::cancel_request`]."] pub fn cancel_request( &self, reg_index: ::core::primitive::u32, @@ -22824,19 +22740,7 @@ pub mod api { ) } - #[doc = "Set the fee required for a judgement to be requested from a registrar."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] - #[doc = "of the registrar whose index is `index`."] - #[doc = ""] - #[doc = "- `index`: the index of the registrar whose fee is to be set."] - #[doc = "- `fee`: the new fee."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(R)`."] - #[doc = "- One storage mutation `O(R)`."] - #[doc = "- Benchmark: 7.315 + R * 0.329 µs (min squares analysis)"] - #[doc = "# "] + #[doc = "See [`Pallet::set_fee`]."] pub fn set_fee( &self, index: ::core::primitive::u32, @@ -22855,19 +22759,7 @@ pub mod api { ) } - #[doc = "Change the account associated with a registrar."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] - #[doc = "of the registrar whose index is `index`."] - #[doc = ""] - #[doc = "- `index`: the index of the registrar whose fee is to be set."] - #[doc = "- `new`: the new account ID."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(R)`."] - #[doc = "- One storage mutation `O(R)`."] - #[doc = "- Benchmark: 8.823 + R * 0.32 µs (min squares analysis)"] - #[doc = "# "] + #[doc = "See [`Pallet::set_account_id`]."] pub fn set_account_id( &self, index: ::core::primitive::u32, @@ -22888,19 +22780,7 @@ pub mod api { ) } - #[doc = "Set the field information for a registrar."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] - #[doc = "of the registrar whose index is `index`."] - #[doc = ""] - #[doc = "- `index`: the index of the registrar whose fee is to be set."] - #[doc = "- `fields`: the fields that the registrar concerns themselves with."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(R)`."] - #[doc = "- One storage mutation `O(R)`."] - #[doc = "- Benchmark: 7.464 + R * 0.325 µs (min squares analysis)"] - #[doc = "# "] + #[doc = "See [`Pallet::set_fields`]."] pub fn set_fields( &self, index: ::core::primitive::u32, @@ -22920,26 +22800,7 @@ pub mod api { ) } - #[doc = "Provide a judgement for an account's identity."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] - #[doc = "of the registrar whose index is `reg_index`."] - #[doc = ""] - #[doc = "- `reg_index`: the index of the registrar whose judgement is being made."] - #[doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] - #[doc = " with a registered identity."] - #[doc = "- `judgement`: the judgement of the registrar of index `reg_index` about `target`."] - #[doc = "- `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided."] - #[doc = ""] - #[doc = "Emits `JudgementGiven` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(R + X)`."] - #[doc = "- One balance-transfer operation."] - #[doc = "- Up to one account-lookup operation."] - #[doc = "- Storage: 1 read `O(R)`, 1 mutate `O(R + X)`."] - #[doc = "- One event."] - #[doc = "# "] + #[doc = "See [`Pallet::provide_judgement`]."] pub fn provide_judgement( &self, reg_index: ::core::primitive::u32, @@ -22969,25 +22830,7 @@ pub mod api { ) } - #[doc = "Remove an account's identity and sub-account information and slash the deposits."] - #[doc = ""] - #[doc = "Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by"] - #[doc = "`Slash`. Verification request deposits are not returned; they should be cancelled"] - #[doc = "manually using `cancel_request`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must match `T::ForceOrigin`."] - #[doc = ""] - #[doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] - #[doc = " with a registered identity."] - #[doc = ""] - #[doc = "Emits `IdentityKilled` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(R + S + X)`."] - #[doc = "- One balance-reserve operation."] - #[doc = "- `S + 2` storage mutations."] - #[doc = "- One event."] - #[doc = "# "] + #[doc = "See [`Pallet::kill_identity`]."] pub fn kill_identity( &self, target: ::subxt::utils::MultiAddress< @@ -23007,13 +22850,7 @@ pub mod api { ) } - #[doc = "Add the given account to the sender's subs."] - #[doc = ""] - #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] - #[doc = "to the sender."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "sub identity of `sub`."] + #[doc = "See [`Pallet::add_sub`]."] pub fn add_sub( &self, sub: ::subxt::utils::MultiAddress< @@ -23035,10 +22872,7 @@ pub mod api { ) } - #[doc = "Alter the associated name of the given sub-account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "sub identity of `sub`."] + #[doc = "See [`Pallet::rename_sub`]."] pub fn rename_sub( &self, sub: ::subxt::utils::MultiAddress< @@ -23060,13 +22894,7 @@ pub mod api { ) } - #[doc = "Remove the given account from the sender's subs."] - #[doc = ""] - #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] - #[doc = "to the sender."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "sub identity of `sub`."] + #[doc = "See [`Pallet::remove_sub`]."] pub fn remove_sub( &self, sub: ::subxt::utils::MultiAddress< @@ -23086,16 +22914,7 @@ pub mod api { ) } - #[doc = "Remove the sender as a sub-account."] - #[doc = ""] - #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] - #[doc = "to the sender (*not* the original depositor)."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "super-identity."] - #[doc = ""] - #[doc = "NOTE: This should not normally be used, but is provided in the case that the non-"] - #[doc = "controller of an account is maliciously registered as a sub-account."] + #[doc = "See [`Pallet::quit_sub`]."] pub fn quit_sub(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static("Identity", "quit_sub", types::QuitSub {}, [ 147u8, 131u8, 175u8, 171u8, 187u8, 201u8, 240u8, 26u8, 146u8, 224u8, 74u8, @@ -23105,7 +22924,7 @@ pub mod api { } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_identity::pallet::Event; pub mod events { use super::runtime_types; @@ -23455,7 +23274,7 @@ pub mod api { ::subxt::storage::address::StaticStorageMapKey, ( ::core::primitive::u128, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::subxt::utils::AccountId32, >, ), @@ -23489,7 +23308,7 @@ pub mod api { ::subxt::storage::address::StaticStorageMapKey, ( ::core::primitive::u128, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::subxt::utils::AccountId32, >, ), @@ -23518,7 +23337,7 @@ pub mod api { &self, ) -> ::subxt::storage::address::Address< ::subxt::storage::address::StaticStorageMapKey, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::option::Option< runtime_types::pallet_identity::types::RegistrarInfo< ::core::primitive::u128, @@ -23622,7 +23441,7 @@ pub mod api { } pub mod mandate { use super::{root_mod, runtime_types}; - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_mandate::pallet::Call; pub mod calls { use super::{root_mod, runtime_types}; @@ -23652,6 +23471,7 @@ pub mod api { } pub struct TransactionApi; impl TransactionApi { + #[doc = "See [`Pallet::mandate`]."] pub fn mandate( &self, call: runtime_types::da_runtime::RuntimeCall, @@ -23663,16 +23483,15 @@ pub mod api { call: ::std::boxed::Box::new(call), }, [ - 107u8, 107u8, 66u8, 52u8, 40u8, 103u8, 189u8, 70u8, 110u8, 233u8, 59u8, - 238u8, 199u8, 241u8, 196u8, 211u8, 28u8, 36u8, 44u8, 161u8, 222u8, - 234u8, 164u8, 141u8, 186u8, 179u8, 206u8, 244u8, 12u8, 208u8, 84u8, - 176u8, + 255u8, 84u8, 185u8, 34u8, 76u8, 12u8, 184u8, 13u8, 57u8, 225u8, 52u8, + 20u8, 140u8, 32u8, 20u8, 134u8, 12u8, 84u8, 88u8, 239u8, 214u8, 203u8, + 68u8, 220u8, 186u8, 174u8, 14u8, 225u8, 155u8, 133u8, 160u8, 183u8, ], ) } } } - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_mandate::pallet::Event; pub mod events { use super::runtime_types; @@ -23766,6 +23585,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[serde(rename_all = "camelCase")] + #[serde(rename_all = "camelCase")] pub struct DataLookupItem { pub app_id: runtime_types::avail_core::AppId, #[codec(compact)] @@ -23796,6 +23616,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[serde(rename_all = "camelCase")] + #[serde(rename_all = "camelCase")] pub struct HeaderExtension { pub commitment: runtime_types::avail_core::kate_commitment::v1::KateCommitment, @@ -23981,6 +23802,60 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct BlockLengthRows(#[codec(compact)] pub ::core::primitive::u32); } + pub mod bounded_collections { + use super::runtime_types; + pub mod bounded_btree_map { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BoundedBTreeMap<_0, _1>(pub ::subxt::utils::KeyedVec<_0, _1>); + } + pub mod bounded_vec { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BoundedVec<_0>(pub ::std::vec::Vec<_0>); + } + pub mod weak_bounded_vec { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>); + } + } pub mod da_control { use super::runtime_types; pub mod extensions { @@ -24035,22 +23910,24 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Creates an application key if `key` does not exist yet."] + #[doc = "See [`Pallet::create_application_key`]."] create_application_key { - key: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + key: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, }, #[codec(index = 1)] + #[doc = "See [`Pallet::submit_data`]."] submit_data { - data: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + data: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, }, #[codec(index = 2)] + #[doc = "See [`Pallet::submit_block_length_proposal`]."] submit_block_length_proposal { rows: ::core::primitive::u32, cols: ::core::primitive::u32, @@ -24114,7 +23991,7 @@ pub mod api { #[codec(index = 0)] #[doc = "A new application key was created."] ApplicationKeyCreated { - key: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + key: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, owner: ::subxt::utils::AccountId32, @@ -24123,7 +24000,7 @@ pub mod api { #[codec(index = 1)] DataSubmitted { who: ::subxt::utils::AccountId32, - data: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + data: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, }, @@ -24329,7 +24206,7 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SessionKeys { pub babe: runtime_types::sp_consensus_babe::app::Public, - pub grandpa: runtime_types::sp_finality_grandpa::app::Public, + pub grandpa: runtime_types::sp_consensus_grandpa::app::Public, pub im_online: runtime_types::pallet_im_online::sr25519::app_sr25519::Public, pub authority_discovery: runtime_types::sp_authority_discovery::app::Public, } @@ -24397,8 +24274,6 @@ pub mod api { Babe(runtime_types::pallet_babe::pallet::Call), #[codec(index = 3)] Timestamp(runtime_types::pallet_timestamp::pallet::Call), - #[codec(index = 4)] - Authorship(runtime_types::pallet_authorship::pallet::Call), #[codec(index = 5)] Indices(runtime_types::pallet_indices::pallet::Call), #[codec(index = 6)] @@ -24535,6 +24410,20 @@ pub mod api { #[codec(index = 38)] Mandate(runtime_types::pallet_mandate::pallet::Event), } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum RuntimeHoldReason {} } pub mod finality_grandpa { use super::runtime_types; @@ -24696,26 +24585,6 @@ pub mod api { } pub mod traits { use super::runtime_types; - pub mod misc { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct WrapperOpaque<_0>( - #[codec(compact)] pub ::core::primitive::u32, - pub _0, - ); - } pub mod preimages { use super::runtime_types; #[derive( @@ -24738,7 +24607,7 @@ pub mod api { }, #[codec(index = 1)] Inline( - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, ), @@ -24997,51 +24866,28 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Make some on-chain remark."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(1)`"] - #[doc = "# "] + #[doc = "See [`Pallet::remark`]."] remark { remark: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] - #[doc = "Set the number of pages in the WebAssembly environment's heap."] + #[doc = "See [`Pallet::set_heap_pages`]."] set_heap_pages { pages: ::core::primitive::u64 }, #[codec(index = 2)] - #[doc = "Set the new runtime code."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(C + S)` where `C` length of `code` and `S` complexity of `can_set_code`"] - #[doc = "- 1 call to `can_set_code`: `O(S)` (calls `sp_io::misc::runtime_version` which is"] - #[doc = " expensive)."] - #[doc = "- 1 storage write (codec `O(C)`)."] - #[doc = "- 1 digest item."] - #[doc = "- 1 event."] - #[doc = "The weight of this function is dependent on the runtime, but generally this is very"] - #[doc = "expensive. We will treat this as a full block."] - #[doc = "# "] + #[doc = "See [`Pallet::set_code`]."] set_code { code: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 3)] - #[doc = "Set the new runtime code without doing any checks of the given `code`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(C)` where `C` length of `code`"] - #[doc = "- 1 storage write (codec `O(C)`)."] - #[doc = "- 1 digest item."] - #[doc = "- 1 event."] - #[doc = "The weight of this function is dependent on the runtime. We will treat this as a full"] - #[doc = "block. # "] + #[doc = "See [`Pallet::set_code_without_checks`]."] set_code_without_checks { code: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 4)] - #[doc = "Set some items of storage."] + #[doc = "See [`Pallet::set_storage`]."] set_storage { items: ::std::vec::Vec<( ::std::vec::Vec<::core::primitive::u8>, @@ -25049,21 +24895,18 @@ pub mod api { )>, }, #[codec(index = 5)] - #[doc = "Kill some items from storage."] + #[doc = "See [`Pallet::kill_storage`]."] kill_storage { keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, }, #[codec(index = 6)] - #[doc = "Kill all storage items with a key that starts with the given prefix."] - #[doc = ""] - #[doc = "**NOTE:** We rely on the Root origin to provide us the number of subkeys under"] - #[doc = "the prefix we are removing to accurately calculate the weight of this function."] + #[doc = "See [`Pallet::kill_prefix`]."] kill_prefix { prefix: ::std::vec::Vec<::core::primitive::u8>, subkeys: ::core::primitive::u32, }, #[codec(index = 7)] - #[doc = "Make some on-chain remark and emit event."] + #[doc = "See [`Pallet::remark_with_event`]."] remark_with_event { remark: ::std::vec::Vec<::core::primitive::u8>, }, @@ -25353,10 +25196,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Dispatch a data root message to the home if the header is valid."] + #[doc = "See [`Pallet::try_dispatch_data_root`]."] try_dispatch_data_root { #[codec(compact)] destination_domain: ::core::primitive::u32, @@ -25382,7 +25225,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] InitializationError, @@ -25404,7 +25247,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] DataRootDispatched { @@ -25433,34 +25276,32 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Dispatch a message to the destination domain and recipient address."] + #[doc = "See [`Pallet::dispatch`]."] dispatch { #[codec(compact)] destination_domain: ::core::primitive::u32, recipient_address: ::subxt::utils::H256, - message_body: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + message_body: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u8, >, }, #[codec(index = 1)] - #[doc = "Verify/submit signed update."] + #[doc = "See [`Pallet::update`]."] update { signed_update: runtime_types::nomad_core::update::SignedUpdate, #[codec(compact)] max_index: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "Verify/slash updater for improper update."] + #[doc = "See [`Pallet::improper_update`]."] improper_update { signed_update: runtime_types::nomad_core::update::SignedUpdate, }, #[codec(index = 3)] - #[doc = "Set new updater on self as well as updater manager."] - #[doc = "Note: Not exposed as pallet call, will only be callable by the"] - #[doc = "GovernanceRouter pallet when implemented."] + #[doc = "See [`Pallet::set_updater`]."] set_updater { new_updater: ::subxt::utils::H160 }, } #[derive( @@ -25476,7 +25317,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] InitializationError, @@ -25512,7 +25353,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] Dispatch { @@ -25607,7 +25448,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call {} #[derive( :: subxt :: ext :: codec :: Decode, @@ -25622,7 +25463,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] InitializationError, @@ -25640,7 +25481,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] NewUpdater { @@ -25654,94 +25495,6 @@ pub mod api { } } } - pub mod pallet_authorship { - use super::runtime_types; - pub mod pallet { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] - pub enum Call { - #[codec(index = 0)] - #[doc = "Provide a set of uncles."] - set_uncles { - new_uncles: ::std::vec::Vec< - runtime_types::avail_core::header::Header< - ::core::primitive::u32, - runtime_types::sp_runtime::traits::BlakeTwo256, - >, - >, - }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] - pub enum Error { - #[codec(index = 0)] - #[doc = "The uncle parent not in the chain."] - InvalidUncleParent, - #[codec(index = 1)] - #[doc = "Uncles already set in the block."] - UnclesAlreadySet, - #[codec(index = 2)] - #[doc = "Too many uncles."] - TooManyUncles, - #[codec(index = 3)] - #[doc = "The uncle is genesis."] - GenesisUncle, - #[codec(index = 4)] - #[doc = "The uncle is too high in chain."] - TooHighUncle, - #[codec(index = 5)] - #[doc = "The uncle is already included."] - UncleAlreadyIncluded, - #[codec(index = 6)] - #[doc = "The uncle isn't recent enough to be included."] - OldUncle, - } - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum UncleEntryItem<_0, _1, _2> { - #[codec(index = 0)] - InclusionHeight(_0), - #[codec(index = 1)] - Uncle(_1, ::core::option::Option<_2>), - } - } pub mod pallet_babe { use super::runtime_types; pub mod pallet { @@ -25759,13 +25512,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Report authority equivocation/misbehavior. This method will verify"] - #[doc = "the equivocation proof and validate the given key ownership proof"] - #[doc = "against the extracted offender. If both are valid, the offence will"] - #[doc = "be reported."] + #[doc = "See [`Pallet::report_equivocation`]."] report_equivocation { equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_slots::EquivocationProof< @@ -25779,14 +25529,7 @@ pub mod api { key_owner_proof: runtime_types::sp_session::MembershipProof, }, #[codec(index = 1)] - #[doc = "Report authority equivocation/misbehavior. This method will verify"] - #[doc = "the equivocation proof and validate the given key ownership proof"] - #[doc = "against the extracted offender. If both are valid, the offence will"] - #[doc = "be reported."] - #[doc = "This extrinsic must be called unsigned and it is expected that only"] - #[doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] - #[doc = "if the block author is defined it will be defined as the equivocation"] - #[doc = "reporter."] + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] report_equivocation_unsigned { equivocation_proof: ::std::boxed::Box< runtime_types::sp_consensus_slots::EquivocationProof< @@ -25800,10 +25543,7 @@ pub mod api { key_owner_proof: runtime_types::sp_session::MembershipProof, }, #[codec(index = 2)] - #[doc = "Plan an epoch config change. The epoch config change is recorded and will be enacted on"] - #[doc = "the next call to `enact_epoch_change`. The config will be activated one epoch after."] - #[doc = "Multiple calls to this method will replace any existing planned config change that had"] - #[doc = "not been enacted yet."] + #[doc = "See [`Pallet::plan_config_change`]."] plan_config_change { config: runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, }, @@ -25821,7 +25561,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "An equivocation proof provided as part of an equivocation report is invalid."] @@ -25918,19 +25658,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Declare that some `dislocated` account has, through rewards or penalties, sufficiently"] - #[doc = "changed its score that it should properly fall into a different bag than its current"] - #[doc = "one."] - #[doc = ""] - #[doc = "Anyone can call this function about any potentially dislocated account."] - #[doc = ""] - #[doc = "Will always update the stored score of `dislocated` to the correct score, based on"] - #[doc = "`ScoreProvider`."] - #[doc = ""] - #[doc = "If `dislocated` does not exists, it returns an error."] + #[doc = "See [`Pallet::rebag`]."] rebag { dislocated: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -25938,14 +25669,7 @@ pub mod api { >, }, #[codec(index = 1)] - #[doc = "Move the caller's Id directly in front of `lighter`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and can only be called by the Id of"] - #[doc = "the account going in front of `lighter`."] - #[doc = ""] - #[doc = "Only works if"] - #[doc = "- both nodes are within the same bag,"] - #[doc = "- and `origin` has a greater `Score` than `lighter`."] + #[doc = "See [`Pallet::put_in_front_of`]."] put_in_front_of { lighter: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -25966,7 +25690,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "A error in the list interface implementation."] @@ -25985,7 +25709,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "Moved an account from one bag to another."] @@ -26020,35 +25744,11 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Transfer some liquid free balance to another account."] - #[doc = ""] - #[doc = "`transfer` will set the `FreeBalance` of the sender and receiver."] - #[doc = "If the sender's account is below the existential deposit as a result"] - #[doc = "of the transfer, the account will be reaped."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Signed` by the transactor."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Dependent on arguments but not critical, given proper implementations for input config"] - #[doc = " types. See related functions below."] - #[doc = "- It contains a limited number of reads and writes internally and no complex"] - #[doc = " computation."] - #[doc = ""] - #[doc = "Related functions:"] - #[doc = ""] - #[doc = " - `ensure_can_withdraw` is always called internally but has a bounded complexity."] - #[doc = " - Transferring balances to accounts that did not exist before will cause"] - #[doc = " `T::OnNewAccount::on_new_account` to be called."] - #[doc = " - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`."] - #[doc = " - `transfer_keep_alive` works the same way as `transfer`, but has an additional check"] - #[doc = " that the transfer will not kill the origin account."] - #[doc = "---------------------------------"] - #[doc = "- Origin account is already in memory, so no DB operations for them."] - #[doc = "# "] - transfer { + #[doc = "See [`Pallet::transfer_allow_death`]."] + transfer_allow_death { dest: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, @@ -26057,15 +25757,8 @@ pub mod api { value: ::core::primitive::u128, }, #[codec(index = 1)] - #[doc = "Set the balances of a given account."] - #[doc = ""] - #[doc = "This will alter `FreeBalance` and `ReservedBalance` in storage. it will"] - #[doc = "also alter the total issuance of the system (`TotalIssuance`) appropriately."] - #[doc = "If the new free or reserved balance is below the existential deposit,"] - #[doc = "it will reset the account nonce (`frame_system::AccountNonce`)."] - #[doc = ""] - #[doc = "The dispatch origin for this call is `root`."] - set_balance { + #[doc = "See [`Pallet::set_balance_deprecated`]."] + set_balance_deprecated { who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, @@ -26073,15 +25766,10 @@ pub mod api { #[codec(compact)] new_free: ::core::primitive::u128, #[codec(compact)] - new_reserved: ::core::primitive::u128, + old_reserved: ::core::primitive::u128, }, #[codec(index = 2)] - #[doc = "Exactly as `transfer`, except the origin must be root and the source account may be"] - #[doc = "specified."] - #[doc = "# "] - #[doc = "- Same as transfer, but additional read and write because the source account is not"] - #[doc = " assumed to be in the overlay."] - #[doc = "# "] + #[doc = "See [`Pallet::force_transfer`]."] force_transfer { source: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -26095,12 +25783,7 @@ pub mod api { value: ::core::primitive::u128, }, #[codec(index = 3)] - #[doc = "Same as the [`transfer`] call, but with a check that the transfer will not kill the"] - #[doc = "origin account."] - #[doc = ""] - #[doc = "99% of the time you want [`transfer`] instead."] - #[doc = ""] - #[doc = "[`transfer`]: struct.Pallet.html#method.transfer"] + #[doc = "See [`Pallet::transfer_keep_alive`]."] transfer_keep_alive { dest: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -26110,23 +25793,7 @@ pub mod api { value: ::core::primitive::u128, }, #[codec(index = 4)] - #[doc = "Transfer the entire transferable balance from the caller account."] - #[doc = ""] - #[doc = "NOTE: This function only attempts to transfer _transferable_ balances. This means that"] - #[doc = "any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be"] - #[doc = "transferred by this function. To ensure that this function results in a killed account,"] - #[doc = "you might need to prepare the account by removing any reference counters, storage"] - #[doc = "deposits, etc..."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be Signed."] - #[doc = ""] - #[doc = "- `dest`: The recipient of the transfer."] - #[doc = "- `keep_alive`: A boolean to determine if the `transfer_all` operation should send all"] - #[doc = " of the funds the account has, causing the sender account to be killed (false), or"] - #[doc = " transfer everything except at least the existential deposit, which will guarantee to"] - #[doc = " keep the sender account alive (true). # "] - #[doc = "- O(1). Just like transfer, but reading the user's transferable balance first."] - #[doc = " #"] + #[doc = "See [`Pallet::transfer_all`]."] transfer_all { dest: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -26135,9 +25802,7 @@ pub mod api { keep_alive: ::core::primitive::bool, }, #[codec(index = 5)] - #[doc = "Unreserve some balance from a user by force."] - #[doc = ""] - #[doc = "Can only be called by ROOT."] + #[doc = "See [`Pallet::force_unreserve`]."] force_unreserve { who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -26145,13 +25810,38 @@ pub mod api { >, amount: ::core::primitive::u128, }, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, + #[codec(index = 6)] + #[doc = "See [`Pallet::upgrade_accounts`]."] + upgrade_accounts { + who: ::std::vec::Vec<::subxt::utils::AccountId32>, + }, + #[codec(index = 7)] + #[doc = "See [`Pallet::transfer`]."] + transfer { + dest: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + value: ::core::primitive::u128, + }, + #[codec(index = 8)] + #[doc = "See [`Pallet::force_set_balance`]."] + force_set_balance { + who: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + #[codec(compact)] + new_free: ::core::primitive::u128, + }, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, Debug, Eq, PartialEq, @@ -26159,32 +25849,38 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] - #[doc = "Vesting balance too high to send value"] + #[doc = "Vesting balance too high to send value."] VestingBalance, #[codec(index = 1)] - #[doc = "Account liquidity restrictions prevent withdrawal"] + #[doc = "Account liquidity restrictions prevent withdrawal."] LiquidityRestrictions, #[codec(index = 2)] #[doc = "Balance too low to send value."] InsufficientBalance, #[codec(index = 3)] - #[doc = "Value too low to create account due to existential deposit"] + #[doc = "Value too low to create account due to existential deposit."] ExistentialDeposit, #[codec(index = 4)] - #[doc = "Transfer/payment would kill account"] - KeepAlive, + #[doc = "Transfer/payment would kill account."] + Expendability, #[codec(index = 5)] - #[doc = "A vesting schedule already exists for this account"] + #[doc = "A vesting schedule already exists for this account."] ExistingVestingSchedule, #[codec(index = 6)] - #[doc = "Beneficiary account must pre-exist"] + #[doc = "Beneficiary account must pre-exist."] DeadAccount, #[codec(index = 7)] - #[doc = "Number of named reserves exceed MaxReserves"] + #[doc = "Number of named reserves exceed `MaxReserves`."] TooManyReserves, + #[codec(index = 8)] + #[doc = "Number of holds exceed `MaxHolds`."] + TooManyHolds, + #[codec(index = 9)] + #[doc = "Number of freezes exceed `MaxFreezes`."] + TooManyFreezes, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -26199,7 +25895,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "An account was created with some free balance."] @@ -26226,7 +25922,6 @@ pub mod api { BalanceSet { who: ::subxt::utils::AccountId32, free: ::core::primitive::u128, - reserved: ::core::primitive::u128, }, #[codec(index = 4)] #[doc = "Some balance was reserved (moved from free to reserved)."] @@ -26268,82 +25963,174 @@ pub mod api { who: ::subxt::utils::AccountId32, amount: ::core::primitive::u128, }, + #[codec(index = 10)] + #[doc = "Some amount was minted into an account."] + Minted { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 11)] + #[doc = "Some amount was burned from an account."] + Burned { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 12)] + #[doc = "Some amount was suspended from an account (it can be restored later)."] + Suspended { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 13)] + #[doc = "Some amount was restored into an account."] + Restored { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 14)] + #[doc = "An account was upgraded."] + Upgraded { who: ::subxt::utils::AccountId32 }, + #[codec(index = 15)] + #[doc = "Total issuance was increased by `amount`, creating a credit to be balanced."] + Issued { amount: ::core::primitive::u128 }, + #[codec(index = 16)] + #[doc = "Total issuance was decreased by `amount`, creating a debt to be balanced."] + Rescinded { amount: ::core::primitive::u128 }, + #[codec(index = 17)] + #[doc = "Some balance was locked."] + Locked { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 18)] + #[doc = "Some balance was unlocked."] + Unlocked { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 19)] + #[doc = "Some balance was frozen."] + Frozen { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, + #[codec(index = 20)] + #[doc = "Some balance was thawed."] + Thawed { + who: ::subxt::utils::AccountId32, + amount: ::core::primitive::u128, + }, } } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct AccountData<_0> { - pub free: _0, - pub reserved: _0, - pub misc_frozen: _0, - pub fee_frozen: _0, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BalanceLock<_0> { - pub id: [::core::primitive::u8; 8usize], - pub amount: _0, - pub reasons: runtime_types::pallet_balances::Reasons, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Reasons { - #[codec(index = 0)] - Fee, - #[codec(index = 1)] - Misc, - #[codec(index = 2)] - All, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct ReserveData<_0, _1> { - pub id: _0, - pub amount: _1, + pub mod types { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct AccountData<_0> { + pub free: _0, + pub reserved: _0, + pub frozen: _0, + pub flags: runtime_types::pallet_balances::types::ExtraFlags, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BalanceLock<_0> { + pub id: [::core::primitive::u8; 8usize], + pub amount: _0, + pub reasons: runtime_types::pallet_balances::types::Reasons, + } + #[derive( + :: subxt :: ext :: codec :: CompactAs, + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ExtraFlags(pub ::core::primitive::u128); + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct IdAmount<_0, _1> { + pub id: _0, + pub amount: _1, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum Reasons { + #[codec(index = 0)] + Fee, + #[codec(index = 1)] + Misc, + #[codec(index = 2)] + All, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct ReserveData<_0, _1> { + pub id: _0, + pub amount: _1, + } } } pub mod pallet_bounties { @@ -26363,47 +26150,23 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Propose a new bounty."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "Payment: `TipReportDepositBase` will be reserved from the origin account, as well as"] - #[doc = "`DataDepositPerByte` for each byte in `reason`. It will be unreserved upon approval,"] - #[doc = "or slashed when rejected."] - #[doc = ""] - #[doc = "- `curator`: The curator account whom will manage this bounty."] - #[doc = "- `fee`: The curator fee."] - #[doc = "- `value`: The total payment amount of this bounty, curator fee included."] - #[doc = "- `description`: The description of this bounty."] + #[doc = "See [`Pallet::propose_bounty`]."] propose_bounty { #[codec(compact)] value: ::core::primitive::u128, description: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] - #[doc = "Approve a bounty proposal. At a later time, the bounty will be funded and become active"] - #[doc = "and the original deposit will be returned."] - #[doc = ""] - #[doc = "May only be called from `T::SpendOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] + #[doc = "See [`Pallet::approve_bounty`]."] approve_bounty { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "Assign a curator to a funded bounty."] - #[doc = ""] - #[doc = "May only be called from `T::SpendOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] + #[doc = "See [`Pallet::propose_curator`]."] propose_curator { #[codec(compact)] bounty_id: ::core::primitive::u32, @@ -26415,53 +26178,19 @@ pub mod api { fee: ::core::primitive::u128, }, #[codec(index = 3)] - #[doc = "Unassign curator from a bounty."] - #[doc = ""] - #[doc = "This function can only be called by the `RejectOrigin` a signed origin."] - #[doc = ""] - #[doc = "If this function is called by the `RejectOrigin`, we assume that the curator is"] - #[doc = "malicious or inactive. As a result, we will slash the curator when possible."] - #[doc = ""] - #[doc = "If the origin is the curator, we take this as a sign they are unable to do their job and"] - #[doc = "they willingly give up. We could slash them, but for now we allow them to recover their"] - #[doc = "deposit and exit without issue. (We may want to change this if it is abused.)"] - #[doc = ""] - #[doc = "Finally, the origin can be anyone if and only if the curator is \"inactive\". This allows"] - #[doc = "anyone in the community to call out that a curator is not doing their due diligence, and"] - #[doc = "we should pick a new curator. In this case the curator should also be slashed."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] + #[doc = "See [`Pallet::unassign_curator`]."] unassign_curator { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 4)] - #[doc = "Accept the curator role for a bounty."] - #[doc = "A deposit will be reserved from curator and refund upon successful payout."] - #[doc = ""] - #[doc = "May only be called from the curator."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] + #[doc = "See [`Pallet::accept_curator`]."] accept_curator { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 5)] - #[doc = "Award bounty to a beneficiary account. The beneficiary will be able to claim the funds"] - #[doc = "after a delay."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be the curator of this bounty."] - #[doc = ""] - #[doc = "- `bounty_id`: Bounty ID to award."] - #[doc = "- `beneficiary`: The beneficiary account whom will receive the payout."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] + #[doc = "See [`Pallet::award_bounty`]."] award_bounty { #[codec(compact)] bounty_id: ::core::primitive::u32, @@ -26471,45 +26200,19 @@ pub mod api { >, }, #[codec(index = 6)] - #[doc = "Claim the payout from an awarded bounty after payout delay."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be the beneficiary of this bounty."] - #[doc = ""] - #[doc = "- `bounty_id`: Bounty ID to claim."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] + #[doc = "See [`Pallet::claim_bounty`]."] claim_bounty { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 7)] - #[doc = "Cancel a proposed or active bounty. All the funds will be sent to treasury and"] - #[doc = "the curator deposit will be unreserved if possible."] - #[doc = ""] - #[doc = "Only `T::RejectOrigin` is able to cancel a bounty."] - #[doc = ""] - #[doc = "- `bounty_id`: Bounty ID to cancel."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] + #[doc = "See [`Pallet::close_bounty`]."] close_bounty { #[codec(compact)] bounty_id: ::core::primitive::u32, }, #[codec(index = 8)] - #[doc = "Extend the expiry time of an active bounty."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be the curator of this bounty."] - #[doc = ""] - #[doc = "- `bounty_id`: Bounty ID to extend."] - #[doc = "- `remark`: additional information."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "# "] + #[doc = "See [`Pallet::extend_bounty_expiry`]."] extend_bounty_expiry { #[codec(compact)] bounty_id: ::core::primitive::u32, @@ -26529,7 +26232,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Proposer's balance is too low."] @@ -26579,7 +26282,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "New bounty proposal."] @@ -26684,91 +26387,24 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Set the collective's membership."] - #[doc = ""] - #[doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] - #[doc = "- `prime`: The prime member whose vote sets the default."] - #[doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] - #[doc = " weight estimation."] - #[doc = ""] - #[doc = "Requires root origin."] - #[doc = ""] - #[doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] - #[doc = " the weight estimations rely on it to estimate dispatchable weight."] - #[doc = ""] - #[doc = "# WARNING:"] - #[doc = ""] - #[doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] - #[doc = "implementation of the trait [`ChangeMembers`]."] - #[doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] - #[doc = "with other logic managing the member set."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(MP + N)` where:"] - #[doc = " - `M` old-members-count (code- and governance-bounded)"] - #[doc = " - `N` new-members-count (code- and governance-bounded)"] - #[doc = " - `P` proposals-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the"] - #[doc = " members"] - #[doc = " - 1 storage read (codec `O(P)`) for reading the proposals"] - #[doc = " - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal"] - #[doc = " - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one"] - #[doc = "# "] + #[doc = "See [`Pallet::set_members`]."] set_members { new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, prime: ::core::option::Option<::subxt::utils::AccountId32>, old_count: ::core::primitive::u32, }, #[codec(index = 1)] - #[doc = "Dispatch a proposal from a member using the `Member` origin."] - #[doc = ""] - #[doc = "Origin must be a member of the collective."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching"] - #[doc = " `proposal`"] - #[doc = "- DB: 1 read (codec `O(M)`) + DB access of `proposal`"] - #[doc = "- 1 event"] - #[doc = "# "] + #[doc = "See [`Pallet::execute`]."] execute { proposal: ::std::boxed::Box, #[codec(compact)] length_bound: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "Add a new proposal to either be voted on or executed directly."] - #[doc = ""] - #[doc = "Requires the sender to be member."] - #[doc = ""] - #[doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] - #[doc = "or put up for voting."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - branching is influenced by `threshold` where:"] - #[doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] - #[doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] - #[doc = "- DB:"] - #[doc = " - 1 storage read `is_member` (codec `O(M)`)"] - #[doc = " - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)"] - #[doc = " - DB accesses influenced by `threshold`:"] - #[doc = " - EITHER storage accesses done by `proposal` (`threshold < 2`)"] - #[doc = " - OR proposal insertion (`threshold <= 2`)"] - #[doc = " - 1 storage mutation `Proposals` (codec `O(P2)`)"] - #[doc = " - 1 storage mutation `ProposalCount` (codec `O(1)`)"] - #[doc = " - 1 storage write `ProposalOf` (codec `O(B)`)"] - #[doc = " - 1 storage write `Voting` (codec `O(M)`)"] - #[doc = " - 1 event"] - #[doc = "# "] + #[doc = "See [`Pallet::propose`]."] propose { #[codec(compact)] threshold: ::core::primitive::u32, @@ -26777,118 +26413,18 @@ pub mod api { length_bound: ::core::primitive::u32, }, #[codec(index = 3)] - #[doc = "Add an aye or nay vote for the sender to the given proposal."] - #[doc = ""] - #[doc = "Requires the sender to be a member."] - #[doc = ""] - #[doc = "Transaction fees will be waived if the member is voting on any particular proposal"] - #[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] - #[doc = "fee."] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] - #[doc = "- DB:"] - #[doc = " - 1 storage read `Members` (codec `O(M)`)"] - #[doc = " - 1 storage mutation `Voting` (codec `O(M)`)"] - #[doc = "- 1 event"] - #[doc = "# "] + #[doc = "See [`Pallet::vote`]."] vote { proposal: ::subxt::utils::H256, #[codec(compact)] index: ::core::primitive::u32, approve: ::core::primitive::bool, }, - #[codec(index = 4)] - #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] - #[doc = ""] - #[doc = "May be called by any signed account in order to finish voting and close the proposal."] - #[doc = ""] - #[doc = "If called before the end of the voting period it will only close the vote if it is"] - #[doc = "has enough votes to be approved or disapproved."] - #[doc = ""] - #[doc = "If called after the end of the voting period abstentions are counted as rejections"] - #[doc = "unless there is a prime member set and the prime member cast an approval."] - #[doc = ""] - #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] - #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] - #[doc = ""] - #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] - #[doc = "proposal."] - #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] - #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1 + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - `P1` is the complexity of `proposal` preimage."] - #[doc = " - `P2` is proposal-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] - #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] - #[doc = " `O(P2)`)"] - #[doc = " - any mutations done while executing `proposal` (`P1`)"] - #[doc = "- up to 3 events"] - #[doc = "# "] - close_old_weight { - proposal_hash: ::subxt::utils::H256, - #[codec(compact)] - index: ::core::primitive::u32, - #[codec(compact)] - proposal_weight_bound: runtime_types::sp_weights::OldWeight, - #[codec(compact)] - length_bound: ::core::primitive::u32, - }, #[codec(index = 5)] - #[doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] - #[doc = "state."] - #[doc = ""] - #[doc = "Must be called by the Root origin."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] - #[doc = ""] - #[doc = "# "] - #[doc = "Complexity: O(P) where P is the number of max proposals"] - #[doc = "DB Weight:"] - #[doc = "* Reads: Proposals"] - #[doc = "* Writes: Voting, Proposals, ProposalOf"] - #[doc = "# "] + #[doc = "See [`Pallet::disapprove_proposal`]."] disapprove_proposal { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 6)] - #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] - #[doc = ""] - #[doc = "May be called by any signed account in order to finish voting and close the proposal."] - #[doc = ""] - #[doc = "If called before the end of the voting period it will only close the vote if it is"] - #[doc = "has enough votes to be approved or disapproved."] - #[doc = ""] - #[doc = "If called after the end of the voting period abstentions are counted as rejections"] - #[doc = "unless there is a prime member set and the prime member cast an approval."] - #[doc = ""] - #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] - #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] - #[doc = ""] - #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] - #[doc = "proposal."] - #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] - #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1 + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - `P1` is the complexity of `proposal` preimage."] - #[doc = " - `P2` is proposal-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] - #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] - #[doc = " `O(P2)`)"] - #[doc = " - any mutations done while executing `proposal` (`P1`)"] - #[doc = "- up to 3 events"] - #[doc = "# "] + #[doc = "See [`Pallet::close`]."] close { proposal_hash: ::subxt::utils::H256, #[codec(compact)] @@ -26911,91 +26447,24 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call2 { #[codec(index = 0)] - #[doc = "Set the collective's membership."] - #[doc = ""] - #[doc = "- `new_members`: The new member list. Be nice to the chain and provide it sorted."] - #[doc = "- `prime`: The prime member whose vote sets the default."] - #[doc = "- `old_count`: The upper bound for the previous number of members in storage. Used for"] - #[doc = " weight estimation."] - #[doc = ""] - #[doc = "Requires root origin."] - #[doc = ""] - #[doc = "NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but"] - #[doc = " the weight estimations rely on it to estimate dispatchable weight."] - #[doc = ""] - #[doc = "# WARNING:"] - #[doc = ""] - #[doc = "The `pallet-collective` can also be managed by logic outside of the pallet through the"] - #[doc = "implementation of the trait [`ChangeMembers`]."] - #[doc = "Any call to `set_members` must be careful that the member set doesn't get out of sync"] - #[doc = "with other logic managing the member set."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(MP + N)` where:"] - #[doc = " - `M` old-members-count (code- and governance-bounded)"] - #[doc = " - `N` new-members-count (code- and governance-bounded)"] - #[doc = " - `P` proposals-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 1 storage mutation (codec `O(M)` read, `O(N)` write) for reading and writing the"] - #[doc = " members"] - #[doc = " - 1 storage read (codec `O(P)`) for reading the proposals"] - #[doc = " - `P` storage mutations (codec `O(M)`) for updating the votes for each proposal"] - #[doc = " - 1 storage write (codec `O(1)`) for deleting the old `prime` and setting the new one"] - #[doc = "# "] + #[doc = "See [`Pallet::set_members`]."] set_members { new_members: ::std::vec::Vec<::subxt::utils::AccountId32>, prime: ::core::option::Option<::subxt::utils::AccountId32>, old_count: ::core::primitive::u32, }, #[codec(index = 1)] - #[doc = "Dispatch a proposal from a member using the `Member` origin."] - #[doc = ""] - #[doc = "Origin must be a member of the collective."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(M + P)` where `M` members-count (code-bounded) and `P` complexity of dispatching"] - #[doc = " `proposal`"] - #[doc = "- DB: 1 read (codec `O(M)`) + DB access of `proposal`"] - #[doc = "- 1 event"] - #[doc = "# "] + #[doc = "See [`Pallet::execute`]."] execute { proposal: ::std::boxed::Box, #[codec(compact)] length_bound: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "Add a new proposal to either be voted on or executed directly."] - #[doc = ""] - #[doc = "Requires the sender to be member."] - #[doc = ""] - #[doc = "`threshold` determines whether `proposal` is executed directly (`threshold < 2`)"] - #[doc = "or put up for voting."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1)` or `O(B + M + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - branching is influenced by `threshold` where:"] - #[doc = " - `P1` is proposal execution complexity (`threshold < 2`)"] - #[doc = " - `P2` is proposals-count (code-bounded) (`threshold >= 2`)"] - #[doc = "- DB:"] - #[doc = " - 1 storage read `is_member` (codec `O(M)`)"] - #[doc = " - 1 storage read `ProposalOf::contains_key` (codec `O(1)`)"] - #[doc = " - DB accesses influenced by `threshold`:"] - #[doc = " - EITHER storage accesses done by `proposal` (`threshold < 2`)"] - #[doc = " - OR proposal insertion (`threshold <= 2`)"] - #[doc = " - 1 storage mutation `Proposals` (codec `O(P2)`)"] - #[doc = " - 1 storage mutation `ProposalCount` (codec `O(1)`)"] - #[doc = " - 1 storage write `ProposalOf` (codec `O(B)`)"] - #[doc = " - 1 storage write `Voting` (codec `O(M)`)"] - #[doc = " - 1 event"] - #[doc = "# "] + #[doc = "See [`Pallet::propose`]."] propose { #[codec(compact)] threshold: ::core::primitive::u32, @@ -27004,118 +26473,18 @@ pub mod api { length_bound: ::core::primitive::u32, }, #[codec(index = 3)] - #[doc = "Add an aye or nay vote for the sender to the given proposal."] - #[doc = ""] - #[doc = "Requires the sender to be a member."] - #[doc = ""] - #[doc = "Transaction fees will be waived if the member is voting on any particular proposal"] - #[doc = "for the first time and the call is successful. Subsequent vote changes will charge a"] - #[doc = "fee."] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(M)` where `M` is members-count (code- and governance-bounded)"] - #[doc = "- DB:"] - #[doc = " - 1 storage read `Members` (codec `O(M)`)"] - #[doc = " - 1 storage mutation `Voting` (codec `O(M)`)"] - #[doc = "- 1 event"] - #[doc = "# "] + #[doc = "See [`Pallet::vote`]."] vote { proposal: ::subxt::utils::H256, #[codec(compact)] index: ::core::primitive::u32, approve: ::core::primitive::bool, }, - #[codec(index = 4)] - #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] - #[doc = ""] - #[doc = "May be called by any signed account in order to finish voting and close the proposal."] - #[doc = ""] - #[doc = "If called before the end of the voting period it will only close the vote if it is"] - #[doc = "has enough votes to be approved or disapproved."] - #[doc = ""] - #[doc = "If called after the end of the voting period abstentions are counted as rejections"] - #[doc = "unless there is a prime member set and the prime member cast an approval."] - #[doc = ""] - #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] - #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] - #[doc = ""] - #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] - #[doc = "proposal."] - #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] - #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1 + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - `P1` is the complexity of `proposal` preimage."] - #[doc = " - `P2` is proposal-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] - #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] - #[doc = " `O(P2)`)"] - #[doc = " - any mutations done while executing `proposal` (`P1`)"] - #[doc = "- up to 3 events"] - #[doc = "# "] - close_old_weight { - proposal_hash: ::subxt::utils::H256, - #[codec(compact)] - index: ::core::primitive::u32, - #[codec(compact)] - proposal_weight_bound: runtime_types::sp_weights::OldWeight, - #[codec(compact)] - length_bound: ::core::primitive::u32, - }, #[codec(index = 5)] - #[doc = "Disapprove a proposal, close, and remove it from the system, regardless of its current"] - #[doc = "state."] - #[doc = ""] - #[doc = "Must be called by the Root origin."] - #[doc = ""] - #[doc = "Parameters:"] - #[doc = "* `proposal_hash`: The hash of the proposal that should be disapproved."] - #[doc = ""] - #[doc = "# "] - #[doc = "Complexity: O(P) where P is the number of max proposals"] - #[doc = "DB Weight:"] - #[doc = "* Reads: Proposals"] - #[doc = "* Writes: Voting, Proposals, ProposalOf"] - #[doc = "# "] + #[doc = "See [`Pallet::disapprove_proposal`]."] disapprove_proposal { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 6)] - #[doc = "Close a vote that is either approved, disapproved or whose voting period has ended."] - #[doc = ""] - #[doc = "May be called by any signed account in order to finish voting and close the proposal."] - #[doc = ""] - #[doc = "If called before the end of the voting period it will only close the vote if it is"] - #[doc = "has enough votes to be approved or disapproved."] - #[doc = ""] - #[doc = "If called after the end of the voting period abstentions are counted as rejections"] - #[doc = "unless there is a prime member set and the prime member cast an approval."] - #[doc = ""] - #[doc = "If the close operation completes successfully with disapproval, the transaction fee will"] - #[doc = "be waived. Otherwise execution of the approved operation will be charged to the caller."] - #[doc = ""] - #[doc = "+ `proposal_weight_bound`: The maximum amount of weight consumed by executing the closed"] - #[doc = "proposal."] - #[doc = "+ `length_bound`: The upper bound for the length of the proposal in storage. Checked via"] - #[doc = "`storage::read` so it is `size_of::() == 4` larger than the pure length."] - #[doc = ""] - #[doc = "# "] - #[doc = "## Weight"] - #[doc = "- `O(B + M + P1 + P2)` where:"] - #[doc = " - `B` is `proposal` size in bytes (length-fee-bounded)"] - #[doc = " - `M` is members-count (code- and governance-bounded)"] - #[doc = " - `P1` is the complexity of `proposal` preimage."] - #[doc = " - `P2` is proposal-count (code-bounded)"] - #[doc = "- DB:"] - #[doc = " - 2 storage reads (`Members`: codec `O(M)`, `Prime`: codec `O(1)`)"] - #[doc = " - 3 mutations (`Voting`: codec `O(M)`, `ProposalOf`: codec `O(B)`, `Proposals`: codec"] - #[doc = " `O(P2)`)"] - #[doc = " - any mutations done while executing `proposal` (`P1`)"] - #[doc = "- up to 3 events"] - #[doc = "# "] + #[doc = "See [`Pallet::close`]."] close { proposal_hash: ::subxt::utils::H256, #[codec(compact)] @@ -27138,7 +26507,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Account is not a member"] @@ -27184,7 +26553,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error2 { #[codec(index = 0)] #[doc = "Account is not a member"] @@ -27230,7 +26599,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] @@ -27292,7 +26661,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event2 { #[codec(index = 0)] #[doc = "A motion (given hash) has been proposed (by given account) with a threshold (given"] @@ -27433,18 +26802,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Propose a sensitive action to be taken."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_ and the sender must"] - #[doc = "have funds to cover the deposit."] - #[doc = ""] - #[doc = "- `proposal_hash`: The hash of the proposal preimage."] - #[doc = "- `value`: The amount of deposit (must be at least `MinimumDeposit`)."] - #[doc = ""] - #[doc = "Emits `Proposed`."] + #[doc = "See [`Pallet::propose`]."] propose { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::da_runtime::RuntimeCall, @@ -27453,24 +26814,13 @@ pub mod api { value: ::core::primitive::u128, }, #[codec(index = 1)] - #[doc = "Signals agreement with a particular proposal."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_ and the sender"] - #[doc = "must have funds to cover the deposit, equal to the original deposit."] - #[doc = ""] - #[doc = "- `proposal`: The index of the proposal to second."] + #[doc = "See [`Pallet::second`]."] second { #[codec(compact)] proposal: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "Vote in a referendum. If `vote.is_aye()`, the vote is to enact the proposal;"] - #[doc = "otherwise it is a vote to keep the status quo."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_."] - #[doc = ""] - #[doc = "- `ref_index`: The index of the referendum to vote for."] - #[doc = "- `vote`: The vote configuration."] + #[doc = "See [`Pallet::vote`]."] vote { #[codec(compact)] ref_index: ::core::primitive::u32, @@ -27479,127 +26829,47 @@ pub mod api { >, }, #[codec(index = 3)] - #[doc = "Schedule an emergency cancellation of a referendum. Cannot happen twice to the same"] - #[doc = "referendum."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `CancellationOrigin`."] - #[doc = ""] - #[doc = "-`ref_index`: The index of the referendum to cancel."] - #[doc = ""] - #[doc = "Weight: `O(1)`."] + #[doc = "See [`Pallet::emergency_cancel`]."] emergency_cancel { ref_index: ::core::primitive::u32 }, #[codec(index = 4)] - #[doc = "Schedule a referendum to be tabled once it is legal to schedule an external"] - #[doc = "referendum."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `ExternalOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal."] + #[doc = "See [`Pallet::external_propose`]."] external_propose { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::da_runtime::RuntimeCall, >, }, #[codec(index = 5)] - #[doc = "Schedule a majority-carries referendum to be tabled next once it is legal to schedule"] - #[doc = "an external referendum."] - #[doc = ""] - #[doc = "The dispatch of this call must be `ExternalMajorityOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal."] - #[doc = ""] - #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] - #[doc = "pre-scheduled `external_propose` call."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] + #[doc = "See [`Pallet::external_propose_majority`]."] external_propose_majority { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::da_runtime::RuntimeCall, >, }, #[codec(index = 6)] - #[doc = "Schedule a negative-turnout-bias referendum to be tabled next once it is legal to"] - #[doc = "schedule an external referendum."] - #[doc = ""] - #[doc = "The dispatch of this call must be `ExternalDefaultOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal."] - #[doc = ""] - #[doc = "Unlike `external_propose`, blacklisting has no effect on this and it may replace a"] - #[doc = "pre-scheduled `external_propose` call."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] + #[doc = "See [`Pallet::external_propose_default`]."] external_propose_default { proposal: runtime_types::frame_support::traits::preimages::Bounded< runtime_types::da_runtime::RuntimeCall, >, }, #[codec(index = 7)] - #[doc = "Schedule the currently externally-proposed majority-carries referendum to be tabled"] - #[doc = "immediately. If there is no externally-proposed referendum currently, or if there is one"] - #[doc = "but it is not a majority-carries referendum then it fails."] - #[doc = ""] - #[doc = "The dispatch of this call must be `FastTrackOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The hash of the current external proposal."] - #[doc = "- `voting_period`: The period that is allowed for voting on this proposal. Increased to"] - #[doc = "\tMust be always greater than zero."] - #[doc = "\tFor `FastTrackOrigin` must be equal or greater than `FastTrackVotingPeriod`."] - #[doc = "- `delay`: The number of block after voting has ended in approval and this should be"] - #[doc = " enacted. This doesn't have a minimum amount."] - #[doc = ""] - #[doc = "Emits `Started`."] - #[doc = ""] - #[doc = "Weight: `O(1)`"] + #[doc = "See [`Pallet::fast_track`]."] fast_track { proposal_hash: ::subxt::utils::H256, voting_period: ::core::primitive::u32, delay: ::core::primitive::u32, }, #[codec(index = 8)] - #[doc = "Veto and blacklist the external proposal hash."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `VetoOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The preimage hash of the proposal to veto and blacklist."] - #[doc = ""] - #[doc = "Emits `Vetoed`."] - #[doc = ""] - #[doc = "Weight: `O(V + log(V))` where V is number of `existing vetoers`"] + #[doc = "See [`Pallet::veto_external`]."] veto_external { proposal_hash: ::subxt::utils::H256 }, #[codec(index = 9)] - #[doc = "Remove a referendum."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Root_."] - #[doc = ""] - #[doc = "- `ref_index`: The index of the referendum to cancel."] - #[doc = ""] - #[doc = "# Weight: `O(1)`."] + #[doc = "See [`Pallet::cancel_referendum`]."] cancel_referendum { #[codec(compact)] ref_index: ::core::primitive::u32, }, #[codec(index = 10)] - #[doc = "Delegate the voting power (with some given conviction) of the sending account."] - #[doc = ""] - #[doc = "The balance delegated is locked for as long as it's delegated, and thereafter for the"] - #[doc = "time appropriate for the conviction's lock period."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_, and the signing account must either:"] - #[doc = " - be delegating already; or"] - #[doc = " - have no voting activity (if there is, then it will need to be removed/consolidated"] - #[doc = " through `reap_vote` or `unvote`)."] - #[doc = ""] - #[doc = "- `to`: The account whose voting the `target` account's voting power will follow."] - #[doc = "- `conviction`: The conviction that will be attached to the delegated votes. When the"] - #[doc = " account is undelegated, the funds will be locked for the corresponding period."] - #[doc = "- `balance`: The amount of the account's balance to be used in delegating. This must not"] - #[doc = " be more than the account's current balance."] - #[doc = ""] - #[doc = "Emits `Delegated`."] - #[doc = ""] - #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] - #[doc = " voted on. Weight is charged as if maximum votes."] + #[doc = "See [`Pallet::delegate`]."] delegate { to: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -27609,34 +26879,13 @@ pub mod api { balance: ::core::primitive::u128, }, #[codec(index = 11)] - #[doc = "Undelegate the voting power of the sending account."] - #[doc = ""] - #[doc = "Tokens may be unlocked following once an amount of time consistent with the lock period"] - #[doc = "of the conviction with which the delegation was issued."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_ and the signing account must be"] - #[doc = "currently delegating."] - #[doc = ""] - #[doc = "Emits `Undelegated`."] - #[doc = ""] - #[doc = "Weight: `O(R)` where R is the number of referendums the voter delegating to has"] - #[doc = " voted on. Weight is charged as if maximum votes."] + #[doc = "See [`Pallet::undelegate`]."] undelegate, #[codec(index = 12)] - #[doc = "Clears all public proposals."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Root_."] - #[doc = ""] - #[doc = "Weight: `O(1)`."] + #[doc = "See [`Pallet::clear_public_proposals`]."] clear_public_proposals, #[codec(index = 13)] - #[doc = "Unlock tokens that have an expired lock."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_."] - #[doc = ""] - #[doc = "- `target`: The account to remove the lock on."] - #[doc = ""] - #[doc = "Weight: `O(R)` with R number of vote of target."] + #[doc = "See [`Pallet::unlock`]."] unlock { target: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -27644,50 +26893,10 @@ pub mod api { >, }, #[codec(index = 14)] - #[doc = "Remove a vote for a referendum."] - #[doc = ""] - #[doc = "If:"] - #[doc = "- the referendum was cancelled, or"] - #[doc = "- the referendum is ongoing, or"] - #[doc = "- the referendum has ended such that"] - #[doc = " - the vote of the account was in opposition to the result; or"] - #[doc = " - there was no conviction to the account's vote; or"] - #[doc = " - the account made a split vote"] - #[doc = "...then the vote is removed cleanly and a following call to `unlock` may result in more"] - #[doc = "funds being available."] - #[doc = ""] - #[doc = "If, however, the referendum has ended and:"] - #[doc = "- it finished corresponding to the vote of the account, and"] - #[doc = "- the account made a standard vote with conviction, and"] - #[doc = "- the lock period of the conviction is not over"] - #[doc = "...then the lock will be aggregated into the overall account's lock, which may involve"] - #[doc = "*overlocking* (where the two locks are combined into a single lock that is the maximum"] - #[doc = "of both the amount locked and the time is it locked for)."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_, and the signer must have a vote"] - #[doc = "registered for referendum `index`."] - #[doc = ""] - #[doc = "- `index`: The index of referendum of the vote to be removed."] - #[doc = ""] - #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] - #[doc = " Weight is calculated for the maximum number of vote."] + #[doc = "See [`Pallet::remove_vote`]."] remove_vote { index: ::core::primitive::u32 }, #[codec(index = 15)] - #[doc = "Remove a vote for a referendum."] - #[doc = ""] - #[doc = "If the `target` is equal to the signer, then this function is exactly equivalent to"] - #[doc = "`remove_vote`. If not equal to the signer, then the vote must have expired,"] - #[doc = "either because the referendum was cancelled, because the voter lost the referendum or"] - #[doc = "because the conviction period is over."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be _Signed_."] - #[doc = ""] - #[doc = "- `target`: The account of the vote to be removed; this account must have voted for"] - #[doc = " referendum `index`."] - #[doc = "- `index`: The index of referendum of the vote to be removed."] - #[doc = ""] - #[doc = "Weight: `O(R + log R)` where R is the number of referenda that `target` has voted on."] - #[doc = " Weight is calculated for the maximum number of vote."] + #[doc = "See [`Pallet::remove_other_vote`]."] remove_other_vote { target: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -27696,37 +26905,23 @@ pub mod api { index: ::core::primitive::u32, }, #[codec(index = 16)] - #[doc = "Permanently place a proposal into the blacklist. This prevents it from ever being"] - #[doc = "proposed again."] - #[doc = ""] - #[doc = "If called on a queued public or external proposal, then this will result in it being"] - #[doc = "removed. If the `ref_index` supplied is an active referendum with the proposal hash,"] - #[doc = "then it will be cancelled."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `BlacklistOrigin`."] - #[doc = ""] - #[doc = "- `proposal_hash`: The proposal hash to blacklist permanently."] - #[doc = "- `ref_index`: An ongoing referendum whose hash is `proposal_hash`, which will be"] - #[doc = "cancelled."] - #[doc = ""] - #[doc = "Weight: `O(p)` (though as this is an high-privilege dispatch, we assume it has a"] - #[doc = " reasonable value)."] + #[doc = "See [`Pallet::blacklist`]."] blacklist { proposal_hash: ::subxt::utils::H256, maybe_ref_index: ::core::option::Option<::core::primitive::u32>, }, #[codec(index = 17)] - #[doc = "Remove a proposal."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be `CancelProposalOrigin`."] - #[doc = ""] - #[doc = "- `prop_index`: The index of the proposal to cancel."] - #[doc = ""] - #[doc = "Weight: `O(p)` where `p = PublicProps::::decode_len()`"] + #[doc = "See [`Pallet::cancel_proposal`]."] cancel_proposal { #[codec(compact)] prop_index: ::core::primitive::u32, }, + #[codec(index = 18)] + #[doc = "See [`Pallet::set_metadata`]."] + set_metadata { + owner: runtime_types::pallet_democracy::types::MetadataOwner, + maybe_hash: ::core::option::Option<::subxt::utils::H256>, + }, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -27741,7 +26936,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Value too low"] @@ -27813,6 +27008,9 @@ pub mod api { #[codec(index = 22)] #[doc = "Voting period too low"] VotingPeriodLow, + #[codec(index = 23)] + #[doc = "The preimage does not exist."] + PreimageNotExist, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -27827,7 +27025,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A motion has been proposed by a public account."] @@ -27898,6 +27096,25 @@ pub mod api { #[codec(index = 13)] #[doc = "A proposal got canceled."] ProposalCanceled { prop_index: ::core::primitive::u32 }, + #[codec(index = 14)] + #[doc = "Metadata for a proposal or a referendum has been set."] + MetadataSet { + owner: runtime_types::pallet_democracy::types::MetadataOwner, + hash: ::subxt::utils::H256, + }, + #[codec(index = 15)] + #[doc = "Metadata for a proposal or a referendum has been cleared."] + MetadataCleared { + owner: runtime_types::pallet_democracy::types::MetadataOwner, + hash: ::subxt::utils::H256, + }, + #[codec(index = 16)] + #[doc = "Metadata has been transferred to new owner."] + MetadataTransferred { + prev_owner: runtime_types::pallet_democracy::types::MetadataOwner, + owner: runtime_types::pallet_democracy::types::MetadataOwner, + hash: ::subxt::utils::H256, + }, } } pub mod types { @@ -27932,6 +27149,27 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum MetadataOwner { + #[codec(index = 0)] + External, + #[codec(index = 1)] + Proposal(::core::primitive::u32), + #[codec(index = 2)] + Referendum(::core::primitive::u32), + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum ReferendumInfo<_0, _1, _2> { #[codec(index = 0)] Ongoing(runtime_types::pallet_democracy::types::ReferendumStatus<_0, _1, _2>), @@ -28049,7 +27287,7 @@ pub mod api { pub enum Voting<_0, _1, _2> { #[codec(index = 0)] Direct { - votes: runtime_types::sp_core::bounded::bounded_vec::BoundedVec<( + votes: runtime_types::bounded_collections::bounded_vec::BoundedVec<( _2, runtime_types::pallet_democracy::vote::AccountVote<_0>, )>, @@ -28108,9 +27346,9 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { - # [codec (index = 0)] # [doc = "Submit a solution for the unsigned phase."] # [doc = ""] # [doc = "The dispatch origin fo this call must be __none__."] # [doc = ""] # [doc = "This submission is checked on the fly. Moreover, this unsigned solution is only"] # [doc = "validated when submitted to the pool from the **local** node. Effectively, this means"] # [doc = "that only active validators can submit this transaction when authoring a block (similar"] # [doc = "to an inherent)."] # [doc = ""] # [doc = "To prevent any incorrect solution (and thus wasted time/weight), this transaction will"] # [doc = "panic if the solution submitted by the validator is invalid in any way, effectively"] # [doc = "putting their authoring reward at risk."] # [doc = ""] # [doc = "No deposit or reward is associated with this submission."] submit_unsigned { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: da_runtime :: constants :: staking :: NposSolution16 > > , witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } , # [codec (index = 1)] # [doc = "Set a new value for `MinimumUntrustedScore`."] # [doc = ""] # [doc = "Dispatch origin must be aligned with `T::ForceOrigin`."] # [doc = ""] # [doc = "This check can be turned off by setting the value to `None`."] set_minimum_untrusted_score { maybe_next_score : :: core :: option :: Option < runtime_types :: sp_npos_elections :: ElectionScore > , } , # [codec (index = 2)] # [doc = "Set a solution in the queue, to be handed out to the client of this pallet in the next"] # [doc = "call to `ElectionProvider::elect`."] # [doc = ""] # [doc = "This can only be set by `T::ForceOrigin`, and only when the phase is `Emergency`."] # [doc = ""] # [doc = "The solution is not checked for any feasibility and is assumed to be trustworthy, as any"] # [doc = "feasibility check itself can in principle cause the election process to fail (due to"] # [doc = "memory/weight constrains)."] set_emergency_election_result { supports : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: utils :: AccountId32 > ,) > , } , # [codec (index = 3)] # [doc = "Submit a solution for the signed phase."] # [doc = ""] # [doc = "The dispatch origin fo this call must be __signed__."] # [doc = ""] # [doc = "The solution is potentially queued, based on the claimed score and processed at the end"] # [doc = "of the signed phase."] # [doc = ""] # [doc = "A deposit is reserved and recorded for the solution. Based on the outcome, the solution"] # [doc = "might be rewarded, slashed, or get all or a part of the deposit back."] submit { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: da_runtime :: constants :: staking :: NposSolution16 > > , } , # [codec (index = 4)] # [doc = "Trigger the governance fallback."] # [doc = ""] # [doc = "This can only be called when [`Phase::Emergency`] is enabled, as an alternative to"] # [doc = "calling [`Call::set_emergency_election_result`]."] governance_fallback { maybe_max_voters : :: core :: option :: Option < :: core :: primitive :: u32 > , maybe_max_targets : :: core :: option :: Option < :: core :: primitive :: u32 > , } , } + # [codec (index = 0)] # [doc = "See [`Pallet::submit_unsigned`]."] submit_unsigned { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: da_runtime :: constants :: staking :: NposSolution16 > > , witness : runtime_types :: pallet_election_provider_multi_phase :: SolutionOrSnapshotSize , } , # [codec (index = 1)] # [doc = "See [`Pallet::set_minimum_untrusted_score`]."] set_minimum_untrusted_score { maybe_next_score : :: core :: option :: Option < runtime_types :: sp_npos_elections :: ElectionScore > , } , # [codec (index = 2)] # [doc = "See [`Pallet::set_emergency_election_result`]."] set_emergency_election_result { supports : :: std :: vec :: Vec < (:: subxt :: utils :: AccountId32 , runtime_types :: sp_npos_elections :: Support < :: subxt :: utils :: AccountId32 > ,) > , } , # [codec (index = 3)] # [doc = "See [`Pallet::submit`]."] submit { raw_solution : :: std :: boxed :: Box < runtime_types :: pallet_election_provider_multi_phase :: RawSolution < runtime_types :: da_runtime :: constants :: staking :: NposSolution16 > > , } , # [codec (index = 4)] # [doc = "See [`Pallet::governance_fallback`]."] governance_fallback { maybe_max_voters : :: core :: option :: Option < :: core :: primitive :: u32 > , maybe_max_targets : :: core :: option :: Option < :: core :: primitive :: u32 > , } , } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -28182,7 +27420,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A solution was stored with the given compute."] @@ -28338,7 +27576,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ReadySolution { - pub supports: runtime_types::sp_core::bounded::bounded_vec::BoundedVec<( + pub supports: runtime_types::bounded_collections::bounded_vec::BoundedVec<( ::subxt::utils::AccountId32, runtime_types::sp_npos_elections::Support<::subxt::utils::AccountId32>, )>, @@ -28358,15 +27596,9 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct RoundSnapshot { - pub voters: ::std::vec::Vec<( - ::subxt::utils::AccountId32, - ::core::primitive::u64, - runtime_types::sp_core::bounded::bounded_vec::BoundedVec< - ::subxt::utils::AccountId32, - >, - )>, - pub targets: ::std::vec::Vec<::subxt::utils::AccountId32>, + pub struct RoundSnapshot<_0, _1> { + pub voters: ::std::vec::Vec<_1>, + pub targets: ::std::vec::Vec<_0>, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -28405,105 +27637,31 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Vote for a set of candidates for the upcoming round of election. This can be called to"] - #[doc = "set the initial votes, or update already existing votes."] - #[doc = ""] - #[doc = "Upon initial voting, `value` units of `who`'s balance is locked and a deposit amount is"] - #[doc = "reserved. The deposit is based on the number of votes and can be updated over time."] - #[doc = ""] - #[doc = "The `votes` should:"] - #[doc = " - not be empty."] - #[doc = " - be less than the number of possible candidates. Note that all current members and"] - #[doc = " runners-up are also automatically candidates for the next round."] - #[doc = ""] - #[doc = "If `value` is more than `who`'s free balance, then the maximum of the two is used."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed."] - #[doc = ""] - #[doc = "### Warning"] - #[doc = ""] - #[doc = "It is the responsibility of the caller to **NOT** place all of their balance into the"] - #[doc = "lock and keep some for further operations."] - #[doc = ""] - #[doc = "# "] - #[doc = "We assume the maximum weight among all 3 cases: vote_equal, vote_more and vote_less."] - #[doc = "# "] + #[doc = "See [`Pallet::vote`]."] vote { votes: ::std::vec::Vec<::subxt::utils::AccountId32>, #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 1)] - #[doc = "Remove `origin` as a voter."] - #[doc = ""] - #[doc = "This removes the lock and returns the deposit."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed and be a voter."] + #[doc = "See [`Pallet::remove_voter`]."] remove_voter, #[codec(index = 2)] - #[doc = "Submit oneself for candidacy. A fixed amount of deposit is recorded."] - #[doc = ""] - #[doc = "All candidates are wiped at the end of the term. They either become a member/runner-up,"] - #[doc = "or leave the system while their deposit is slashed."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed."] - #[doc = ""] - #[doc = "### Warning"] - #[doc = ""] - #[doc = "Even if a candidate ends up being a member, they must call [`Call::renounce_candidacy`]"] - #[doc = "to get their deposit back. Losing the spot in an election will always lead to a slash."] - #[doc = ""] - #[doc = "# "] - #[doc = "The number of current candidates must be provided as witness data."] - #[doc = "# "] + #[doc = "See [`Pallet::submit_candidacy`]."] submit_candidacy { #[codec(compact)] candidate_count: ::core::primitive::u32, }, #[codec(index = 3)] - #[doc = "Renounce one's intention to be a candidate for the next election round. 3 potential"] - #[doc = "outcomes exist:"] - #[doc = ""] - #[doc = "- `origin` is a candidate and not elected in any set. In this case, the deposit is"] - #[doc = " unreserved, returned and origin is removed as a candidate."] - #[doc = "- `origin` is a current runner-up. In this case, the deposit is unreserved, returned and"] - #[doc = " origin is removed as a runner-up."] - #[doc = "- `origin` is a current member. In this case, the deposit is unreserved and origin is"] - #[doc = " removed as a member, consequently not being a candidate for the next round anymore."] - #[doc = " Similar to [`remove_member`](Self::remove_member), if replacement runners exists, they"] - #[doc = " are immediately used. If the prime is renouncing, then no prime will exist until the"] - #[doc = " next round."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed, and have one of the above roles."] - #[doc = ""] - #[doc = "# "] - #[doc = "The type of renouncing must be provided as witness data."] - #[doc = "# "] + #[doc = "See [`Pallet::renounce_candidacy`]."] renounce_candidacy { renouncing: runtime_types::pallet_elections_phragmen::Renouncing, }, #[codec(index = 4)] - #[doc = "Remove a particular member from the set. This is effective immediately and the bond of"] - #[doc = "the outgoing member is slashed."] - #[doc = ""] - #[doc = "If a runner-up is available, then the best runner-up will be removed and replaces the"] - #[doc = "outgoing member. Otherwise, if `rerun_election` is `true`, a new phragmen election is"] - #[doc = "started, else, nothing happens."] - #[doc = ""] - #[doc = "If `slash_bond` is set to true, the bond of the member being removed is slashed. Else,"] - #[doc = "it is returned."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be root."] - #[doc = ""] - #[doc = "Note that this does not affect the designated block number of the next election."] - #[doc = ""] - #[doc = "# "] - #[doc = "If we have a replacement, we use a small weight. Else, since this is a root call and"] - #[doc = "will go into phragmen, we assume full block for now."] - #[doc = "# "] + #[doc = "See [`Pallet::remove_member`]."] remove_member { who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -28513,16 +27671,7 @@ pub mod api { rerun_election: ::core::primitive::bool, }, #[codec(index = 5)] - #[doc = "Clean all voters who are defunct (i.e. they do not serve any purpose at all). The"] - #[doc = "deposit of the removed voters are returned."] - #[doc = ""] - #[doc = "This is an root function to be used only for cleaning the state."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be root."] - #[doc = ""] - #[doc = "# "] - #[doc = "The total number of voters and those that are defunct must be provided as witness data."] - #[doc = "# "] + #[doc = "See [`Pallet::clean_defunct_voters`]."] clean_defunct_voters { num_voters: ::core::primitive::u32, num_defunct: ::core::primitive::u32, @@ -28541,7 +27690,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Cannot vote when no candidates or members exist."] @@ -28608,7 +27757,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A new term with new_members. This indicates that enough candidates existed to run"] @@ -28728,16 +27877,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Report voter equivocation/misbehavior. This method will verify the"] - #[doc = "equivocation proof and validate the given key ownership proof"] - #[doc = "against the extracted offender. If both are valid, the offence"] - #[doc = "will be reported."] + #[doc = "See [`Pallet::report_equivocation`]."] report_equivocation { equivocation_proof: ::std::boxed::Box< - runtime_types::sp_finality_grandpa::EquivocationProof< + runtime_types::sp_consensus_grandpa::EquivocationProof< ::subxt::utils::H256, ::core::primitive::u32, >, @@ -28745,18 +27891,10 @@ pub mod api { key_owner_proof: runtime_types::sp_session::MembershipProof, }, #[codec(index = 1)] - #[doc = "Report voter equivocation/misbehavior. This method will verify the"] - #[doc = "equivocation proof and validate the given key ownership proof"] - #[doc = "against the extracted offender. If both are valid, the offence"] - #[doc = "will be reported."] - #[doc = ""] - #[doc = "This extrinsic must be called unsigned and it is expected that only"] - #[doc = "block authors will call it (validated in `ValidateUnsigned`), as such"] - #[doc = "if the block author is defined it will be defined as the equivocation"] - #[doc = "reporter."] + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] report_equivocation_unsigned { equivocation_proof: ::std::boxed::Box< - runtime_types::sp_finality_grandpa::EquivocationProof< + runtime_types::sp_consensus_grandpa::EquivocationProof< ::subxt::utils::H256, ::core::primitive::u32, >, @@ -28764,18 +27902,7 @@ pub mod api { key_owner_proof: runtime_types::sp_session::MembershipProof, }, #[codec(index = 2)] - #[doc = "Note that the current authority set of the GRANDPA finality gadget has stalled."] - #[doc = ""] - #[doc = "This will trigger a forced authority set change at the beginning of the next session, to"] - #[doc = "be enacted `delay` blocks after that. The `delay` should be high enough to safely assume"] - #[doc = "that the block signalling the forced change will not be re-orged e.g. 1000 blocks."] - #[doc = "The block production rate (which may be slowed down because of finality lagging) should"] - #[doc = "be taken into account when choosing the `delay`. The GRANDPA voters based on the new"] - #[doc = "authority will start voting on top of `best_finalized_block_number` for new finalized"] - #[doc = "blocks. `best_finalized_block_number` should be the highest of the latest finalized"] - #[doc = "block of all validators of the new authority set."] - #[doc = ""] - #[doc = "Only callable by root."] + #[doc = "See [`Pallet::note_stalled`]."] note_stalled { delay: ::core::primitive::u32, best_finalized_block_number: ::core::primitive::u32, @@ -28794,7 +27921,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Attempt to signal GRANDPA pause when the authority set isn't live"] @@ -28833,13 +27960,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "New authority set has been applied."] NewAuthorities { authority_set: ::std::vec::Vec<( - runtime_types::sp_finality_grandpa::app::Public, + runtime_types::sp_consensus_grandpa::app::Public, ::core::primitive::u64, )>, }, @@ -28868,8 +27995,8 @@ pub mod api { pub scheduled_at: _0, pub delay: _0, pub next_authorities: - runtime_types::sp_core::bounded::weak_bounded_vec::WeakBoundedVec<( - runtime_types::sp_finality_grandpa::app::Public, + runtime_types::bounded_collections::weak_bounded_vec::WeakBoundedVec<( + runtime_types::sp_consensus_grandpa::app::Public, ::core::primitive::u64, )>, pub forced: ::core::option::Option<_0>, @@ -28917,20 +28044,8 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[doc = "Identity pallet declaration."] pub enum Call { - #[codec(index = 0)] - #[doc = "Add a registrar to the system."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `T::RegistrarOrigin`."] - #[doc = ""] - #[doc = "- `account`: the account of the registrar."] - #[doc = ""] - #[doc = "Emits `RegistrarAdded` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(R)` where `R` registrar-count (governance-bounded and code-bounded)."] - #[doc = "- One storage mutation (codec `O(R)`)."] - #[doc = "- One event."] - #[doc = "# "] + #[codec(index = 0)] + #[doc = "See [`Pallet::add_registrar`]."] add_registrar { account: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -28938,51 +28053,13 @@ pub mod api { >, }, #[codec(index = 1)] - #[doc = "Set an account's identity information and reserve the appropriate deposit."] - #[doc = ""] - #[doc = "If the account already has identity information, the deposit is taken as part payment"] - #[doc = "for the new deposit."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `info`: The identity information."] - #[doc = ""] - #[doc = "Emits `IdentitySet` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(X + X' + R)`"] - #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)"] - #[doc = " - where `R` judgements-count (registrar-count-bounded)"] - #[doc = "- One balance reserve operation."] - #[doc = "- One storage mutation (codec-read `O(X' + R)`, codec-write `O(X + R)`)."] - #[doc = "- One event."] - #[doc = "# "] + #[doc = "See [`Pallet::set_identity`]."] set_identity { info: ::std::boxed::Box, }, #[codec(index = 2)] - #[doc = "Set the sub-accounts of the sender."] - #[doc = ""] - #[doc = "Payment: Any aggregate balance reserved by previous `set_subs` calls will be returned"] - #[doc = "and an amount `SubAccountDeposit` will be reserved for each item in `subs`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "identity."] - #[doc = ""] - #[doc = "- `subs`: The identity's (new) sub-accounts."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(P + S)`"] - #[doc = " - where `P` old-subs-count (hard- and deposit-bounded)."] - #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] - #[doc = "- At most one balance operations."] - #[doc = "- DB:"] - #[doc = " - `P + S` storage mutations (codec complexity `O(1)`)"] - #[doc = " - One storage read (codec complexity `O(P)`)."] - #[doc = " - One storage write (codec complexity `O(S)`)."] - #[doc = " - One storage-exists (`IdentityOf::contains_key`)."] - #[doc = "# "] + #[doc = "See [`Pallet::set_subs`]."] set_subs { subs: ::std::vec::Vec<( ::subxt::utils::AccountId32, @@ -28990,49 +28067,10 @@ pub mod api { )>, }, #[codec(index = 3)] - #[doc = "Clear an account's identity info and all sub-accounts and return all deposits."] - #[doc = ""] - #[doc = "Payment: All reserved balances on the account are returned."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "identity."] - #[doc = ""] - #[doc = "Emits `IdentityCleared` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(R + S + X)`"] - #[doc = " - where `R` registrar-count (governance-bounded)."] - #[doc = " - where `S` subs-count (hard- and deposit-bounded)."] - #[doc = " - where `X` additional-field-count (deposit-bounded and code-bounded)."] - #[doc = "- One balance-unreserve operation."] - #[doc = "- `2` storage reads and `S + 2` storage deletions."] - #[doc = "- One event."] - #[doc = "# "] + #[doc = "See [`Pallet::clear_identity`]."] clear_identity, #[codec(index = 4)] - #[doc = "Request a judgement from a registrar."] - #[doc = ""] - #[doc = "Payment: At most `max_fee` will be reserved for payment to the registrar if judgement"] - #[doc = "given."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] - #[doc = "registered identity."] - #[doc = ""] - #[doc = "- `reg_index`: The index of the registrar whose judgement is requested."] - #[doc = "- `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:"] - #[doc = ""] - #[doc = "```nocompile"] - #[doc = "Self::registrars().get(reg_index).unwrap().fee"] - #[doc = "```"] - #[doc = ""] - #[doc = "Emits `JudgementRequested` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(R + X)`."] - #[doc = "- One balance-reserve operation."] - #[doc = "- Storage: 1 read `O(R)`, 1 mutate `O(X + R)`."] - #[doc = "- One event."] - #[doc = "# "] + #[doc = "See [`Pallet::request_judgement`]."] request_judgement { #[codec(compact)] reg_index: ::core::primitive::u32, @@ -29040,38 +28078,10 @@ pub mod api { max_fee: ::core::primitive::u128, }, #[codec(index = 5)] - #[doc = "Cancel a previous request."] - #[doc = ""] - #[doc = "Payment: A previously reserved deposit is returned on success."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a"] - #[doc = "registered identity."] - #[doc = ""] - #[doc = "- `reg_index`: The index of the registrar whose judgement is no longer requested."] - #[doc = ""] - #[doc = "Emits `JudgementUnrequested` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(R + X)`."] - #[doc = "- One balance-reserve operation."] - #[doc = "- One storage mutation `O(R + X)`."] - #[doc = "- One event"] - #[doc = "# "] + #[doc = "See [`Pallet::cancel_request`]."] cancel_request { reg_index: ::core::primitive::u32 }, #[codec(index = 6)] - #[doc = "Set the fee required for a judgement to be requested from a registrar."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] - #[doc = "of the registrar whose index is `index`."] - #[doc = ""] - #[doc = "- `index`: the index of the registrar whose fee is to be set."] - #[doc = "- `fee`: the new fee."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(R)`."] - #[doc = "- One storage mutation `O(R)`."] - #[doc = "- Benchmark: 7.315 + R * 0.329 µs (min squares analysis)"] - #[doc = "# "] + #[doc = "See [`Pallet::set_fee`]."] set_fee { #[codec(compact)] index: ::core::primitive::u32, @@ -29079,19 +28089,7 @@ pub mod api { fee: ::core::primitive::u128, }, #[codec(index = 7)] - #[doc = "Change the account associated with a registrar."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] - #[doc = "of the registrar whose index is `index`."] - #[doc = ""] - #[doc = "- `index`: the index of the registrar whose fee is to be set."] - #[doc = "- `new`: the new account ID."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(R)`."] - #[doc = "- One storage mutation `O(R)`."] - #[doc = "- Benchmark: 8.823 + R * 0.32 µs (min squares analysis)"] - #[doc = "# "] + #[doc = "See [`Pallet::set_account_id`]."] set_account_id { #[codec(compact)] index: ::core::primitive::u32, @@ -29101,19 +28099,7 @@ pub mod api { >, }, #[codec(index = 8)] - #[doc = "Set the field information for a registrar."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] - #[doc = "of the registrar whose index is `index`."] - #[doc = ""] - #[doc = "- `index`: the index of the registrar whose fee is to be set."] - #[doc = "- `fields`: the fields that the registrar concerns themselves with."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(R)`."] - #[doc = "- One storage mutation `O(R)`."] - #[doc = "- Benchmark: 7.464 + R * 0.325 µs (min squares analysis)"] - #[doc = "# "] + #[doc = "See [`Pallet::set_fields`]."] set_fields { #[codec(compact)] index: ::core::primitive::u32, @@ -29122,26 +28108,7 @@ pub mod api { >, }, #[codec(index = 9)] - #[doc = "Provide a judgement for an account's identity."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must be the account"] - #[doc = "of the registrar whose index is `reg_index`."] - #[doc = ""] - #[doc = "- `reg_index`: the index of the registrar whose judgement is being made."] - #[doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] - #[doc = " with a registered identity."] - #[doc = "- `judgement`: the judgement of the registrar of index `reg_index` about `target`."] - #[doc = "- `identity`: The hash of the [`IdentityInfo`] for that the judgement is provided."] - #[doc = ""] - #[doc = "Emits `JudgementGiven` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(R + X)`."] - #[doc = "- One balance-transfer operation."] - #[doc = "- Up to one account-lookup operation."] - #[doc = "- Storage: 1 read `O(R)`, 1 mutate `O(R + X)`."] - #[doc = "- One event."] - #[doc = "# "] + #[doc = "See [`Pallet::provide_judgement`]."] provide_judgement { #[codec(compact)] reg_index: ::core::primitive::u32, @@ -29155,25 +28122,7 @@ pub mod api { identity: ::subxt::utils::H256, }, #[codec(index = 10)] - #[doc = "Remove an account's identity and sub-account information and slash the deposits."] - #[doc = ""] - #[doc = "Payment: Reserved balances from `set_subs` and `set_identity` are slashed and handled by"] - #[doc = "`Slash`. Verification request deposits are not returned; they should be cancelled"] - #[doc = "manually using `cancel_request`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must match `T::ForceOrigin`."] - #[doc = ""] - #[doc = "- `target`: the account whose identity the judgement is upon. This must be an account"] - #[doc = " with a registered identity."] - #[doc = ""] - #[doc = "Emits `IdentityKilled` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(R + S + X)`."] - #[doc = "- One balance-reserve operation."] - #[doc = "- `S + 2` storage mutations."] - #[doc = "- One event."] - #[doc = "# "] + #[doc = "See [`Pallet::kill_identity`]."] kill_identity { target: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -29181,13 +28130,7 @@ pub mod api { >, }, #[codec(index = 11)] - #[doc = "Add the given account to the sender's subs."] - #[doc = ""] - #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] - #[doc = "to the sender."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "sub identity of `sub`."] + #[doc = "See [`Pallet::add_sub`]."] add_sub { sub: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -29196,10 +28139,7 @@ pub mod api { data: runtime_types::pallet_identity::types::Data, }, #[codec(index = 12)] - #[doc = "Alter the associated name of the given sub-account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "sub identity of `sub`."] + #[doc = "See [`Pallet::rename_sub`]."] rename_sub { sub: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -29208,13 +28148,7 @@ pub mod api { data: runtime_types::pallet_identity::types::Data, }, #[codec(index = 13)] - #[doc = "Remove the given account from the sender's subs."] - #[doc = ""] - #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] - #[doc = "to the sender."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "sub identity of `sub`."] + #[doc = "See [`Pallet::remove_sub`]."] remove_sub { sub: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -29222,16 +28156,7 @@ pub mod api { >, }, #[codec(index = 14)] - #[doc = "Remove the sender as a sub-account."] - #[doc = ""] - #[doc = "Payment: Balance reserved by a previous `set_subs` call for one sub will be repatriated"] - #[doc = "to the sender (*not* the original depositor)."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must have a registered"] - #[doc = "super-identity."] - #[doc = ""] - #[doc = "NOTE: This should not normally be used, but is provided in the case that the non-"] - #[doc = "controller of an account is maliciously registered as a sub-account."] + #[doc = "See [`Pallet::quit_sub`]."] quit_sub, } #[derive( @@ -29247,7 +28172,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Too many subs-accounts."] @@ -29317,7 +28242,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A name was set or reset (which will remove all judgements)."] @@ -29537,7 +28462,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct IdentityInfo { - pub additional: runtime_types::sp_core::bounded::bounded_vec::BoundedVec<( + pub additional: runtime_types::bounded_collections::bounded_vec::BoundedVec<( runtime_types::pallet_identity::types::Data, runtime_types::pallet_identity::types::Data, )>, @@ -29613,7 +28538,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Registration<_0> { - pub judgements: runtime_types::sp_core::bounded::bounded_vec::BoundedVec<( + pub judgements: runtime_types::bounded_collections::bounded_vec::BoundedVec<( ::core::primitive::u32, runtime_types::pallet_identity::types::Judgement<_0>, )>, @@ -29639,18 +28564,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "# "] - #[doc = "- Complexity: `O(K + E)` where K is length of `Keys` (heartbeat.validators_len) and E is"] - #[doc = " length of `heartbeat.network_state.external_address`"] - #[doc = " - `O(K)`: decoding of length `K`"] - #[doc = " - `O(E)`: decoding/encoding of length `E`"] - #[doc = "- DbReads: pallet_session `Validators`, pallet_session `CurrentIndex`, `Keys`,"] - #[doc = " `ReceivedHeartbeats`"] - #[doc = "- DbWrites: `ReceivedHeartbeats`"] - #[doc = "# "] + #[doc = "See [`Pallet::heartbeat`]."] heartbeat { heartbeat: runtime_types::pallet_im_online::Heartbeat<::core::primitive::u32>, @@ -29670,7 +28587,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Non existent public key."] @@ -29692,7 +28609,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A new heartbeat was received from `AuthorityId`."] @@ -29762,33 +28679,8 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BoundedOpaqueNetworkState { - pub peer_id: runtime_types::sp_core::bounded::weak_bounded_vec::WeakBoundedVec< - ::core::primitive::u8, - >, - pub external_addresses: - runtime_types::sp_core::bounded::weak_bounded_vec::WeakBoundedVec< - runtime_types::sp_core::bounded::weak_bounded_vec::WeakBoundedVec< - ::core::primitive::u8, - >, - >, - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Heartbeat<_0> { pub block_number: _0, - pub network_state: runtime_types::sp_core::offchain::OpaqueNetworkState, pub session_index: _0, pub authority_index: _0, pub validators_len: _0, @@ -29811,49 +28703,13 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Assign an previously unassigned index."] - #[doc = ""] - #[doc = "Payment: `Deposit` is reserved from the sender account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `index`: the index to be claimed. This must not be in use."] - #[doc = ""] - #[doc = "Emits `IndexAssigned` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] + #[doc = "See [`Pallet::claim`]."] claim { index: ::core::primitive::u32 }, #[codec(index = 1)] - #[doc = "Assign an index already owned by the sender to another account. The balance reservation"] - #[doc = "is effectively transferred to the new account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `index`: the index to be re-assigned. This must be owned by the sender."] - #[doc = "- `new`: the new owner of the index. This function is a no-op if it is equal to sender."] - #[doc = ""] - #[doc = "Emits `IndexAssigned` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One transfer operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Indices Accounts, System Account (recipient)"] - #[doc = " - Writes: Indices Accounts, System Account (recipient)"] - #[doc = "# "] + #[doc = "See [`Pallet::transfer`]."] transfer { new: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -29862,47 +28718,10 @@ pub mod api { index: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "Free up an index owned by the sender."] - #[doc = ""] - #[doc = "Payment: Any previous deposit placed for the index is unreserved in the sender account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the sender must own the index."] - #[doc = ""] - #[doc = "- `index`: the index to be freed. This must be owned by the sender."] - #[doc = ""] - #[doc = "Emits `IndexFreed` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- One reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] + #[doc = "See [`Pallet::free`]."] free { index: ::core::primitive::u32 }, #[codec(index = 3)] - #[doc = "Force an index to an account. This doesn't require a deposit. If the index is already"] - #[doc = "held, then any deposit is reimbursed to its current owner."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Root_."] - #[doc = ""] - #[doc = "- `index`: the index to be (re-)assigned."] - #[doc = "- `new`: the new owner of the index. This function is a no-op if it is equal to sender."] - #[doc = "- `freeze`: if set to `true`, will freeze the index so it cannot be transferred."] - #[doc = ""] - #[doc = "Emits `IndexAssigned` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- Up to one reserve operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Indices Accounts, System Account (original owner)"] - #[doc = " - Writes: Indices Accounts, System Account (original owner)"] - #[doc = "# "] + #[doc = "See [`Pallet::force_transfer`]."] force_transfer { new: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -29912,24 +28731,7 @@ pub mod api { freeze: ::core::primitive::bool, }, #[codec(index = 4)] - #[doc = "Freeze an index so it will always point to the sender account. This consumes the"] - #[doc = "deposit."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the signing account must have a"] - #[doc = "non-frozen account `index`."] - #[doc = ""] - #[doc = "- `index`: the index to be frozen in place."] - #[doc = ""] - #[doc = "Emits `IndexFrozen` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(1)`."] - #[doc = "- One storage mutation (codec `O(1)`)."] - #[doc = "- Up to one slash operation."] - #[doc = "- One event."] - #[doc = "-------------------"] - #[doc = "- DB Weight: 1 Read/Write (Accounts)"] - #[doc = "# "] + #[doc = "See [`Pallet::freeze`]."] freeze { index: ::core::primitive::u32 }, } #[derive( @@ -29945,7 +28747,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "The index was not already assigned."] @@ -29976,7 +28778,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A account index was assigned."] @@ -30013,9 +28815,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] + #[doc = "See [`Pallet::mandate`]."] mandate { call: ::std::boxed::Box, }, @@ -30033,7 +28836,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A root operation was executed, show result"] @@ -30061,12 +28864,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Add a member `who` to the set."] - #[doc = ""] - #[doc = "May only be called from `T::AddOrigin`."] + #[doc = "See [`Pallet::add_member`]."] add_member { who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -30074,9 +28875,7 @@ pub mod api { >, }, #[codec(index = 1)] - #[doc = "Remove a member `who` from the set."] - #[doc = ""] - #[doc = "May only be called from `T::RemoveOrigin`."] + #[doc = "See [`Pallet::remove_member`]."] remove_member { who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -30084,11 +28883,7 @@ pub mod api { >, }, #[codec(index = 2)] - #[doc = "Swap out one member `remove` for another `add`."] - #[doc = ""] - #[doc = "May only be called from `T::SwapOrigin`."] - #[doc = ""] - #[doc = "Prime membership is *not* passed from `remove` to `add`, if extant."] + #[doc = "See [`Pallet::swap_member`]."] swap_member { remove: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -30100,19 +28895,12 @@ pub mod api { >, }, #[codec(index = 3)] - #[doc = "Change the membership to a new set, disregarding the existing membership. Be nice and"] - #[doc = "pass `members` pre-sorted."] - #[doc = ""] - #[doc = "May only be called from `T::ResetOrigin`."] + #[doc = "See [`Pallet::reset_members`]."] reset_members { members: ::std::vec::Vec<::subxt::utils::AccountId32>, }, #[codec(index = 4)] - #[doc = "Swap out the sending member for some other key `new`."] - #[doc = ""] - #[doc = "May only be called from `Signed` origin of a current member."] - #[doc = ""] - #[doc = "Prime membership is passed from the origin account to `new`, if extant."] + #[doc = "See [`Pallet::change_key`]."] change_key { new: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -30120,9 +28908,7 @@ pub mod api { >, }, #[codec(index = 5)] - #[doc = "Set the prime member. Must be a current member."] - #[doc = ""] - #[doc = "May only be called from `T::PrimeOrigin`."] + #[doc = "See [`Pallet::set_prime`]."] set_prime { who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -30130,9 +28916,7 @@ pub mod api { >, }, #[codec(index = 6)] - #[doc = "Remove the prime member if it exists."] - #[doc = ""] - #[doc = "May only be called from `T::PrimeOrigin`."] + #[doc = "See [`Pallet::clear_prime`]."] clear_prime, } #[derive( @@ -30148,7 +28932,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Already a member."] @@ -30173,7 +28957,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "The given member was added; see the transaction for who."] @@ -30213,75 +28997,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Immediately dispatch a multi-signature call using a single approval from the caller."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `other_signatories`: The accounts (other than the sender) who are part of the"] - #[doc = "multi-signature, but do not participate in the approval process."] - #[doc = "- `call`: The call to be executed."] - #[doc = ""] - #[doc = "Result is equivalent to the dispatched result."] - #[doc = ""] - #[doc = "# "] - #[doc = "O(Z + C) where Z is the length of the call and C its execution weight."] - #[doc = "-------------------------------"] - #[doc = "- DB Weight: None"] - #[doc = "- Plus Call Weight"] - #[doc = "# "] + #[doc = "See [`Pallet::as_multi_threshold_1`]."] as_multi_threshold_1 { other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, call: ::std::boxed::Box, }, #[codec(index = 1)] - #[doc = "Register approval for a dispatch to be made from a deterministic composite account if"] - #[doc = "approved by a total of `threshold - 1` of `other_signatories`."] - #[doc = ""] - #[doc = "If there are enough, then dispatch the call."] - #[doc = ""] - #[doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] - #[doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] - #[doc = "is cancelled."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] - #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] - #[doc = "dispatch. May not be empty."] - #[doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] - #[doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] - #[doc = "transaction index) of the first approval transaction."] - #[doc = "- `call`: The call to be executed."] - #[doc = ""] - #[doc = "NOTE: Unless this is the final approval, you will generally want to use"] - #[doc = "`approve_as_multi` instead, since it only requires a hash of the call."] - #[doc = ""] - #[doc = "Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise"] - #[doc = "on success, result is `Ok` and the result from the interior call, if it was executed,"] - #[doc = "may be found in the deposited `MultisigExecuted` event."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(S + Z + Call)`."] - #[doc = "- Up to one balance-reserve or unreserve operation."] - #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] - #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] - #[doc = "- One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len."] - #[doc = "- One encode & hash, both of complexity `O(S)`."] - #[doc = "- Up to one binary search and insert (`O(logS + S)`)."] - #[doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] - #[doc = "- One event."] - #[doc = "- The weight of the `call`."] - #[doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] - #[doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] - #[doc = "-------------------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Reads: Multisig Storage, [Caller Account]"] - #[doc = " - Writes: Multisig Storage, [Caller Account]"] - #[doc = "- Plus Call Weight"] - #[doc = "# "] + #[doc = "See [`Pallet::as_multi`]."] as_multi { threshold: ::core::primitive::u16, other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -30292,41 +29017,7 @@ pub mod api { max_weight: runtime_types::sp_weights::weight_v2::Weight, }, #[codec(index = 2)] - #[doc = "Register approval for a dispatch to be made from a deterministic composite account if"] - #[doc = "approved by a total of `threshold - 1` of `other_signatories`."] - #[doc = ""] - #[doc = "Payment: `DepositBase` will be reserved if this is the first approval, plus"] - #[doc = "`threshold` times `DepositFactor`. It is returned once this dispatch happens or"] - #[doc = "is cancelled."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] - #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] - #[doc = "dispatch. May not be empty."] - #[doc = "- `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is"] - #[doc = "not the first approval, then it must be `Some`, with the timepoint (block number and"] - #[doc = "transaction index) of the first approval transaction."] - #[doc = "- `call_hash`: The hash of the call to be executed."] - #[doc = ""] - #[doc = "NOTE: If this is the final approval, you will want to use `as_multi` instead."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(S)`."] - #[doc = "- Up to one balance-reserve or unreserve operation."] - #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] - #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] - #[doc = "- One encode & hash, both of complexity `O(S)`."] - #[doc = "- Up to one binary search and insert (`O(logS + S)`)."] - #[doc = "- I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove."] - #[doc = "- One event."] - #[doc = "- Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit"] - #[doc = " taken for its lifetime of `DepositBase + threshold * DepositFactor`."] - #[doc = "----------------------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Read: Multisig Storage, [Caller Account]"] - #[doc = " - Write: Multisig Storage, [Caller Account]"] - #[doc = "# "] + #[doc = "See [`Pallet::approve_as_multi`]."] approve_as_multi { threshold: ::core::primitive::u16, other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -30337,32 +29028,7 @@ pub mod api { max_weight: runtime_types::sp_weights::weight_v2::Weight, }, #[codec(index = 3)] - #[doc = "Cancel a pre-existing, on-going multisig transaction. Any deposit reserved previously"] - #[doc = "for this operation will be unreserved on success."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "- `threshold`: The total number of approvals for this dispatch before it is executed."] - #[doc = "- `other_signatories`: The accounts (other than the sender) who can approve this"] - #[doc = "dispatch. May not be empty."] - #[doc = "- `timepoint`: The timepoint (block number and transaction index) of the first approval"] - #[doc = "transaction for this dispatch."] - #[doc = "- `call_hash`: The hash of the call to be executed."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(S)`."] - #[doc = "- Up to one balance-reserve or unreserve operation."] - #[doc = "- One passthrough operation, one insert, both `O(S)` where `S` is the number of"] - #[doc = " signatories. `S` is capped by `MaxSignatories`, with weight being proportional."] - #[doc = "- One encode & hash, both of complexity `O(S)`."] - #[doc = "- One event."] - #[doc = "- I/O: 1 read `O(S)`, one remove."] - #[doc = "- Storage: removes one item."] - #[doc = "----------------------------------"] - #[doc = "- DB Weight:"] - #[doc = " - Read: Multisig Storage, [Caller Account], Refund Account"] - #[doc = " - Write: Multisig Storage, [Caller Account], Refund Account"] - #[doc = "# "] + #[doc = "See [`Pallet::cancel_as_multi`]."] cancel_as_multi { threshold: ::core::primitive::u16, other_signatories: ::std::vec::Vec<::subxt::utils::AccountId32>, @@ -30384,7 +29050,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Threshold must be 2 or greater."] @@ -30442,7 +29108,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A new multisig operation has begun."] @@ -30499,7 +29165,7 @@ pub mod api { pub when: runtime_types::pallet_multisig::Timepoint<_0>, pub deposit: _1, pub depositor: _2, - pub approvals: runtime_types::sp_core::bounded::bounded_vec::BoundedVec<_2>, + pub approvals: runtime_types::bounded_collections::bounded_vec::BoundedVec<_2>, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -30536,76 +29202,27 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Stake funds with a pool. The amount to bond is transferred from the member to the"] - #[doc = "pools account and immediately increases the pools bond."] - #[doc = ""] - #[doc = "# Note"] - #[doc = ""] - #[doc = "* An account can only be a member of a single pool."] - #[doc = "* An account cannot join the same pool multiple times."] - #[doc = "* This call will *not* dust the member account, so the member must have at least"] - #[doc = " `existential deposit + amount` in their account."] - #[doc = "* Only a pool with [`PoolState::Open`] can be joined"] + #[doc = "See [`Pallet::join`]."] join { #[codec(compact)] amount: ::core::primitive::u128, pool_id: ::core::primitive::u32, }, #[codec(index = 1)] - #[doc = "Bond `extra` more funds from `origin` into the pool to which they already belong."] - #[doc = ""] - #[doc = "Additional funds can come from either the free balance of the account, of from the"] - #[doc = "accumulated rewards, see [`BondExtra`]."] - #[doc = ""] - #[doc = "Bonding extra funds implies an automatic payout of all pending rewards as well."] + #[doc = "See [`Pallet::bond_extra`]."] bond_extra { extra: runtime_types::pallet_nomination_pools::BondExtra< ::core::primitive::u128, >, }, #[codec(index = 2)] - #[doc = "A bonded member can use this to claim their payout based on the rewards that the pool"] - #[doc = "has accumulated since their last claimed payout (OR since joining if this is there first"] - #[doc = "time claiming rewards). The payout will be transferred to the member's account."] - #[doc = ""] - #[doc = "The member will earn rewards pro rata based on the members stake vs the sum of the"] - #[doc = "members in the pools stake. Rewards do not \"expire\"."] + #[doc = "See [`Pallet::claim_payout`]."] claim_payout, #[codec(index = 3)] - #[doc = "Unbond up to `unbonding_points` of the `member_account`'s funds from the pool. It"] - #[doc = "implicitly collects the rewards one last time, since not doing so would mean some"] - #[doc = "rewards would be forfeited."] - #[doc = ""] - #[doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] - #[doc = "account)."] - #[doc = ""] - #[doc = "# Conditions for a permissionless dispatch."] - #[doc = ""] - #[doc = "* The pool is blocked and the caller is either the root or state-toggler. This is"] - #[doc = " refereed to as a kick."] - #[doc = "* The pool is destroying and the member is not the depositor."] - #[doc = "* The pool is destroying, the member is the depositor and no other members are in the"] - #[doc = " pool."] - #[doc = ""] - #[doc = "## Conditions for permissioned dispatch (i.e. the caller is also the"] - #[doc = "`member_account`):"] - #[doc = ""] - #[doc = "* The caller is not the depositor."] - #[doc = "* The caller is the depositor, the pool is destroying and no other members are in the"] - #[doc = " pool."] - #[doc = ""] - #[doc = "# Note"] - #[doc = ""] - #[doc = "If there are too many unlocking chunks to unbond with the pool account,"] - #[doc = "[`Call::pool_withdraw_unbonded`] can be called to try and minimize unlocking chunks."] - #[doc = "The [`StakingInterface::unbond`] will implicitly call [`Call::pool_withdraw_unbonded`]"] - #[doc = "to try to free chunks if necessary (ie. if unbound was called and no unlocking chunks"] - #[doc = "are available). However, it may not be possible to release the current unlocking chunks,"] - #[doc = "in which case, the result of this call will likely be the `NoMoreChunks` error from the"] - #[doc = "staking system."] + #[doc = "See [`Pallet::unbond`]."] unbond { member_account: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -30615,36 +29232,13 @@ pub mod api { unbonding_points: ::core::primitive::u128, }, #[codec(index = 4)] - #[doc = "Call `withdraw_unbonded` for the pools account. This call can be made by any account."] - #[doc = ""] - #[doc = "This is useful if their are too many unlocking chunks to call `unbond`, and some"] - #[doc = "can be cleared by withdrawing. In the case there are too many unlocking chunks, the user"] - #[doc = "would probably see an error like `NoMoreChunks` emitted from the staking system when"] - #[doc = "they attempt to unbond."] + #[doc = "See [`Pallet::pool_withdraw_unbonded`]."] pool_withdraw_unbonded { pool_id: ::core::primitive::u32, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 5)] - #[doc = "Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an"] - #[doc = "error is returned."] - #[doc = ""] - #[doc = "Under certain conditions, this call can be dispatched permissionlessly (i.e. by any"] - #[doc = "account)."] - #[doc = ""] - #[doc = "# Conditions for a permissionless dispatch"] - #[doc = ""] - #[doc = "* The pool is in destroy mode and the target is not the depositor."] - #[doc = "* The target is the depositor and they are the only member in the sub pools."] - #[doc = "* The pool is blocked and the caller is either the root or state-toggler."] - #[doc = ""] - #[doc = "# Conditions for permissioned dispatch"] - #[doc = ""] - #[doc = "* The caller is the target and they are not the depositor."] - #[doc = ""] - #[doc = "# Note"] - #[doc = ""] - #[doc = "If the target is the depositor, the pool will be destroyed."] + #[doc = "See [`Pallet::withdraw_unbonded`]."] withdraw_unbonded { member_account: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -30653,23 +29247,7 @@ pub mod api { num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 6)] - #[doc = "Create a new delegation pool."] - #[doc = ""] - #[doc = "# Arguments"] - #[doc = ""] - #[doc = "* `amount` - The amount of funds to delegate to the pool. This also acts of a sort of"] - #[doc = " deposit since the pools creator cannot fully unbond funds until the pool is being"] - #[doc = " destroyed."] - #[doc = "* `index` - A disambiguation index for creating the account. Likely only useful when"] - #[doc = " creating multiple pools in the same extrinsic."] - #[doc = "* `root` - The account to set as [`PoolRoles::root`]."] - #[doc = "* `nominator` - The account to set as the [`PoolRoles::nominator`]."] - #[doc = "* `state_toggler` - The account to set as the [`PoolRoles::state_toggler`]."] - #[doc = ""] - #[doc = "# Note"] - #[doc = ""] - #[doc = "In addition to `amount`, the caller will transfer the existential deposit; so the caller"] - #[doc = "needs at have at least `amount + existential_deposit` transferrable."] + #[doc = "See [`Pallet::create`]."] create { #[codec(compact)] amount: ::core::primitive::u128, @@ -30681,18 +29259,13 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u32, >, - state_toggler: ::subxt::utils::MultiAddress< + bouncer: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, >, }, #[codec(index = 7)] - #[doc = "Create a new delegation pool with a previously used pool id"] - #[doc = ""] - #[doc = "# Arguments"] - #[doc = ""] - #[doc = "same as `create` with the inclusion of"] - #[doc = "* `pool_id` - `A valid PoolId."] + #[doc = "See [`Pallet::create_with_pool_id`]."] create_with_pool_id { #[codec(compact)] amount: ::core::primitive::u128, @@ -30704,59 +29277,32 @@ pub mod api { ::subxt::utils::AccountId32, ::core::primitive::u32, >, - state_toggler: ::subxt::utils::MultiAddress< + bouncer: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, ::core::primitive::u32, >, pool_id: ::core::primitive::u32, }, #[codec(index = 8)] - #[doc = "Nominate on behalf of the pool."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed by the pool nominator or the pool"] - #[doc = "root role."] - #[doc = ""] - #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] - #[doc = "account."] + #[doc = "See [`Pallet::nominate`]."] nominate { pool_id: ::core::primitive::u32, validators: ::std::vec::Vec<::subxt::utils::AccountId32>, }, #[codec(index = 9)] - #[doc = "Set a new state for the pool."] - #[doc = ""] - #[doc = "If a pool is already in the `Destroying` state, then under no condition can its state"] - #[doc = "change again."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be either:"] - #[doc = ""] - #[doc = "1. signed by the state toggler, or the root role of the pool,"] - #[doc = "2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and"] - #[doc = " then the state of the pool can be permissionlessly changed to `Destroying`."] + #[doc = "See [`Pallet::set_state`]."] set_state { pool_id: ::core::primitive::u32, state: runtime_types::pallet_nomination_pools::PoolState, }, #[codec(index = 10)] - #[doc = "Set a new metadata for the pool."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed by the state toggler, or the root role"] - #[doc = "of the pool."] + #[doc = "See [`Pallet::set_metadata`]."] set_metadata { pool_id: ::core::primitive::u32, metadata: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 11)] - #[doc = "Update configurations for the nomination pools. The origin for this call must be"] - #[doc = "Root."] - #[doc = ""] - #[doc = "# Arguments"] - #[doc = ""] - #[doc = "* `min_join_bond` - Set [`MinJoinBond`]."] - #[doc = "* `min_create_bond` - Set [`MinCreateBond`]."] - #[doc = "* `max_pools` - Set [`MaxPools`]."] - #[doc = "* `max_members` - Set [`MaxPoolMembers`]."] - #[doc = "* `max_members_per_pool` - Set [`MaxPoolMembersPerPool`]."] + #[doc = "See [`Pallet::set_configs`]."] set_configs { min_join_bond: runtime_types::pallet_nomination_pools::ConfigOp< ::core::primitive::u128, @@ -30773,15 +29319,12 @@ pub mod api { max_members_per_pool: runtime_types::pallet_nomination_pools::ConfigOp< ::core::primitive::u32, >, + global_max_commission: runtime_types::pallet_nomination_pools::ConfigOp< + runtime_types::sp_arithmetic::per_things::Perbill, + >, }, #[codec(index = 12)] - #[doc = "Update the roles of the pool."] - #[doc = ""] - #[doc = "The root is the only entity that can change any of the roles, including itself,"] - #[doc = "excluding the depositor, who can never change."] - #[doc = ""] - #[doc = "It emits an event, notifying UIs of the role change. This event is quite relevant to"] - #[doc = "most pool members and they should be informed of changes to pool roles."] + #[doc = "See [`Pallet::update_roles`]."] update_roles { pool_id: ::core::primitive::u32, new_root: runtime_types::pallet_nomination_pools::ConfigOp< @@ -30790,19 +29333,58 @@ pub mod api { new_nominator: runtime_types::pallet_nomination_pools::ConfigOp< ::subxt::utils::AccountId32, >, - new_state_toggler: runtime_types::pallet_nomination_pools::ConfigOp< + new_bouncer: runtime_types::pallet_nomination_pools::ConfigOp< ::subxt::utils::AccountId32, >, }, #[codec(index = 13)] - #[doc = "Chill on behalf of the pool."] - #[doc = ""] - #[doc = "The dispatch origin of this call must be signed by the pool nominator or the pool"] - #[doc = "root role, same as [`Pallet::nominate`]."] - #[doc = ""] - #[doc = "This directly forward the call to the staking pallet, on behalf of the pool bonded"] - #[doc = "account."] + #[doc = "See [`Pallet::chill`]."] chill { pool_id: ::core::primitive::u32 }, + #[codec(index = 14)] + #[doc = "See [`Pallet::bond_extra_other`]."] + bond_extra_other { + member: ::subxt::utils::MultiAddress< + ::subxt::utils::AccountId32, + ::core::primitive::u32, + >, + extra: runtime_types::pallet_nomination_pools::BondExtra< + ::core::primitive::u128, + >, + }, + #[codec(index = 15)] + #[doc = "See [`Pallet::set_claim_permission`]."] + set_claim_permission { + permission: runtime_types::pallet_nomination_pools::ClaimPermission, + }, + #[codec(index = 16)] + #[doc = "See [`Pallet::claim_payout_other`]."] + claim_payout_other { other: ::subxt::utils::AccountId32 }, + #[codec(index = 17)] + #[doc = "See [`Pallet::set_commission`]."] + set_commission { + pool_id: ::core::primitive::u32, + new_commission: ::core::option::Option<( + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::utils::AccountId32, + )>, + }, + #[codec(index = 18)] + #[doc = "See [`Pallet::set_commission_max`]."] + set_commission_max { + pool_id: ::core::primitive::u32, + max_commission: runtime_types::sp_arithmetic::per_things::Perbill, + }, + #[codec(index = 19)] + #[doc = "See [`Pallet::set_commission_change_rate`]."] + set_commission_change_rate { + pool_id: ::core::primitive::u32, + change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< + ::core::primitive::u32, + >, + }, + #[codec(index = 20)] + #[doc = "See [`Pallet::claim_commission`]."] + claim_commission { pool_id: ::core::primitive::u32 }, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -30842,7 +29424,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "A (bonded) pool id does not exist."] @@ -30916,11 +29498,35 @@ pub mod api { #[doc = "Partial unbonding now allowed permissionlessly."] PartialUnbondNotAllowedPermissionlessly, #[codec(index = 21)] + #[doc = "The pool's max commission cannot be set higher than the existing value."] + MaxCommissionRestricted, + #[codec(index = 22)] + #[doc = "The supplied commission exceeds the max allowed commission."] + CommissionExceedsMaximum, + #[codec(index = 23)] + #[doc = "The supplied commission exceeds global maximum commission."] + CommissionExceedsGlobalMaximum, + #[codec(index = 24)] + #[doc = "Not enough blocks have surpassed since the last commission update."] + CommissionChangeThrottled, + #[codec(index = 25)] + #[doc = "The submitted changes to commission change rate are not allowed."] + CommissionChangeRateNotAllowed, + #[codec(index = 26)] + #[doc = "There is no pending commission to claim."] + NoPendingCommission, + #[codec(index = 27)] + #[doc = "No commission current has been set."] + NoCommissionCurrentSet, + #[codec(index = 28)] #[doc = "Pool id currently in use."] PoolIdInUse, - #[codec(index = 22)] + #[codec(index = 29)] #[doc = "Pool id provided is not correct/usable."] InvalidPoolId, + #[codec(index = 30)] + #[doc = "Bonding extra is restricted to the exact pending reward amount."] + BondExtraRestricted, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -31012,7 +29618,7 @@ pub mod api { #[doc = "can never change."] RolesUpdated { root: ::core::option::Option<::subxt::utils::AccountId32>, - state_toggler: ::core::option::Option<::subxt::utils::AccountId32>, + bouncer: ::core::option::Option<::subxt::utils::AccountId32>, nominator: ::core::option::Option<::subxt::utils::AccountId32>, }, #[codec(index = 9)] @@ -31028,6 +29634,35 @@ pub mod api { era: ::core::primitive::u32, balance: ::core::primitive::u128, }, + #[codec(index = 11)] + #[doc = "A pool's commission setting has been changed."] + PoolCommissionUpdated { + pool_id: ::core::primitive::u32, + current: ::core::option::Option<( + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::utils::AccountId32, + )>, + }, + #[codec(index = 12)] + #[doc = "A pool's maximum commission setting has been changed."] + PoolMaxCommissionUpdated { + pool_id: ::core::primitive::u32, + max_commission: runtime_types::sp_arithmetic::per_things::Perbill, + }, + #[codec(index = 13)] + #[doc = "A pool's commission `change_rate` has been changed."] + PoolCommissionChangeRateUpdated { + pool_id: ::core::primitive::u32, + change_rate: runtime_types::pallet_nomination_pools::CommissionChangeRate< + ::core::primitive::u32, + >, + }, + #[codec(index = 14)] + #[doc = "Pool commission has been claimed."] + PoolCommissionClaimed { + pool_id: ::core::primitive::u32, + commission: ::core::primitive::u128, + }, } } #[derive( @@ -31043,11 +29678,81 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum BondExtra<_0> { - #[codec(index = 0)] - FreeBalance(_0), - #[codec(index = 1)] - Rewards, + pub enum BondExtra<_0> { + #[codec(index = 0)] + FreeBalance(_0), + #[codec(index = 1)] + Rewards, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BondedPoolInner { + pub commission: runtime_types::pallet_nomination_pools::Commission, + pub member_counter: ::core::primitive::u32, + pub points: ::core::primitive::u128, + pub roles: + runtime_types::pallet_nomination_pools::PoolRoles<::subxt::utils::AccountId32>, + pub state: runtime_types::pallet_nomination_pools::PoolState, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum ClaimPermission { + #[codec(index = 0)] + Permissioned, + #[codec(index = 1)] + PermissionlessCompound, + #[codec(index = 2)] + PermissionlessWithdraw, + #[codec(index = 3)] + PermissionlessAll, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct Commission { + pub current: ::core::option::Option<( + runtime_types::sp_arithmetic::per_things::Perbill, + ::subxt::utils::AccountId32, + )>, + pub max: ::core::option::Option, + pub change_rate: ::core::option::Option< + runtime_types::pallet_nomination_pools::CommissionChangeRate< + ::core::primitive::u32, + >, + >, + pub throttle_from: ::core::option::Option<::core::primitive::u32>, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -31062,12 +29767,9 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BondedPoolInner { - pub points: ::core::primitive::u128, - pub state: runtime_types::pallet_nomination_pools::PoolState, - pub member_counter: ::core::primitive::u32, - pub roles: - runtime_types::pallet_nomination_pools::PoolRoles<::subxt::utils::AccountId32>, + pub struct CommissionChangeRate<_0> { + pub max_increase: runtime_types::sp_arithmetic::per_things::Perbill, + pub min_delay: _0, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -31109,7 +29811,7 @@ pub mod api { pub last_recorded_reward_counter: runtime_types::sp_arithmetic::fixed_point::FixedU128, pub unbonding_eras: - runtime_types::sp_core::bounded::bounded_btree_map::BoundedBTreeMap< + runtime_types::bounded_collections::bounded_btree_map::BoundedBTreeMap< ::core::primitive::u32, ::core::primitive::u128, >, @@ -31131,7 +29833,7 @@ pub mod api { pub depositor: _0, pub root: ::core::option::Option<_0>, pub nominator: ::core::option::Option<_0>, - pub state_toggler: ::core::option::Option<_0>, + pub bouncer: ::core::option::Option<_0>, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -31172,6 +29874,8 @@ pub mod api { runtime_types::sp_arithmetic::fixed_point::FixedU128, pub last_recorded_total_payouts: ::core::primitive::u128, pub total_rewards_claimed: ::core::primitive::u128, + pub total_commission_pending: ::core::primitive::u128, + pub total_commission_claimed: ::core::primitive::u128, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -31188,10 +29892,11 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SubPools { pub no_era: runtime_types::pallet_nomination_pools::UnbondPool, - pub with_era: runtime_types::sp_core::bounded::bounded_btree_map::BoundedBTreeMap< - ::core::primitive::u32, - runtime_types::pallet_nomination_pools::UnbondPool, - >, + pub with_era: + runtime_types::bounded_collections::bounded_btree_map::BoundedBTreeMap< + ::core::primitive::u32, + runtime_types::pallet_nomination_pools::UnbondPool, + >, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -31258,34 +29963,21 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Register a preimage on-chain."] - #[doc = ""] - #[doc = "If the preimage was previously requested, no fees or deposits are taken for providing"] - #[doc = "the preimage. Otherwise, a deposit is taken proportional to the size of the preimage."] + #[doc = "See [`Pallet::note_preimage`]."] note_preimage { bytes: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] - #[doc = "Clear an unrequested preimage from the runtime storage."] - #[doc = ""] - #[doc = "If `len` is provided, then it will be a much cheaper operation."] - #[doc = ""] - #[doc = "- `hash`: The hash of the preimage to be removed from the store."] - #[doc = "- `len`: The length of the preimage of `hash`."] + #[doc = "See [`Pallet::unnote_preimage`]."] unnote_preimage { hash: ::subxt::utils::H256 }, #[codec(index = 2)] - #[doc = "Request a preimage be uploaded to the chain without paying any fees or deposits."] - #[doc = ""] - #[doc = "If the preimage requests has already been provided on-chain, we unreserve any deposit"] - #[doc = "a user may have paid, and take the control of the preimage out of their hands."] + #[doc = "See [`Pallet::request_preimage`]."] request_preimage { hash: ::subxt::utils::H256 }, #[codec(index = 3)] - #[doc = "Clear a previously made request for a preimage."] - #[doc = ""] - #[doc = "NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`."] + #[doc = "See [`Pallet::unrequest_preimage`]."] unrequest_preimage { hash: ::subxt::utils::H256 }, } #[derive( @@ -31301,7 +29993,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Preimage is too large to store on-chain."] @@ -31335,7 +30027,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A preimage has been noted."] @@ -31392,10 +30084,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Anonymously schedule a task."] + #[doc = "See [`Pallet::schedule`]."] schedule { when: ::core::primitive::u32, maybe_periodic: ::core::option::Option<( @@ -31406,13 +30098,13 @@ pub mod api { call: ::std::boxed::Box, }, #[codec(index = 1)] - #[doc = "Cancel an anonymously scheduled task."] + #[doc = "See [`Pallet::cancel`]."] cancel { when: ::core::primitive::u32, index: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "Schedule a named task."] + #[doc = "See [`Pallet::schedule_named`]."] schedule_named { id: [::core::primitive::u8; 32usize], when: ::core::primitive::u32, @@ -31424,16 +30116,12 @@ pub mod api { call: ::std::boxed::Box, }, #[codec(index = 3)] - #[doc = "Cancel a named scheduled task."] + #[doc = "See [`Pallet::cancel_named`]."] cancel_named { id: [::core::primitive::u8; 32usize], }, #[codec(index = 4)] - #[doc = "Anonymously schedule a task after a delay."] - #[doc = ""] - #[doc = "# "] - #[doc = "Same as [`schedule`]."] - #[doc = "# "] + #[doc = "See [`Pallet::schedule_after`]."] schedule_after { after: ::core::primitive::u32, maybe_periodic: ::core::option::Option<( @@ -31444,11 +30132,7 @@ pub mod api { call: ::std::boxed::Box, }, #[codec(index = 5)] - #[doc = "Schedule a named task after a delay."] - #[doc = ""] - #[doc = "# "] - #[doc = "Same as [`schedule_named`](Self::schedule_named)."] - #[doc = "# "] + #[doc = "See [`Pallet::schedule_named_after`]."] schedule_named_after { id: [::core::primitive::u8; 32usize], after: ::core::primitive::u32, @@ -31473,7 +30157,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Failed to schedule a call"] @@ -31586,44 +30270,16 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Sets the session key(s) of the function caller to `keys`."] - #[doc = "Allows an account to set its session key prior to becoming a validator."] - #[doc = "This doesn't take effect until the next session."] - #[doc = ""] - #[doc = "The dispatch origin of this function must be signed."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: `O(1)`. Actual cost depends on the number of length of"] - #[doc = " `T::Keys::key_ids()` which is fixed."] - #[doc = "- DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`"] - #[doc = "- DbWrites: `origin account`, `NextKeys`"] - #[doc = "- DbReads per key id: `KeyOwner`"] - #[doc = "- DbWrites per key id: `KeyOwner`"] - #[doc = "# "] + #[doc = "See [`Pallet::set_keys`]."] set_keys { keys: runtime_types::da_runtime::primitives::SessionKeys, proof: ::std::vec::Vec<::core::primitive::u8>, }, #[codec(index = 1)] - #[doc = "Removes any session key(s) of the function caller."] - #[doc = ""] - #[doc = "This doesn't take effect until the next session."] - #[doc = ""] - #[doc = "The dispatch origin of this function must be Signed and the account must be either be"] - #[doc = "convertible to a validator ID using the chain's typical addressing system (this usually"] - #[doc = "means being a controller account) or directly convertible into a validator ID (which"] - #[doc = "usually means being a stash account)."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: `O(1)` in number of key types. Actual cost depends on the number of length"] - #[doc = " of `T::Keys::key_ids()` which is fixed."] - #[doc = "- DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`"] - #[doc = "- DbWrites: `NextKeys`, `origin account`"] - #[doc = "- DbWrites per key id: `KeyOwner`"] - #[doc = "# "] + #[doc = "See [`Pallet::purge_keys`]."] purge_keys, } #[derive( @@ -31670,7 +30326,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "New session has happened. Note that the argument is the session index, not the"] @@ -31700,31 +30356,11 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Take the origin account as a stash and lock up `value` of its balance. `controller` will"] - #[doc = "be the account that controls it."] - #[doc = ""] - #[doc = "`value` must be more than the `minimum_balance` specified by `T::Currency`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the stash account."] - #[doc = ""] - #[doc = "Emits `Bonded`."] - #[doc = "# "] - #[doc = "- Independent of the arguments. Moderate complexity."] - #[doc = "- O(1)."] - #[doc = "- Three extra DB entries."] - #[doc = ""] - #[doc = "NOTE: Two of the storage writes (`Self::bonded`, `Self::payee`) are _never_ cleaned"] - #[doc = "unless the `origin` falls below _existential deposit_ and gets removed as dust."] - #[doc = "------------------"] - #[doc = "# "] + #[doc = "See [`Pallet::bond`]."] bond { - controller: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, #[codec(compact)] value: ::core::primitive::u128, payee: runtime_types::pallet_staking::RewardDestination< @@ -31732,89 +30368,29 @@ pub mod api { >, }, #[codec(index = 1)] - #[doc = "Add some extra amount that have appeared in the stash `free_balance` into the balance up"] - #[doc = "for staking."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] - #[doc = ""] - #[doc = "Use this if there are additional funds in your stash account that you wish to bond."] - #[doc = "Unlike [`bond`](Self::bond) or [`unbond`](Self::unbond) this function does not impose"] - #[doc = "any limitation on the amount that can be added."] - #[doc = ""] - #[doc = "Emits `Bonded`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- O(1)."] - #[doc = "# "] + #[doc = "See [`Pallet::bond_extra`]."] bond_extra { #[codec(compact)] max_additional: ::core::primitive::u128, }, #[codec(index = 2)] - #[doc = "Schedule a portion of the stash to be unlocked ready for transfer out after the bond"] - #[doc = "period ends. If this leaves an amount actively bonded less than"] - #[doc = "T::Currency::minimum_balance(), then it is increased to the full amount."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] - #[doc = ""] - #[doc = "Once the unlock period is done, you can call `withdraw_unbonded` to actually move"] - #[doc = "the funds out of management ready for transfer."] - #[doc = ""] - #[doc = "No more than a limited number of unlocking chunks (see `MaxUnlockingChunks`)"] - #[doc = "can co-exists at the same time. If there are no unlocking chunks slots available"] - #[doc = "[`Call::withdraw_unbonded`] is called to remove some of the chunks (if possible)."] - #[doc = ""] - #[doc = "If a user encounters the `InsufficientBond` error when calling this extrinsic,"] - #[doc = "they should call `chill` first in order to free up their bonded funds."] - #[doc = ""] - #[doc = "Emits `Unbonded`."] - #[doc = ""] - #[doc = "See also [`Call::withdraw_unbonded`]."] + #[doc = "See [`Pallet::unbond`]."] unbond { #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 3)] - #[doc = "Remove any unlocked chunks from the `unlocking` queue from our management."] - #[doc = ""] - #[doc = "This essentially frees up that balance to be used by the stash account to do"] - #[doc = "whatever it wants."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller."] - #[doc = ""] - #[doc = "Emits `Withdrawn`."] - #[doc = ""] - #[doc = "See also [`Call::unbond`]."] - #[doc = ""] - #[doc = "# "] - #[doc = "Complexity O(S) where S is the number of slashing spans to remove"] - #[doc = "NOTE: Weight annotation is the kill scenario, we refund otherwise."] - #[doc = "# "] + #[doc = "See [`Pallet::withdraw_unbonded`]."] withdraw_unbonded { num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 4)] - #[doc = "Declare the desire to validate for the origin controller."] - #[doc = ""] - #[doc = "Effects will be felt at the beginning of the next era."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] + #[doc = "See [`Pallet::validate`]."] validate { prefs: runtime_types::pallet_staking::ValidatorPrefs, }, #[codec(index = 5)] - #[doc = "Declare the desire to nominate `targets` for the origin controller."] - #[doc = ""] - #[doc = "Effects will be felt at the beginning of the next era."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] - #[doc = ""] - #[doc = "# "] - #[doc = "- The transaction's complexity is proportional to the size of `targets` (N)"] - #[doc = "which is capped at CompactAssignments::LIMIT (T::MaxNominations)."] - #[doc = "- Both the reads and writes follow a similar pattern."] - #[doc = "# "] + #[doc = "See [`Pallet::nominate`]."] nominate { targets: ::std::vec::Vec< ::subxt::utils::MultiAddress< @@ -31824,241 +30400,81 @@ pub mod api { >, }, #[codec(index = 6)] - #[doc = "Declare no desire to either validate or nominate."] - #[doc = ""] - #[doc = "Effects will be felt at the beginning of the next era."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- Contains one read."] - #[doc = "- Writes are limited to the `origin` account key."] - #[doc = "# "] + #[doc = "See [`Pallet::chill`]."] chill, #[codec(index = 7)] - #[doc = "(Re-)set the payment target for a controller."] - #[doc = ""] - #[doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- Contains a limited number of reads."] - #[doc = "- Writes are limited to the `origin` account key."] - #[doc = "---------"] - #[doc = "- Weight: O(1)"] - #[doc = "- DB Weight:"] - #[doc = " - Read: Ledger"] - #[doc = " - Write: Payee"] - #[doc = "# "] + #[doc = "See [`Pallet::set_payee`]."] set_payee { payee: runtime_types::pallet_staking::RewardDestination< ::subxt::utils::AccountId32, >, }, #[codec(index = 8)] - #[doc = "(Re-)set the controller of a stash."] - #[doc = ""] - #[doc = "Effects will be felt instantly (as soon as this function is completed successfully)."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the stash, not the controller."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Independent of the arguments. Insignificant complexity."] - #[doc = "- Contains a limited number of reads."] - #[doc = "- Writes are limited to the `origin` account key."] - #[doc = "----------"] - #[doc = "Weight: O(1)"] - #[doc = "DB Weight:"] - #[doc = "- Read: Bonded, Ledger New Controller, Ledger Old Controller"] - #[doc = "- Write: Bonded, Ledger New Controller, Ledger Old Controller"] - #[doc = "# "] - set_controller { - controller: ::subxt::utils::MultiAddress< - ::subxt::utils::AccountId32, - ::core::primitive::u32, - >, - }, + #[doc = "See [`Pallet::set_controller`]."] + set_controller, #[codec(index = 9)] - #[doc = "Sets the ideal number of validators."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# "] - #[doc = "Weight: O(1)"] - #[doc = "Write: Validator Count"] - #[doc = "# "] + #[doc = "See [`Pallet::set_validator_count`]."] set_validator_count { #[codec(compact)] new: ::core::primitive::u32, }, #[codec(index = 10)] - #[doc = "Increments the ideal number of validators upto maximum of"] - #[doc = "`ElectionProviderBase::MaxWinners`."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# "] - #[doc = "Same as [`Self::set_validator_count`]."] - #[doc = "# "] + #[doc = "See [`Pallet::increase_validator_count`]."] increase_validator_count { #[codec(compact)] additional: ::core::primitive::u32, }, #[codec(index = 11)] - #[doc = "Scale up the ideal number of validators by a factor upto maximum of"] - #[doc = "`ElectionProviderBase::MaxWinners`."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# "] - #[doc = "Same as [`Self::set_validator_count`]."] - #[doc = "# "] + #[doc = "See [`Pallet::scale_validator_count`]."] scale_validator_count { factor: runtime_types::sp_arithmetic::per_things::Percent, }, #[codec(index = 12)] - #[doc = "Force there to be no new eras indefinitely."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# Warning"] - #[doc = ""] - #[doc = "The election process starts multiple blocks before the end of the era."] - #[doc = "Thus the election process may be ongoing when this is called. In this case the"] - #[doc = "election will continue until the next era is triggered."] - #[doc = ""] - #[doc = "# "] - #[doc = "- No arguments."] - #[doc = "- Weight: O(1)"] - #[doc = "- Write: ForceEra"] - #[doc = "# "] + #[doc = "See [`Pallet::force_no_eras`]."] force_no_eras, #[codec(index = 13)] - #[doc = "Force there to be a new era at the end of the next session. After this, it will be"] - #[doc = "reset to normal (non-forced) behaviour."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# Warning"] - #[doc = ""] - #[doc = "The election process starts multiple blocks before the end of the era."] - #[doc = "If this is called just before a new era is triggered, the election process may not"] - #[doc = "have enough blocks to get a result."] - #[doc = ""] - #[doc = "# "] - #[doc = "- No arguments."] - #[doc = "- Weight: O(1)"] - #[doc = "- Write ForceEra"] - #[doc = "# "] + #[doc = "See [`Pallet::force_new_era`]."] force_new_era, #[codec(index = 14)] - #[doc = "Set the validators who cannot be slashed (if any)."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] + #[doc = "See [`Pallet::set_invulnerables`]."] set_invulnerables { invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, }, #[codec(index = 15)] - #[doc = "Force a current staker to become completely unstaked, immediately."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] + #[doc = "See [`Pallet::force_unstake`]."] force_unstake { stash: ::subxt::utils::AccountId32, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 16)] - #[doc = "Force there to be a new era at the end of sessions indefinitely."] - #[doc = ""] - #[doc = "The dispatch origin must be Root."] - #[doc = ""] - #[doc = "# Warning"] - #[doc = ""] - #[doc = "The election process starts multiple blocks before the end of the era."] - #[doc = "If this is called just before a new era is triggered, the election process may not"] - #[doc = "have enough blocks to get a result."] + #[doc = "See [`Pallet::force_new_era_always`]."] force_new_era_always, #[codec(index = 17)] - #[doc = "Cancel enactment of a deferred slash."] - #[doc = ""] - #[doc = "Can be called by the `T::AdminOrigin`."] - #[doc = ""] - #[doc = "Parameters: era and indices of the slashes for that era to kill."] + #[doc = "See [`Pallet::cancel_deferred_slash`]."] cancel_deferred_slash { era: ::core::primitive::u32, slash_indices: ::std::vec::Vec<::core::primitive::u32>, }, #[codec(index = 18)] - #[doc = "Pay out all the stakers behind a single validator for a single era."] - #[doc = ""] - #[doc = "- `validator_stash` is the stash account of the validator. Their nominators, up to"] - #[doc = " `T::MaxNominatorRewardedPerValidator`, will also receive their rewards."] - #[doc = "- `era` may be any era between `[current_era - history_depth; current_era]`."] - #[doc = ""] - #[doc = "The origin of this call must be _Signed_. Any account can call this function, even if"] - #[doc = "it is not one of the stakers."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Time complexity: at most O(MaxNominatorRewardedPerValidator)."] - #[doc = "- Contains a limited number of reads and writes."] - #[doc = "-----------"] - #[doc = "N is the Number of payouts for the validator (including the validator)"] - #[doc = "Weight:"] - #[doc = "- Reward Destination Staked: O(N)"] - #[doc = "- Reward Destination Controller (Creating): O(N)"] - #[doc = ""] - #[doc = " NOTE: weights are assuming that payouts are made to alive stash account (Staked)."] - #[doc = " Paying even a dead controller is cheaper weight-wise. We don't do any refunds here."] - #[doc = "# "] + #[doc = "See [`Pallet::payout_stakers`]."] payout_stakers { validator_stash: ::subxt::utils::AccountId32, era: ::core::primitive::u32, }, #[codec(index = 19)] - #[doc = "Rebond a portion of the stash scheduled to be unlocked."] - #[doc = ""] - #[doc = "The dispatch origin must be signed by the controller."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Time complexity: O(L), where L is unlocking chunks"] - #[doc = "- Bounded by `MaxUnlockingChunks`."] - #[doc = "- Storage changes: Can't increase storage, only decrease it."] - #[doc = "# "] + #[doc = "See [`Pallet::rebond`]."] rebond { #[codec(compact)] value: ::core::primitive::u128, }, #[codec(index = 20)] - #[doc = "Remove all data structures concerning a staker/stash once it is at a state where it can"] - #[doc = "be considered `dust` in the staking system. The requirements are:"] - #[doc = ""] - #[doc = "1. the `total_balance` of the stash is below existential deposit."] - #[doc = "2. or, the `ledger.total` of the stash is below existential deposit."] - #[doc = ""] - #[doc = "The former can happen in cases like a slash; the latter when a fully unbonded account"] - #[doc = "is still receiving staking rewards in `RewardDestination::Staked`."] - #[doc = ""] - #[doc = "It can be called by anyone, as long as `stash` meets the above requirements."] - #[doc = ""] - #[doc = "Refunds the transaction fees upon successful execution."] + #[doc = "See [`Pallet::reap_stash`]."] reap_stash { stash: ::subxt::utils::AccountId32, num_slashing_spans: ::core::primitive::u32, }, #[codec(index = 21)] - #[doc = "Remove the given nominations from the calling validator."] - #[doc = ""] - #[doc = "Effects will be felt at the beginning of the next era."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ by the controller, not the stash."] - #[doc = ""] - #[doc = "- `who`: A list of nominator stash accounts who are nominating this validator which"] - #[doc = " should no longer be nominating this validator."] - #[doc = ""] - #[doc = "Note: Making this call only makes sense if you first set the validator preferences to"] - #[doc = "block any further nominations."] + #[doc = "See [`Pallet::kick`]."] kick { who: ::std::vec::Vec< ::subxt::utils::MultiAddress< @@ -32068,23 +30484,7 @@ pub mod api { >, }, #[codec(index = 22)] - #[doc = "Update the various staking configurations ."] - #[doc = ""] - #[doc = "* `min_nominator_bond`: The minimum active bond needed to be a nominator."] - #[doc = "* `min_validator_bond`: The minimum active bond needed to be a validator."] - #[doc = "* `max_nominator_count`: The max number of users who can be a nominator at once. When"] - #[doc = " set to `None`, no limit is enforced."] - #[doc = "* `max_validator_count`: The max number of users who can be a validator at once. When"] - #[doc = " set to `None`, no limit is enforced."] - #[doc = "* `chill_threshold`: The ratio of `max_nominator_count` or `max_validator_count` which"] - #[doc = " should be filled in order for the `chill_other` transaction to work."] - #[doc = "* `min_commission`: The minimum amount of commission that each validators must maintain."] - #[doc = " This is checked only upon calling `validate`. Existing validators are not affected."] - #[doc = ""] - #[doc = "RuntimeOrigin must be Root to call this function."] - #[doc = ""] - #[doc = "NOTE: Existing nominators and validators will not be affected by this update."] - #[doc = "to kick people under the new limits, `chill_other` should be called."] + #[doc = "See [`Pallet::set_staking_configs`]."] set_staking_configs { min_nominator_bond: runtime_types::pallet_staking::pallet::pallet::ConfigOp< @@ -32111,47 +30511,17 @@ pub mod api { >, }, #[codec(index = 23)] - #[doc = "Declare a `controller` to stop participating as either a validator or nominator."] - #[doc = ""] - #[doc = "Effects will be felt at the beginning of the next era."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_, but can be called by anyone."] - #[doc = ""] - #[doc = "If the caller is the same as the controller being targeted, then no further checks are"] - #[doc = "enforced, and this function behaves just like `chill`."] - #[doc = ""] - #[doc = "If the caller is different than the controller being targeted, the following conditions"] - #[doc = "must be met:"] - #[doc = ""] - #[doc = "* `controller` must belong to a nominator who has become non-decodable,"] - #[doc = ""] - #[doc = "Or:"] - #[doc = ""] - #[doc = "* A `ChillThreshold` must be set and checked which defines how close to the max"] - #[doc = " nominators or validators we must reach before users can start chilling one-another."] - #[doc = "* A `MaxNominatorCount` and `MaxValidatorCount` must be set which is used to determine"] - #[doc = " how close we are to the threshold."] - #[doc = "* A `MinNominatorBond` and `MinValidatorBond` must be set and checked, which determines"] - #[doc = " if this is a person that should be chilled because they have not met the threshold"] - #[doc = " bond required."] - #[doc = ""] - #[doc = "This can be helpful if bond requirements are updated, and we need to remove old users"] - #[doc = "who do not satisfy these requirements."] + #[doc = "See [`Pallet::chill_other`]."] chill_other { controller: ::subxt::utils::AccountId32, }, #[codec(index = 24)] - #[doc = "Force a validator to have at least the minimum commission. This will not affect a"] - #[doc = "validator who already has a commission greater than or equal to the minimum. Any account"] - #[doc = "can call this."] + #[doc = "See [`Pallet::force_apply_min_commission`]."] force_apply_min_commission { validator_stash: ::subxt::utils::AccountId32, }, #[codec(index = 25)] - #[doc = "Sets the minimum amount of commission that each validators must maintain."] - #[doc = ""] - #[doc = "This call has lower privilege requirements than `set_staking_config` and can be called"] - #[doc = "by the `T::AdminOrigin`. Root can always call this."] + #[doc = "See [`Pallet::set_min_commission`]."] set_min_commission { new: runtime_types::sp_arithmetic::per_things::Perbill, }, @@ -32190,7 +30560,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Not a controller account."] @@ -32285,7 +30655,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "The era payout has been set; the first balance is the validator-payout; the second is"] @@ -32527,7 +30897,7 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Nominations { - pub targets: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + pub targets: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::subxt::utils::AccountId32, >, pub submitted_in: ::core::primitive::u32, @@ -32577,10 +30947,10 @@ pub mod api { pub total: ::core::primitive::u128, #[codec(compact)] pub active: ::core::primitive::u128, - pub unlocking: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + pub unlocking: runtime_types::bounded_collections::bounded_vec::BoundedVec< runtime_types::pallet_staking::UnlockChunk<::core::primitive::u128>, >, - pub claimed_rewards: runtime_types::sp_core::bounded::bounded_vec::BoundedVec< + pub claimed_rewards: runtime_types::bounded_collections::bounded_vec::BoundedVec< ::core::primitive::u32, >, } @@ -32659,48 +31029,21 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB write (event)."] - #[doc = "- Weight of derivative `call` execution + 10,000."] - #[doc = "# "] + #[doc = "See [`Pallet::sudo`]."] sudo { call: ::std::boxed::Box, }, #[codec(index = 1)] - #[doc = "Authenticates the sudo key and dispatches a function call with `Root` origin."] - #[doc = "This function does not check the weight of the call, and instead allows the"] - #[doc = "Sudo user to specify the weight of the call."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- The weight of this call is defined by the caller."] - #[doc = "# "] + #[doc = "See [`Pallet::sudo_unchecked_weight`]."] sudo_unchecked_weight { call: ::std::boxed::Box, weight: runtime_types::sp_weights::weight_v2::Weight, }, #[codec(index = 2)] - #[doc = "Authenticates the current sudo key and sets the given AccountId (`new`) as the new sudo"] - #[doc = "key."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB change."] - #[doc = "# "] + #[doc = "See [`Pallet::set_key`]."] set_key { new: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -32708,17 +31051,7 @@ pub mod api { >, }, #[codec(index = 3)] - #[doc = "Authenticates the sudo key and dispatches a function call with `Signed` origin from"] - #[doc = "a given account."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB write (event)."] - #[doc = "- Weight of derivative `call` execution + 10,000."] - #[doc = "# "] + #[doc = "See [`Pallet::sudo_as`]."] sudo_as { who: ::subxt::utils::MultiAddress< ::subxt::utils::AccountId32, @@ -32759,7 +31092,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A sudo just took place. \\[result\\]"] @@ -32798,25 +31131,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Set the current time."] - #[doc = ""] - #[doc = "This call should be invoked exactly once per block. It will panic at the finalization"] - #[doc = "phase, if this call hasn't been invoked by that time."] - #[doc = ""] - #[doc = "The timestamp should be greater than the previous one by the amount specified by"] - #[doc = "`MinimumPeriod`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be `Inherent`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)"] - #[doc = "- 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in"] - #[doc = " `on_finalize`)"] - #[doc = "- 1 event handler `on_timestamp_set`. Must be `O(1)`."] - #[doc = "# "] + #[doc = "See [`Pallet::set`]."] set { #[codec(compact)] now: ::core::primitive::u64, @@ -32841,28 +31159,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Report something `reason` that deserves a tip and claim any eventual the finder's fee."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "Payment: `TipReportDepositBase` will be reserved from the origin account, as well as"] - #[doc = "`DataDepositPerByte` for each byte in `reason`."] - #[doc = ""] - #[doc = "- `reason`: The reason for, or the thing that deserves, the tip; generally this will be"] - #[doc = " a UTF-8-encoded URL."] - #[doc = "- `who`: The account which should be credited for the tip."] - #[doc = ""] - #[doc = "Emits `NewTip` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: `O(R)` where `R` length of `reason`."] - #[doc = " - encoding and hashing of 'reason'"] - #[doc = "- DbReads: `Reasons`, `Tips`"] - #[doc = "- DbWrites: `Reasons`, `Tips`"] - #[doc = "# "] + #[doc = "See [`Pallet::report_awesome`]."] report_awesome { reason: ::std::vec::Vec<::core::primitive::u8>, who: ::subxt::utils::MultiAddress< @@ -32871,49 +31171,10 @@ pub mod api { >, }, #[codec(index = 1)] - #[doc = "Retract a prior tip-report from `report_awesome`, and cancel the process of tipping."] - #[doc = ""] - #[doc = "If successful, the original deposit will be unreserved."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the tip identified by `hash`"] - #[doc = "must have been reported by the signing account through `report_awesome` (and not"] - #[doc = "through `tip_new`)."] - #[doc = ""] - #[doc = "- `hash`: The identity of the open tip for which a tip value is declared. This is formed"] - #[doc = " as the hash of the tuple of the original tip `reason` and the beneficiary account ID."] - #[doc = ""] - #[doc = "Emits `TipRetracted` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: `O(1)`"] - #[doc = " - Depends on the length of `T::Hash` which is fixed."] - #[doc = "- DbReads: `Tips`, `origin account`"] - #[doc = "- DbWrites: `Reasons`, `Tips`, `origin account`"] - #[doc = "# "] + #[doc = "See [`Pallet::retract_tip`]."] retract_tip { hash: ::subxt::utils::H256 }, #[codec(index = 2)] - #[doc = "Give a tip for something new; no finder's fee will be taken."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the signing account must be a"] - #[doc = "member of the `Tippers` set."] - #[doc = ""] - #[doc = "- `reason`: The reason for, or the thing that deserves, the tip; generally this will be"] - #[doc = " a UTF-8-encoded URL."] - #[doc = "- `who`: The account which should be credited for the tip."] - #[doc = "- `tip_value`: The amount of tip that the sender would like to give. The median tip"] - #[doc = " value of active tippers will be given to the `who`."] - #[doc = ""] - #[doc = "Emits `NewTip` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: `O(R + T)` where `R` length of `reason`, `T` is the number of tippers."] - #[doc = " - `O(T)`: decoding `Tipper` vec of length `T`. `T` is charged as upper bound given by"] - #[doc = " `ContainsLengthBound`. The actual cost depends on the implementation of"] - #[doc = " `T::Tippers`."] - #[doc = " - `O(R)`: hashing and encoding of reason of length `R`"] - #[doc = "- DbReads: `Tippers`, `Reasons`"] - #[doc = "- DbWrites: `Reasons`, `Tips`"] - #[doc = "# "] + #[doc = "See [`Pallet::tip_new`]."] tip_new { reason: ::std::vec::Vec<::core::primitive::u8>, who: ::subxt::utils::MultiAddress< @@ -32924,66 +31185,17 @@ pub mod api { tip_value: ::core::primitive::u128, }, #[codec(index = 3)] - #[doc = "Declare a tip value for an already-open tip."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_ and the signing account must be a"] - #[doc = "member of the `Tippers` set."] - #[doc = ""] - #[doc = "- `hash`: The identity of the open tip for which a tip value is declared. This is formed"] - #[doc = " as the hash of the tuple of the hash of the original tip `reason` and the beneficiary"] - #[doc = " account ID."] - #[doc = "- `tip_value`: The amount of tip that the sender would like to give. The median tip"] - #[doc = " value of active tippers will be given to the `who`."] - #[doc = ""] - #[doc = "Emits `TipClosing` if the threshold of tippers has been reached and the countdown period"] - #[doc = "has started."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length"] - #[doc = " `T`, insert tip and check closing, `T` is charged as upper bound given by"] - #[doc = " `ContainsLengthBound`. The actual cost depends on the implementation of `T::Tippers`."] - #[doc = ""] - #[doc = " Actually weight could be lower as it depends on how many tips are in `OpenTip` but it"] - #[doc = " is weighted as if almost full i.e of length `T-1`."] - #[doc = "- DbReads: `Tippers`, `Tips`"] - #[doc = "- DbWrites: `Tips`"] - #[doc = "# "] + #[doc = "See [`Pallet::tip`]."] tip { hash: ::subxt::utils::H256, #[codec(compact)] tip_value: ::core::primitive::u128, }, #[codec(index = 4)] - #[doc = "Close and payout a tip."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] - #[doc = ""] - #[doc = "The tip identified by `hash` must have finished its countdown period."] - #[doc = ""] - #[doc = "- `hash`: The identity of the open tip for which a tip value is declared. This is formed"] - #[doc = " as the hash of the tuple of the original tip `reason` and the beneficiary account ID."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: `O(T)` where `T` is the number of tippers. decoding `Tipper` vec of length"] - #[doc = " `T`. `T` is charged as upper bound given by `ContainsLengthBound`. The actual cost"] - #[doc = " depends on the implementation of `T::Tippers`."] - #[doc = "- DbReads: `Tips`, `Tippers`, `tip finder`"] - #[doc = "- DbWrites: `Reasons`, `Tips`, `Tippers`, `tip finder`"] - #[doc = "# "] + #[doc = "See [`Pallet::close_tip`]."] close_tip { hash: ::subxt::utils::H256 }, #[codec(index = 5)] - #[doc = "Remove and slash an already-open tip."] - #[doc = ""] - #[doc = "May only be called from `T::RejectOrigin`."] - #[doc = ""] - #[doc = "As a result, the finder is slashed and the deposits are lost."] - #[doc = ""] - #[doc = "Emits `TipSlashed` if successful."] - #[doc = ""] - #[doc = "# "] - #[doc = " `T` is charged as upper bound given by `ContainsLengthBound`."] - #[doc = " The actual cost depends on the implementation of `T::Tippers`."] - #[doc = "# "] + #[doc = "See [`Pallet::slash_tip`]."] slash_tip { hash: ::subxt::utils::H256 }, } #[derive( @@ -32999,7 +31211,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "The reason given is just too big."] @@ -33033,7 +31245,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A new tip suggestion has been opened."] @@ -33100,7 +31312,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,"] @@ -33163,18 +31375,10 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Put forward a suggestion for spending. A deposit proportional to the value"] - #[doc = "is reserved and slashed if the proposal is rejected. It is returned once the"] - #[doc = "proposal is awarded."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(1)"] - #[doc = "- DbReads: `ProposalCount`, `origin account`"] - #[doc = "- DbWrites: `ProposalCount`, `Proposals`, `origin account`"] - #[doc = "# "] + #[doc = "See [`Pallet::propose_spend`]."] propose_spend { #[codec(compact)] value: ::core::primitive::u128, @@ -33184,43 +31388,19 @@ pub mod api { >, }, #[codec(index = 1)] - #[doc = "Reject a proposed spend. The original deposit will be slashed."] - #[doc = ""] - #[doc = "May only be called from `T::RejectOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(1)"] - #[doc = "- DbReads: `Proposals`, `rejected proposer account`"] - #[doc = "- DbWrites: `Proposals`, `rejected proposer account`"] - #[doc = "# "] + #[doc = "See [`Pallet::reject_proposal`]."] reject_proposal { #[codec(compact)] proposal_id: ::core::primitive::u32, }, #[codec(index = 2)] - #[doc = "Approve a proposal. At a later time, the proposal will be allocated to the beneficiary"] - #[doc = "and the original deposit will be returned."] - #[doc = ""] - #[doc = "May only be called from `T::ApproveOrigin`."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(1)."] - #[doc = "- DbReads: `Proposals`, `Approvals`"] - #[doc = "- DbWrite: `Approvals`"] - #[doc = "# "] + #[doc = "See [`Pallet::approve_proposal`]."] approve_proposal { #[codec(compact)] proposal_id: ::core::primitive::u32, }, #[codec(index = 3)] - #[doc = "Propose and approve a spend of treasury funds."] - #[doc = ""] - #[doc = "- `origin`: Must be `SpendOrigin` with the `Success` value being at least `amount`."] - #[doc = "- `amount`: The amount to be transferred from the treasury to the `beneficiary`."] - #[doc = "- `beneficiary`: The destination account for the transfer."] - #[doc = ""] - #[doc = "NOTE: For record-keeping purposes, the proposer is deemed to be equivalent to the"] - #[doc = "beneficiary."] + #[doc = "See [`Pallet::spend`]."] spend { #[codec(compact)] amount: ::core::primitive::u128, @@ -33230,21 +31410,7 @@ pub mod api { >, }, #[codec(index = 4)] - #[doc = "Force a previously approved proposal to be removed from the approval queue."] - #[doc = "The original deposit will no longer be returned."] - #[doc = ""] - #[doc = "May only be called from `T::RejectOrigin`."] - #[doc = "- `proposal_id`: The index of a proposal"] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(A) where `A` is the number of approvals"] - #[doc = "- Db reads and writes: `Approvals`"] - #[doc = "# "] - #[doc = ""] - #[doc = "Errors:"] - #[doc = "- `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,"] - #[doc = "i.e., the proposal has not been approved. This could also mean the proposal does not"] - #[doc = "exist altogether, thus there is no way it would have been approved in the first place."] + #[doc = "See [`Pallet::remove_approval`]."] remove_approval { #[codec(compact)] proposal_id: ::core::primitive::u32, @@ -33295,7 +31461,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "New proposal."] @@ -33385,107 +31551,37 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "Contains one variant per dispatchable that can be called by an extrinsic."] + #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub enum Call { #[codec(index = 0)] - #[doc = "Send a batch of dispatch calls."] - #[doc = ""] - #[doc = "May be called from any origin except `None`."] - #[doc = ""] - #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] - #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] - #[doc = ""] - #[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] - #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(C) where C is the number of calls to be batched."] - #[doc = "# "] - #[doc = ""] - #[doc = "This will return `Ok` in all circumstances. To determine the success of the batch, an"] - #[doc = "event is deposited. If a call failed and the batch was interrupted, then the"] - #[doc = "`BatchInterrupted` event is deposited, along with the number of successful calls made"] - #[doc = "and the error of the failed call. If all were successful, then the `BatchCompleted`"] - #[doc = "event is deposited."] + #[doc = "See [`Pallet::batch`]."] batch { calls: ::std::vec::Vec, }, #[codec(index = 1)] - #[doc = "Send a call through an indexed pseudonym of the sender."] - #[doc = ""] - #[doc = "Filter from origin are passed along. The call will be dispatched with an origin which"] - #[doc = "use the same filter as the origin of this call."] - #[doc = ""] - #[doc = "NOTE: If you need to ensure that any account-based filtering is not honored (i.e."] - #[doc = "because you expect `proxy` to have been used prior in the call stack and you do not want"] - #[doc = "the call restrictions to apply to any sub-accounts), then use `as_multi_threshold_1`"] - #[doc = "in the Multisig pallet instead."] - #[doc = ""] - #[doc = "NOTE: Prior to version *12, this was called `as_limited_sub`."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Signed_."] + #[doc = "See [`Pallet::as_derivative`]."] as_derivative { index: ::core::primitive::u16, call: ::std::boxed::Box, }, #[codec(index = 2)] - #[doc = "Send a batch of dispatch calls and atomically execute them."] - #[doc = "The whole transaction will rollback and fail if any of the calls failed."] - #[doc = ""] - #[doc = "May be called from any origin except `None`."] - #[doc = ""] - #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] - #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] - #[doc = ""] - #[doc = "If origin is root then the calls are dispatched without checking origin filter. (This"] - #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(C) where C is the number of calls to be batched."] - #[doc = "# "] + #[doc = "See [`Pallet::batch_all`]."] batch_all { calls: ::std::vec::Vec, }, #[codec(index = 3)] - #[doc = "Dispatches a function call with a provided origin."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Root_."] - #[doc = ""] - #[doc = "# "] - #[doc = "- O(1)."] - #[doc = "- Limited storage reads."] - #[doc = "- One DB write (event)."] - #[doc = "- Weight of derivative `call` execution + T::WeightInfo::dispatch_as()."] - #[doc = "# "] + #[doc = "See [`Pallet::dispatch_as`]."] dispatch_as { as_origin: ::std::boxed::Box, call: ::std::boxed::Box, }, #[codec(index = 4)] - #[doc = "Send a batch of dispatch calls."] - #[doc = "Unlike `batch`, it allows errors and won't interrupt."] - #[doc = ""] - #[doc = "May be called from any origin except `None`."] - #[doc = ""] - #[doc = "- `calls`: The calls to be dispatched from the same origin. The number of call must not"] - #[doc = " exceed the constant: `batched_calls_limit` (available in constant metadata)."] - #[doc = ""] - #[doc = "If origin is root then the calls are dispatch without checking origin filter. (This"] - #[doc = "includes bypassing `frame_system::Config::BaseCallFilter`)."] - #[doc = ""] - #[doc = "# "] - #[doc = "- Complexity: O(C) where C is the number of calls to be batched."] - #[doc = "# "] + #[doc = "See [`Pallet::force_batch`]."] force_batch { calls: ::std::vec::Vec, }, #[codec(index = 5)] - #[doc = "Dispatch a function call with a specified weight."] - #[doc = ""] - #[doc = "This function does not check the weight of the call, and instead allows the"] - #[doc = "Root origin to specify the weight of the call."] - #[doc = ""] - #[doc = "The dispatch origin for this call must be _Root_."] + #[doc = "See [`Pallet::with_weight`]."] with_weight { call: ::std::boxed::Box, weight: runtime_types::sp_weights::weight_v2::Weight, @@ -33504,7 +31600,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tCustom [dispatch errors](https://docs.substrate.io/main-docs/build/events-errors/)\n\t\t\tof this pallet.\n\t\t\t"] + #[doc = "The `Error` enum of this pallet."] pub enum Error { #[codec(index = 0)] #[doc = "Too many calls batched."] @@ -33523,7 +31619,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - #[doc = "\n\t\t\tThe [event](https://docs.substrate.io/main-docs/build/events-errors/) emitted\n\t\t\tby this pallet.\n\t\t\t"] + #[doc = "The `Event` enum of this pallet"] pub enum Event { #[codec(index = 0)] #[doc = "Batch of dispatches did not complete fully. Index of first failing dispatch given, as"] @@ -33777,9 +31873,87 @@ pub mod api { pub struct PrimaryPreDigest { pub authority_index: ::core::primitive::u32, pub slot: runtime_types::sp_consensus_slots::Slot, - pub vrf_output: [::core::primitive::u8; 32usize], - pub vrf_proof: [::core::primitive::u8; 64usize], + pub vrf_signature: runtime_types::sp_core::sr25519::vrf::VrfSignature, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SecondaryPlainPreDigest { + pub authority_index: ::core::primitive::u32, + pub slot: runtime_types::sp_consensus_slots::Slot, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct SecondaryVRFPreDigest { + pub authority_index: ::core::primitive::u32, + pub slot: runtime_types::sp_consensus_slots::Slot, + pub vrf_signature: runtime_types::sp_core::sr25519::vrf::VrfSignature, } + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub enum AllowedSlots { + #[codec(index = 0)] + PrimarySlots, + #[codec(index = 1)] + PrimaryAndSecondaryPlainSlots, + #[codec(index = 2)] + PrimaryAndSecondaryVRFSlots, + } + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct BabeEpochConfiguration { + pub c: (::core::primitive::u64, ::core::primitive::u64), + pub allowed_slots: runtime_types::sp_consensus_babe::AllowedSlots, + } + } + pub mod sp_consensus_grandpa { + use super::runtime_types; + pub mod app { + use super::runtime_types; #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -33793,10 +31967,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SecondaryPlainPreDigest { - pub authority_index: ::core::primitive::u32, - pub slot: runtime_types::sp_consensus_slots::Slot, - } + pub struct Public(pub runtime_types::sp_core::ed25519::Public); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -33810,12 +31981,7 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct SecondaryVRFPreDigest { - pub authority_index: ::core::primitive::u32, - pub slot: runtime_types::sp_consensus_slots::Slot, - pub vrf_output: [::core::primitive::u8; 32usize], - pub vrf_proof: [::core::primitive::u8; 64usize], - } + pub struct Signature(pub runtime_types::sp_core::ed25519::Signature); } #[derive( :: subxt :: ext :: codec :: Decode, @@ -33830,13 +31996,23 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum AllowedSlots { + pub enum Equivocation<_0, _1> { #[codec(index = 0)] - PrimarySlots, + Prevote( + runtime_types::finality_grandpa::Equivocation< + runtime_types::sp_consensus_grandpa::app::Public, + runtime_types::finality_grandpa::Prevote<_0, _1>, + runtime_types::sp_consensus_grandpa::app::Signature, + >, + ), #[codec(index = 1)] - PrimaryAndSecondaryPlainSlots, - #[codec(index = 2)] - PrimaryAndSecondaryVRFSlots, + Precommit( + runtime_types::finality_grandpa::Equivocation< + runtime_types::sp_consensus_grandpa::app::Public, + runtime_types::finality_grandpa::Precommit<_0, _1>, + runtime_types::sp_consensus_grandpa::app::Signature, + >, + ), } #[derive( :: subxt :: ext :: codec :: Decode, @@ -33851,9 +32027,9 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BabeEpochConfiguration { - pub c: (::core::primitive::u64, ::core::primitive::u64), - pub allowed_slots: runtime_types::sp_consensus_babe::AllowedSlots, + pub struct EquivocationProof<_0, _1> { + pub set_id: ::core::primitive::u64, + pub equivocation: runtime_types::sp_consensus_grandpa::Equivocation<_0, _1>, } } pub mod sp_consensus_slots { @@ -33895,60 +32071,6 @@ pub mod api { } pub mod sp_core { use super::runtime_types; - pub mod bounded { - use super::runtime_types; - pub mod bounded_btree_map { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BoundedBTreeMap<_0, _1>(pub ::subxt::utils::KeyedVec<_0, _1>); - } - pub mod bounded_vec { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct BoundedVec<_0>(pub ::std::vec::Vec<_0>); - } - pub mod weak_bounded_vec { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct WeakBoundedVec<_0>(pub ::std::vec::Vec<_0>); - } - } pub mod crypto { use super::runtime_types; #[derive( @@ -34014,43 +32136,28 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Signature(pub [::core::primitive::u8; 64usize]); } - pub mod offchain { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct OpaqueMultiaddr(pub ::std::vec::Vec<::core::primitive::u8>); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct OpaqueNetworkState { - pub peer_id: runtime_types::sp_core::OpaquePeerId, - pub external_addresses: - ::std::vec::Vec, - } - } pub mod sr25519 { use super::runtime_types; + pub mod vrf { + use super::runtime_types; + #[derive( + :: subxt :: ext :: codec :: Decode, + :: subxt :: ext :: codec :: Encode, + :: subxt :: ext :: scale_decode :: DecodeAsType, + :: subxt :: ext :: scale_encode :: EncodeAsType, + Clone, + Debug, + Eq, + PartialEq, + )] + # [codec (crate = :: subxt :: ext :: codec)] + #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] + #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] + pub struct VrfSignature { + pub output: [::core::primitive::u8; 32usize], + pub proof: [::core::primitive::u8; 64usize], + } + } #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, @@ -34093,104 +32200,8 @@ pub mod api { # [codec (crate = :: subxt :: ext :: codec)] #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct OpaquePeerId(pub ::std::vec::Vec<::core::primitive::u8>); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum Void {} } - pub mod sp_finality_grandpa { - use super::runtime_types; - pub mod app { - use super::runtime_types; - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Public(pub runtime_types::sp_core::ed25519::Public); - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct Signature(pub runtime_types::sp_core::ed25519::Signature); - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub enum Equivocation<_0, _1> { - #[codec(index = 0)] - Prevote( - runtime_types::finality_grandpa::Equivocation< - runtime_types::sp_finality_grandpa::app::Public, - runtime_types::finality_grandpa::Prevote<_0, _1>, - runtime_types::sp_finality_grandpa::app::Signature, - >, - ), - #[codec(index = 1)] - Precommit( - runtime_types::finality_grandpa::Equivocation< - runtime_types::sp_finality_grandpa::app::Public, - runtime_types::finality_grandpa::Precommit<_0, _1>, - runtime_types::sp_finality_grandpa::app::Signature, - >, - ), - } - #[derive( - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct EquivocationProof<_0, _1> { - pub set_id: ::core::primitive::u64, - pub equivocation: runtime_types::sp_finality_grandpa::Equivocation<_0, _1>, - } - } pub mod sp_npos_elections { use super::runtime_types; #[derive( @@ -34875,6 +32886,8 @@ pub mod api { Corruption, #[codec(index = 12)] Unavailable, + #[codec(index = 13)] + RootNotAllowed, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -34929,9 +32942,9 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub enum TokenError { #[codec(index = 0)] - NoFunds, + FundsUnavailable, #[codec(index = 1)] - WouldDie, + OnlyProvider, #[codec(index = 2)] BelowMinimum, #[codec(index = 3)] @@ -34942,6 +32955,12 @@ pub mod api { Frozen, #[codec(index = 6)] Unsupported, + #[codec(index = 7)] + CannotCreateHold, + #[codec(index = 8)] + NotExpendable, + #[codec(index = 9)] + Blocked, } #[derive( :: subxt :: ext :: codec :: Decode, @@ -35058,21 +33077,6 @@ pub mod api { pub proof_size: ::core::primitive::u64, } } - #[derive( - :: subxt :: ext :: codec :: CompactAs, - :: subxt :: ext :: codec :: Decode, - :: subxt :: ext :: codec :: Encode, - :: subxt :: ext :: scale_decode :: DecodeAsType, - :: subxt :: ext :: scale_encode :: EncodeAsType, - Clone, - Debug, - Eq, - PartialEq, - )] - # [codec (crate = :: subxt :: ext :: codec)] - #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] - #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] - pub struct OldWeight(pub ::core::primitive::u64); #[derive( :: subxt :: ext :: codec :: Decode, :: subxt :: ext :: codec :: Encode, diff --git a/runtime/src/migration.rs b/runtime/src/migration.rs index 384db3eed..1bfb159d3 100644 --- a/runtime/src/migration.rs +++ b/runtime/src/migration.rs @@ -100,7 +100,8 @@ mod scheduler { use super::*; use crate::Runtime; - const CORRUPTED_AGENDAS: [u32; 4] = [38_674, 86_664, 124_473, 128_931]; + // This `436_320` should get executed, if not migration should not happen, if it is, then this can safely be ignored + const CORRUPTED_AGENDAS: [u32; 5] = [38_674, 86_664, 124_473, 128_931, 436_320]; #[cfg(feature = "try-runtime")] pub fn pre_upgrade() -> Result, &'static str> { From 19247109f19bc6bb734010be61d2edb62152614a Mon Sep 17 00:00:00 2001 From: Leouarz Date: Sat, 9 Sep 2023 19:09:14 +0200 Subject: [PATCH 53/58] remove extra sneaky lines --- avail-subxt/build_api.sh | 2 -- avail-subxt/src/api_dev.rs | 2 -- pallets/system/src/limits.rs | 3 +-- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/avail-subxt/build_api.sh b/avail-subxt/build_api.sh index 2303f0764..01536948d 100755 --- a/avail-subxt/build_api.sh +++ b/avail-subxt/build_api.sh @@ -37,8 +37,6 @@ subxt codegen --version 14 \ | sed -En "s/pub struct KateCommitment/#\[serde\(rename_all = \"camelCase\"\)\] \0/p" \ | sed -En "s/pub struct HeaderExtension/#\[serde\(rename_all = \"camelCase\"\)\] \0/p" \ | sed -En "s/pub struct DataLookupItem/#\[serde\(rename_all = \"camelCase\"\)\] \0/p" \ - | sed -En "s/pub struct HeaderExtension/#\[serde\(rename_all = \"camelCase\"\)\] \0/p" \ - | sed -En "s/pub struct DataLookupItem/#\[serde\(rename_all = \"camelCase\"\)\] \0/p" \ | sed -E '1i \#\[allow(clippy::all)]' \ | rustfmt --edition=2021 --emit=stdout > src/api_dev.rs echo "🎁 Avail-SubXt API generated in 'src/api_dev.rs'" diff --git a/avail-subxt/src/api_dev.rs b/avail-subxt/src/api_dev.rs index 0a285e043..9ad5ea030 100644 --- a/avail-subxt/src/api_dev.rs +++ b/avail-subxt/src/api_dev.rs @@ -23585,7 +23585,6 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[serde(rename_all = "camelCase")] - #[serde(rename_all = "camelCase")] pub struct DataLookupItem { pub app_id: runtime_types::avail_core::AppId, #[codec(compact)] @@ -23616,7 +23615,6 @@ pub mod api { #[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")] #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] #[serde(rename_all = "camelCase")] - #[serde(rename_all = "camelCase")] pub struct HeaderExtension { pub commitment: runtime_types::avail_core::kate_commitment::v1::KateCommitment, diff --git a/pallets/system/src/limits.rs b/pallets/system/src/limits.rs index 5db563604..c28380001 100644 --- a/pallets/system/src/limits.rs +++ b/pallets/system/src/limits.rs @@ -43,8 +43,7 @@ use sp_std::vec::Vec; use static_assertions::const_assert; /// Block length limit configuration. -#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] -#[cfg_attr(feature = "serde", serde(rename_all = "camelCase"))] +#[cfg_attr(feature = "serde", derive(Serialize, Deserialize), serde(rename_all = "camelCase"))] #[derive(RuntimeDebug, PartialEq, Clone, PassByCodec, MaxEncodedLen)] pub struct BlockLength { /// Maximal total length in bytes for each extrinsic class. From aed79d6787440fac6b5881b5ca244d0439320cb1 Mon Sep 17 00:00:00 2001 From: Leouarz Date: Sat, 9 Sep 2023 19:35:47 +0200 Subject: [PATCH 54/58] format --- pallets/system/src/limits.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pallets/system/src/limits.rs b/pallets/system/src/limits.rs index c28380001..5254a61ba 100644 --- a/pallets/system/src/limits.rs +++ b/pallets/system/src/limits.rs @@ -43,7 +43,11 @@ use sp_std::vec::Vec; use static_assertions::const_assert; /// Block length limit configuration. -#[cfg_attr(feature = "serde", derive(Serialize, Deserialize), serde(rename_all = "camelCase"))] +#[cfg_attr( + feature = "serde", + derive(Serialize, Deserialize), + serde(rename_all = "camelCase") +)] #[derive(RuntimeDebug, PartialEq, Clone, PassByCodec, MaxEncodedLen)] pub struct BlockLength { /// Maximal total length in bytes for each extrinsic class. From dcdfdd7b169eab01ebdf0f05bdc5abda42fe5d57 Mon Sep 17 00:00:00 2001 From: Marko Petrlic Date: Mon, 11 Sep 2023 10:11:12 +0200 Subject: [PATCH 55/58] Moved from nightly version to latest stable --- avail-subxt/rust-toolchain.toml | 2 +- avail-subxt/src/api_dev.rs | 3531 ++++++++++++++------------ avail-subxt/src/e2e.rs | 2 - pallets/system/src/lib.rs | 142 +- pallets/system/src/submitted_data.rs | 42 +- runtime/src/lib.rs | 9 +- rust-toolchain.toml | 2 +- 7 files changed, 1978 insertions(+), 1752 deletions(-) diff --git a/avail-subxt/rust-toolchain.toml b/avail-subxt/rust-toolchain.toml index ab25d60ea..5d7d273a9 100644 --- a/avail-subxt/rust-toolchain.toml +++ b/avail-subxt/rust-toolchain.toml @@ -1,5 +1,5 @@ [toolchain] -channel = "nightly-2022-11-15" +channel = "stable-2023-08-24" components = ["rustfmt", "clippy", "llvm-tools-preview"] profile = "minimal" targets = ["wasm32-unknown-unknown"] diff --git a/avail-subxt/src/api_dev.rs b/avail-subxt/src/api_dev.rs index 9ad5ea030..357e42da5 100644 --- a/avail-subxt/src/api_dev.rs +++ b/avail-subxt/src/api_dev.rs @@ -919,320 +919,312 @@ pub mod api { .into()) } } - pub fn constants() -> ConstantsApi { ConstantsApi } - pub fn storage() -> StorageApi { StorageApi } - pub fn tx() -> TransactionApi { TransactionApi } - pub fn apis() -> runtime_apis::RuntimeApi { runtime_apis::RuntimeApi } + pub fn constants() -> ConstantsApi { + ConstantsApi + } + pub fn storage() -> StorageApi { + StorageApi + } + pub fn tx() -> TransactionApi { + TransactionApi + } + pub fn apis() -> runtime_apis::RuntimeApi { + runtime_apis::RuntimeApi + } pub mod runtime_apis { + use super::root_mod; + use super::runtime_types; use ::subxt::ext::codec::Encode; - - use super::{root_mod, runtime_types}; pub struct RuntimeApi; impl RuntimeApi {} } pub struct ConstantsApi; impl ConstantsApi { - pub fn system(&self) -> system::constants::ConstantsApi { system::constants::ConstantsApi } - + pub fn system(&self) -> system::constants::ConstantsApi { + system::constants::ConstantsApi + } pub fn utility(&self) -> utility::constants::ConstantsApi { utility::constants::ConstantsApi } - - pub fn babe(&self) -> babe::constants::ConstantsApi { babe::constants::ConstantsApi } - + pub fn babe(&self) -> babe::constants::ConstantsApi { + babe::constants::ConstantsApi + } pub fn timestamp(&self) -> timestamp::constants::ConstantsApi { timestamp::constants::ConstantsApi } - pub fn indices(&self) -> indices::constants::ConstantsApi { indices::constants::ConstantsApi } - pub fn balances(&self) -> balances::constants::ConstantsApi { balances::constants::ConstantsApi } - pub fn transaction_payment(&self) -> transaction_payment::constants::ConstantsApi { transaction_payment::constants::ConstantsApi } - pub fn election_provider_multi_phase( &self, ) -> election_provider_multi_phase::constants::ConstantsApi { election_provider_multi_phase::constants::ConstantsApi } - pub fn staking(&self) -> staking::constants::ConstantsApi { staking::constants::ConstantsApi } - pub fn democracy(&self) -> democracy::constants::ConstantsApi { democracy::constants::ConstantsApi } - pub fn council(&self) -> council::constants::ConstantsApi { council::constants::ConstantsApi } - pub fn technical_committee(&self) -> technical_committee::constants::ConstantsApi { technical_committee::constants::ConstantsApi } - pub fn elections(&self) -> elections::constants::ConstantsApi { elections::constants::ConstantsApi } - pub fn grandpa(&self) -> grandpa::constants::ConstantsApi { grandpa::constants::ConstantsApi } - pub fn treasury(&self) -> treasury::constants::ConstantsApi { treasury::constants::ConstantsApi } - pub fn im_online(&self) -> im_online::constants::ConstantsApi { im_online::constants::ConstantsApi } - pub fn scheduler(&self) -> scheduler::constants::ConstantsApi { scheduler::constants::ConstantsApi } - pub fn bounties(&self) -> bounties::constants::ConstantsApi { bounties::constants::ConstantsApi } - - pub fn tips(&self) -> tips::constants::ConstantsApi { tips::constants::ConstantsApi } - + pub fn tips(&self) -> tips::constants::ConstantsApi { + tips::constants::ConstantsApi + } pub fn data_availability(&self) -> data_availability::constants::ConstantsApi { data_availability::constants::ConstantsApi } - pub fn nomad_home(&self) -> nomad_home::constants::ConstantsApi { nomad_home::constants::ConstantsApi } - pub fn nomad_da_bridge(&self) -> nomad_da_bridge::constants::ConstantsApi { nomad_da_bridge::constants::ConstantsApi } - pub fn multisig(&self) -> multisig::constants::ConstantsApi { multisig::constants::ConstantsApi } - pub fn voter_list(&self) -> voter_list::constants::ConstantsApi { voter_list::constants::ConstantsApi } - pub fn nomination_pools(&self) -> nomination_pools::constants::ConstantsApi { nomination_pools::constants::ConstantsApi } - pub fn identity(&self) -> identity::constants::ConstantsApi { identity::constants::ConstantsApi } } pub struct StorageApi; impl StorageApi { - pub fn system(&self) -> system::storage::StorageApi { system::storage::StorageApi } - - pub fn babe(&self) -> babe::storage::StorageApi { babe::storage::StorageApi } - - pub fn timestamp(&self) -> timestamp::storage::StorageApi { timestamp::storage::StorageApi } - + pub fn system(&self) -> system::storage::StorageApi { + system::storage::StorageApi + } + pub fn babe(&self) -> babe::storage::StorageApi { + babe::storage::StorageApi + } + pub fn timestamp(&self) -> timestamp::storage::StorageApi { + timestamp::storage::StorageApi + } pub fn authorship(&self) -> authorship::storage::StorageApi { authorship::storage::StorageApi } - - pub fn indices(&self) -> indices::storage::StorageApi { indices::storage::StorageApi } - - pub fn balances(&self) -> balances::storage::StorageApi { balances::storage::StorageApi } - + pub fn indices(&self) -> indices::storage::StorageApi { + indices::storage::StorageApi + } + pub fn balances(&self) -> balances::storage::StorageApi { + balances::storage::StorageApi + } pub fn transaction_payment(&self) -> transaction_payment::storage::StorageApi { transaction_payment::storage::StorageApi } - pub fn election_provider_multi_phase( &self, ) -> election_provider_multi_phase::storage::StorageApi { election_provider_multi_phase::storage::StorageApi } - - pub fn staking(&self) -> staking::storage::StorageApi { staking::storage::StorageApi } - - pub fn session(&self) -> session::storage::StorageApi { session::storage::StorageApi } - - pub fn democracy(&self) -> democracy::storage::StorageApi { democracy::storage::StorageApi } - - pub fn council(&self) -> council::storage::StorageApi { council::storage::StorageApi } - + pub fn staking(&self) -> staking::storage::StorageApi { + staking::storage::StorageApi + } + pub fn session(&self) -> session::storage::StorageApi { + session::storage::StorageApi + } + pub fn democracy(&self) -> democracy::storage::StorageApi { + democracy::storage::StorageApi + } + pub fn council(&self) -> council::storage::StorageApi { + council::storage::StorageApi + } pub fn technical_committee(&self) -> technical_committee::storage::StorageApi { technical_committee::storage::StorageApi } - - pub fn elections(&self) -> elections::storage::StorageApi { elections::storage::StorageApi } - + pub fn elections(&self) -> elections::storage::StorageApi { + elections::storage::StorageApi + } pub fn technical_membership(&self) -> technical_membership::storage::StorageApi { technical_membership::storage::StorageApi } - - pub fn grandpa(&self) -> grandpa::storage::StorageApi { grandpa::storage::StorageApi } - - pub fn treasury(&self) -> treasury::storage::StorageApi { treasury::storage::StorageApi } - - pub fn sudo(&self) -> sudo::storage::StorageApi { sudo::storage::StorageApi } - - pub fn im_online(&self) -> im_online::storage::StorageApi { im_online::storage::StorageApi } - + pub fn grandpa(&self) -> grandpa::storage::StorageApi { + grandpa::storage::StorageApi + } + pub fn treasury(&self) -> treasury::storage::StorageApi { + treasury::storage::StorageApi + } + pub fn sudo(&self) -> sudo::storage::StorageApi { + sudo::storage::StorageApi + } + pub fn im_online(&self) -> im_online::storage::StorageApi { + im_online::storage::StorageApi + } pub fn authority_discovery(&self) -> authority_discovery::storage::StorageApi { authority_discovery::storage::StorageApi } - - pub fn offences(&self) -> offences::storage::StorageApi { offences::storage::StorageApi } - + pub fn offences(&self) -> offences::storage::StorageApi { + offences::storage::StorageApi + } pub fn historical(&self) -> historical::storage::StorageApi { historical::storage::StorageApi } - - pub fn scheduler(&self) -> scheduler::storage::StorageApi { scheduler::storage::StorageApi } - - pub fn bounties(&self) -> bounties::storage::StorageApi { bounties::storage::StorageApi } - - pub fn tips(&self) -> tips::storage::StorageApi { tips::storage::StorageApi } - - pub fn mmr(&self) -> mmr::storage::StorageApi { mmr::storage::StorageApi } - + pub fn scheduler(&self) -> scheduler::storage::StorageApi { + scheduler::storage::StorageApi + } + pub fn bounties(&self) -> bounties::storage::StorageApi { + bounties::storage::StorageApi + } + pub fn tips(&self) -> tips::storage::StorageApi { + tips::storage::StorageApi + } + pub fn mmr(&self) -> mmr::storage::StorageApi { + mmr::storage::StorageApi + } pub fn data_availability(&self) -> data_availability::storage::StorageApi { data_availability::storage::StorageApi } - pub fn nomad_updater_manager(&self) -> nomad_updater_manager::storage::StorageApi { nomad_updater_manager::storage::StorageApi } - pub fn nomad_home(&self) -> nomad_home::storage::StorageApi { nomad_home::storage::StorageApi } - - pub fn preimage(&self) -> preimage::storage::StorageApi { preimage::storage::StorageApi } - - pub fn multisig(&self) -> multisig::storage::StorageApi { multisig::storage::StorageApi } - + pub fn preimage(&self) -> preimage::storage::StorageApi { + preimage::storage::StorageApi + } + pub fn multisig(&self) -> multisig::storage::StorageApi { + multisig::storage::StorageApi + } pub fn voter_list(&self) -> voter_list::storage::StorageApi { voter_list::storage::StorageApi } - pub fn nomination_pools(&self) -> nomination_pools::storage::StorageApi { nomination_pools::storage::StorageApi } - - pub fn identity(&self) -> identity::storage::StorageApi { identity::storage::StorageApi } + pub fn identity(&self) -> identity::storage::StorageApi { + identity::storage::StorageApi + } } pub struct TransactionApi; impl TransactionApi { - pub fn system(&self) -> system::calls::TransactionApi { system::calls::TransactionApi } - - pub fn utility(&self) -> utility::calls::TransactionApi { utility::calls::TransactionApi } - - pub fn babe(&self) -> babe::calls::TransactionApi { babe::calls::TransactionApi } - + pub fn system(&self) -> system::calls::TransactionApi { + system::calls::TransactionApi + } + pub fn utility(&self) -> utility::calls::TransactionApi { + utility::calls::TransactionApi + } + pub fn babe(&self) -> babe::calls::TransactionApi { + babe::calls::TransactionApi + } pub fn timestamp(&self) -> timestamp::calls::TransactionApi { timestamp::calls::TransactionApi } - - pub fn indices(&self) -> indices::calls::TransactionApi { indices::calls::TransactionApi } - + pub fn indices(&self) -> indices::calls::TransactionApi { + indices::calls::TransactionApi + } pub fn balances(&self) -> balances::calls::TransactionApi { balances::calls::TransactionApi } - pub fn election_provider_multi_phase( &self, ) -> election_provider_multi_phase::calls::TransactionApi { election_provider_multi_phase::calls::TransactionApi } - - pub fn staking(&self) -> staking::calls::TransactionApi { staking::calls::TransactionApi } - - pub fn session(&self) -> session::calls::TransactionApi { session::calls::TransactionApi } - + pub fn staking(&self) -> staking::calls::TransactionApi { + staking::calls::TransactionApi + } + pub fn session(&self) -> session::calls::TransactionApi { + session::calls::TransactionApi + } pub fn democracy(&self) -> democracy::calls::TransactionApi { democracy::calls::TransactionApi } - - pub fn council(&self) -> council::calls::TransactionApi { council::calls::TransactionApi } - + pub fn council(&self) -> council::calls::TransactionApi { + council::calls::TransactionApi + } pub fn technical_committee(&self) -> technical_committee::calls::TransactionApi { technical_committee::calls::TransactionApi } - pub fn elections(&self) -> elections::calls::TransactionApi { elections::calls::TransactionApi } - pub fn technical_membership(&self) -> technical_membership::calls::TransactionApi { technical_membership::calls::TransactionApi } - - pub fn grandpa(&self) -> grandpa::calls::TransactionApi { grandpa::calls::TransactionApi } - + pub fn grandpa(&self) -> grandpa::calls::TransactionApi { + grandpa::calls::TransactionApi + } pub fn treasury(&self) -> treasury::calls::TransactionApi { treasury::calls::TransactionApi } - - pub fn sudo(&self) -> sudo::calls::TransactionApi { sudo::calls::TransactionApi } - + pub fn sudo(&self) -> sudo::calls::TransactionApi { + sudo::calls::TransactionApi + } pub fn im_online(&self) -> im_online::calls::TransactionApi { im_online::calls::TransactionApi } - pub fn scheduler(&self) -> scheduler::calls::TransactionApi { scheduler::calls::TransactionApi } - pub fn bounties(&self) -> bounties::calls::TransactionApi { bounties::calls::TransactionApi } - - pub fn tips(&self) -> tips::calls::TransactionApi { tips::calls::TransactionApi } - + pub fn tips(&self) -> tips::calls::TransactionApi { + tips::calls::TransactionApi + } pub fn data_availability(&self) -> data_availability::calls::TransactionApi { data_availability::calls::TransactionApi } - pub fn nomad_updater_manager(&self) -> nomad_updater_manager::calls::TransactionApi { nomad_updater_manager::calls::TransactionApi } - pub fn nomad_home(&self) -> nomad_home::calls::TransactionApi { nomad_home::calls::TransactionApi } - pub fn nomad_da_bridge(&self) -> nomad_da_bridge::calls::TransactionApi { nomad_da_bridge::calls::TransactionApi } - pub fn preimage(&self) -> preimage::calls::TransactionApi { preimage::calls::TransactionApi } - pub fn multisig(&self) -> multisig::calls::TransactionApi { multisig::calls::TransactionApi } - pub fn voter_list(&self) -> voter_list::calls::TransactionApi { voter_list::calls::TransactionApi } - pub fn nomination_pools(&self) -> nomination_pools::calls::TransactionApi { nomination_pools::calls::TransactionApi } - pub fn identity(&self) -> identity::calls::TransactionApi { identity::calls::TransactionApi } - - pub fn mandate(&self) -> mandate::calls::TransactionApi { mandate::calls::TransactionApi } + pub fn mandate(&self) -> mandate::calls::TransactionApi { + mandate::calls::TransactionApi + } } #[doc = r" check whether the Client you are using is aligned with the statically generated codegen."] pub fn validate_codegen>( @@ -1255,13 +1247,15 @@ pub mod api { } } pub mod system { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "Error for the System pallet"] pub type Error = runtime_types::frame_system::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::frame_system::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -1282,8 +1276,8 @@ pub mod api { pub remark: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for Remark { - const CALL: &'static str = "remark"; const PALLET: &'static str = "System"; + const CALL: &'static str = "remark"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -1303,8 +1297,8 @@ pub mod api { pub pages: ::core::primitive::u64, } impl ::subxt::blocks::StaticExtrinsic for SetHeapPages { - const CALL: &'static str = "set_heap_pages"; const PALLET: &'static str = "System"; + const CALL: &'static str = "set_heap_pages"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1323,8 +1317,8 @@ pub mod api { pub code: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for SetCode { - const CALL: &'static str = "set_code"; const PALLET: &'static str = "System"; + const CALL: &'static str = "set_code"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1343,8 +1337,8 @@ pub mod api { pub code: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for SetCodeWithoutChecks { - const CALL: &'static str = "set_code_without_checks"; const PALLET: &'static str = "System"; + const CALL: &'static str = "set_code_without_checks"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1366,8 +1360,8 @@ pub mod api { )>, } impl ::subxt::blocks::StaticExtrinsic for SetStorage { - const CALL: &'static str = "set_storage"; const PALLET: &'static str = "System"; + const CALL: &'static str = "set_storage"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1386,8 +1380,8 @@ pub mod api { pub keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, } impl ::subxt::blocks::StaticExtrinsic for KillStorage { - const CALL: &'static str = "kill_storage"; const PALLET: &'static str = "System"; + const CALL: &'static str = "kill_storage"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1407,8 +1401,8 @@ pub mod api { pub subkeys: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for KillPrefix { - const CALL: &'static str = "kill_prefix"; const PALLET: &'static str = "System"; + const CALL: &'static str = "kill_prefix"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1427,8 +1421,8 @@ pub mod api { pub remark: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for RemarkWithEvent { - const CALL: &'static str = "remark_with_event"; const PALLET: &'static str = "System"; + const CALL: &'static str = "remark_with_event"; } } pub struct TransactionApi; @@ -1450,7 +1444,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_heap_pages`]."] pub fn set_heap_pages( &self, @@ -1468,7 +1461,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_code`]."] pub fn set_code( &self, @@ -1485,7 +1477,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_code_without_checks`]."] pub fn set_code_without_checks( &self, @@ -1503,7 +1494,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_storage`]."] pub fn set_storage( &self, @@ -1523,7 +1513,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::kill_storage`]."] pub fn kill_storage( &self, @@ -1541,7 +1530,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::kill_prefix`]."] pub fn kill_prefix( &self, @@ -1560,7 +1548,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::remark_with_event`]."] pub fn remark_with_event( &self, @@ -1601,8 +1588,8 @@ pub mod api { pub dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, } impl ::subxt::events::StaticEvent for ExtrinsicSuccess { - const EVENT: &'static str = "ExtrinsicSuccess"; const PALLET: &'static str = "System"; + const EVENT: &'static str = "ExtrinsicSuccess"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1623,8 +1610,8 @@ pub mod api { pub dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, } impl ::subxt::events::StaticEvent for ExtrinsicFailed { - const EVENT: &'static str = "ExtrinsicFailed"; const PALLET: &'static str = "System"; + const EVENT: &'static str = "ExtrinsicFailed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1642,8 +1629,8 @@ pub mod api { #[doc = "`:code` was updated."] pub struct CodeUpdated; impl ::subxt::events::StaticEvent for CodeUpdated { - const EVENT: &'static str = "CodeUpdated"; const PALLET: &'static str = "System"; + const EVENT: &'static str = "CodeUpdated"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1663,8 +1650,8 @@ pub mod api { pub account: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for NewAccount { - const EVENT: &'static str = "NewAccount"; const PALLET: &'static str = "System"; + const EVENT: &'static str = "NewAccount"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1684,8 +1671,8 @@ pub mod api { pub account: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for KilledAccount { - const EVENT: &'static str = "KilledAccount"; const PALLET: &'static str = "System"; + const EVENT: &'static str = "KilledAccount"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1706,8 +1693,8 @@ pub mod api { pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Remarked { - const EVENT: &'static str = "Remarked"; const PALLET: &'static str = "System"; + const EVENT: &'static str = "Remarked"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1727,8 +1714,8 @@ pub mod api { pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for RemarkedByRoot { - const EVENT: &'static str = "RemarkedByRoot"; const PALLET: &'static str = "System"; + const EVENT: &'static str = "RemarkedByRoot"; } } pub mod storage { @@ -1762,7 +1749,6 @@ pub mod api { ], ) } - #[doc = " The full account information for a particular account ID."] pub fn account_root( &self, @@ -1787,7 +1773,6 @@ pub mod api { ], ) } - #[doc = " Total extrinsics count for the current block."] pub fn extrinsic_count( &self, @@ -1810,7 +1795,6 @@ pub mod api { ], ) } - #[doc = " The current weight for the block."] pub fn block_weight( &self, @@ -1835,7 +1819,6 @@ pub mod api { ], ) } - #[doc = " Total length (in bytes) for all extrinsics put together, for the current block."] pub fn all_extrinsics_len( &self, @@ -1858,7 +1841,6 @@ pub mod api { ], ) } - #[doc = " Map of block numbers to block hashes."] pub fn block_hash( &self, @@ -1884,7 +1866,6 @@ pub mod api { ], ) } - #[doc = " Map of block numbers to block hashes."] pub fn block_hash_root( &self, @@ -1907,7 +1888,6 @@ pub mod api { ], ) } - #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] pub fn extrinsic_data( &self, @@ -1932,7 +1912,6 @@ pub mod api { ], ) } - #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] pub fn extrinsic_data_root( &self, @@ -1954,7 +1933,6 @@ pub mod api { ], ) } - #[doc = " The current block number being processed. Set by `execute_block`."] pub fn number( &self, @@ -1965,13 +1943,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("System", "Number", vec![], [ - 30u8, 194u8, 177u8, 90u8, 194u8, 232u8, 46u8, 180u8, 85u8, 129u8, 14u8, - 9u8, 8u8, 8u8, 23u8, 95u8, 230u8, 5u8, 13u8, 105u8, 125u8, 2u8, 22u8, - 200u8, 78u8, 93u8, 115u8, 28u8, 150u8, 113u8, 48u8, 53u8, - ]) + ::subxt::storage::address::Address::new_static( + "System", + "Number", + vec![], + [ + 30u8, 194u8, 177u8, 90u8, 194u8, 232u8, 46u8, 180u8, 85u8, 129u8, 14u8, + 9u8, 8u8, 8u8, 23u8, 95u8, 230u8, 5u8, 13u8, 105u8, 125u8, 2u8, 22u8, + 200u8, 78u8, 93u8, 115u8, 28u8, 150u8, 113u8, 48u8, 53u8, + ], + ) } - #[doc = " Hash of the previous block."] pub fn parent_hash( &self, @@ -1993,7 +1975,6 @@ pub mod api { ], ) } - #[doc = " Digest of the current block, also part of the block header."] pub fn digest( &self, @@ -2004,13 +1985,18 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("System", "Digest", vec![], [ - 70u8, 156u8, 127u8, 89u8, 115u8, 250u8, 103u8, 62u8, 185u8, 153u8, 26u8, - 72u8, 39u8, 226u8, 181u8, 97u8, 137u8, 225u8, 45u8, 158u8, 212u8, 254u8, - 142u8, 136u8, 90u8, 22u8, 243u8, 125u8, 226u8, 49u8, 235u8, 215u8, - ]) + ::subxt::storage::address::Address::new_static( + "System", + "Digest", + vec![], + [ + 70u8, 156u8, 127u8, 89u8, 115u8, 250u8, 103u8, 62u8, 185u8, 153u8, + 26u8, 72u8, 39u8, 226u8, 181u8, 97u8, 137u8, 225u8, 45u8, 158u8, 212u8, + 254u8, 142u8, 136u8, 90u8, 22u8, 243u8, 125u8, 226u8, 49u8, 235u8, + 215u8, + ], + ) } - #[doc = " Events deposited for the current block."] #[doc = ""] #[doc = " NOTE: The item is unbound and should therefore never be read on chain."] @@ -2032,13 +2018,18 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("System", "Events", vec![], [ - 135u8, 70u8, 188u8, 138u8, 189u8, 89u8, 46u8, 4u8, 225u8, 244u8, 212u8, - 189u8, 221u8, 105u8, 161u8, 239u8, 176u8, 2u8, 188u8, 39u8, 88u8, 209u8, - 24u8, 183u8, 165u8, 251u8, 104u8, 239u8, 253u8, 88u8, 150u8, 34u8, - ]) + ::subxt::storage::address::Address::new_static( + "System", + "Events", + vec![], + [ + 135u8, 70u8, 188u8, 138u8, 189u8, 89u8, 46u8, 4u8, 225u8, 244u8, 212u8, + 189u8, 221u8, 105u8, 161u8, 239u8, 176u8, 2u8, 188u8, 39u8, 88u8, + 209u8, 24u8, 183u8, 165u8, 251u8, 104u8, 239u8, 253u8, 88u8, 150u8, + 34u8, + ], + ) } - #[doc = " The number of events in the `Events` list."] pub fn event_count( &self, @@ -2061,7 +2052,6 @@ pub mod api { ], ) } - #[doc = " Mapping between a topic (represented by T::Hash) and a vector of indexes"] #[doc = " of events in the `>` list."] #[doc = ""] @@ -2095,7 +2085,6 @@ pub mod api { ], ) } - #[doc = " Mapping between a topic (represented by T::Hash) and a vector of indexes"] #[doc = " of events in the `>` list."] #[doc = ""] @@ -2126,7 +2115,6 @@ pub mod api { ], ) } - #[doc = " Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened."] pub fn last_runtime_upgrade( &self, @@ -2148,7 +2136,6 @@ pub mod api { ], ) } - #[doc = " True if we have upgraded so that `type RefCount` is `u32`. False (default) if not."] pub fn upgraded_to_u32_ref_count( &self, @@ -2170,7 +2157,6 @@ pub mod api { ], ) } - #[doc = " True if we have upgraded so that AccountInfo contains three types of `RefCount`. False"] #[doc = " (default) if not."] pub fn upgraded_to_triple_ref_count( @@ -2194,7 +2180,6 @@ pub mod api { ], ) } - #[doc = " The execution phase of the block."] pub fn execution_phase( &self, @@ -2216,7 +2201,6 @@ pub mod api { ], ) } - #[doc = " The dynamic block length"] pub fn dynamic_block_length( &self, @@ -2249,80 +2233,103 @@ pub mod api { &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("System", "BlockWeights", [ - 238u8, 20u8, 221u8, 11u8, 146u8, 236u8, 47u8, 103u8, 8u8, 239u8, 13u8, - 176u8, 202u8, 10u8, 151u8, 68u8, 110u8, 162u8, 99u8, 40u8, 211u8, 136u8, - 71u8, 82u8, 50u8, 80u8, 244u8, 211u8, 231u8, 198u8, 36u8, 152u8, - ]) + ::subxt::constants::Address::new_static( + "System", + "BlockWeights", + [ + 238u8, 20u8, 221u8, 11u8, 146u8, 236u8, 47u8, 103u8, 8u8, 239u8, 13u8, + 176u8, 202u8, 10u8, 151u8, 68u8, 110u8, 162u8, 99u8, 40u8, 211u8, + 136u8, 71u8, 82u8, 50u8, 80u8, 244u8, 211u8, 231u8, 198u8, 36u8, 152u8, + ], + ) } - #[doc = " The maximum length of a block (in bytes)."] pub fn block_length( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("System", "BlockLength", [ - 166u8, 7u8, 126u8, 154u8, 133u8, 31u8, 100u8, 149u8, 118u8, 168u8, 1u8, - 21u8, 202u8, 114u8, 104u8, 193u8, 44u8, 97u8, 240u8, 37u8, 177u8, 43u8, - 83u8, 195u8, 176u8, 252u8, 201u8, 229u8, 170u8, 45u8, 136u8, 81u8, - ]) + ::subxt::constants::Address::new_static( + "System", + "BlockLength", + [ + 166u8, 7u8, 126u8, 154u8, 133u8, 31u8, 100u8, 149u8, 118u8, 168u8, 1u8, + 21u8, 202u8, 114u8, 104u8, 193u8, 44u8, 97u8, 240u8, 37u8, 177u8, 43u8, + 83u8, 195u8, 176u8, 252u8, 201u8, 229u8, 170u8, 45u8, 136u8, 81u8, + ], + ) } - #[doc = " Maximum number of block number to block hash mappings to keep (oldest pruned first)."] pub fn block_hash_count( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("System", "BlockHashCount", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "System", + "BlockHashCount", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " The weight of runtime database operations the runtime can invoke."] pub fn db_weight( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("System", "DbWeight", [ - 206u8, 53u8, 134u8, 247u8, 42u8, 38u8, 197u8, 59u8, 191u8, 83u8, 160u8, - 9u8, 207u8, 133u8, 108u8, 152u8, 150u8, 103u8, 109u8, 228u8, 218u8, 24u8, - 27u8, 210u8, 106u8, 252u8, 74u8, 93u8, 27u8, 63u8, 109u8, 252u8, - ]) + ::subxt::constants::Address::new_static( + "System", + "DbWeight", + [ + 206u8, 53u8, 134u8, 247u8, 42u8, 38u8, 197u8, 59u8, 191u8, 83u8, 160u8, + 9u8, 207u8, 133u8, 108u8, 152u8, 150u8, 103u8, 109u8, 228u8, 218u8, + 24u8, 27u8, 210u8, 106u8, 252u8, 74u8, 93u8, 27u8, 63u8, 109u8, 252u8, + ], + ) } - #[doc = " Get the chain's current version."] pub fn version( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("System", "Version", [ - 134u8, 0u8, 23u8, 0u8, 199u8, 213u8, 89u8, 240u8, 194u8, 186u8, 239u8, - 157u8, 168u8, 211u8, 223u8, 156u8, 138u8, 140u8, 194u8, 23u8, 167u8, 158u8, - 195u8, 233u8, 25u8, 165u8, 27u8, 237u8, 198u8, 206u8, 233u8, 28u8, - ]) + ::subxt::constants::Address::new_static( + "System", + "Version", + [ + 134u8, 0u8, 23u8, 0u8, 199u8, 213u8, 89u8, 240u8, 194u8, 186u8, 239u8, + 157u8, 168u8, 211u8, 223u8, 156u8, 138u8, 140u8, 194u8, 23u8, 167u8, + 158u8, 195u8, 233u8, 25u8, 165u8, 27u8, 237u8, 198u8, 206u8, 233u8, + 28u8, + ], + ) } - #[doc = " The designated SS58 prefix of this chain."] #[doc = ""] #[doc = " This replaces the \"ss58Format\" property declared in the chain spec. Reason is"] #[doc = " that the runtime should know about the prefix in order to make use of it as"] #[doc = " an identifier of the chain."] pub fn ss58_prefix(&self) -> ::subxt::constants::Address<::core::primitive::u16> { - ::subxt::constants::Address::new_static("System", "SS58Prefix", [ - 116u8, 33u8, 2u8, 170u8, 181u8, 147u8, 171u8, 169u8, 167u8, 227u8, 41u8, - 144u8, 11u8, 236u8, 82u8, 100u8, 74u8, 60u8, 184u8, 72u8, 169u8, 90u8, - 208u8, 135u8, 15u8, 117u8, 10u8, 123u8, 128u8, 193u8, 29u8, 70u8, - ]) + ::subxt::constants::Address::new_static( + "System", + "SS58Prefix", + [ + 116u8, 33u8, 2u8, 170u8, 181u8, 147u8, 171u8, 169u8, 167u8, 227u8, + 41u8, 144u8, 11u8, 236u8, 82u8, 100u8, 74u8, 60u8, 184u8, 72u8, 169u8, + 90u8, 208u8, 135u8, 15u8, 117u8, 10u8, 123u8, 128u8, 193u8, 29u8, 70u8, + ], + ) } } } } pub mod utility { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_utility::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_utility::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -2343,8 +2350,8 @@ pub mod api { pub calls: ::std::vec::Vec, } impl ::subxt::blocks::StaticExtrinsic for Batch { - const CALL: &'static str = "batch"; const PALLET: &'static str = "Utility"; + const CALL: &'static str = "batch"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2364,8 +2371,8 @@ pub mod api { pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for AsDerivative { - const CALL: &'static str = "as_derivative"; const PALLET: &'static str = "Utility"; + const CALL: &'static str = "as_derivative"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2384,8 +2391,8 @@ pub mod api { pub calls: ::std::vec::Vec, } impl ::subxt::blocks::StaticExtrinsic for BatchAll { - const CALL: &'static str = "batch_all"; const PALLET: &'static str = "Utility"; + const CALL: &'static str = "batch_all"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2405,8 +2412,8 @@ pub mod api { pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for DispatchAs { - const CALL: &'static str = "dispatch_as"; const PALLET: &'static str = "Utility"; + const CALL: &'static str = "dispatch_as"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2425,8 +2432,8 @@ pub mod api { pub calls: ::std::vec::Vec, } impl ::subxt::blocks::StaticExtrinsic for ForceBatch { - const CALL: &'static str = "force_batch"; const PALLET: &'static str = "Utility"; + const CALL: &'static str = "force_batch"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2446,8 +2453,8 @@ pub mod api { pub weight: runtime_types::sp_weights::weight_v2::Weight, } impl ::subxt::blocks::StaticExtrinsic for WithWeight { - const CALL: &'static str = "with_weight"; const PALLET: &'static str = "Utility"; + const CALL: &'static str = "with_weight"; } } pub struct TransactionApi; @@ -2457,13 +2464,17 @@ pub mod api { &self, calls: ::std::vec::Vec, ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static("Utility", "batch", types::Batch { calls }, [ - 220u8, 133u8, 43u8, 120u8, 158u8, 223u8, 27u8, 148u8, 207u8, 167u8, 54u8, - 93u8, 208u8, 199u8, 29u8, 110u8, 176u8, 77u8, 51u8, 216u8, 24u8, 86u8, - 103u8, 71u8, 108u8, 82u8, 226u8, 22u8, 10u8, 20u8, 117u8, 152u8, - ]) + ::subxt::tx::Payload::new_static( + "Utility", + "batch", + types::Batch { calls }, + [ + 220u8, 133u8, 43u8, 120u8, 158u8, 223u8, 27u8, 148u8, 207u8, 167u8, + 54u8, 93u8, 208u8, 199u8, 29u8, 110u8, 176u8, 77u8, 51u8, 216u8, 24u8, + 86u8, 103u8, 71u8, 108u8, 82u8, 226u8, 22u8, 10u8, 20u8, 117u8, 152u8, + ], + ) } - #[doc = "See [`Pallet::as_derivative`]."] pub fn as_derivative( &self, @@ -2485,7 +2496,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::batch_all`]."] pub fn batch_all( &self, @@ -2503,7 +2513,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::dispatch_as`]."] pub fn dispatch_as( &self, @@ -2524,7 +2533,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::force_batch`]."] pub fn force_batch( &self, @@ -2541,7 +2549,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::with_weight`]."] pub fn with_weight( &self, @@ -2589,8 +2596,8 @@ pub mod api { pub error: runtime_types::sp_runtime::DispatchError, } impl ::subxt::events::StaticEvent for BatchInterrupted { - const EVENT: &'static str = "BatchInterrupted"; const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "BatchInterrupted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2608,8 +2615,8 @@ pub mod api { #[doc = "Batch of dispatches completed fully with no error."] pub struct BatchCompleted; impl ::subxt::events::StaticEvent for BatchCompleted { - const EVENT: &'static str = "BatchCompleted"; const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "BatchCompleted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2627,8 +2634,8 @@ pub mod api { #[doc = "Batch of dispatches completed but has errors."] pub struct BatchCompletedWithErrors; impl ::subxt::events::StaticEvent for BatchCompletedWithErrors { - const EVENT: &'static str = "BatchCompletedWithErrors"; const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "BatchCompletedWithErrors"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2646,8 +2653,8 @@ pub mod api { #[doc = "A single item within a Batch of dispatches has completed with no error."] pub struct ItemCompleted; impl ::subxt::events::StaticEvent for ItemCompleted { - const EVENT: &'static str = "ItemCompleted"; const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "ItemCompleted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2667,8 +2674,8 @@ pub mod api { pub error: runtime_types::sp_runtime::DispatchError, } impl ::subxt::events::StaticEvent for ItemFailed { - const EVENT: &'static str = "ItemFailed"; const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "ItemFailed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2688,8 +2695,8 @@ pub mod api { pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for DispatchedAs { - const EVENT: &'static str = "DispatchedAs"; const PALLET: &'static str = "Utility"; + const EVENT: &'static str = "DispatchedAs"; } } pub mod constants { @@ -2700,23 +2707,30 @@ pub mod api { pub fn batched_calls_limit( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Utility", "batched_calls_limit", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Utility", + "batched_calls_limit", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } } pub mod babe { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_babe::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_babe::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -2746,8 +2760,8 @@ pub mod api { pub key_owner_proof: runtime_types::sp_session::MembershipProof, } impl ::subxt::blocks::StaticExtrinsic for ReportEquivocation { - const CALL: &'static str = "report_equivocation"; const PALLET: &'static str = "Babe"; + const CALL: &'static str = "report_equivocation"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2775,8 +2789,8 @@ pub mod api { pub key_owner_proof: runtime_types::sp_session::MembershipProof, } impl ::subxt::blocks::StaticExtrinsic for ReportEquivocationUnsigned { - const CALL: &'static str = "report_equivocation_unsigned"; const PALLET: &'static str = "Babe"; + const CALL: &'static str = "report_equivocation_unsigned"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2795,8 +2809,8 @@ pub mod api { pub config: runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, } impl ::subxt::blocks::StaticExtrinsic for PlanConfigChange { - const CALL: &'static str = "plan_config_change"; const PALLET: &'static str = "Babe"; + const CALL: &'static str = "plan_config_change"; } } pub struct TransactionApi; @@ -2828,7 +2842,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::report_equivocation_unsigned`]."] pub fn report_equivocation_unsigned( &self, @@ -2855,7 +2868,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::plan_config_change`]."] pub fn plan_config_change( &self, @@ -2889,13 +2901,18 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Babe", "EpochIndex", vec![], [ - 32u8, 82u8, 130u8, 31u8, 190u8, 162u8, 237u8, 189u8, 104u8, 244u8, 30u8, - 199u8, 179u8, 0u8, 161u8, 107u8, 72u8, 240u8, 201u8, 222u8, 177u8, 222u8, - 35u8, 156u8, 81u8, 132u8, 162u8, 118u8, 238u8, 84u8, 112u8, 89u8, - ]) + ::subxt::storage::address::Address::new_static( + "Babe", + "EpochIndex", + vec![], + [ + 32u8, 82u8, 130u8, 31u8, 190u8, 162u8, 237u8, 189u8, 104u8, 244u8, + 30u8, 199u8, 179u8, 0u8, 161u8, 107u8, 72u8, 240u8, 201u8, 222u8, + 177u8, 222u8, 35u8, 156u8, 81u8, 132u8, 162u8, 118u8, 238u8, 84u8, + 112u8, 89u8, + ], + ) } - #[doc = " Current epoch authorities."] pub fn authorities( &self, @@ -2909,13 +2926,18 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Babe", "Authorities", vec![], [ - 67u8, 196u8, 244u8, 13u8, 246u8, 245u8, 198u8, 98u8, 81u8, 55u8, 182u8, - 187u8, 214u8, 5u8, 181u8, 76u8, 251u8, 213u8, 144u8, 166u8, 36u8, 153u8, - 234u8, 181u8, 252u8, 55u8, 198u8, 175u8, 55u8, 211u8, 105u8, 85u8, - ]) + ::subxt::storage::address::Address::new_static( + "Babe", + "Authorities", + vec![], + [ + 67u8, 196u8, 244u8, 13u8, 246u8, 245u8, 198u8, 98u8, 81u8, 55u8, 182u8, + 187u8, 214u8, 5u8, 181u8, 76u8, 251u8, 213u8, 144u8, 166u8, 36u8, + 153u8, 234u8, 181u8, 252u8, 55u8, 198u8, 175u8, 55u8, 211u8, 105u8, + 85u8, + ], + ) } - #[doc = " The slot at which the first epoch actually started. This is 0"] #[doc = " until the first block of the chain."] pub fn genesis_slot( @@ -2927,13 +2949,18 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Babe", "GenesisSlot", vec![], [ - 218u8, 174u8, 152u8, 76u8, 188u8, 214u8, 7u8, 88u8, 253u8, 187u8, 139u8, - 234u8, 51u8, 28u8, 220u8, 57u8, 73u8, 1u8, 18u8, 205u8, 80u8, 160u8, 120u8, - 216u8, 139u8, 191u8, 100u8, 108u8, 162u8, 106u8, 175u8, 107u8, - ]) + ::subxt::storage::address::Address::new_static( + "Babe", + "GenesisSlot", + vec![], + [ + 218u8, 174u8, 152u8, 76u8, 188u8, 214u8, 7u8, 88u8, 253u8, 187u8, + 139u8, 234u8, 51u8, 28u8, 220u8, 57u8, 73u8, 1u8, 18u8, 205u8, 80u8, + 160u8, 120u8, 216u8, 139u8, 191u8, 100u8, 108u8, 162u8, 106u8, 175u8, + 107u8, + ], + ) } - #[doc = " Current slot number."] pub fn current_slot( &self, @@ -2944,13 +2971,18 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Babe", "CurrentSlot", vec![], [ - 112u8, 199u8, 115u8, 248u8, 217u8, 242u8, 45u8, 231u8, 178u8, 53u8, 236u8, - 167u8, 219u8, 238u8, 81u8, 243u8, 39u8, 140u8, 68u8, 19u8, 201u8, 169u8, - 211u8, 133u8, 135u8, 213u8, 150u8, 105u8, 60u8, 252u8, 43u8, 57u8, - ]) + ::subxt::storage::address::Address::new_static( + "Babe", + "CurrentSlot", + vec![], + [ + 112u8, 199u8, 115u8, 248u8, 217u8, 242u8, 45u8, 231u8, 178u8, 53u8, + 236u8, 167u8, 219u8, 238u8, 81u8, 243u8, 39u8, 140u8, 68u8, 19u8, + 201u8, 169u8, 211u8, 133u8, 135u8, 213u8, 150u8, 105u8, 60u8, 252u8, + 43u8, 57u8, + ], + ) } - #[doc = " The epoch randomness for the *current* epoch."] #[doc = ""] #[doc = " # Security"] @@ -2970,13 +3002,18 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Babe", "Randomness", vec![], [ - 36u8, 15u8, 52u8, 73u8, 195u8, 177u8, 186u8, 125u8, 134u8, 11u8, 103u8, - 248u8, 170u8, 237u8, 105u8, 239u8, 168u8, 204u8, 147u8, 52u8, 15u8, 226u8, - 126u8, 176u8, 133u8, 186u8, 169u8, 241u8, 156u8, 118u8, 67u8, 58u8, - ]) + ::subxt::storage::address::Address::new_static( + "Babe", + "Randomness", + vec![], + [ + 36u8, 15u8, 52u8, 73u8, 195u8, 177u8, 186u8, 125u8, 134u8, 11u8, 103u8, + 248u8, 170u8, 237u8, 105u8, 239u8, 168u8, 204u8, 147u8, 52u8, 15u8, + 226u8, 126u8, 176u8, 133u8, 186u8, 169u8, 241u8, 156u8, 118u8, 67u8, + 58u8, + ], + ) } - #[doc = " Pending epoch configuration change that will be applied when the next epoch is enacted."] pub fn pending_epoch_config_change( &self, @@ -2999,7 +3036,6 @@ pub mod api { ], ) } - #[doc = " Next epoch randomness."] pub fn next_randomness( &self, @@ -3021,7 +3057,6 @@ pub mod api { ], ) } - #[doc = " Next epoch authorities."] pub fn next_authorities( &self, @@ -3047,7 +3082,6 @@ pub mod api { ], ) } - #[doc = " Randomness under construction."] #[doc = ""] #[doc = " We make a trade-off between storage accesses and list length."] @@ -3078,7 +3112,6 @@ pub mod api { ], ) } - #[doc = " TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay."] pub fn under_construction( &self, @@ -3105,7 +3138,6 @@ pub mod api { ], ) } - #[doc = " TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay."] pub fn under_construction_root( &self, @@ -3129,7 +3161,6 @@ pub mod api { ], ) } - #[doc = " Temporary value (cleared at block finalization) which is `Some`"] #[doc = " if per-block initialization has already been called for current block."] pub fn initialized( @@ -3141,13 +3172,17 @@ pub mod api { (), (), > { - ::subxt::storage::address::Address::new_static("Babe", "Initialized", vec![], [ - 61u8, 100u8, 12u8, 43u8, 50u8, 166u8, 173u8, 130u8, 86u8, 36u8, 92u8, - 221u8, 44u8, 235u8, 241u8, 150u8, 231u8, 108u8, 15u8, 134u8, 12u8, 6u8, - 198u8, 102u8, 63u8, 69u8, 201u8, 171u8, 14u8, 135u8, 254u8, 239u8, - ]) + ::subxt::storage::address::Address::new_static( + "Babe", + "Initialized", + vec![], + [ + 61u8, 100u8, 12u8, 43u8, 50u8, 166u8, 173u8, 130u8, 86u8, 36u8, 92u8, + 221u8, 44u8, 235u8, 241u8, 150u8, 231u8, 108u8, 15u8, 134u8, 12u8, 6u8, + 198u8, 102u8, 63u8, 69u8, 201u8, 171u8, 14u8, 135u8, 254u8, 239u8, + ], + ) } - #[doc = " This field should always be populated during block processing unless"] #[doc = " secondary plain slots are enabled (which don't contain a VRF output)."] #[doc = ""] @@ -3173,7 +3208,6 @@ pub mod api { ], ) } - #[doc = " The block numbers when the last and current epoch have started, respectively `N-1` and"] #[doc = " `N`."] #[doc = " NOTE: We track this is in order to annotate the block number when a given pool of"] @@ -3188,13 +3222,18 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Babe", "EpochStart", vec![], [ - 246u8, 69u8, 165u8, 217u8, 181u8, 138u8, 201u8, 64u8, 251u8, 121u8, 50u8, - 231u8, 221u8, 144u8, 225u8, 249u8, 42u8, 135u8, 31u8, 136u8, 21u8, 160u8, - 186u8, 148u8, 139u8, 232u8, 182u8, 121u8, 82u8, 110u8, 14u8, 160u8, - ]) + ::subxt::storage::address::Address::new_static( + "Babe", + "EpochStart", + vec![], + [ + 246u8, 69u8, 165u8, 217u8, 181u8, 138u8, 201u8, 64u8, 251u8, 121u8, + 50u8, 231u8, 221u8, 144u8, 225u8, 249u8, 42u8, 135u8, 31u8, 136u8, + 21u8, 160u8, 186u8, 148u8, 139u8, 232u8, 182u8, 121u8, 82u8, 110u8, + 14u8, 160u8, + ], + ) } - #[doc = " How late the current block is compared to its parent."] #[doc = ""] #[doc = " This entry is populated as part of block execution and is cleaned up"] @@ -3209,13 +3248,18 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Babe", "Lateness", vec![], [ - 229u8, 214u8, 133u8, 149u8, 32u8, 159u8, 26u8, 22u8, 252u8, 131u8, 200u8, - 191u8, 231u8, 176u8, 178u8, 127u8, 33u8, 212u8, 139u8, 220u8, 157u8, 38u8, - 4u8, 226u8, 204u8, 32u8, 55u8, 20u8, 205u8, 141u8, 29u8, 87u8, - ]) + ::subxt::storage::address::Address::new_static( + "Babe", + "Lateness", + vec![], + [ + 229u8, 214u8, 133u8, 149u8, 32u8, 159u8, 26u8, 22u8, 252u8, 131u8, + 200u8, 191u8, 231u8, 176u8, 178u8, 127u8, 33u8, 212u8, 139u8, 220u8, + 157u8, 38u8, 4u8, 226u8, 204u8, 32u8, 55u8, 20u8, 205u8, 141u8, 29u8, + 87u8, + ], + ) } - #[doc = " The configuration for the current epoch. Should never be `None` as it is initialized in"] #[doc = " genesis."] pub fn epoch_config( @@ -3227,13 +3271,18 @@ pub mod api { (), (), > { - ::subxt::storage::address::Address::new_static("Babe", "EpochConfig", vec![], [ - 23u8, 188u8, 70u8, 119u8, 36u8, 199u8, 230u8, 191u8, 131u8, 219u8, 85u8, - 201u8, 237u8, 70u8, 214u8, 149u8, 212u8, 94u8, 87u8, 87u8, 62u8, 16u8, - 46u8, 143u8, 73u8, 169u8, 42u8, 139u8, 157u8, 139u8, 190u8, 166u8, - ]) + ::subxt::storage::address::Address::new_static( + "Babe", + "EpochConfig", + vec![], + [ + 23u8, 188u8, 70u8, 119u8, 36u8, 199u8, 230u8, 191u8, 131u8, 219u8, + 85u8, 201u8, 237u8, 70u8, 214u8, 149u8, 212u8, 94u8, 87u8, 87u8, 62u8, + 16u8, 46u8, 143u8, 73u8, 169u8, 42u8, 139u8, 157u8, 139u8, 190u8, + 166u8, + ], + ) } - #[doc = " The configuration for the next epoch, `None` if the config will not change"] #[doc = " (you can fallback to `EpochConfig` instead in that case)."] pub fn next_epoch_config( @@ -3256,7 +3305,6 @@ pub mod api { ], ) } - #[doc = " A list of the last 100 skipped epochs and the corresponding session index"] #[doc = " when the epoch was skipped."] #[doc = ""] @@ -3300,13 +3348,17 @@ pub mod api { pub fn epoch_duration( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static("Babe", "EpochDuration", [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, 59u8, - 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, 119u8, - 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, - ]) + ::subxt::constants::Address::new_static( + "Babe", + "EpochDuration", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) } - #[doc = " The expected average block time at which BABE should be creating"] #[doc = " blocks. Since BABE is probabilistic it is not trivial to figure out"] #[doc = " what the expected average block time should be based on the slot"] @@ -3315,32 +3367,43 @@ pub mod api { pub fn expected_block_time( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static("Babe", "ExpectedBlockTime", [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, 59u8, - 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, 119u8, - 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, - ]) + ::subxt::constants::Address::new_static( + "Babe", + "ExpectedBlockTime", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) } - #[doc = " Max number of authorities allowed"] pub fn max_authorities( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Babe", "MaxAuthorities", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) - } - } - } + ::subxt::constants::Address::new_static( + "Babe", + "MaxAuthorities", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } + } + } } pub mod timestamp { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_timestamp::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -3362,19 +3425,24 @@ pub mod api { pub now: ::core::primitive::u64, } impl ::subxt::blocks::StaticExtrinsic for Set { - const CALL: &'static str = "set"; const PALLET: &'static str = "Timestamp"; + const CALL: &'static str = "set"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "See [`Pallet::set`]."] pub fn set(&self, now: ::core::primitive::u64) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static("Timestamp", "set", types::Set { now }, [ - 37u8, 95u8, 49u8, 218u8, 24u8, 22u8, 0u8, 95u8, 72u8, 35u8, 155u8, 199u8, - 213u8, 54u8, 207u8, 22u8, 185u8, 193u8, 221u8, 70u8, 18u8, 200u8, 4u8, - 231u8, 195u8, 173u8, 6u8, 122u8, 11u8, 203u8, 231u8, 227u8, - ]) + ::subxt::tx::Payload::new_static( + "Timestamp", + "set", + types::Set { now }, + [ + 37u8, 95u8, 49u8, 218u8, 24u8, 22u8, 0u8, 95u8, 72u8, 35u8, 155u8, + 199u8, 213u8, 54u8, 207u8, 22u8, 185u8, 193u8, 221u8, 70u8, 18u8, + 200u8, 4u8, 231u8, 195u8, 173u8, 6u8, 122u8, 11u8, 203u8, 231u8, 227u8, + ], + ) } } } @@ -3392,13 +3460,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Timestamp", "Now", vec![], [ - 44u8, 50u8, 80u8, 30u8, 195u8, 146u8, 123u8, 238u8, 8u8, 163u8, 187u8, - 92u8, 61u8, 39u8, 51u8, 29u8, 173u8, 169u8, 217u8, 158u8, 85u8, 187u8, - 141u8, 26u8, 12u8, 115u8, 51u8, 11u8, 200u8, 244u8, 138u8, 152u8, - ]) + ::subxt::storage::address::Address::new_static( + "Timestamp", + "Now", + vec![], + [ + 44u8, 50u8, 80u8, 30u8, 195u8, 146u8, 123u8, 238u8, 8u8, 163u8, 187u8, + 92u8, 61u8, 39u8, 51u8, 29u8, 173u8, 169u8, 217u8, 158u8, 85u8, 187u8, + 141u8, 26u8, 12u8, 115u8, 51u8, 11u8, 200u8, 244u8, 138u8, 152u8, + ], + ) } - #[doc = " Did the timestamp get updated in this block?"] pub fn did_update( &self, @@ -3434,17 +3506,23 @@ pub mod api { pub fn minimum_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static("Timestamp", "MinimumPeriod", [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, 59u8, - 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, 119u8, - 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, - ]) + ::subxt::constants::Address::new_static( + "Timestamp", + "MinimumPeriod", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) } } } } pub mod authorship { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; pub mod storage { use super::runtime_types; pub struct StorageApi; @@ -3475,13 +3553,15 @@ pub mod api { } } pub mod indices { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_indices::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_indices::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -3503,8 +3583,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Claim { - const CALL: &'static str = "claim"; const PALLET: &'static str = "Indices"; + const CALL: &'static str = "claim"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -3527,8 +3607,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Transfer { - const CALL: &'static str = "transfer"; const PALLET: &'static str = "Indices"; + const CALL: &'static str = "transfer"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -3548,8 +3628,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Free { - const CALL: &'static str = "free"; const PALLET: &'static str = "Indices"; + const CALL: &'static str = "free"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -3573,8 +3653,8 @@ pub mod api { pub freeze: ::core::primitive::bool, } impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { - const CALL: &'static str = "force_transfer"; const PALLET: &'static str = "Indices"; + const CALL: &'static str = "force_transfer"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -3594,8 +3674,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Freeze { - const CALL: &'static str = "freeze"; const PALLET: &'static str = "Indices"; + const CALL: &'static str = "freeze"; } } pub struct TransactionApi; @@ -3605,13 +3685,17 @@ pub mod api { &self, index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static("Indices", "claim", types::Claim { index }, [ - 146u8, 58u8, 246u8, 135u8, 59u8, 90u8, 3u8, 5u8, 140u8, 169u8, 232u8, - 195u8, 11u8, 107u8, 36u8, 141u8, 118u8, 174u8, 160u8, 160u8, 19u8, 205u8, - 177u8, 193u8, 18u8, 102u8, 115u8, 31u8, 72u8, 29u8, 91u8, 235u8, - ]) + ::subxt::tx::Payload::new_static( + "Indices", + "claim", + types::Claim { index }, + [ + 146u8, 58u8, 246u8, 135u8, 59u8, 90u8, 3u8, 5u8, 140u8, 169u8, 232u8, + 195u8, 11u8, 107u8, 36u8, 141u8, 118u8, 174u8, 160u8, 160u8, 19u8, + 205u8, 177u8, 193u8, 18u8, 102u8, 115u8, 31u8, 72u8, 29u8, 91u8, 235u8, + ], + ) } - #[doc = "See [`Pallet::transfer`]."] pub fn transfer( &self, @@ -3633,19 +3717,23 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::free`]."] pub fn free( &self, index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static("Indices", "free", types::Free { index }, [ - 241u8, 211u8, 234u8, 102u8, 189u8, 22u8, 209u8, 27u8, 8u8, 229u8, 80u8, - 227u8, 138u8, 252u8, 222u8, 111u8, 77u8, 201u8, 235u8, 51u8, 163u8, 247u8, - 13u8, 126u8, 216u8, 136u8, 57u8, 222u8, 56u8, 66u8, 215u8, 244u8, - ]) + ::subxt::tx::Payload::new_static( + "Indices", + "free", + types::Free { index }, + [ + 241u8, 211u8, 234u8, 102u8, 189u8, 22u8, 209u8, 27u8, 8u8, 229u8, 80u8, + 227u8, 138u8, 252u8, 222u8, 111u8, 77u8, 201u8, 235u8, 51u8, 163u8, + 247u8, 13u8, 126u8, 216u8, 136u8, 57u8, 222u8, 56u8, 66u8, 215u8, + 244u8, + ], + ) } - #[doc = "See [`Pallet::force_transfer`]."] pub fn force_transfer( &self, @@ -3668,7 +3756,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::freeze`]."] pub fn freeze( &self, @@ -3711,8 +3798,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for IndexAssigned { - const EVENT: &'static str = "IndexAssigned"; const PALLET: &'static str = "Indices"; + const EVENT: &'static str = "IndexAssigned"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -3733,8 +3820,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for IndexFreed { - const EVENT: &'static str = "IndexFreed"; const PALLET: &'static str = "Indices"; + const EVENT: &'static str = "IndexFreed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -3755,8 +3842,8 @@ pub mod api { pub who: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for IndexFrozen { - const EVENT: &'static str = "IndexFrozen"; const PALLET: &'static str = "Indices"; + const EVENT: &'static str = "IndexFrozen"; } } pub mod storage { @@ -3792,7 +3879,6 @@ pub mod api { ], ) } - #[doc = " The lookup from index to account."] pub fn accounts_root( &self, @@ -3827,23 +3913,29 @@ pub mod api { impl ConstantsApi { #[doc = " The deposit needed for reserving an index."] pub fn deposit(&self) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Indices", "Deposit", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Indices", + "Deposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } } } } pub mod balances { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_balances::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_balances::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -3869,8 +3961,8 @@ pub mod api { pub value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for TransferAllowDeath { - const CALL: &'static str = "transfer_allow_death"; const PALLET: &'static str = "Balances"; + const CALL: &'static str = "transfer_allow_death"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -3896,8 +3988,8 @@ pub mod api { pub old_reserved: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for SetBalanceDeprecated { - const CALL: &'static str = "set_balance_deprecated"; const PALLET: &'static str = "Balances"; + const CALL: &'static str = "set_balance_deprecated"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -3925,8 +4017,8 @@ pub mod api { pub value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { - const CALL: &'static str = "force_transfer"; const PALLET: &'static str = "Balances"; + const CALL: &'static str = "force_transfer"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -3950,8 +4042,8 @@ pub mod api { pub value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for TransferKeepAlive { - const CALL: &'static str = "transfer_keep_alive"; const PALLET: &'static str = "Balances"; + const CALL: &'static str = "transfer_keep_alive"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -3974,8 +4066,8 @@ pub mod api { pub keep_alive: ::core::primitive::bool, } impl ::subxt::blocks::StaticExtrinsic for TransferAll { - const CALL: &'static str = "transfer_all"; const PALLET: &'static str = "Balances"; + const CALL: &'static str = "transfer_all"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -3998,8 +4090,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for ForceUnreserve { - const CALL: &'static str = "force_unreserve"; const PALLET: &'static str = "Balances"; + const CALL: &'static str = "force_unreserve"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4018,8 +4110,8 @@ pub mod api { pub who: ::std::vec::Vec<::subxt::utils::AccountId32>, } impl ::subxt::blocks::StaticExtrinsic for UpgradeAccounts { - const CALL: &'static str = "upgrade_accounts"; const PALLET: &'static str = "Balances"; + const CALL: &'static str = "upgrade_accounts"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4043,8 +4135,8 @@ pub mod api { pub value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for Transfer { - const CALL: &'static str = "transfer"; const PALLET: &'static str = "Balances"; + const CALL: &'static str = "transfer"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4068,8 +4160,8 @@ pub mod api { pub new_free: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for ForceSetBalance { - const CALL: &'static str = "force_set_balance"; const PALLET: &'static str = "Balances"; + const CALL: &'static str = "force_set_balance"; } } pub struct TransactionApi; @@ -4094,7 +4186,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_balance_deprecated`]."] pub fn set_balance_deprecated( &self, @@ -4120,7 +4211,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::force_transfer`]."] pub fn force_transfer( &self, @@ -4150,7 +4240,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::transfer_keep_alive`]."] pub fn transfer_keep_alive( &self, @@ -4171,7 +4260,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::transfer_all`]."] pub fn transfer_all( &self, @@ -4193,7 +4281,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::force_unreserve`]."] pub fn force_unreserve( &self, @@ -4215,7 +4302,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::upgrade_accounts`]."] pub fn upgrade_accounts( &self, @@ -4232,7 +4318,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::transfer`]."] pub fn transfer( &self, @@ -4253,7 +4338,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::force_set_balance`]."] pub fn force_set_balance( &self, @@ -4299,8 +4383,8 @@ pub mod api { pub free_balance: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Endowed { - const EVENT: &'static str = "Endowed"; const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Endowed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4322,8 +4406,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for DustLost { - const EVENT: &'static str = "DustLost"; const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "DustLost"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4345,8 +4429,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Transfer { - const EVENT: &'static str = "Transfer"; const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Transfer"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4367,8 +4451,8 @@ pub mod api { pub free: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for BalanceSet { - const EVENT: &'static str = "BalanceSet"; const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "BalanceSet"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4389,8 +4473,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Reserved { - const EVENT: &'static str = "Reserved"; const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Reserved"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4411,8 +4495,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Unreserved { - const EVENT: &'static str = "Unreserved"; const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Unreserved"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4437,8 +4521,8 @@ pub mod api { runtime_types::frame_support::traits::tokens::misc::BalanceStatus, } impl ::subxt::events::StaticEvent for ReserveRepatriated { - const EVENT: &'static str = "ReserveRepatriated"; const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "ReserveRepatriated"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4459,8 +4543,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Deposit { - const EVENT: &'static str = "Deposit"; const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Deposit"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4481,8 +4565,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Withdraw { - const EVENT: &'static str = "Withdraw"; const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Withdraw"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4503,8 +4587,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Slashed { - const EVENT: &'static str = "Slashed"; const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Slashed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4525,8 +4609,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Minted { - const EVENT: &'static str = "Minted"; const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Minted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4547,8 +4631,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Burned { - const EVENT: &'static str = "Burned"; const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Burned"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4569,8 +4653,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Suspended { - const EVENT: &'static str = "Suspended"; const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Suspended"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4591,8 +4675,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Restored { - const EVENT: &'static str = "Restored"; const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Restored"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4612,8 +4696,8 @@ pub mod api { pub who: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Upgraded { - const EVENT: &'static str = "Upgraded"; const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Upgraded"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -4634,8 +4718,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Issued { - const EVENT: &'static str = "Issued"; const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Issued"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -4656,8 +4740,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Rescinded { - const EVENT: &'static str = "Rescinded"; const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Rescinded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4678,8 +4762,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Locked { - const EVENT: &'static str = "Locked"; const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Locked"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4700,8 +4784,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Unlocked { - const EVENT: &'static str = "Unlocked"; const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Unlocked"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4722,8 +4806,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Frozen { - const EVENT: &'static str = "Frozen"; const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Frozen"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4744,8 +4828,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Thawed { - const EVENT: &'static str = "Thawed"; const PALLET: &'static str = "Balances"; + const EVENT: &'static str = "Thawed"; } } pub mod storage { @@ -4774,7 +4858,6 @@ pub mod api { ], ) } - #[doc = " The total units of outstanding deactivated balance in the system."] pub fn inactive_issuance( &self, @@ -4796,7 +4879,6 @@ pub mod api { ], ) } - #[doc = " The Balances pallet example of storing the balance of an account."] #[doc = ""] #[doc = " # Example"] @@ -4845,7 +4927,6 @@ pub mod api { ], ) } - #[doc = " The Balances pallet example of storing the balance of an account."] #[doc = ""] #[doc = " # Example"] @@ -4891,7 +4972,6 @@ pub mod api { ], ) } - #[doc = " Any liquidity locks on some account balances."] #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks( @@ -4919,7 +4999,6 @@ pub mod api { ], ) } - #[doc = " Any liquidity locks on some account balances."] #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks_root( @@ -4944,7 +5023,6 @@ pub mod api { ], ) } - #[doc = " Named reserves on some account balances."] pub fn reserves( &self, @@ -4975,7 +5053,6 @@ pub mod api { ], ) } - #[doc = " Named reserves on some account balances."] pub fn reserves_root( &self, @@ -5003,7 +5080,6 @@ pub mod api { ], ) } - #[doc = " Holds on account balances."] pub fn holds( &self, @@ -5033,7 +5109,6 @@ pub mod api { ], ) } - #[doc = " Holds on account balances."] pub fn holds_root( &self, @@ -5060,7 +5135,6 @@ pub mod api { ], ) } - #[doc = " Freeze locks on account balances."] pub fn freezes( &self, @@ -5090,7 +5164,6 @@ pub mod api { ], ) } - #[doc = " Freeze locks on account balances."] pub fn freezes_root( &self, @@ -5134,54 +5207,75 @@ pub mod api { pub fn existential_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Balances", "ExistentialDeposit", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Balances", + "ExistentialDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } - #[doc = " The maximum number of locks that should exist on an account."] #[doc = " Not strictly enforced, but used for weight estimation."] pub fn max_locks(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Balances", "MaxLocks", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Balances", + "MaxLocks", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " The maximum number of named reserves that can exist on an account."] pub fn max_reserves(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Balances", "MaxReserves", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Balances", + "MaxReserves", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " The maximum number of holds that can exist on an account at any time."] pub fn max_holds(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Balances", "MaxHolds", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Balances", + "MaxHolds", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " The maximum number of individual freeze locks that can exist on an account at any time."] pub fn max_freezes(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Balances", "MaxFreezes", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Balances", + "MaxFreezes", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } } pub mod transaction_payment { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_transaction_payment::pallet::Event; pub mod events { @@ -5207,8 +5301,8 @@ pub mod api { pub tip: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for TransactionFeePaid { - const EVENT: &'static str = "TransactionFeePaid"; const PALLET: &'static str = "TransactionPayment"; + const EVENT: &'static str = "TransactionFeePaid"; } } pub mod storage { @@ -5236,7 +5330,6 @@ pub mod api { ], ) } - pub fn storage_version( &self, ) -> ::subxt::storage::address::Address< @@ -5303,13 +5396,15 @@ pub mod api { } } pub mod election_provider_multi_phase { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "Error of the pallet that can be returned in response to dispatches."] pub type Error = runtime_types::pallet_election_provider_multi_phase::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_election_provider_multi_phase::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -5336,8 +5431,8 @@ pub mod api { runtime_types::pallet_election_provider_multi_phase::SolutionOrSnapshotSize, } impl ::subxt::blocks::StaticExtrinsic for SubmitUnsigned { - const CALL: &'static str = "submit_unsigned"; const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "submit_unsigned"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -5357,8 +5452,8 @@ pub mod api { ::core::option::Option, } impl ::subxt::blocks::StaticExtrinsic for SetMinimumUntrustedScore { - const CALL: &'static str = "set_minimum_untrusted_score"; const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "set_minimum_untrusted_score"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -5380,8 +5475,8 @@ pub mod api { )>, } impl ::subxt::blocks::StaticExtrinsic for SetEmergencyElectionResult { - const CALL: &'static str = "set_emergency_election_result"; const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "set_emergency_election_result"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -5404,8 +5499,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for Submit { - const CALL: &'static str = "submit"; const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "submit"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -5425,8 +5520,8 @@ pub mod api { pub maybe_max_targets: ::core::option::Option<::core::primitive::u32>, } impl ::subxt::blocks::StaticExtrinsic for GovernanceFallback { - const CALL: &'static str = "governance_fallback"; const PALLET: &'static str = "ElectionProviderMultiPhase"; + const CALL: &'static str = "governance_fallback"; } } pub struct TransactionApi; @@ -5453,7 +5548,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_minimum_untrusted_score`]."] pub fn set_minimum_untrusted_score( &self, @@ -5473,7 +5567,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_emergency_election_result`]."] pub fn set_emergency_election_result( &self, @@ -5493,7 +5586,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::submit`]."] pub fn submit( &self, @@ -5514,7 +5606,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::governance_fallback`]."] pub fn governance_fallback( &self, @@ -5568,8 +5659,8 @@ pub mod api { pub prev_ejected: ::core::primitive::bool, } impl ::subxt::events::StaticEvent for SolutionStored { - const EVENT: &'static str = "SolutionStored"; const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "SolutionStored"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -5590,8 +5681,8 @@ pub mod api { pub score: runtime_types::sp_npos_elections::ElectionScore, } impl ::subxt::events::StaticEvent for ElectionFinalized { - const EVENT: &'static str = "ElectionFinalized"; const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "ElectionFinalized"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -5611,8 +5702,8 @@ pub mod api { #[doc = "Not much can be said about which computes failed in the process."] pub struct ElectionFailed; impl ::subxt::events::StaticEvent for ElectionFailed { - const EVENT: &'static str = "ElectionFailed"; const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "ElectionFailed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -5633,8 +5724,8 @@ pub mod api { pub value: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Rewarded { - const EVENT: &'static str = "Rewarded"; const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "Rewarded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -5655,8 +5746,8 @@ pub mod api { pub value: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Slashed { - const EVENT: &'static str = "Slashed"; const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "Slashed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -5682,8 +5773,8 @@ pub mod api { pub round: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for PhaseTransitioned { - const EVENT: &'static str = "PhaseTransitioned"; const PALLET: &'static str = "ElectionProviderMultiPhase"; + const EVENT: &'static str = "PhaseTransitioned"; } } pub mod storage { @@ -5716,7 +5807,6 @@ pub mod api { ], ) } - #[doc = " Current phase."] pub fn current_phase( &self, @@ -5740,7 +5830,6 @@ pub mod api { ], ) } - #[doc = " Current best solution, signed or unsigned, queued to be returned upon `elect`."] #[doc = ""] #[doc = " Always sorted by score."] @@ -5765,7 +5854,6 @@ pub mod api { ], ) } - #[doc = " Snapshot data of the round."] #[doc = ""] #[doc = " This is created at the beginning of the signed phase and cleared upon calling `elect`."] @@ -5799,7 +5887,6 @@ pub mod api { ], ) } - #[doc = " Desired number of targets to elect for this round."] #[doc = ""] #[doc = " Only exists when [`Snapshot`] is present."] @@ -5823,7 +5910,6 @@ pub mod api { ], ) } - #[doc = " The metadata of the [`RoundSnapshot`]"] #[doc = ""] #[doc = " Only exists when [`Snapshot`] is present."] @@ -5848,7 +5934,6 @@ pub mod api { ], ) } - #[doc = " The next index to be assigned to an incoming signed submission."] #[doc = ""] #[doc = " Every accepted submission is assigned a unique index; that index is bound to that particular"] @@ -5878,7 +5963,6 @@ pub mod api { ], ) } - #[doc = " A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a"] #[doc = " value in `SignedSubmissions`."] #[doc = ""] @@ -5909,7 +5993,6 @@ pub mod api { ], ) } - #[doc = " Unchecked, signed solutions."] #[doc = ""] #[doc = " Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while"] @@ -5945,7 +6028,6 @@ pub mod api { ], ) } - #[doc = " Unchecked, signed solutions."] #[doc = ""] #[doc = " Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while"] @@ -5978,7 +6060,6 @@ pub mod api { ], ) } - #[doc = " The minimum score that each 'untrusted' solution must attain in order to be considered"] #[doc = " feasible."] #[doc = ""] @@ -6024,7 +6105,6 @@ pub mod api { ], ) } - #[doc = " Duration of the signed phase."] pub fn signed_phase(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( @@ -6038,7 +6118,6 @@ pub mod api { ], ) } - #[doc = " The minimum amount of improvement to the solution score that defines a solution as"] #[doc = " \"better\" in the Signed phase."] pub fn better_signed_threshold( @@ -6055,7 +6134,6 @@ pub mod api { ], ) } - #[doc = " The minimum amount of improvement to the solution score that defines a solution as"] #[doc = " \"better\" in the Unsigned phase."] pub fn better_unsigned_threshold( @@ -6072,7 +6150,6 @@ pub mod api { ], ) } - #[doc = " The repeat threshold of the offchain worker."] #[doc = ""] #[doc = " For example, if it is 5, that means that at least 5 blocks will elapse between attempts"] @@ -6091,7 +6168,6 @@ pub mod api { ], ) } - #[doc = " The priority of the unsigned transaction submitted in the unsigned-phase"] pub fn miner_tx_priority( &self, @@ -6107,7 +6183,6 @@ pub mod api { ], ) } - #[doc = " Maximum number of signed submissions that can be queued."] #[doc = ""] #[doc = " It is best to avoid adjusting this during an election, as it impacts downstream data"] @@ -6129,7 +6204,6 @@ pub mod api { ], ) } - #[doc = " Maximum weight of a signed solution."] #[doc = ""] #[doc = " If [`Config::MinerConfig`] is being implemented to submit signed solutions (outside of"] @@ -6148,7 +6222,6 @@ pub mod api { ], ) } - #[doc = " The maximum amount of unchecked solutions to refund the call fee for."] pub fn signed_max_refunds( &self, @@ -6164,7 +6237,6 @@ pub mod api { ], ) } - #[doc = " Base reward for a signed solution"] pub fn signed_reward_base( &self, @@ -6179,7 +6251,6 @@ pub mod api { ], ) } - #[doc = " Base deposit for a signed solution."] pub fn signed_deposit_base( &self, @@ -6194,7 +6265,6 @@ pub mod api { ], ) } - #[doc = " Per-byte deposit for a signed solution."] pub fn signed_deposit_byte( &self, @@ -6209,7 +6279,6 @@ pub mod api { ], ) } - #[doc = " Per-weight deposit for a signed solution."] pub fn signed_deposit_weight( &self, @@ -6224,7 +6293,6 @@ pub mod api { ], ) } - #[doc = " The maximum number of electing voters to put in the snapshot. At the moment, snapshots"] #[doc = " are only over a single block, but once multi-block elections are introduced they will"] #[doc = " take place over multiple blocks."] @@ -6242,7 +6310,6 @@ pub mod api { ], ) } - #[doc = " The maximum number of electable targets to put in the snapshot."] pub fn max_electable_targets( &self, @@ -6257,7 +6324,6 @@ pub mod api { ], ) } - #[doc = " The maximum number of winners that can be elected by this `ElectionProvider`"] #[doc = " implementation."] #[doc = ""] @@ -6274,7 +6340,6 @@ pub mod api { ], ) } - pub fn miner_max_length( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -6289,7 +6354,6 @@ pub mod api { ], ) } - pub fn miner_max_weight( &self, ) -> ::subxt::constants::Address { @@ -6303,7 +6367,6 @@ pub mod api { ], ) } - pub fn miner_max_votes_per_voter( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -6318,7 +6381,6 @@ pub mod api { ], ) } - pub fn miner_max_winners( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -6337,13 +6399,15 @@ pub mod api { } } pub mod staking { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_staking::pallet::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_staking::pallet::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -6368,8 +6432,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for Bond { - const CALL: &'static str = "bond"; const PALLET: &'static str = "Staking"; + const CALL: &'static str = "bond"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6389,8 +6453,8 @@ pub mod api { pub max_additional: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for BondExtra { - const CALL: &'static str = "bond_extra"; const PALLET: &'static str = "Staking"; + const CALL: &'static str = "bond_extra"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6410,8 +6474,8 @@ pub mod api { pub value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for Unbond { - const CALL: &'static str = "unbond"; const PALLET: &'static str = "Staking"; + const CALL: &'static str = "unbond"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -6431,8 +6495,8 @@ pub mod api { pub num_slashing_spans: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for WithdrawUnbonded { - const CALL: &'static str = "withdraw_unbonded"; const PALLET: &'static str = "Staking"; + const CALL: &'static str = "withdraw_unbonded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6451,8 +6515,8 @@ pub mod api { pub prefs: runtime_types::pallet_staking::ValidatorPrefs, } impl ::subxt::blocks::StaticExtrinsic for Validate { - const CALL: &'static str = "validate"; const PALLET: &'static str = "Staking"; + const CALL: &'static str = "validate"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6476,8 +6540,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for Nominate { - const CALL: &'static str = "nominate"; const PALLET: &'static str = "Staking"; + const CALL: &'static str = "nominate"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6494,8 +6558,8 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Chill; impl ::subxt::blocks::StaticExtrinsic for Chill { - const CALL: &'static str = "chill"; const PALLET: &'static str = "Staking"; + const CALL: &'static str = "chill"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6516,8 +6580,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for SetPayee { - const CALL: &'static str = "set_payee"; const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_payee"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6534,8 +6598,8 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetController; impl ::subxt::blocks::StaticExtrinsic for SetController { - const CALL: &'static str = "set_controller"; const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_controller"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6555,8 +6619,8 @@ pub mod api { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetValidatorCount { - const CALL: &'static str = "set_validator_count"; const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_validator_count"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6576,8 +6640,8 @@ pub mod api { pub additional: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for IncreaseValidatorCount { - const CALL: &'static str = "increase_validator_count"; const PALLET: &'static str = "Staking"; + const CALL: &'static str = "increase_validator_count"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6596,8 +6660,8 @@ pub mod api { pub factor: runtime_types::sp_arithmetic::per_things::Percent, } impl ::subxt::blocks::StaticExtrinsic for ScaleValidatorCount { - const CALL: &'static str = "scale_validator_count"; const PALLET: &'static str = "Staking"; + const CALL: &'static str = "scale_validator_count"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6614,8 +6678,8 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceNoEras; impl ::subxt::blocks::StaticExtrinsic for ForceNoEras { - const CALL: &'static str = "force_no_eras"; const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_no_eras"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6632,8 +6696,8 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceNewEra; impl ::subxt::blocks::StaticExtrinsic for ForceNewEra { - const CALL: &'static str = "force_new_era"; const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_new_era"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6652,8 +6716,8 @@ pub mod api { pub invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, } impl ::subxt::blocks::StaticExtrinsic for SetInvulnerables { - const CALL: &'static str = "set_invulnerables"; const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_invulnerables"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6673,8 +6737,8 @@ pub mod api { pub num_slashing_spans: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ForceUnstake { - const CALL: &'static str = "force_unstake"; const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_unstake"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6691,8 +6755,8 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceNewEraAlways; impl ::subxt::blocks::StaticExtrinsic for ForceNewEraAlways { - const CALL: &'static str = "force_new_era_always"; const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_new_era_always"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6712,8 +6776,8 @@ pub mod api { pub slash_indices: ::std::vec::Vec<::core::primitive::u32>, } impl ::subxt::blocks::StaticExtrinsic for CancelDeferredSlash { - const CALL: &'static str = "cancel_deferred_slash"; const PALLET: &'static str = "Staking"; + const CALL: &'static str = "cancel_deferred_slash"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6733,8 +6797,8 @@ pub mod api { pub era: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for PayoutStakers { - const CALL: &'static str = "payout_stakers"; const PALLET: &'static str = "Staking"; + const CALL: &'static str = "payout_stakers"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6754,8 +6818,8 @@ pub mod api { pub value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for Rebond { - const CALL: &'static str = "rebond"; const PALLET: &'static str = "Staking"; + const CALL: &'static str = "rebond"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6775,8 +6839,8 @@ pub mod api { pub num_slashing_spans: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ReapStash { - const CALL: &'static str = "reap_stash"; const PALLET: &'static str = "Staking"; + const CALL: &'static str = "reap_stash"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6800,8 +6864,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for Kick { - const CALL: &'static str = "kick"; const PALLET: &'static str = "Staking"; + const CALL: &'static str = "kick"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6839,8 +6903,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for SetStakingConfigs { - const CALL: &'static str = "set_staking_configs"; const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_staking_configs"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6859,8 +6923,8 @@ pub mod api { pub controller: ::subxt::utils::AccountId32, } impl ::subxt::blocks::StaticExtrinsic for ChillOther { - const CALL: &'static str = "chill_other"; const PALLET: &'static str = "Staking"; + const CALL: &'static str = "chill_other"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6879,8 +6943,8 @@ pub mod api { pub validator_stash: ::subxt::utils::AccountId32, } impl ::subxt::blocks::StaticExtrinsic for ForceApplyMinCommission { - const CALL: &'static str = "force_apply_min_commission"; const PALLET: &'static str = "Staking"; + const CALL: &'static str = "force_apply_min_commission"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6899,8 +6963,8 @@ pub mod api { pub new: runtime_types::sp_arithmetic::per_things::Perbill, } impl ::subxt::blocks::StaticExtrinsic for SetMinCommission { - const CALL: &'static str = "set_min_commission"; const PALLET: &'static str = "Staking"; + const CALL: &'static str = "set_min_commission"; } } pub struct TransactionApi; @@ -6924,7 +6988,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::bond_extra`]."] pub fn bond_extra( &self, @@ -6941,7 +7004,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::unbond`]."] pub fn unbond( &self, @@ -6958,7 +7020,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::withdraw_unbonded`]."] pub fn withdraw_unbonded( &self, @@ -6976,7 +7037,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::validate`]."] pub fn validate( &self, @@ -6993,7 +7053,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::nominate`]."] pub fn nominate( &self, @@ -7016,16 +7075,19 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::chill`]."] pub fn chill(&self) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static("Staking", "chill", types::Chill {}, [ - 157u8, 75u8, 243u8, 69u8, 110u8, 192u8, 22u8, 27u8, 107u8, 68u8, 236u8, - 58u8, 179u8, 34u8, 118u8, 98u8, 131u8, 62u8, 242u8, 84u8, 149u8, 24u8, - 83u8, 223u8, 78u8, 12u8, 192u8, 22u8, 111u8, 11u8, 171u8, 149u8, - ]) + ::subxt::tx::Payload::new_static( + "Staking", + "chill", + types::Chill {}, + [ + 157u8, 75u8, 243u8, 69u8, 110u8, 192u8, 22u8, 27u8, 107u8, 68u8, 236u8, + 58u8, 179u8, 34u8, 118u8, 98u8, 131u8, 62u8, 242u8, 84u8, 149u8, 24u8, + 83u8, 223u8, 78u8, 12u8, 192u8, 22u8, 111u8, 11u8, 171u8, 149u8, + ], + ) } - #[doc = "See [`Pallet::set_payee`]."] pub fn set_payee( &self, @@ -7045,7 +7107,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_controller`]."] pub fn set_controller(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -7060,7 +7121,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_validator_count`]."] pub fn set_validator_count( &self, @@ -7078,7 +7138,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::increase_validator_count`]."] pub fn increase_validator_count( &self, @@ -7096,7 +7155,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::scale_validator_count`]."] pub fn scale_validator_count( &self, @@ -7114,7 +7172,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::force_no_eras`]."] pub fn force_no_eras(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -7129,7 +7186,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::force_new_era`]."] pub fn force_new_era(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -7143,7 +7199,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_invulnerables`]."] pub fn set_invulnerables( &self, @@ -7160,7 +7215,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::force_unstake`]."] pub fn force_unstake( &self, @@ -7181,7 +7235,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::force_new_era_always`]."] pub fn force_new_era_always( &self, @@ -7197,7 +7250,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::cancel_deferred_slash`]."] pub fn cancel_deferred_slash( &self, @@ -7216,7 +7268,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::payout_stakers`]."] pub fn payout_stakers( &self, @@ -7237,7 +7288,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::rebond`]."] pub fn rebond( &self, @@ -7254,7 +7304,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::reap_stash`]."] pub fn reap_stash( &self, @@ -7275,7 +7324,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::kick`]."] pub fn kick( &self, @@ -7286,13 +7334,17 @@ pub mod api { >, >, ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static("Staking", "kick", types::Kick { who }, [ - 28u8, 254u8, 219u8, 14u8, 44u8, 187u8, 186u8, 72u8, 55u8, 21u8, 129u8, - 205u8, 225u8, 204u8, 162u8, 53u8, 255u8, 56u8, 49u8, 194u8, 63u8, 43u8, - 96u8, 177u8, 125u8, 0u8, 163u8, 97u8, 231u8, 159u8, 43u8, 249u8, - ]) + ::subxt::tx::Payload::new_static( + "Staking", + "kick", + types::Kick { who }, + [ + 28u8, 254u8, 219u8, 14u8, 44u8, 187u8, 186u8, 72u8, 55u8, 21u8, 129u8, + 205u8, 225u8, 204u8, 162u8, 53u8, 255u8, 56u8, 49u8, 194u8, 63u8, 43u8, + 96u8, 177u8, 125u8, 0u8, 163u8, 97u8, 231u8, 159u8, 43u8, 249u8, + ], + ) } - #[doc = "See [`Pallet::set_staking_configs`]."] pub fn set_staking_configs( &self, @@ -7334,7 +7386,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::chill_other`]."] pub fn chill_other( &self, @@ -7351,7 +7402,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::force_apply_min_commission`]."] pub fn force_apply_min_commission( &self, @@ -7368,7 +7418,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_min_commission`]."] pub fn set_min_commission( &self, @@ -7413,8 +7462,8 @@ pub mod api { pub remainder: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for EraPaid { - const EVENT: &'static str = "EraPaid"; const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "EraPaid"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -7435,8 +7484,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Rewarded { - const EVENT: &'static str = "Rewarded"; const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Rewarded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -7457,8 +7506,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Slashed { - const EVENT: &'static str = "Slashed"; const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Slashed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -7481,8 +7530,8 @@ pub mod api { pub slash_era: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for SlashReported { - const EVENT: &'static str = "SlashReported"; const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "SlashReported"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -7504,8 +7553,8 @@ pub mod api { pub session_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for OldSlashingReportDiscarded { - const EVENT: &'static str = "OldSlashingReportDiscarded"; const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "OldSlashingReportDiscarded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -7523,8 +7572,8 @@ pub mod api { #[doc = "A new set of stakers was elected."] pub struct StakersElected; impl ::subxt::events::StaticEvent for StakersElected { - const EVENT: &'static str = "StakersElected"; const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "StakersElected"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -7548,8 +7597,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Bonded { - const EVENT: &'static str = "Bonded"; const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Bonded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -7570,8 +7619,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Unbonded { - const EVENT: &'static str = "Unbonded"; const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Unbonded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -7593,8 +7642,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Withdrawn { - const EVENT: &'static str = "Withdrawn"; const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Withdrawn"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -7615,8 +7664,8 @@ pub mod api { pub stash: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Kicked { - const EVENT: &'static str = "Kicked"; const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Kicked"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -7634,8 +7683,8 @@ pub mod api { #[doc = "The election failed. No new era is planned."] pub struct StakingElectionFailed; impl ::subxt::events::StaticEvent for StakingElectionFailed { - const EVENT: &'static str = "StakingElectionFailed"; const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "StakingElectionFailed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -7655,8 +7704,8 @@ pub mod api { pub stash: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Chilled { - const EVENT: &'static str = "Chilled"; const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "Chilled"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -7677,8 +7726,8 @@ pub mod api { pub validator_stash: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for PayoutStarted { - const EVENT: &'static str = "PayoutStarted"; const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "PayoutStarted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -7699,8 +7748,8 @@ pub mod api { pub prefs: runtime_types::pallet_staking::ValidatorPrefs, } impl ::subxt::events::StaticEvent for ValidatorPrefsSet { - const EVENT: &'static str = "ValidatorPrefsSet"; const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "ValidatorPrefsSet"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -7720,8 +7769,8 @@ pub mod api { pub mode: runtime_types::pallet_staking::Forcing, } impl ::subxt::events::StaticEvent for ForceEra { - const EVENT: &'static str = "ForceEra"; const PALLET: &'static str = "Staking"; + const EVENT: &'static str = "ForceEra"; } } pub mod storage { @@ -7750,7 +7799,6 @@ pub mod api { ], ) } - #[doc = " Minimum number of staking participants before emergency conditions are imposed."] pub fn minimum_validator_count( &self, @@ -7772,7 +7820,6 @@ pub mod api { ], ) } - #[doc = " Any validators that may never be slashed or forcibly kicked. It's a Vec since they're"] #[doc = " easy to initialize and the performance hit is minimal (we expect no more than four"] #[doc = " invulnerables) and restricted to testnets."] @@ -7797,7 +7844,6 @@ pub mod api { ], ) } - #[doc = " Map from all locked \"stash\" accounts to the controller account."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] @@ -7825,7 +7871,6 @@ pub mod api { ], ) } - #[doc = " Map from all locked \"stash\" accounts to the controller account."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] @@ -7850,7 +7895,6 @@ pub mod api { ], ) } - #[doc = " The minimum active bond to become and maintain the role of a nominator."] pub fn min_nominator_bond( &self, @@ -7873,7 +7917,6 @@ pub mod api { ], ) } - #[doc = " The minimum active bond to become and maintain the role of a validator."] pub fn min_validator_bond( &self, @@ -7896,7 +7939,6 @@ pub mod api { ], ) } - #[doc = " The minimum active nominator stake of the last successful election."] pub fn minimum_active_stake( &self, @@ -7918,7 +7960,6 @@ pub mod api { ], ) } - #[doc = " The minimum amount of commission that validators can set."] #[doc = ""] #[doc = " If set to `0`, no limit exists."] @@ -7942,7 +7983,6 @@ pub mod api { ], ) } - #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] pub fn ledger( &self, @@ -7968,7 +8008,6 @@ pub mod api { ], ) } - #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] pub fn ledger_root( &self, @@ -7991,7 +8030,6 @@ pub mod api { ], ) } - #[doc = " Where the reward payment should be made. Keyed by stash."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] @@ -8018,7 +8056,6 @@ pub mod api { ], ) } - #[doc = " Where the reward payment should be made. Keyed by stash."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] @@ -8042,7 +8079,6 @@ pub mod api { ], ) } - #[doc = " The map from (wannabe) validator stash key to the preferences of that validator."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] @@ -8069,7 +8105,6 @@ pub mod api { ], ) } - #[doc = " The map from (wannabe) validator stash key to the preferences of that validator."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] @@ -8093,7 +8128,6 @@ pub mod api { ], ) } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_validators( &self, @@ -8116,7 +8150,6 @@ pub mod api { ], ) } - #[doc = " The maximum validator count before we stop allowing new validators to join."] #[doc = ""] #[doc = " When this value is not set, no limits are enforced."] @@ -8141,7 +8174,6 @@ pub mod api { ], ) } - #[doc = " The map from nominator stash key to their nomination preferences, namely the validators that"] #[doc = " they wish to support."] #[doc = ""] @@ -8183,7 +8215,6 @@ pub mod api { ], ) } - #[doc = " The map from nominator stash key to their nomination preferences, namely the validators that"] #[doc = " they wish to support."] #[doc = ""] @@ -8222,7 +8253,6 @@ pub mod api { ], ) } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_nominators( &self, @@ -8244,7 +8274,6 @@ pub mod api { ], ) } - #[doc = " The maximum nominator count before we stop allowing new validators to join."] #[doc = ""] #[doc = " When this value is not set, no limits are enforced."] @@ -8268,7 +8297,6 @@ pub mod api { ], ) } - #[doc = " The current era index."] #[doc = ""] #[doc = " This is the latest planned era, depending on how the Session pallet queues the validator"] @@ -8294,7 +8322,6 @@ pub mod api { ], ) } - #[doc = " The active era information, it holds index and start."] #[doc = ""] #[doc = " The active era is the era being currently rewarded. Validator set of this era must be"] @@ -8320,7 +8347,6 @@ pub mod api { ], ) } - #[doc = " The session index at which the era start for the last `HISTORY_DEPTH` eras."] #[doc = ""] #[doc = " Note: This tracks the starting session (i.e. session index when era start being active)"] @@ -8349,7 +8375,6 @@ pub mod api { ], ) } - #[doc = " The session index at which the era start for the last `HISTORY_DEPTH` eras."] #[doc = ""] #[doc = " Note: This tracks the starting session (i.e. session index when era start being active)"] @@ -8375,7 +8400,6 @@ pub mod api { ], ) } - #[doc = " Exposure of validator at era."] #[doc = ""] #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] @@ -8410,7 +8434,6 @@ pub mod api { ], ) } - #[doc = " Exposure of validator at era."] #[doc = ""] #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] @@ -8440,7 +8463,6 @@ pub mod api { ], ) } - #[doc = " Clipped Exposure of validator at era."] #[doc = ""] #[doc = " This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the"] @@ -8481,7 +8503,6 @@ pub mod api { ], ) } - #[doc = " Clipped Exposure of validator at era."] #[doc = ""] #[doc = " This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the"] @@ -8517,7 +8538,6 @@ pub mod api { ], ) } - #[doc = " Similar to `ErasStakers`, this holds the preferences of validators."] #[doc = ""] #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] @@ -8549,7 +8569,6 @@ pub mod api { ], ) } - #[doc = " Similar to `ErasStakers`, this holds the preferences of validators."] #[doc = ""] #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] @@ -8576,7 +8595,6 @@ pub mod api { ], ) } - #[doc = " The total validator era payout for the last `HISTORY_DEPTH` eras."] #[doc = ""] #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] @@ -8603,7 +8621,6 @@ pub mod api { ], ) } - #[doc = " The total validator era payout for the last `HISTORY_DEPTH` eras."] #[doc = ""] #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] @@ -8627,7 +8644,6 @@ pub mod api { ], ) } - #[doc = " Rewards for the last `HISTORY_DEPTH` eras."] #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] pub fn eras_reward_points( @@ -8653,7 +8669,6 @@ pub mod api { ], ) } - #[doc = " Rewards for the last `HISTORY_DEPTH` eras."] #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] pub fn eras_reward_points_root( @@ -8676,7 +8691,6 @@ pub mod api { ], ) } - #[doc = " The total amount staked for the last `HISTORY_DEPTH` eras."] #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] pub fn eras_total_stake( @@ -8703,7 +8717,6 @@ pub mod api { ], ) } - #[doc = " The total amount staked for the last `HISTORY_DEPTH` eras."] #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] pub fn eras_total_stake_root( @@ -8727,7 +8740,6 @@ pub mod api { ], ) } - #[doc = " Mode of era forcing."] pub fn force_era( &self, @@ -8738,13 +8750,18 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Staking", "ForceEra", vec![], [ - 177u8, 148u8, 73u8, 108u8, 136u8, 126u8, 89u8, 18u8, 124u8, 66u8, 30u8, - 102u8, 133u8, 164u8, 78u8, 214u8, 184u8, 163u8, 75u8, 164u8, 117u8, 233u8, - 209u8, 158u8, 99u8, 208u8, 21u8, 194u8, 152u8, 82u8, 16u8, 222u8, - ]) + ::subxt::storage::address::Address::new_static( + "Staking", + "ForceEra", + vec![], + [ + 177u8, 148u8, 73u8, 108u8, 136u8, 126u8, 89u8, 18u8, 124u8, 66u8, 30u8, + 102u8, 133u8, 164u8, 78u8, 214u8, 184u8, 163u8, 75u8, 164u8, 117u8, + 233u8, 209u8, 158u8, 99u8, 208u8, 21u8, 194u8, 152u8, 82u8, 16u8, + 222u8, + ], + ) } - #[doc = " The percentage of the slash that is distributed to reporters."] #[doc = ""] #[doc = " The rest of the slashed value is handled by the `Slash`."] @@ -8769,7 +8786,6 @@ pub mod api { ], ) } - #[doc = " The amount of currency given to reporters of a slash event which was"] #[doc = " canceled by extraordinary circumstances (e.g. governance)."] pub fn canceled_slash_payout( @@ -8793,7 +8809,6 @@ pub mod api { ], ) } - #[doc = " All unapplied slashes that are queued for later."] pub fn unapplied_slashes( &self, @@ -8824,7 +8839,6 @@ pub mod api { ], ) } - #[doc = " All unapplied slashes that are queued for later."] pub fn unapplied_slashes_root( &self, @@ -8852,7 +8866,6 @@ pub mod api { ], ) } - #[doc = " A mapping from still-bonded eras to the first session index of that era."] #[doc = ""] #[doc = " Must contains information for eras for the range:"] @@ -8878,7 +8891,6 @@ pub mod api { ], ) } - #[doc = " All slashing events on validators, mapped by era to the highest slash proportion"] #[doc = " and slash value of the era."] pub fn validator_slash_in_era( @@ -8909,7 +8921,6 @@ pub mod api { ], ) } - #[doc = " All slashing events on validators, mapped by era to the highest slash proportion"] #[doc = " and slash value of the era."] pub fn validator_slash_in_era_root( @@ -8935,7 +8946,6 @@ pub mod api { ], ) } - #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] pub fn nominator_slash_in_era( &self, @@ -8962,7 +8972,6 @@ pub mod api { ], ) } - #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] pub fn nominator_slash_in_era_root( &self, @@ -8984,7 +8993,6 @@ pub mod api { ], ) } - #[doc = " Slashing spans for stash accounts."] pub fn slashing_spans( &self, @@ -9010,7 +9018,6 @@ pub mod api { ], ) } - #[doc = " Slashing spans for stash accounts."] pub fn slashing_spans_root( &self, @@ -9033,7 +9040,6 @@ pub mod api { ], ) } - #[doc = " Records information about the maximum slash of a stash within a slashing span,"] #[doc = " as well as how much reward has been paid out."] pub fn span_slash( @@ -9061,7 +9067,6 @@ pub mod api { ], ) } - #[doc = " Records information about the maximum slash of a stash within a slashing span,"] #[doc = " as well as how much reward has been paid out."] pub fn span_slash_root( @@ -9084,7 +9089,6 @@ pub mod api { ], ) } - #[doc = " The last planned session scheduled by the session pallet."] #[doc = ""] #[doc = " This is basically in sync with the call to [`pallet_session::SessionManager::new_session`]."] @@ -9108,7 +9112,6 @@ pub mod api { ], ) } - #[doc = " Indices of validators that have offended in the active era and whether they are currently"] #[doc = " disabled."] #[doc = ""] @@ -9139,7 +9142,6 @@ pub mod api { ], ) } - #[doc = " The threshold for when users can start calling `chill_other` for other validators /"] #[doc = " nominators. The threshold is compared to the actual number of validators / nominators"] #[doc = " (`CountFor*`) in the system compared to the configured max (`Max*Count`)."] @@ -9173,13 +9175,17 @@ pub mod api { pub fn max_nominations( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Staking", "MaxNominations", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Staking", + "MaxNominations", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " Number of eras to keep in history."] #[doc = ""] #[doc = " Following information is kept for eras in `[current_era -"] @@ -9201,35 +9207,47 @@ pub mod api { #[doc = " `StakingLedger` and will need to be handled properly in a migration."] #[doc = " The test `reducing_history_depth_abrupt` shows this effect."] pub fn history_depth(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Staking", "HistoryDepth", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Staking", + "HistoryDepth", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " Number of sessions per era."] pub fn sessions_per_era( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Staking", "SessionsPerEra", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Staking", + "SessionsPerEra", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " Number of eras that staked funds must remain bonded for."] pub fn bonding_duration( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Staking", "BondingDuration", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Staking", + "BondingDuration", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " Number of eras that slashes are deferred by, after computation."] #[doc = ""] #[doc = " This should be less than the bonding duration. Set to 0 if slashes"] @@ -9237,13 +9255,17 @@ pub mod api { pub fn slash_defer_duration( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Staking", "SlashDeferDuration", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Staking", + "SlashDeferDuration", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " The maximum number of nominators rewarded for each validator."] #[doc = ""] #[doc = " For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can"] @@ -9262,7 +9284,6 @@ pub mod api { ], ) } - #[doc = " The maximum number of `unlocking` chunks a [`StakingLedger`] can"] #[doc = " have. Effectively determines how many unique eras a staker may be"] #[doc = " unbonding in."] @@ -9276,23 +9297,30 @@ pub mod api { pub fn max_unlocking_chunks( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Staking", "MaxUnlockingChunks", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Staking", + "MaxUnlockingChunks", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } } pub mod session { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "Error for the session pallet."] pub type Error = runtime_types::pallet_session::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_session::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -9314,8 +9342,8 @@ pub mod api { pub proof: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for SetKeys { - const CALL: &'static str = "set_keys"; const PALLET: &'static str = "Session"; + const CALL: &'static str = "set_keys"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -9332,8 +9360,8 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PurgeKeys; impl ::subxt::blocks::StaticExtrinsic for PurgeKeys { - const CALL: &'static str = "purge_keys"; const PALLET: &'static str = "Session"; + const CALL: &'static str = "purge_keys"; } } pub struct TransactionApi; @@ -9355,7 +9383,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::purge_keys`]."] pub fn purge_keys(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -9396,8 +9423,8 @@ pub mod api { pub session_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for NewSession { - const EVENT: &'static str = "NewSession"; const PALLET: &'static str = "Session"; + const EVENT: &'static str = "NewSession"; } } pub mod storage { @@ -9426,7 +9453,6 @@ pub mod api { ], ) } - #[doc = " Current index of the session."] pub fn current_index( &self, @@ -9449,7 +9475,6 @@ pub mod api { ], ) } - #[doc = " True if the underlying economic identities or weighting behind the validators"] #[doc = " has changed in the queued validator set."] pub fn queued_changed( @@ -9473,7 +9498,6 @@ pub mod api { ], ) } - #[doc = " The queued keys for the next session. When the next session begins, these keys"] #[doc = " will be used to determine the validator's session keys."] pub fn queued_keys( @@ -9500,7 +9524,6 @@ pub mod api { ], ) } - #[doc = " Indices of disabled validators."] #[doc = ""] #[doc = " The vec is always kept sorted so that we can find whether a given validator is"] @@ -9526,7 +9549,6 @@ pub mod api { ], ) } - #[doc = " The next session keys for a validator."] pub fn next_keys( &self, @@ -9551,7 +9573,6 @@ pub mod api { ], ) } - #[doc = " The next session keys for a validator."] pub fn next_keys_root( &self, @@ -9573,7 +9594,6 @@ pub mod api { ], ) } - #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] pub fn key_owner( &self, @@ -9600,7 +9620,6 @@ pub mod api { ], ) } - #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] pub fn key_owner_root( &self, @@ -9626,13 +9645,15 @@ pub mod api { } } pub mod democracy { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_democracy::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_democracy::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -9657,8 +9678,8 @@ pub mod api { pub value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for Propose { - const CALL: &'static str = "propose"; const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "propose"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -9678,8 +9699,8 @@ pub mod api { pub proposal: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Second { - const CALL: &'static str = "second"; const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "second"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -9701,8 +9722,8 @@ pub mod api { runtime_types::pallet_democracy::vote::AccountVote<::core::primitive::u128>, } impl ::subxt::blocks::StaticExtrinsic for Vote { - const CALL: &'static str = "vote"; const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "vote"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -9722,8 +9743,8 @@ pub mod api { pub ref_index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for EmergencyCancel { - const CALL: &'static str = "emergency_cancel"; const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "emergency_cancel"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -9744,8 +9765,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for ExternalPropose { - const CALL: &'static str = "external_propose"; const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "external_propose"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -9766,8 +9787,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for ExternalProposeMajority { - const CALL: &'static str = "external_propose_majority"; const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "external_propose_majority"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -9788,8 +9809,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for ExternalProposeDefault { - const CALL: &'static str = "external_propose_default"; const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "external_propose_default"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -9810,8 +9831,8 @@ pub mod api { pub delay: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for FastTrack { - const CALL: &'static str = "fast_track"; const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "fast_track"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -9830,8 +9851,8 @@ pub mod api { pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for VetoExternal { - const CALL: &'static str = "veto_external"; const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "veto_external"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -9851,8 +9872,8 @@ pub mod api { pub ref_index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for CancelReferendum { - const CALL: &'static str = "cancel_referendum"; const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "cancel_referendum"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -9876,8 +9897,8 @@ pub mod api { pub balance: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for Delegate { - const CALL: &'static str = "delegate"; const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "delegate"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -9894,8 +9915,8 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Undelegate; impl ::subxt::blocks::StaticExtrinsic for Undelegate { - const CALL: &'static str = "undelegate"; const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "undelegate"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -9912,8 +9933,8 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClearPublicProposals; impl ::subxt::blocks::StaticExtrinsic for ClearPublicProposals { - const CALL: &'static str = "clear_public_proposals"; const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "clear_public_proposals"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -9935,8 +9956,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for Unlock { - const CALL: &'static str = "unlock"; const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "unlock"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -9956,8 +9977,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for RemoveVote { - const CALL: &'static str = "remove_vote"; const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "remove_vote"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -9980,8 +10001,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for RemoveOtherVote { - const CALL: &'static str = "remove_other_vote"; const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "remove_other_vote"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10001,8 +10022,8 @@ pub mod api { pub maybe_ref_index: ::core::option::Option<::core::primitive::u32>, } impl ::subxt::blocks::StaticExtrinsic for Blacklist { - const CALL: &'static str = "blacklist"; const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "blacklist"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10022,8 +10043,8 @@ pub mod api { pub prop_index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for CancelProposal { - const CALL: &'static str = "cancel_proposal"; const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "cancel_proposal"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10043,8 +10064,8 @@ pub mod api { pub maybe_hash: ::core::option::Option<::subxt::utils::H256>, } impl ::subxt::blocks::StaticExtrinsic for SetMetadata { - const CALL: &'static str = "set_metadata"; const PALLET: &'static str = "Democracy"; + const CALL: &'static str = "set_metadata"; } } pub struct TransactionApi; @@ -10069,7 +10090,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::second`]."] pub fn second( &self, @@ -10087,7 +10107,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::vote`]."] pub fn vote( &self, @@ -10108,7 +10127,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::emergency_cancel`]."] pub fn emergency_cancel( &self, @@ -10125,7 +10143,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::external_propose`]."] pub fn external_propose( &self, @@ -10145,7 +10162,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::external_propose_majority`]."] pub fn external_propose_majority( &self, @@ -10165,7 +10181,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::external_propose_default`]."] pub fn external_propose_default( &self, @@ -10185,7 +10200,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::fast_track`]."] pub fn fast_track( &self, @@ -10209,7 +10223,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::veto_external`]."] pub fn veto_external( &self, @@ -10227,7 +10240,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::cancel_referendum`]."] pub fn cancel_referendum( &self, @@ -10245,7 +10257,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::delegate`]."] pub fn delegate( &self, @@ -10271,7 +10282,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::undelegate`]."] pub fn undelegate(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -10286,7 +10296,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::clear_public_proposals`]."] pub fn clear_public_proposals( &self, @@ -10303,7 +10312,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::unlock`]."] pub fn unlock( &self, @@ -10323,7 +10331,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::remove_vote`]."] pub fn remove_vote( &self, @@ -10341,7 +10348,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::remove_other_vote`]."] pub fn remove_other_vote( &self, @@ -10363,7 +10369,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::blacklist`]."] pub fn blacklist( &self, @@ -10385,7 +10390,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::cancel_proposal`]."] pub fn cancel_proposal( &self, @@ -10402,7 +10406,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_metadata`]."] pub fn set_metadata( &self, @@ -10446,8 +10449,8 @@ pub mod api { pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Proposed { - const EVENT: &'static str = "Proposed"; const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Proposed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10468,8 +10471,8 @@ pub mod api { pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Tabled { - const EVENT: &'static str = "Tabled"; const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Tabled"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10487,8 +10490,8 @@ pub mod api { #[doc = "An external proposal has been tabled."] pub struct ExternalTabled; impl ::subxt::events::StaticEvent for ExternalTabled { - const EVENT: &'static str = "ExternalTabled"; const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "ExternalTabled"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10509,8 +10512,8 @@ pub mod api { pub threshold: runtime_types::pallet_democracy::vote_threshold::VoteThreshold, } impl ::subxt::events::StaticEvent for Started { - const EVENT: &'static str = "Started"; const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Started"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -10531,8 +10534,8 @@ pub mod api { pub ref_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Passed { - const EVENT: &'static str = "Passed"; const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Passed"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -10553,8 +10556,8 @@ pub mod api { pub ref_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for NotPassed { - const EVENT: &'static str = "NotPassed"; const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "NotPassed"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -10575,8 +10578,8 @@ pub mod api { pub ref_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Cancelled { - const EVENT: &'static str = "Cancelled"; const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Cancelled"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10597,8 +10600,8 @@ pub mod api { pub target: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Delegated { - const EVENT: &'static str = "Delegated"; const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Delegated"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10618,8 +10621,8 @@ pub mod api { pub account: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Undelegated { - const EVENT: &'static str = "Undelegated"; const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Undelegated"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10641,8 +10644,8 @@ pub mod api { pub until: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Vetoed { - const EVENT: &'static str = "Vetoed"; const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Vetoed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10662,8 +10665,8 @@ pub mod api { pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Blacklisted { - const EVENT: &'static str = "Blacklisted"; const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Blacklisted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10686,8 +10689,8 @@ pub mod api { runtime_types::pallet_democracy::vote::AccountVote<::core::primitive::u128>, } impl ::subxt::events::StaticEvent for Voted { - const EVENT: &'static str = "Voted"; const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Voted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10708,8 +10711,8 @@ pub mod api { pub prop_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Seconded { - const EVENT: &'static str = "Seconded"; const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "Seconded"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -10730,8 +10733,8 @@ pub mod api { pub prop_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for ProposalCanceled { - const EVENT: &'static str = "ProposalCanceled"; const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "ProposalCanceled"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10752,8 +10755,8 @@ pub mod api { pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for MetadataSet { - const EVENT: &'static str = "MetadataSet"; const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "MetadataSet"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10774,8 +10777,8 @@ pub mod api { pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for MetadataCleared { - const EVENT: &'static str = "MetadataCleared"; const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "MetadataCleared"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10797,8 +10800,8 @@ pub mod api { pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for MetadataTransferred { - const EVENT: &'static str = "MetadataTransferred"; const PALLET: &'static str = "Democracy"; + const EVENT: &'static str = "MetadataTransferred"; } } pub mod storage { @@ -10827,7 +10830,6 @@ pub mod api { ], ) } - #[doc = " The public proposals. Unsorted. The second item is the proposal."] pub fn public_props( &self, @@ -10855,7 +10857,6 @@ pub mod api { ], ) } - #[doc = " Those who have locked a deposit."] #[doc = ""] #[doc = " TWOX-NOTE: Safe, as increasing integer keys are safe."] @@ -10887,7 +10888,6 @@ pub mod api { ], ) } - #[doc = " Those who have locked a deposit."] #[doc = ""] #[doc = " TWOX-NOTE: Safe, as increasing integer keys are safe."] @@ -10916,7 +10916,6 @@ pub mod api { ], ) } - #[doc = " The next free referendum index, aka the number of referenda started so far."] pub fn referendum_count( &self, @@ -10939,7 +10938,6 @@ pub mod api { ], ) } - #[doc = " The lowest referendum index representing an unbaked referendum. Equal to"] #[doc = " `ReferendumCount` if there isn't a unbaked referendum."] pub fn lowest_unbaked( @@ -10962,7 +10960,6 @@ pub mod api { ], ) } - #[doc = " Information concerning any given referendum."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE as indexes are not under an attacker’s control."] @@ -10996,7 +10993,6 @@ pub mod api { ], ) } - #[doc = " Information concerning any given referendum."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE as indexes are not under an attacker’s control."] @@ -11027,7 +11023,6 @@ pub mod api { ], ) } - #[doc = " All votes for a particular voter. We store the balance for the number of votes that we"] #[doc = " have recorded. The second item is the total amount of delegations, that will be added."] #[doc = ""] @@ -11060,7 +11055,6 @@ pub mod api { ], ) } - #[doc = " All votes for a particular voter. We store the balance for the number of votes that we"] #[doc = " have recorded. The second item is the total amount of delegations, that will be added."] #[doc = ""] @@ -11090,7 +11084,6 @@ pub mod api { ], ) } - #[doc = " True if the last referendum tabled was submitted externally. False if it was a public"] #[doc = " proposal."] pub fn last_tabled_was_external( @@ -11113,7 +11106,6 @@ pub mod api { ], ) } - #[doc = " The referendum to be tabled whenever it would be valid to table an external proposal."] #[doc = " This happens when a referendum needs to be tabled and one of two conditions are met:"] #[doc = " - `LastTabledWasExternal` is `false`; or"] @@ -11143,7 +11135,6 @@ pub mod api { ], ) } - #[doc = " A record of who vetoed what. Maps proposal hash to a possible existent block number"] #[doc = " (until when it may not be resubmitted) and who vetoed it."] pub fn blacklist( @@ -11174,7 +11165,6 @@ pub mod api { ], ) } - #[doc = " A record of who vetoed what. Maps proposal hash to a possible existent block number"] #[doc = " (until when it may not be resubmitted) and who vetoed it."] pub fn blacklist_root( @@ -11202,7 +11192,6 @@ pub mod api { ], ) } - #[doc = " Record of all proposals that have been subject to emergency cancellation."] pub fn cancellations( &self, @@ -11228,7 +11217,6 @@ pub mod api { ], ) } - #[doc = " Record of all proposals that have been subject to emergency cancellation."] pub fn cancellations_root( &self, @@ -11251,7 +11239,6 @@ pub mod api { ], ) } - #[doc = " General information concerning any proposal or referendum."] #[doc = " The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON"] #[doc = " dump or IPFS hash of a JSON file."] @@ -11284,7 +11271,6 @@ pub mod api { ], ) } - #[doc = " General information concerning any proposal or referendum."] #[doc = " The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON"] #[doc = " dump or IPFS hash of a JSON file."] @@ -11326,31 +11312,43 @@ pub mod api { pub fn enactment_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "EnactmentPeriod", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "EnactmentPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " How often (in blocks) new public referenda are launched."] pub fn launch_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "LaunchPeriod", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "LaunchPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " How often (in blocks) to check for new votes."] pub fn voting_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "VotingPeriod", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "VotingPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " The minimum period of vote locking."] #[doc = ""] #[doc = " It should be no shorter than enactment period to ensure that in the case of an approval,"] @@ -11358,110 +11356,147 @@ pub mod api { pub fn vote_locking_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "VoteLockingPeriod", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "VoteLockingPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " The minimum amount to be used as a deposit for a public referendum proposal."] pub fn minimum_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Democracy", "MinimumDeposit", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "MinimumDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } - #[doc = " Indicator for whether an emergency origin is even allowed to happen. Some chains may"] #[doc = " want to set this permanently to `false`, others may want to condition it on things such"] #[doc = " as an upgrade having happened recently."] pub fn instant_allowed( &self, ) -> ::subxt::constants::Address<::core::primitive::bool> { - ::subxt::constants::Address::new_static("Democracy", "InstantAllowed", [ - 165u8, 28u8, 112u8, 190u8, 18u8, 129u8, 182u8, 206u8, 237u8, 1u8, 68u8, - 252u8, 125u8, 234u8, 185u8, 50u8, 149u8, 164u8, 47u8, 126u8, 134u8, 100u8, - 14u8, 86u8, 209u8, 39u8, 20u8, 4u8, 233u8, 115u8, 102u8, 131u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "InstantAllowed", + [ + 165u8, 28u8, 112u8, 190u8, 18u8, 129u8, 182u8, 206u8, 237u8, 1u8, 68u8, + 252u8, 125u8, 234u8, 185u8, 50u8, 149u8, 164u8, 47u8, 126u8, 134u8, + 100u8, 14u8, 86u8, 209u8, 39u8, 20u8, 4u8, 233u8, 115u8, 102u8, 131u8, + ], + ) } - #[doc = " Minimum voting period allowed for a fast-track referendum."] pub fn fast_track_voting_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "FastTrackVotingPeriod", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "FastTrackVotingPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " Period in blocks where an external proposal may not be re-submitted after being vetoed."] pub fn cooloff_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "CooloffPeriod", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "CooloffPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " The maximum number of votes for an account."] #[doc = ""] #[doc = " Also used to compute weight, an overly big value can"] #[doc = " lead to extrinsic with very big weight: see `delegate` for instance."] pub fn max_votes(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "MaxVotes", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) - } - + ::subxt::constants::Address::new_static( + "Democracy", + "MaxVotes", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) + } #[doc = " The maximum number of public proposals that can exist at any time."] pub fn max_proposals(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "MaxProposals", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "MaxProposals", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " The maximum number of deposits a public proposal may have at any time."] pub fn max_deposits(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "MaxDeposits", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "MaxDeposits", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " The maximum number of items which can be blacklisted."] pub fn max_blacklisted( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "MaxBlacklisted", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "MaxBlacklisted", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } } pub mod council { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_collective::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_collective::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -11484,8 +11519,8 @@ pub mod api { pub old_count: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetMembers { - const CALL: &'static str = "set_members"; const PALLET: &'static str = "Council"; + const CALL: &'static str = "set_members"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11506,8 +11541,8 @@ pub mod api { pub length_bound: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Execute { - const CALL: &'static str = "execute"; const PALLET: &'static str = "Council"; + const CALL: &'static str = "execute"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11530,8 +11565,8 @@ pub mod api { pub length_bound: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Propose { - const CALL: &'static str = "propose"; const PALLET: &'static str = "Council"; + const CALL: &'static str = "propose"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11553,8 +11588,8 @@ pub mod api { pub approve: ::core::primitive::bool, } impl ::subxt::blocks::StaticExtrinsic for Vote { - const CALL: &'static str = "vote"; const PALLET: &'static str = "Council"; + const CALL: &'static str = "vote"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11573,8 +11608,8 @@ pub mod api { pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for DisapproveProposal { - const CALL: &'static str = "disapprove_proposal"; const PALLET: &'static str = "Council"; + const CALL: &'static str = "disapprove_proposal"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11598,8 +11633,8 @@ pub mod api { pub length_bound: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Close { - const CALL: &'static str = "close"; const PALLET: &'static str = "Council"; + const CALL: &'static str = "close"; } } pub struct TransactionApi; @@ -11627,7 +11662,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::execute`]."] pub fn execute( &self, @@ -11649,7 +11683,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::propose`]."] pub fn propose( &self, @@ -11672,7 +11705,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::vote`]."] pub fn vote( &self, @@ -11696,7 +11728,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::disapprove_proposal`]."] pub fn disapprove_proposal( &self, @@ -11713,7 +11744,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::close`]."] pub fn close( &self, @@ -11766,8 +11796,8 @@ pub mod api { pub threshold: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Proposed { - const EVENT: &'static str = "Proposed"; const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Proposed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11792,8 +11822,8 @@ pub mod api { pub no: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Voted { - const EVENT: &'static str = "Voted"; const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Voted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11813,8 +11843,8 @@ pub mod api { pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Approved { - const EVENT: &'static str = "Approved"; const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Approved"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11834,8 +11864,8 @@ pub mod api { pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Disapproved { - const EVENT: &'static str = "Disapproved"; const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Disapproved"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11856,8 +11886,8 @@ pub mod api { pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for Executed { - const EVENT: &'static str = "Executed"; const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Executed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11878,8 +11908,8 @@ pub mod api { pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for MemberExecuted { - const EVENT: &'static str = "MemberExecuted"; const PALLET: &'static str = "Council"; + const EVENT: &'static str = "MemberExecuted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11901,8 +11931,8 @@ pub mod api { pub no: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Closed { - const EVENT: &'static str = "Closed"; const PALLET: &'static str = "Council"; + const EVENT: &'static str = "Closed"; } } pub mod storage { @@ -11932,7 +11962,6 @@ pub mod api { ], ) } - #[doc = " Actual proposal for a given hash, if it's current."] pub fn proposal_of( &self, @@ -11958,7 +11987,6 @@ pub mod api { ], ) } - #[doc = " Actual proposal for a given hash, if it's current."] pub fn proposal_of_root( &self, @@ -11981,7 +12009,6 @@ pub mod api { ], ) } - #[doc = " Votes on a given proposal, if it is ongoing."] pub fn voting( &self, @@ -12009,7 +12036,6 @@ pub mod api { ], ) } - #[doc = " Votes on a given proposal, if it is ongoing."] pub fn voting_root( &self, @@ -12034,7 +12060,6 @@ pub mod api { ], ) } - #[doc = " Proposals so far."] pub fn proposal_count( &self, @@ -12056,7 +12081,6 @@ pub mod api { ], ) } - #[doc = " The current members of the collective. This is stored sorted (just by value)."] pub fn members( &self, @@ -12067,13 +12091,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Council", "Members", vec![], [ - 16u8, 29u8, 32u8, 222u8, 175u8, 136u8, 111u8, 101u8, 43u8, 74u8, 209u8, - 81u8, 47u8, 97u8, 129u8, 39u8, 225u8, 243u8, 110u8, 229u8, 237u8, 21u8, - 90u8, 127u8, 80u8, 239u8, 156u8, 32u8, 90u8, 109u8, 179u8, 0u8, - ]) + ::subxt::storage::address::Address::new_static( + "Council", + "Members", + vec![], + [ + 16u8, 29u8, 32u8, 222u8, 175u8, 136u8, 111u8, 101u8, 43u8, 74u8, 209u8, + 81u8, 47u8, 97u8, 129u8, 39u8, 225u8, 243u8, 110u8, 229u8, 237u8, 21u8, + 90u8, 127u8, 80u8, 239u8, 156u8, 32u8, 90u8, 109u8, 179u8, 0u8, + ], + ) } - #[doc = " The prime member that helps determine the default vote behavior in case of absentations."] pub fn prime( &self, @@ -12084,11 +12112,16 @@ pub mod api { (), (), > { - ::subxt::storage::address::Address::new_static("Council", "Prime", vec![], [ - 72u8, 128u8, 214u8, 72u8, 78u8, 80u8, 100u8, 198u8, 114u8, 215u8, 59u8, - 3u8, 103u8, 14u8, 152u8, 202u8, 12u8, 165u8, 224u8, 10u8, 41u8, 154u8, - 77u8, 95u8, 116u8, 143u8, 250u8, 250u8, 176u8, 92u8, 238u8, 154u8, - ]) + ::subxt::storage::address::Address::new_static( + "Council", + "Prime", + vec![], + [ + 72u8, 128u8, 214u8, 72u8, 78u8, 80u8, 100u8, 198u8, 114u8, 215u8, 59u8, + 3u8, 103u8, 14u8, 152u8, 202u8, 12u8, 165u8, 224u8, 10u8, 41u8, 154u8, + 77u8, 95u8, 116u8, 143u8, 250u8, 250u8, 176u8, 92u8, 238u8, 154u8, + ], + ) } } } @@ -12100,23 +12133,29 @@ pub mod api { pub fn max_proposal_weight( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("Council", "MaxProposalWeight", [ - 222u8, 183u8, 203u8, 169u8, 31u8, 134u8, 28u8, 12u8, 47u8, 140u8, 71u8, - 74u8, 61u8, 55u8, 71u8, 236u8, 215u8, 83u8, 28u8, 70u8, 45u8, 128u8, 184u8, - 57u8, 101u8, 83u8, 42u8, 165u8, 34u8, 155u8, 64u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Council", + "MaxProposalWeight", + [ + 222u8, 183u8, 203u8, 169u8, 31u8, 134u8, 28u8, 12u8, 47u8, 140u8, 71u8, + 74u8, 61u8, 55u8, 71u8, 236u8, 215u8, 83u8, 28u8, 70u8, 45u8, 128u8, + 184u8, 57u8, 101u8, 83u8, 42u8, 165u8, 34u8, 155u8, 64u8, 145u8, + ], + ) } } } } pub mod technical_committee { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_collective::pallet::Error2; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_collective::pallet::Call2; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -12139,8 +12178,8 @@ pub mod api { pub old_count: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetMembers { - const CALL: &'static str = "set_members"; const PALLET: &'static str = "TechnicalCommittee"; + const CALL: &'static str = "set_members"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12161,8 +12200,8 @@ pub mod api { pub length_bound: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Execute { - const CALL: &'static str = "execute"; const PALLET: &'static str = "TechnicalCommittee"; + const CALL: &'static str = "execute"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12185,8 +12224,8 @@ pub mod api { pub length_bound: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Propose { - const CALL: &'static str = "propose"; const PALLET: &'static str = "TechnicalCommittee"; + const CALL: &'static str = "propose"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12208,8 +12247,8 @@ pub mod api { pub approve: ::core::primitive::bool, } impl ::subxt::blocks::StaticExtrinsic for Vote { - const CALL: &'static str = "vote"; const PALLET: &'static str = "TechnicalCommittee"; + const CALL: &'static str = "vote"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12228,8 +12267,8 @@ pub mod api { pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for DisapproveProposal { - const CALL: &'static str = "disapprove_proposal"; const PALLET: &'static str = "TechnicalCommittee"; + const CALL: &'static str = "disapprove_proposal"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12253,8 +12292,8 @@ pub mod api { pub length_bound: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Close { - const CALL: &'static str = "close"; const PALLET: &'static str = "TechnicalCommittee"; + const CALL: &'static str = "close"; } } pub struct TransactionApi; @@ -12282,7 +12321,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::execute`]."] pub fn execute( &self, @@ -12304,7 +12342,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::propose`]."] pub fn propose( &self, @@ -12327,7 +12364,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::vote`]."] pub fn vote( &self, @@ -12351,7 +12387,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::disapprove_proposal`]."] pub fn disapprove_proposal( &self, @@ -12368,7 +12403,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::close`]."] pub fn close( &self, @@ -12421,8 +12455,8 @@ pub mod api { pub threshold: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Proposed { - const EVENT: &'static str = "Proposed"; const PALLET: &'static str = "TechnicalCommittee"; + const EVENT: &'static str = "Proposed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12447,8 +12481,8 @@ pub mod api { pub no: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Voted { - const EVENT: &'static str = "Voted"; const PALLET: &'static str = "TechnicalCommittee"; + const EVENT: &'static str = "Voted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12468,8 +12502,8 @@ pub mod api { pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Approved { - const EVENT: &'static str = "Approved"; const PALLET: &'static str = "TechnicalCommittee"; + const EVENT: &'static str = "Approved"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12489,8 +12523,8 @@ pub mod api { pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Disapproved { - const EVENT: &'static str = "Disapproved"; const PALLET: &'static str = "TechnicalCommittee"; + const EVENT: &'static str = "Disapproved"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12511,8 +12545,8 @@ pub mod api { pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for Executed { - const EVENT: &'static str = "Executed"; const PALLET: &'static str = "TechnicalCommittee"; + const EVENT: &'static str = "Executed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12533,8 +12567,8 @@ pub mod api { pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for MemberExecuted { - const EVENT: &'static str = "MemberExecuted"; const PALLET: &'static str = "TechnicalCommittee"; + const EVENT: &'static str = "MemberExecuted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12556,8 +12590,8 @@ pub mod api { pub no: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Closed { - const EVENT: &'static str = "Closed"; const PALLET: &'static str = "TechnicalCommittee"; + const EVENT: &'static str = "Closed"; } } pub mod storage { @@ -12587,7 +12621,6 @@ pub mod api { ], ) } - #[doc = " Actual proposal for a given hash, if it's current."] pub fn proposal_of( &self, @@ -12613,7 +12646,6 @@ pub mod api { ], ) } - #[doc = " Actual proposal for a given hash, if it's current."] pub fn proposal_of_root( &self, @@ -12636,7 +12668,6 @@ pub mod api { ], ) } - #[doc = " Votes on a given proposal, if it is ongoing."] pub fn voting( &self, @@ -12664,7 +12695,6 @@ pub mod api { ], ) } - #[doc = " Votes on a given proposal, if it is ongoing."] pub fn voting_root( &self, @@ -12689,7 +12719,6 @@ pub mod api { ], ) } - #[doc = " Proposals so far."] pub fn proposal_count( &self, @@ -12711,7 +12740,6 @@ pub mod api { ], ) } - #[doc = " The current members of the collective. This is stored sorted (just by value)."] pub fn members( &self, @@ -12733,7 +12761,6 @@ pub mod api { ], ) } - #[doc = " The prime member that helps determine the default vote behavior in case of absentations."] pub fn prime( &self, @@ -12779,13 +12806,15 @@ pub mod api { } } pub mod elections { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_elections_phragmen::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_elections_phragmen::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -12808,8 +12837,8 @@ pub mod api { pub value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for Vote { - const CALL: &'static str = "vote"; const PALLET: &'static str = "Elections"; + const CALL: &'static str = "vote"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12826,8 +12855,8 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveVoter; impl ::subxt::blocks::StaticExtrinsic for RemoveVoter { - const CALL: &'static str = "remove_voter"; const PALLET: &'static str = "Elections"; + const CALL: &'static str = "remove_voter"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12847,8 +12876,8 @@ pub mod api { pub candidate_count: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SubmitCandidacy { - const CALL: &'static str = "submit_candidacy"; const PALLET: &'static str = "Elections"; + const CALL: &'static str = "submit_candidacy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12867,8 +12896,8 @@ pub mod api { pub renouncing: runtime_types::pallet_elections_phragmen::Renouncing, } impl ::subxt::blocks::StaticExtrinsic for RenounceCandidacy { - const CALL: &'static str = "renounce_candidacy"; const PALLET: &'static str = "Elections"; + const CALL: &'static str = "renounce_candidacy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12892,8 +12921,8 @@ pub mod api { pub rerun_election: ::core::primitive::bool, } impl ::subxt::blocks::StaticExtrinsic for RemoveMember { - const CALL: &'static str = "remove_member"; const PALLET: &'static str = "Elections"; + const CALL: &'static str = "remove_member"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12913,8 +12942,8 @@ pub mod api { pub num_defunct: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for CleanDefunctVoters { - const CALL: &'static str = "clean_defunct_voters"; const PALLET: &'static str = "Elections"; + const CALL: &'static str = "clean_defunct_voters"; } } pub struct TransactionApi; @@ -12936,7 +12965,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::remove_voter`]."] pub fn remove_voter(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -12951,7 +12979,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::submit_candidacy`]."] pub fn submit_candidacy( &self, @@ -12969,7 +12996,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::renounce_candidacy`]."] pub fn renounce_candidacy( &self, @@ -12987,7 +13013,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::remove_member`]."] pub fn remove_member( &self, @@ -13014,7 +13039,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::clean_defunct_voters`]."] pub fn clean_defunct_voters( &self, @@ -13065,8 +13089,8 @@ pub mod api { ::std::vec::Vec<(::subxt::utils::AccountId32, ::core::primitive::u128)>, } impl ::subxt::events::StaticEvent for NewTerm { - const EVENT: &'static str = "NewTerm"; const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "NewTerm"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13085,8 +13109,8 @@ pub mod api { #[doc = "`NewTerm(\\[\\])`. See the description of `NewTerm`."] pub struct EmptyTerm; impl ::subxt::events::StaticEvent for EmptyTerm { - const EVENT: &'static str = "EmptyTerm"; const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "EmptyTerm"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13104,8 +13128,8 @@ pub mod api { #[doc = "Internal error happened while trying to perform election."] pub struct ElectionError; impl ::subxt::events::StaticEvent for ElectionError { - const EVENT: &'static str = "ElectionError"; const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "ElectionError"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13126,8 +13150,8 @@ pub mod api { pub member: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for MemberKicked { - const EVENT: &'static str = "MemberKicked"; const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "MemberKicked"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13147,8 +13171,8 @@ pub mod api { pub candidate: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Renounced { - const EVENT: &'static str = "Renounced"; const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "Renounced"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13172,8 +13196,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for CandidateSlashed { - const EVENT: &'static str = "CandidateSlashed"; const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "CandidateSlashed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13194,8 +13218,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for SeatHolderSlashed { - const EVENT: &'static str = "SeatHolderSlashed"; const PALLET: &'static str = "Elections"; + const EVENT: &'static str = "SeatHolderSlashed"; } } pub mod storage { @@ -13231,7 +13255,6 @@ pub mod api { ], ) } - #[doc = " The current reserved runners-up."] #[doc = ""] #[doc = " Invariant: Always sorted based on rank (worse to best). Upon removal of a member, the"] @@ -13262,7 +13285,6 @@ pub mod api { ], ) } - #[doc = " The present candidate list. A current member or runner-up can never enter this vector"] #[doc = " and is always implicitly assumed to be a candidate."] #[doc = ""] @@ -13289,7 +13311,6 @@ pub mod api { ], ) } - #[doc = " The total number of vote rounds that have happened, excluding the upcoming one."] pub fn election_rounds( &self, @@ -13311,7 +13332,6 @@ pub mod api { ], ) } - #[doc = " Votes and locked stake of a particular voter."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE as `AccountId` is a crypto hash."] @@ -13341,7 +13361,6 @@ pub mod api { ], ) } - #[doc = " Votes and locked stake of a particular voter."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE as `AccountId` is a crypto hash."] @@ -13378,24 +13397,30 @@ pub mod api { pub fn pallet_id( &self, ) -> ::subxt::constants::Address<[::core::primitive::u8; 8usize]> { - ::subxt::constants::Address::new_static("Elections", "PalletId", [ - 157u8, 118u8, 79u8, 88u8, 241u8, 22u8, 185u8, 37u8, 42u8, 20u8, 133u8, - 240u8, 11u8, 25u8, 66u8, 154u8, 84u8, 163u8, 78u8, 92u8, 171u8, 82u8, - 248u8, 76u8, 189u8, 70u8, 142u8, 249u8, 153u8, 84u8, 180u8, 60u8, - ]) + ::subxt::constants::Address::new_static( + "Elections", + "PalletId", + [ + 157u8, 118u8, 79u8, 88u8, 241u8, 22u8, 185u8, 37u8, 42u8, 20u8, 133u8, + 240u8, 11u8, 25u8, 66u8, 154u8, 84u8, 163u8, 78u8, 92u8, 171u8, 82u8, + 248u8, 76u8, 189u8, 70u8, 142u8, 249u8, 153u8, 84u8, 180u8, 60u8, + ], + ) } - #[doc = " How much should be locked up in order to submit one's candidacy."] pub fn candidacy_bond( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Elections", "CandidacyBond", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Elections", + "CandidacyBond", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } - #[doc = " Base deposit associated with voting."] #[doc = ""] #[doc = " This should be sensibly high to economically ensure the pallet cannot be attacked by"] @@ -13403,57 +13428,75 @@ pub mod api { pub fn voting_bond_base( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Elections", "VotingBondBase", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Elections", + "VotingBondBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } - #[doc = " The amount of bond that need to be locked for each vote (32 bytes)."] pub fn voting_bond_factor( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Elections", "VotingBondFactor", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Elections", + "VotingBondFactor", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } - #[doc = " Number of members to elect."] pub fn desired_members( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Elections", "DesiredMembers", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Elections", + "DesiredMembers", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " Number of runners_up to keep."] pub fn desired_runners_up( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Elections", "DesiredRunnersUp", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Elections", + "DesiredRunnersUp", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " How long each seat is kept. This defines the next block number at which an election"] #[doc = " round will happen. If set to zero, no elections are ever triggered and the module will"] #[doc = " be in passive mode."] pub fn term_duration(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Elections", "TermDuration", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Elections", + "TermDuration", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " The maximum number of candidates in a phragmen election."] #[doc = ""] #[doc = " Warning: This impacts the size of the election which is run onchain. Chose wisely, and"] @@ -13463,13 +13506,17 @@ pub mod api { pub fn max_candidates( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Elections", "MaxCandidates", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Elections", + "MaxCandidates", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " The maximum number of voters to allow in a phragmen election."] #[doc = ""] #[doc = " Warning: This impacts the size of the election which is run onchain. Chose wisely, and"] @@ -13477,13 +13524,17 @@ pub mod api { #[doc = ""] #[doc = " When the limit is reached the new voters are ignored."] pub fn max_voters(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Elections", "MaxVoters", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Elections", + "MaxVoters", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " Maximum numbers of votes per voter."] #[doc = ""] #[doc = " Warning: This impacts the size of the election which is run onchain. Chose wisely, and"] @@ -13491,23 +13542,30 @@ pub mod api { pub fn max_votes_per_voter( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Elections", "MaxVotesPerVoter", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Elections", + "MaxVotesPerVoter", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } } pub mod technical_membership { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_membership::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_membership::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -13531,8 +13589,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for AddMember { - const CALL: &'static str = "add_member"; const PALLET: &'static str = "TechnicalMembership"; + const CALL: &'static str = "add_member"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13554,8 +13612,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for RemoveMember { - const CALL: &'static str = "remove_member"; const PALLET: &'static str = "TechnicalMembership"; + const CALL: &'static str = "remove_member"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13581,8 +13639,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for SwapMember { - const CALL: &'static str = "swap_member"; const PALLET: &'static str = "TechnicalMembership"; + const CALL: &'static str = "swap_member"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13601,8 +13659,8 @@ pub mod api { pub members: ::std::vec::Vec<::subxt::utils::AccountId32>, } impl ::subxt::blocks::StaticExtrinsic for ResetMembers { - const CALL: &'static str = "reset_members"; const PALLET: &'static str = "TechnicalMembership"; + const CALL: &'static str = "reset_members"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13624,8 +13682,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for ChangeKey { - const CALL: &'static str = "change_key"; const PALLET: &'static str = "TechnicalMembership"; + const CALL: &'static str = "change_key"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13647,8 +13705,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for SetPrime { - const CALL: &'static str = "set_prime"; const PALLET: &'static str = "TechnicalMembership"; + const CALL: &'static str = "set_prime"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13665,8 +13723,8 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClearPrime; impl ::subxt::blocks::StaticExtrinsic for ClearPrime { - const CALL: &'static str = "clear_prime"; const PALLET: &'static str = "TechnicalMembership"; + const CALL: &'static str = "clear_prime"; } } pub struct TransactionApi; @@ -13690,7 +13748,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::remove_member`]."] pub fn remove_member( &self, @@ -13711,7 +13768,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::swap_member`]."] pub fn swap_member( &self, @@ -13736,7 +13792,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::reset_members`]."] pub fn reset_members( &self, @@ -13753,7 +13808,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::change_key`]."] pub fn change_key( &self, @@ -13774,7 +13828,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_prime`]."] pub fn set_prime( &self, @@ -13795,7 +13848,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::clear_prime`]."] pub fn clear_prime(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -13831,8 +13883,8 @@ pub mod api { #[doc = "The given member was added; see the transaction for who."] pub struct MemberAdded; impl ::subxt::events::StaticEvent for MemberAdded { - const EVENT: &'static str = "MemberAdded"; const PALLET: &'static str = "TechnicalMembership"; + const EVENT: &'static str = "MemberAdded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13850,8 +13902,8 @@ pub mod api { #[doc = "The given member was removed; see the transaction for who."] pub struct MemberRemoved; impl ::subxt::events::StaticEvent for MemberRemoved { - const EVENT: &'static str = "MemberRemoved"; const PALLET: &'static str = "TechnicalMembership"; + const EVENT: &'static str = "MemberRemoved"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13869,8 +13921,8 @@ pub mod api { #[doc = "Two members were swapped; see the transaction for who."] pub struct MembersSwapped; impl ::subxt::events::StaticEvent for MembersSwapped { - const EVENT: &'static str = "MembersSwapped"; const PALLET: &'static str = "TechnicalMembership"; + const EVENT: &'static str = "MembersSwapped"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13888,8 +13940,8 @@ pub mod api { #[doc = "The membership was reset; see the transaction for who the new set is."] pub struct MembersReset; impl ::subxt::events::StaticEvent for MembersReset { - const EVENT: &'static str = "MembersReset"; const PALLET: &'static str = "TechnicalMembership"; + const EVENT: &'static str = "MembersReset"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13907,8 +13959,8 @@ pub mod api { #[doc = "One of the members' keys changed."] pub struct KeyChanged; impl ::subxt::events::StaticEvent for KeyChanged { - const EVENT: &'static str = "KeyChanged"; const PALLET: &'static str = "TechnicalMembership"; + const EVENT: &'static str = "KeyChanged"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13926,8 +13978,8 @@ pub mod api { #[doc = "Phantom member, never used."] pub struct Dummy; impl ::subxt::events::StaticEvent for Dummy { - const EVENT: &'static str = "Dummy"; const PALLET: &'static str = "TechnicalMembership"; + const EVENT: &'static str = "Dummy"; } } pub mod storage { @@ -13958,7 +14010,6 @@ pub mod api { ], ) } - #[doc = " The current prime member, if one exists."] pub fn prime( &self, @@ -13984,13 +14035,15 @@ pub mod api { } } pub mod grandpa { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_grandpa::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_grandpa::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -14017,8 +14070,8 @@ pub mod api { pub key_owner_proof: runtime_types::sp_session::MembershipProof, } impl ::subxt::blocks::StaticExtrinsic for ReportEquivocation { - const CALL: &'static str = "report_equivocation"; const PALLET: &'static str = "Grandpa"; + const CALL: &'static str = "report_equivocation"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14043,8 +14096,8 @@ pub mod api { pub key_owner_proof: runtime_types::sp_session::MembershipProof, } impl ::subxt::blocks::StaticExtrinsic for ReportEquivocationUnsigned { - const CALL: &'static str = "report_equivocation_unsigned"; const PALLET: &'static str = "Grandpa"; + const CALL: &'static str = "report_equivocation_unsigned"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14064,8 +14117,8 @@ pub mod api { pub best_finalized_block_number: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for NoteStalled { - const CALL: &'static str = "note_stalled"; const PALLET: &'static str = "Grandpa"; + const CALL: &'static str = "note_stalled"; } } pub struct TransactionApi; @@ -14094,7 +14147,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::report_equivocation_unsigned`]."] pub fn report_equivocation_unsigned( &self, @@ -14118,7 +14170,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::note_stalled`]."] pub fn note_stalled( &self, @@ -14167,8 +14218,8 @@ pub mod api { )>, } impl ::subxt::events::StaticEvent for NewAuthorities { - const EVENT: &'static str = "NewAuthorities"; const PALLET: &'static str = "Grandpa"; + const EVENT: &'static str = "NewAuthorities"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14186,8 +14237,8 @@ pub mod api { #[doc = "Current authority set has been paused."] pub struct Paused; impl ::subxt::events::StaticEvent for Paused { - const EVENT: &'static str = "Paused"; const PALLET: &'static str = "Grandpa"; + const EVENT: &'static str = "Paused"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14205,8 +14256,8 @@ pub mod api { #[doc = "Current authority set has been resumed."] pub struct Resumed; impl ::subxt::events::StaticEvent for Resumed { - const EVENT: &'static str = "Resumed"; const PALLET: &'static str = "Grandpa"; + const EVENT: &'static str = "Resumed"; } } pub mod storage { @@ -14223,13 +14274,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Grandpa", "State", vec![], [ - 254u8, 81u8, 54u8, 203u8, 26u8, 74u8, 162u8, 215u8, 165u8, 247u8, 143u8, - 139u8, 242u8, 164u8, 67u8, 27u8, 97u8, 172u8, 66u8, 98u8, 28u8, 151u8, - 32u8, 38u8, 209u8, 82u8, 41u8, 209u8, 72u8, 3u8, 167u8, 42u8, - ]) + ::subxt::storage::address::Address::new_static( + "Grandpa", + "State", + vec![], + [ + 254u8, 81u8, 54u8, 203u8, 26u8, 74u8, 162u8, 215u8, 165u8, 247u8, + 143u8, 139u8, 242u8, 164u8, 67u8, 27u8, 97u8, 172u8, 66u8, 98u8, 28u8, + 151u8, 32u8, 38u8, 209u8, 82u8, 41u8, 209u8, 72u8, 3u8, 167u8, 42u8, + ], + ) } - #[doc = " Pending change: (signaled at, scheduled change)."] pub fn pending_change( &self, @@ -14251,7 +14306,6 @@ pub mod api { ], ) } - #[doc = " next block number where we can force a change."] pub fn next_forced( &self, @@ -14273,7 +14327,6 @@ pub mod api { ], ) } - #[doc = " `true` if we are currently stalled."] pub fn stalled( &self, @@ -14284,13 +14337,17 @@ pub mod api { (), (), > { - ::subxt::storage::address::Address::new_static("Grandpa", "Stalled", vec![], [ - 146u8, 18u8, 59u8, 59u8, 21u8, 246u8, 5u8, 167u8, 221u8, 8u8, 230u8, 74u8, - 81u8, 217u8, 67u8, 158u8, 136u8, 36u8, 23u8, 106u8, 136u8, 89u8, 110u8, - 217u8, 31u8, 138u8, 107u8, 251u8, 164u8, 10u8, 119u8, 18u8, - ]) + ::subxt::storage::address::Address::new_static( + "Grandpa", + "Stalled", + vec![], + [ + 146u8, 18u8, 59u8, 59u8, 21u8, 246u8, 5u8, 167u8, 221u8, 8u8, 230u8, + 74u8, 81u8, 217u8, 67u8, 158u8, 136u8, 36u8, 23u8, 106u8, 136u8, 89u8, + 110u8, 217u8, 31u8, 138u8, 107u8, 251u8, 164u8, 10u8, 119u8, 18u8, + ], + ) } - #[doc = " The number of changes (both in terms of keys and underlying economic responsibilities)"] #[doc = " in the \"set\" of Grandpa validators from genesis."] pub fn current_set_id( @@ -14314,7 +14371,6 @@ pub mod api { ], ) } - #[doc = " A mapping from grandpa set ID to the index of the *most recent* session for which its"] #[doc = " members were responsible."] #[doc = ""] @@ -14348,7 +14404,6 @@ pub mod api { ], ) } - #[doc = " A mapping from grandpa set ID to the index of the *most recent* session for which its"] #[doc = " members were responsible."] #[doc = ""] @@ -14389,13 +14444,17 @@ pub mod api { pub fn max_authorities( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Grandpa", "MaxAuthorities", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Grandpa", + "MaxAuthorities", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " The maximum number of entries to keep in the set id to session index mapping."] #[doc = ""] #[doc = " Since the `SetIdSession` map is only used for validating equivocations this"] @@ -14405,23 +14464,30 @@ pub mod api { pub fn max_set_id_session_entries( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static("Grandpa", "MaxSetIdSessionEntries", [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, 59u8, - 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, 119u8, - 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, - ]) + ::subxt::constants::Address::new_static( + "Grandpa", + "MaxSetIdSessionEntries", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) } } } } pub mod treasury { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "Error for the treasury pallet."] pub type Error = runtime_types::pallet_treasury::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_treasury::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -14447,8 +14513,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for ProposeSpend { - const CALL: &'static str = "propose_spend"; const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "propose_spend"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14468,8 +14534,8 @@ pub mod api { pub proposal_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for RejectProposal { - const CALL: &'static str = "reject_proposal"; const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "reject_proposal"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14489,8 +14555,8 @@ pub mod api { pub proposal_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ApproveProposal { - const CALL: &'static str = "approve_proposal"; const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "approve_proposal"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14514,8 +14580,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for Spend { - const CALL: &'static str = "spend"; const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "spend"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14535,8 +14601,8 @@ pub mod api { pub proposal_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for RemoveApproval { - const CALL: &'static str = "remove_approval"; const PALLET: &'static str = "Treasury"; + const CALL: &'static str = "remove_approval"; } } pub struct TransactionApi; @@ -14562,7 +14628,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::reject_proposal`]."] pub fn reject_proposal( &self, @@ -14579,7 +14644,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::approve_proposal`]."] pub fn approve_proposal( &self, @@ -14596,7 +14660,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::spend`]."] pub fn spend( &self, @@ -14620,7 +14683,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::remove_approval`]."] pub fn remove_approval( &self, @@ -14663,8 +14725,8 @@ pub mod api { pub proposal_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Proposed { - const EVENT: &'static str = "Proposed"; const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Proposed"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -14685,8 +14747,8 @@ pub mod api { pub budget_remaining: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Spending { - const EVENT: &'static str = "Spending"; const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Spending"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14708,8 +14770,8 @@ pub mod api { pub account: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Awarded { - const EVENT: &'static str = "Awarded"; const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Awarded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14730,8 +14792,8 @@ pub mod api { pub slashed: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Rejected { - const EVENT: &'static str = "Rejected"; const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Rejected"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -14752,8 +14814,8 @@ pub mod api { pub burnt_funds: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Burnt { - const EVENT: &'static str = "Burnt"; const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Burnt"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -14774,8 +14836,8 @@ pub mod api { pub rollover_balance: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Rollover { - const EVENT: &'static str = "Rollover"; const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Rollover"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -14796,8 +14858,8 @@ pub mod api { pub value: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Deposit { - const EVENT: &'static str = "Deposit"; const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "Deposit"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14819,8 +14881,8 @@ pub mod api { pub beneficiary: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for SpendApproved { - const EVENT: &'static str = "SpendApproved"; const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "SpendApproved"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14841,8 +14903,8 @@ pub mod api { pub deactivated: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for UpdatedInactive { - const EVENT: &'static str = "UpdatedInactive"; const PALLET: &'static str = "Treasury"; + const EVENT: &'static str = "UpdatedInactive"; } } pub mod storage { @@ -14870,7 +14932,6 @@ pub mod api { ], ) } - #[doc = " Proposals that have been made."] pub fn proposals( &self, @@ -14898,7 +14959,6 @@ pub mod api { ], ) } - #[doc = " Proposals that have been made."] pub fn proposals_root( &self, @@ -14923,7 +14983,6 @@ pub mod api { ], ) } - #[doc = " The amount which has been reported as inactive to Currency."] pub fn deactivated( &self, @@ -14946,7 +15005,6 @@ pub mod api { ], ) } - #[doc = " Proposal indices that have been approved but not yet awarded."] pub fn approvals( &self, @@ -14982,88 +15040,115 @@ pub mod api { &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("Treasury", "ProposalBond", [ - 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, 114u8, - 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, 200u8, - 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, - ]) + ::subxt::constants::Address::new_static( + "Treasury", + "ProposalBond", + [ + 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, + 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, + 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, + ], + ) } - #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] pub fn proposal_bond_minimum( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Treasury", "ProposalBondMinimum", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Treasury", + "ProposalBondMinimum", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } - #[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."] pub fn proposal_bond_maximum( &self, ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> { - ::subxt::constants::Address::new_static("Treasury", "ProposalBondMaximum", [ - 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, - 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, 215u8, - 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, 147u8, - ]) + ::subxt::constants::Address::new_static( + "Treasury", + "ProposalBondMaximum", + [ + 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, + 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, + 215u8, 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, + 147u8, + ], + ) } - #[doc = " Period between successive spends."] pub fn spend_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Treasury", "SpendPeriod", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Treasury", + "SpendPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " Percentage of spare funds (if any) that are burnt per spend period."] pub fn burn( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("Treasury", "Burn", [ - 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, 114u8, - 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, 200u8, - 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, - ]) + ::subxt::constants::Address::new_static( + "Treasury", + "Burn", + [ + 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, + 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, + 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, + ], + ) } - #[doc = " The treasury's pallet id, used for deriving its sovereign account ID."] pub fn pallet_id( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("Treasury", "PalletId", [ - 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, - 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, - 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, - ]) + ::subxt::constants::Address::new_static( + "Treasury", + "PalletId", + [ + 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, + 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, + 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, + ], + ) } - #[doc = " The maximum number of approvals that can wait in the spending queue."] #[doc = ""] #[doc = " NOTE: This parameter is also used within the Bounties Pallet extension if enabled."] pub fn max_approvals(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Treasury", "MaxApprovals", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Treasury", + "MaxApprovals", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } } pub mod sudo { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "Error for the Sudo pallet"] pub type Error = runtime_types::pallet_sudo::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_sudo::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -15084,8 +15169,8 @@ pub mod api { pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for Sudo { - const CALL: &'static str = "sudo"; const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "sudo"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15105,8 +15190,8 @@ pub mod api { pub weight: runtime_types::sp_weights::weight_v2::Weight, } impl ::subxt::blocks::StaticExtrinsic for SudoUncheckedWeight { - const CALL: &'static str = "sudo_unchecked_weight"; const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "sudo_unchecked_weight"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15128,8 +15213,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for SetKey { - const CALL: &'static str = "set_key"; const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "set_key"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15152,8 +15237,8 @@ pub mod api { pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for SudoAs { - const CALL: &'static str = "sudo_as"; const PALLET: &'static str = "Sudo"; + const CALL: &'static str = "sudo_as"; } } pub struct TransactionApi; @@ -15176,7 +15261,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::sudo_unchecked_weight`]."] pub fn sudo_unchecked_weight( &self, @@ -15198,7 +15282,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_key`]."] pub fn set_key( &self, @@ -15207,13 +15290,18 @@ pub mod api { ::core::primitive::u32, >, ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static("Sudo", "set_key", types::SetKey { new }, [ - 46u8, 208u8, 84u8, 223u8, 141u8, 188u8, 184u8, 156u8, 101u8, 97u8, 255u8, - 166u8, 168u8, 102u8, 75u8, 3u8, 149u8, 105u8, 202u8, 220u8, 187u8, 117u8, - 156u8, 83u8, 159u8, 115u8, 231u8, 201u8, 171u8, 47u8, 170u8, 36u8, - ]) + ::subxt::tx::Payload::new_static( + "Sudo", + "set_key", + types::SetKey { new }, + [ + 46u8, 208u8, 84u8, 223u8, 141u8, 188u8, 184u8, 156u8, 101u8, 97u8, + 255u8, 166u8, 168u8, 102u8, 75u8, 3u8, 149u8, 105u8, 202u8, 220u8, + 187u8, 117u8, 156u8, 83u8, 159u8, 115u8, 231u8, 201u8, 171u8, 47u8, + 170u8, 36u8, + ], + ) } - #[doc = "See [`Pallet::sudo_as`]."] pub fn sudo_as( &self, @@ -15263,8 +15351,8 @@ pub mod api { ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for Sudid { - const EVENT: &'static str = "Sudid"; const PALLET: &'static str = "Sudo"; + const EVENT: &'static str = "Sudid"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15284,8 +15372,8 @@ pub mod api { pub old_sudoer: ::core::option::Option<::subxt::utils::AccountId32>, } impl ::subxt::events::StaticEvent for KeyChanged { - const EVENT: &'static str = "KeyChanged"; const PALLET: &'static str = "Sudo"; + const EVENT: &'static str = "KeyChanged"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15306,8 +15394,8 @@ pub mod api { ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for SudoAsDone { - const EVENT: &'static str = "SudoAsDone"; const PALLET: &'static str = "Sudo"; + const EVENT: &'static str = "SudoAsDone"; } } pub mod storage { @@ -15324,23 +15412,30 @@ pub mod api { (), (), > { - ::subxt::storage::address::Address::new_static("Sudo", "Key", vec![], [ - 72u8, 14u8, 225u8, 162u8, 205u8, 247u8, 227u8, 105u8, 116u8, 57u8, 4u8, - 31u8, 84u8, 137u8, 227u8, 228u8, 133u8, 245u8, 206u8, 227u8, 117u8, 36u8, - 252u8, 151u8, 107u8, 15u8, 180u8, 4u8, 4u8, 152u8, 195u8, 144u8, - ]) + ::subxt::storage::address::Address::new_static( + "Sudo", + "Key", + vec![], + [ + 72u8, 14u8, 225u8, 162u8, 205u8, 247u8, 227u8, 105u8, 116u8, 57u8, 4u8, + 31u8, 84u8, 137u8, 227u8, 228u8, 133u8, 245u8, 206u8, 227u8, 117u8, + 36u8, 252u8, 151u8, 107u8, 15u8, 180u8, 4u8, 4u8, 152u8, 195u8, 144u8, + ], + ) } } } } pub mod im_online { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_im_online::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_im_online::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -15363,8 +15458,8 @@ pub mod api { pub signature: runtime_types::pallet_im_online::sr25519::app_sr25519::Signature, } impl ::subxt::blocks::StaticExtrinsic for Heartbeat { - const CALL: &'static str = "heartbeat"; const PALLET: &'static str = "ImOnline"; + const CALL: &'static str = "heartbeat"; } } pub struct TransactionApi; @@ -15414,8 +15509,8 @@ pub mod api { pub authority_id: runtime_types::pallet_im_online::sr25519::app_sr25519::Public, } impl ::subxt::events::StaticEvent for HeartbeatReceived { - const EVENT: &'static str = "HeartbeatReceived"; const PALLET: &'static str = "ImOnline"; + const EVENT: &'static str = "HeartbeatReceived"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15433,8 +15528,8 @@ pub mod api { #[doc = "At the end of the session, no offence was committed."] pub struct AllGood; impl ::subxt::events::StaticEvent for AllGood { - const EVENT: &'static str = "AllGood"; const PALLET: &'static str = "ImOnline"; + const EVENT: &'static str = "AllGood"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15460,8 +15555,8 @@ pub mod api { )>, } impl ::subxt::events::StaticEvent for SomeOffline { - const EVENT: &'static str = "SomeOffline"; const PALLET: &'static str = "ImOnline"; + const EVENT: &'static str = "SomeOffline"; } } pub mod storage { @@ -15499,7 +15594,6 @@ pub mod api { ], ) } - #[doc = " The current set of keys that may issue a heartbeat."] pub fn keys( &self, @@ -15512,13 +15606,18 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("ImOnline", "Keys", vec![], [ - 111u8, 104u8, 188u8, 46u8, 152u8, 140u8, 137u8, 244u8, 52u8, 214u8, 115u8, - 156u8, 39u8, 239u8, 15u8, 168u8, 193u8, 125u8, 57u8, 195u8, 250u8, 156u8, - 234u8, 222u8, 222u8, 253u8, 135u8, 232u8, 196u8, 163u8, 29u8, 218u8, - ]) + ::subxt::storage::address::Address::new_static( + "ImOnline", + "Keys", + vec![], + [ + 111u8, 104u8, 188u8, 46u8, 152u8, 140u8, 137u8, 244u8, 52u8, 214u8, + 115u8, 156u8, 39u8, 239u8, 15u8, 168u8, 193u8, 125u8, 57u8, 195u8, + 250u8, 156u8, 234u8, 222u8, 222u8, 253u8, 135u8, 232u8, 196u8, 163u8, + 29u8, 218u8, + ], + ) } - #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] pub fn received_heartbeats( &self, @@ -15545,7 +15644,6 @@ pub mod api { ], ) } - #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] pub fn received_heartbeats_root( &self, @@ -15567,7 +15665,6 @@ pub mod api { ], ) } - #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] #[doc = " number of blocks authored by the given authority."] pub fn authored_blocks( @@ -15596,7 +15693,6 @@ pub mod api { ], ) } - #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] #[doc = " number of blocks authored by the given authority."] pub fn authored_blocks_root( @@ -15633,17 +15729,23 @@ pub mod api { pub fn unsigned_priority( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static("ImOnline", "UnsignedPriority", [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, 59u8, - 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, 119u8, - 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, - ]) + ::subxt::constants::Address::new_static( + "ImOnline", + "UnsignedPriority", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) } } } } pub mod authority_discovery { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; pub mod storage { use super::runtime_types; pub struct StorageApi; @@ -15672,7 +15774,6 @@ pub mod api { ], ) } - #[doc = " Keys of the next authority set."] pub fn next_keys( &self, @@ -15700,7 +15801,8 @@ pub mod api { } } pub mod offences { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "Events type."] pub type Event = runtime_types::pallet_offences::pallet::Event; pub mod events { @@ -15726,8 +15828,8 @@ pub mod api { pub timeslot: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::events::StaticEvent for Offence { - const EVENT: &'static str = "Offence"; const PALLET: &'static str = "Offences"; + const EVENT: &'static str = "Offence"; } } pub mod storage { @@ -15768,7 +15870,6 @@ pub mod api { ], ) } - #[doc = " The primary structure that holds all offence records keyed by report identifiers."] pub fn reports_root( &self, @@ -15800,7 +15901,6 @@ pub mod api { ], ) } - #[doc = " A vector of reports of the same kind that happened at the same time slot."] pub fn concurrent_reports_index( &self, @@ -15828,7 +15928,6 @@ pub mod api { ], ) } - #[doc = " A vector of reports of the same kind that happened at the same time slot."] pub fn concurrent_reports_index_root( &self, @@ -15855,7 +15954,8 @@ pub mod api { } } pub mod historical { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; pub mod storage { use super::runtime_types; pub struct StorageApi; @@ -15885,7 +15985,6 @@ pub mod api { ], ) } - #[doc = " Mapping from historical session indices to session-data root hash and validator count."] pub fn historical_sessions_root( &self, @@ -15908,7 +16007,6 @@ pub mod api { ], ) } - #[doc = " The range of historical sessions we store. [first, last)"] pub fn stored_range( &self, @@ -15935,13 +16033,15 @@ pub mod api { } } pub mod scheduler { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_scheduler::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_scheduler::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -15966,8 +16066,8 @@ pub mod api { pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for Schedule { - const CALL: &'static str = "schedule"; const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "schedule"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15987,8 +16087,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Cancel { - const CALL: &'static str = "cancel"; const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "cancel"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16012,8 +16112,8 @@ pub mod api { pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for ScheduleNamed { - const CALL: &'static str = "schedule_named"; const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "schedule_named"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16032,8 +16132,8 @@ pub mod api { pub id: [::core::primitive::u8; 32usize], } impl ::subxt::blocks::StaticExtrinsic for CancelNamed { - const CALL: &'static str = "cancel_named"; const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "cancel_named"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16056,8 +16156,8 @@ pub mod api { pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for ScheduleAfter { - const CALL: &'static str = "schedule_after"; const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "schedule_after"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16081,8 +16181,8 @@ pub mod api { pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for ScheduleNamedAfter { - const CALL: &'static str = "schedule_named_after"; const PALLET: &'static str = "Scheduler"; + const CALL: &'static str = "schedule_named_after"; } } pub struct TransactionApi; @@ -16115,7 +16215,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::cancel`]."] pub fn cancel( &self, @@ -16134,7 +16233,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::schedule_named`]."] pub fn schedule_named( &self, @@ -16164,7 +16262,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::cancel_named`]."] pub fn cancel_named( &self, @@ -16181,7 +16278,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::schedule_after`]."] pub fn schedule_after( &self, @@ -16210,7 +16306,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::schedule_named_after`]."] pub fn schedule_named_after( &self, @@ -16265,8 +16360,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Scheduled { - const EVENT: &'static str = "Scheduled"; const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "Scheduled"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16287,8 +16382,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Canceled { - const EVENT: &'static str = "Canceled"; const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "Canceled"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16310,8 +16405,8 @@ pub mod api { pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for Dispatched { - const EVENT: &'static str = "Dispatched"; const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "Dispatched"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16332,8 +16427,8 @@ pub mod api { pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, } impl ::subxt::events::StaticEvent for CallUnavailable { - const EVENT: &'static str = "CallUnavailable"; const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "CallUnavailable"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16354,8 +16449,8 @@ pub mod api { pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, } impl ::subxt::events::StaticEvent for PeriodicFailed { - const EVENT: &'static str = "PeriodicFailed"; const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "PeriodicFailed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16376,8 +16471,8 @@ pub mod api { pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, } impl ::subxt::events::StaticEvent for PermanentlyOverweight { - const EVENT: &'static str = "PermanentlyOverweight"; const PALLET: &'static str = "Scheduler"; + const EVENT: &'static str = "PermanentlyOverweight"; } } pub mod storage { @@ -16404,7 +16499,6 @@ pub mod api { ], ) } - #[doc = " Items to be executed, indexed by the block number that they should be executed on."] pub fn agenda( &self, @@ -16442,7 +16536,6 @@ pub mod api { ], ) } - #[doc = " Items to be executed, indexed by the block number that they should be executed on."] pub fn agenda_root( &self, @@ -16477,7 +16570,6 @@ pub mod api { ], ) } - #[doc = " Lookup from a name to the block number and index of the task."] #[doc = ""] #[doc = " For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4"] @@ -16506,7 +16598,6 @@ pub mod api { ], ) } - #[doc = " Lookup from a name to the block number and index of the task."] #[doc = ""] #[doc = " For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4"] @@ -16542,13 +16633,16 @@ pub mod api { pub fn maximum_weight( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("Scheduler", "MaximumWeight", [ - 222u8, 183u8, 203u8, 169u8, 31u8, 134u8, 28u8, 12u8, 47u8, 140u8, 71u8, - 74u8, 61u8, 55u8, 71u8, 236u8, 215u8, 83u8, 28u8, 70u8, 45u8, 128u8, 184u8, - 57u8, 101u8, 83u8, 42u8, 165u8, 34u8, 155u8, 64u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Scheduler", + "MaximumWeight", + [ + 222u8, 183u8, 203u8, 169u8, 31u8, 134u8, 28u8, 12u8, 47u8, 140u8, 71u8, + 74u8, 61u8, 55u8, 71u8, 236u8, 215u8, 83u8, 28u8, 70u8, 45u8, 128u8, + 184u8, 57u8, 101u8, 83u8, 42u8, 165u8, 34u8, 155u8, 64u8, 145u8, + ], + ) } - #[doc = " The maximum number of scheduled calls in the queue for a single block."] #[doc = ""] #[doc = " NOTE:"] @@ -16557,23 +16651,30 @@ pub mod api { pub fn max_scheduled_per_block( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Scheduler", "MaxScheduledPerBlock", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Scheduler", + "MaxScheduledPerBlock", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } } pub mod bounties { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_bounties::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_bounties::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -16596,8 +16697,8 @@ pub mod api { pub description: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for ProposeBounty { - const CALL: &'static str = "propose_bounty"; const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "propose_bounty"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16617,8 +16718,8 @@ pub mod api { pub bounty_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ApproveBounty { - const CALL: &'static str = "approve_bounty"; const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "approve_bounty"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16644,8 +16745,8 @@ pub mod api { pub fee: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for ProposeCurator { - const CALL: &'static str = "propose_curator"; const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "propose_curator"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16665,8 +16766,8 @@ pub mod api { pub bounty_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for UnassignCurator { - const CALL: &'static str = "unassign_curator"; const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "unassign_curator"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16686,8 +16787,8 @@ pub mod api { pub bounty_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for AcceptCurator { - const CALL: &'static str = "accept_curator"; const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "accept_curator"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16711,8 +16812,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for AwardBounty { - const CALL: &'static str = "award_bounty"; const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "award_bounty"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16732,8 +16833,8 @@ pub mod api { pub bounty_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ClaimBounty { - const CALL: &'static str = "claim_bounty"; const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "claim_bounty"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16753,8 +16854,8 @@ pub mod api { pub bounty_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for CloseBounty { - const CALL: &'static str = "close_bounty"; const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "close_bounty"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16775,8 +16876,8 @@ pub mod api { pub remark: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for ExtendBountyExpiry { - const CALL: &'static str = "extend_bounty_expiry"; const PALLET: &'static str = "Bounties"; + const CALL: &'static str = "extend_bounty_expiry"; } } pub struct TransactionApi; @@ -16798,7 +16899,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::approve_bounty`]."] pub fn approve_bounty( &self, @@ -16816,7 +16916,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::propose_curator`]."] pub fn propose_curator( &self, @@ -16843,7 +16942,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::unassign_curator`]."] pub fn unassign_curator( &self, @@ -16861,7 +16959,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::accept_curator`]."] pub fn accept_curator( &self, @@ -16878,7 +16975,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::award_bounty`]."] pub fn award_bounty( &self, @@ -16903,7 +16999,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::claim_bounty`]."] pub fn claim_bounty( &self, @@ -16921,7 +17016,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::close_bounty`]."] pub fn close_bounty( &self, @@ -16939,7 +17033,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::extend_bounty_expiry`]."] pub fn extend_bounty_expiry( &self, @@ -16983,8 +17076,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for BountyProposed { - const EVENT: &'static str = "BountyProposed"; const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyProposed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17005,8 +17098,8 @@ pub mod api { pub bond: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for BountyRejected { - const EVENT: &'static str = "BountyRejected"; const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyRejected"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -17027,8 +17120,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for BountyBecameActive { - const EVENT: &'static str = "BountyBecameActive"; const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyBecameActive"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17049,8 +17142,8 @@ pub mod api { pub beneficiary: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for BountyAwarded { - const EVENT: &'static str = "BountyAwarded"; const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyAwarded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17072,8 +17165,8 @@ pub mod api { pub beneficiary: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for BountyClaimed { - const EVENT: &'static str = "BountyClaimed"; const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyClaimed"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -17094,8 +17187,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for BountyCanceled { - const EVENT: &'static str = "BountyCanceled"; const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyCanceled"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -17116,8 +17209,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for BountyExtended { - const EVENT: &'static str = "BountyExtended"; const PALLET: &'static str = "Bounties"; + const EVENT: &'static str = "BountyExtended"; } } pub mod storage { @@ -17146,7 +17239,6 @@ pub mod api { ], ) } - #[doc = " Bounties that have been made."] pub fn bounties( &self, @@ -17176,7 +17268,6 @@ pub mod api { ], ) } - #[doc = " Bounties that have been made."] pub fn bounties_root( &self, @@ -17203,7 +17294,6 @@ pub mod api { ], ) } - #[doc = " The description of each bounty."] pub fn bounty_descriptions( &self, @@ -17230,7 +17320,6 @@ pub mod api { ], ) } - #[doc = " The description of each bounty."] pub fn bounty_descriptions_root( &self, @@ -17254,7 +17343,6 @@ pub mod api { ], ) } - #[doc = " Bounty indices that have been approved but not yet funded."] pub fn bounty_approvals( &self, @@ -17288,13 +17376,16 @@ pub mod api { pub fn bounty_deposit_base( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Bounties", "BountyDepositBase", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Bounties", + "BountyDepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } - #[doc = " The delay period for which a bounty beneficiary need to wait before claim the payout."] pub fn bounty_deposit_payout_delay( &self, @@ -17310,18 +17401,21 @@ pub mod api { ], ) } - #[doc = " Bounty duration in blocks."] pub fn bounty_update_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Bounties", "BountyUpdatePeriod", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Bounties", + "BountyUpdatePeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " The curator deposit is calculated as a percentage of the curator fee."] #[doc = ""] #[doc = " This deposit has optional upper and lower bounds with `CuratorDepositMax` and"] @@ -17340,74 +17434,94 @@ pub mod api { ], ) } - #[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."] pub fn curator_deposit_max( &self, ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> { - ::subxt::constants::Address::new_static("Bounties", "CuratorDepositMax", [ - 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, - 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, 215u8, - 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, 147u8, - ]) + ::subxt::constants::Address::new_static( + "Bounties", + "CuratorDepositMax", + [ + 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, + 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, + 215u8, 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, + 147u8, + ], + ) } - #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] pub fn curator_deposit_min( &self, ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> { - ::subxt::constants::Address::new_static("Bounties", "CuratorDepositMin", [ - 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, - 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, 215u8, - 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, 147u8, - ]) + ::subxt::constants::Address::new_static( + "Bounties", + "CuratorDepositMin", + [ + 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, + 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, + 215u8, 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, + 147u8, + ], + ) } - #[doc = " Minimum value for a bounty."] pub fn bounty_value_minimum( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Bounties", "BountyValueMinimum", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Bounties", + "BountyValueMinimum", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } - #[doc = " The amount held on deposit per byte within the tip report reason or bounty description."] pub fn data_deposit_per_byte( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Bounties", "DataDepositPerByte", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Bounties", + "DataDepositPerByte", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } - #[doc = " Maximum acceptable reason length."] #[doc = ""] #[doc = " Benchmarks depend on this value, be sure to update weights file when changing this value"] pub fn maximum_reason_length( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Bounties", "MaximumReasonLength", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Bounties", + "MaximumReasonLength", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } } pub mod tips { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_tips::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_tips::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -17432,8 +17546,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for ReportAwesome { - const CALL: &'static str = "report_awesome"; const PALLET: &'static str = "Tips"; + const CALL: &'static str = "report_awesome"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17452,8 +17566,8 @@ pub mod api { pub hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for RetractTip { - const CALL: &'static str = "retract_tip"; const PALLET: &'static str = "Tips"; + const CALL: &'static str = "retract_tip"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17478,8 +17592,8 @@ pub mod api { pub tip_value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for TipNew { - const CALL: &'static str = "tip_new"; const PALLET: &'static str = "Tips"; + const CALL: &'static str = "tip_new"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17500,8 +17614,8 @@ pub mod api { pub tip_value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for Tip { - const CALL: &'static str = "tip"; const PALLET: &'static str = "Tips"; + const CALL: &'static str = "tip"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17520,8 +17634,8 @@ pub mod api { pub hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for CloseTip { - const CALL: &'static str = "close_tip"; const PALLET: &'static str = "Tips"; + const CALL: &'static str = "close_tip"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17540,8 +17654,8 @@ pub mod api { pub hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for SlashTip { - const CALL: &'static str = "slash_tip"; const PALLET: &'static str = "Tips"; + const CALL: &'static str = "slash_tip"; } } pub struct TransactionApi; @@ -17567,7 +17681,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::retract_tip`]."] pub fn retract_tip( &self, @@ -17585,7 +17698,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::tip_new`]."] pub fn tip_new( &self, @@ -17612,7 +17724,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::tip`]."] pub fn tip( &self, @@ -17631,7 +17742,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::close_tip`]."] pub fn close_tip( &self, @@ -17649,7 +17759,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::slash_tip`]."] pub fn slash_tip( &self, @@ -17691,8 +17800,8 @@ pub mod api { pub tip_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for NewTip { - const EVENT: &'static str = "NewTip"; const PALLET: &'static str = "Tips"; + const EVENT: &'static str = "NewTip"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17712,8 +17821,8 @@ pub mod api { pub tip_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for TipClosing { - const EVENT: &'static str = "TipClosing"; const PALLET: &'static str = "Tips"; + const EVENT: &'static str = "TipClosing"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17735,8 +17844,8 @@ pub mod api { pub payout: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for TipClosed { - const EVENT: &'static str = "TipClosed"; const PALLET: &'static str = "Tips"; + const EVENT: &'static str = "TipClosed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17756,8 +17865,8 @@ pub mod api { pub tip_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for TipRetracted { - const EVENT: &'static str = "TipRetracted"; const PALLET: &'static str = "Tips"; + const EVENT: &'static str = "TipRetracted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17779,8 +17888,8 @@ pub mod api { pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for TipSlashed { - const EVENT: &'static str = "TipSlashed"; const PALLET: &'static str = "Tips"; + const EVENT: &'static str = "TipSlashed"; } } pub mod storage { @@ -17818,7 +17927,6 @@ pub mod api { ], ) } - #[doc = " TipsMap that are not yet completed. Keyed by the hash of `(reason, who)` from the value."] #[doc = " This has the insecure enumerable hash function since the key itself is already"] #[doc = " guaranteed to be a secure hash."] @@ -17836,13 +17944,17 @@ pub mod api { (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::Address::new_static("Tips", "Tips", Vec::new(), [ - 173u8, 172u8, 116u8, 247u8, 202u8, 228u8, 47u8, 222u8, 67u8, 146u8, 225u8, - 0u8, 74u8, 189u8, 226u8, 206u8, 245u8, 209u8, 26u8, 49u8, 189u8, 73u8, - 20u8, 117u8, 30u8, 41u8, 129u8, 170u8, 5u8, 226u8, 92u8, 140u8, - ]) + ::subxt::storage::address::Address::new_static( + "Tips", + "Tips", + Vec::new(), + [ + 173u8, 172u8, 116u8, 247u8, 202u8, 228u8, 47u8, 222u8, 67u8, 146u8, + 225u8, 0u8, 74u8, 189u8, 226u8, 206u8, 245u8, 209u8, 26u8, 49u8, 189u8, + 73u8, 20u8, 117u8, 30u8, 41u8, 129u8, 170u8, 5u8, 226u8, 92u8, 140u8, + ], + ) } - #[doc = " Simple preimage lookup from the reason's hash to the original data. Again, has an"] #[doc = " insecure enumerable hash since the key is guaranteed to be the result of a secure hash."] pub fn reasons( @@ -17869,7 +17981,6 @@ pub mod api { ], ) } - #[doc = " Simple preimage lookup from the reason's hash to the original data. Again, has an"] #[doc = " insecure enumerable hash since the key is guaranteed to be the result of a secure hash."] pub fn reasons_root( @@ -17881,11 +17992,17 @@ pub mod api { (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::Address::new_static("Tips", "Reasons", Vec::new(), [ - 212u8, 224u8, 153u8, 133u8, 234u8, 213u8, 134u8, 255u8, 59u8, 61u8, 200u8, - 47u8, 186u8, 177u8, 35u8, 108u8, 85u8, 144u8, 185u8, 69u8, 159u8, 38u8, - 83u8, 166u8, 200u8, 20u8, 220u8, 234u8, 59u8, 61u8, 223u8, 167u8, - ]) + ::subxt::storage::address::Address::new_static( + "Tips", + "Reasons", + Vec::new(), + [ + 212u8, 224u8, 153u8, 133u8, 234u8, 213u8, 134u8, 255u8, 59u8, 61u8, + 200u8, 47u8, 186u8, 177u8, 35u8, 108u8, 85u8, 144u8, 185u8, 69u8, + 159u8, 38u8, 83u8, 166u8, 200u8, 20u8, 220u8, 234u8, 59u8, 61u8, 223u8, + 167u8, + ], + ) } } } @@ -17899,60 +18016,80 @@ pub mod api { pub fn maximum_reason_length( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Tips", "MaximumReasonLength", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Tips", + "MaximumReasonLength", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " The amount held on deposit per byte within the tip report reason or bounty description."] pub fn data_deposit_per_byte( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Tips", "DataDepositPerByte", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Tips", + "DataDepositPerByte", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } - #[doc = " The period for which a tip remains open after is has achieved threshold tippers."] pub fn tip_countdown(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Tips", "TipCountdown", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Tips", + "TipCountdown", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " The percent of the final tip which goes to the original reporter of the tip."] pub fn tip_finders_fee( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("Tips", "TipFindersFee", [ - 40u8, 171u8, 69u8, 196u8, 34u8, 184u8, 50u8, 128u8, 139u8, 192u8, 63u8, - 231u8, 249u8, 200u8, 252u8, 73u8, 244u8, 170u8, 51u8, 177u8, 106u8, 47u8, - 114u8, 234u8, 84u8, 104u8, 62u8, 118u8, 227u8, 50u8, 225u8, 122u8, - ]) + ::subxt::constants::Address::new_static( + "Tips", + "TipFindersFee", + [ + 40u8, 171u8, 69u8, 196u8, 34u8, 184u8, 50u8, 128u8, 139u8, 192u8, 63u8, + 231u8, 249u8, 200u8, 252u8, 73u8, 244u8, 170u8, 51u8, 177u8, 106u8, + 47u8, 114u8, 234u8, 84u8, 104u8, 62u8, 118u8, 227u8, 50u8, 225u8, + 122u8, + ], + ) } - #[doc = " The amount held on deposit for placing a tip report."] pub fn tip_report_deposit_base( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Tips", "TipReportDepositBase", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Tips", + "TipReportDepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } } } } pub mod mmr { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; pub mod storage { use super::runtime_types; pub struct StorageApi; @@ -17967,13 +18104,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Mmr", "RootHash", vec![], [ - 111u8, 206u8, 173u8, 92u8, 67u8, 49u8, 150u8, 113u8, 90u8, 245u8, 38u8, - 254u8, 76u8, 250u8, 167u8, 66u8, 130u8, 129u8, 251u8, 220u8, 172u8, 229u8, - 162u8, 251u8, 36u8, 227u8, 43u8, 189u8, 7u8, 106u8, 23u8, 13u8, - ]) + ::subxt::storage::address::Address::new_static( + "Mmr", + "RootHash", + vec![], + [ + 111u8, 206u8, 173u8, 92u8, 67u8, 49u8, 150u8, 113u8, 90u8, 245u8, 38u8, + 254u8, 76u8, 250u8, 167u8, 66u8, 130u8, 129u8, 251u8, 220u8, 172u8, + 229u8, 162u8, 251u8, 36u8, 227u8, 43u8, 189u8, 7u8, 106u8, 23u8, 13u8, + ], + ) } - #[doc = " Current size of the MMR (number of leaves)."] pub fn number_of_leaves( &self, @@ -17995,7 +18136,6 @@ pub mod api { ], ) } - #[doc = " Hashes of the nodes in the MMR."] #[doc = ""] #[doc = " Note this collection only contains MMR peaks, the inner nodes (and leaves)"] @@ -18023,7 +18163,6 @@ pub mod api { ], ) } - #[doc = " Hashes of the nodes in the MMR."] #[doc = ""] #[doc = " Note this collection only contains MMR peaks, the inner nodes (and leaves)"] @@ -18037,23 +18176,30 @@ pub mod api { (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::Address::new_static("Mmr", "Nodes", Vec::new(), [ - 27u8, 84u8, 41u8, 195u8, 146u8, 81u8, 211u8, 189u8, 63u8, 125u8, 173u8, - 206u8, 69u8, 198u8, 202u8, 213u8, 89u8, 31u8, 89u8, 177u8, 76u8, 154u8, - 249u8, 197u8, 133u8, 78u8, 142u8, 71u8, 183u8, 3u8, 132u8, 25u8, - ]) + ::subxt::storage::address::Address::new_static( + "Mmr", + "Nodes", + Vec::new(), + [ + 27u8, 84u8, 41u8, 195u8, 146u8, 81u8, 211u8, 189u8, 63u8, 125u8, 173u8, + 206u8, 69u8, 198u8, 202u8, 213u8, 89u8, 31u8, 89u8, 177u8, 76u8, 154u8, + 249u8, 197u8, 133u8, 78u8, 142u8, 71u8, 183u8, 3u8, 132u8, 25u8, + ], + ) } } } } pub mod data_availability { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "Error for the System pallet"] pub type Error = runtime_types::da_control::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::da_control::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -18076,8 +18222,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for CreateApplicationKey { - const CALL: &'static str = "create_application_key"; const PALLET: &'static str = "DataAvailability"; + const CALL: &'static str = "create_application_key"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18098,8 +18244,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for SubmitData { - const CALL: &'static str = "submit_data"; const PALLET: &'static str = "DataAvailability"; + const CALL: &'static str = "submit_data"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18119,8 +18265,8 @@ pub mod api { pub cols: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SubmitBlockLengthProposal { - const CALL: &'static str = "submit_block_length_proposal"; const PALLET: &'static str = "DataAvailability"; + const CALL: &'static str = "submit_block_length_proposal"; } } pub struct TransactionApi; @@ -18144,7 +18290,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::submit_data`]."] pub fn submit_data( &self, @@ -18164,7 +18309,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::submit_block_length_proposal`]."] pub fn submit_block_length_proposal( &self, @@ -18210,8 +18354,8 @@ pub mod api { pub id: runtime_types::avail_core::AppId, } impl ::subxt::events::StaticEvent for ApplicationKeyCreated { - const EVENT: &'static str = "ApplicationKeyCreated"; const PALLET: &'static str = "DataAvailability"; + const EVENT: &'static str = "ApplicationKeyCreated"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18233,8 +18377,8 @@ pub mod api { >, } impl ::subxt::events::StaticEvent for DataSubmitted { - const EVENT: &'static str = "DataSubmitted"; const PALLET: &'static str = "DataAvailability"; + const EVENT: &'static str = "DataSubmitted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18254,8 +18398,8 @@ pub mod api { pub cols: runtime_types::avail_core::BlockLengthColumns, } impl ::subxt::events::StaticEvent for BlockLengthProposalSubmitted { - const EVENT: &'static str = "BlockLengthProposalSubmitted"; const PALLET: &'static str = "DataAvailability"; + const EVENT: &'static str = "BlockLengthProposalSubmitted"; } } pub mod storage { @@ -18283,7 +18427,6 @@ pub mod api { ], ) } - #[doc = " Store all application keys."] pub fn app_keys( &self, @@ -18313,7 +18456,6 @@ pub mod api { ], ) } - #[doc = " Store all application keys."] pub fn app_keys_root( &self, @@ -18357,7 +18499,6 @@ pub mod api { ], ) } - #[doc = " The max length of app data."] pub fn max_app_data_length( &self, @@ -18373,61 +18514,75 @@ pub mod api { ], ) } - #[doc = " Minimum number of rows in a block."] pub fn min_block_rows( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("DataAvailability", "MinBlockRows", [ - 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, - 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, - 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, - ]) + ::subxt::constants::Address::new_static( + "DataAvailability", + "MinBlockRows", + [ + 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, + 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, + 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, + ], + ) } - #[doc = " Maximum number of rows in a block."] pub fn max_block_rows( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("DataAvailability", "MaxBlockRows", [ - 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, - 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, - 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, - ]) + ::subxt::constants::Address::new_static( + "DataAvailability", + "MaxBlockRows", + [ + 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, + 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, + 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, + ], + ) } - #[doc = " Minimum number of cols in a block."] pub fn min_block_cols( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("DataAvailability", "MinBlockCols", [ - 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, - 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, - 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, - ]) + ::subxt::constants::Address::new_static( + "DataAvailability", + "MinBlockCols", + [ + 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, + 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, + 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, + ], + ) } - #[doc = " Maximum number of cols in a block."] pub fn max_block_cols( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("DataAvailability", "MaxBlockCols", [ - 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, - 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, - 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, - ]) + ::subxt::constants::Address::new_static( + "DataAvailability", + "MaxBlockCols", + [ + 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, + 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, + 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, + ], + ) } } } } pub mod nomad_updater_manager { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::nomad_updater_manager::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::nomad_updater_manager::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -18457,8 +18612,8 @@ pub mod api { pub new_updater: ::subxt::utils::H160, } impl ::subxt::events::StaticEvent for NewUpdater { - const EVENT: &'static str = "NewUpdater"; const PALLET: &'static str = "NomadUpdaterManager"; + const EVENT: &'static str = "NewUpdater"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18477,8 +18632,8 @@ pub mod api { pub reporter: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for FakeSlashed { - const EVENT: &'static str = "FakeSlashed"; const PALLET: &'static str = "NomadUpdaterManager"; + const EVENT: &'static str = "FakeSlashed"; } } pub mod storage { @@ -18510,13 +18665,15 @@ pub mod api { } } pub mod nomad_home { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::nomad_home::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::nomad_home::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -18542,8 +18699,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for Dispatch { - const CALL: &'static str = "dispatch"; const PALLET: &'static str = "NomadHome"; + const CALL: &'static str = "dispatch"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18564,8 +18721,8 @@ pub mod api { pub max_index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Update { - const CALL: &'static str = "update"; const PALLET: &'static str = "NomadHome"; + const CALL: &'static str = "update"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18584,8 +18741,8 @@ pub mod api { pub signed_update: runtime_types::nomad_core::update::SignedUpdate, } impl ::subxt::blocks::StaticExtrinsic for ImproperUpdate { - const CALL: &'static str = "improper_update"; const PALLET: &'static str = "NomadHome"; + const CALL: &'static str = "improper_update"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18604,8 +18761,8 @@ pub mod api { pub new_updater: ::subxt::utils::H160, } impl ::subxt::blocks::StaticExtrinsic for SetUpdater { - const CALL: &'static str = "set_updater"; const PALLET: &'static str = "NomadHome"; + const CALL: &'static str = "set_updater"; } } pub struct TransactionApi; @@ -18634,7 +18791,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::update`]."] pub fn update( &self, @@ -18655,7 +18811,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::improper_update`]."] pub fn improper_update( &self, @@ -18672,7 +18827,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_updater`]."] pub fn set_updater( &self, @@ -18717,8 +18871,8 @@ pub mod api { pub message: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::events::StaticEvent for Dispatch { - const EVENT: &'static str = "Dispatch"; const PALLET: &'static str = "NomadHome"; + const EVENT: &'static str = "Dispatch"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18740,8 +18894,8 @@ pub mod api { pub signature: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::events::StaticEvent for Update { - const EVENT: &'static str = "Update"; const PALLET: &'static str = "NomadHome"; + const EVENT: &'static str = "Update"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18762,8 +18916,8 @@ pub mod api { pub signature: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::events::StaticEvent for ImproperUpdate { - const EVENT: &'static str = "ImproperUpdate"; const PALLET: &'static str = "NomadHome"; + const EVENT: &'static str = "ImproperUpdate"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18783,8 +18937,8 @@ pub mod api { pub reporter: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for UpdaterSlashed { - const EVENT: &'static str = "UpdaterSlashed"; const PALLET: &'static str = "NomadHome"; + const EVENT: &'static str = "UpdaterSlashed"; } } pub mod storage { @@ -18800,13 +18954,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("NomadHome", "Base", vec![], [ - 254u8, 56u8, 220u8, 109u8, 51u8, 237u8, 70u8, 31u8, 134u8, 49u8, 145u8, - 104u8, 204u8, 243u8, 216u8, 242u8, 57u8, 113u8, 132u8, 190u8, 170u8, 80u8, - 232u8, 190u8, 37u8, 91u8, 20u8, 188u8, 41u8, 41u8, 187u8, 107u8, - ]) + ::subxt::storage::address::Address::new_static( + "NomadHome", + "Base", + vec![], + [ + 254u8, 56u8, 220u8, 109u8, 51u8, 237u8, 70u8, 31u8, 134u8, 49u8, 145u8, + 104u8, 204u8, 243u8, 216u8, 242u8, 57u8, 113u8, 132u8, 190u8, 170u8, + 80u8, 232u8, 190u8, 37u8, 91u8, 20u8, 188u8, 41u8, 41u8, 187u8, 107u8, + ], + ) } - pub fn tree( &self, ) -> ::subxt::storage::address::Address< @@ -18816,13 +18974,18 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("NomadHome", "Tree", vec![], [ - 22u8, 211u8, 114u8, 109u8, 20u8, 79u8, 40u8, 238u8, 244u8, 223u8, 95u8, - 97u8, 85u8, 113u8, 201u8, 242u8, 23u8, 140u8, 106u8, 222u8, 130u8, 29u8, - 218u8, 108u8, 210u8, 13u8, 115u8, 231u8, 22u8, 137u8, 227u8, 175u8, - ]) + ::subxt::storage::address::Address::new_static( + "NomadHome", + "Tree", + vec![], + [ + 22u8, 211u8, 114u8, 109u8, 20u8, 79u8, 40u8, 238u8, 244u8, 223u8, 95u8, + 97u8, 85u8, 113u8, 201u8, 242u8, 23u8, 140u8, 106u8, 222u8, 130u8, + 29u8, 218u8, 108u8, 210u8, 13u8, 115u8, 231u8, 22u8, 137u8, 227u8, + 175u8, + ], + ) } - pub fn nonces( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -18846,7 +19009,6 @@ pub mod api { ], ) } - pub fn nonces_root( &self, ) -> ::subxt::storage::address::Address< @@ -18867,7 +19029,6 @@ pub mod api { ], ) } - pub fn index_to_root( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -18891,7 +19052,6 @@ pub mod api { ], ) } - pub fn index_to_root_root( &self, ) -> ::subxt::storage::address::Address< @@ -18912,7 +19072,6 @@ pub mod api { ], ) } - pub fn root_to_index( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, @@ -18936,7 +19095,6 @@ pub mod api { ], ) } - pub fn root_to_index_root( &self, ) -> ::subxt::storage::address::Address< @@ -18967,23 +19125,30 @@ pub mod api { pub fn max_message_body_bytes( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("NomadHome", "MaxMessageBodyBytes", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "NomadHome", + "MaxMessageBodyBytes", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } } pub mod nomad_da_bridge { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::nomad_da_bridge::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::nomad_da_bridge::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -19012,8 +19177,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for TryDispatchDataRoot { - const CALL: &'static str = "try_dispatch_data_root"; const PALLET: &'static str = "NomadDABridge"; + const CALL: &'static str = "try_dispatch_data_root"; } } pub struct TransactionApi; @@ -19069,8 +19234,8 @@ pub mod api { pub data_root: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for DataRootDispatched { - const EVENT: &'static str = "DataRootDispatched"; const PALLET: &'static str = "NomadDABridge"; + const EVENT: &'static str = "DataRootDispatched"; } } pub mod constants { @@ -19080,23 +19245,30 @@ pub mod api { pub fn da_bridge_pallet_id( &self, ) -> ::subxt::constants::Address<::subxt::utils::H256> { - ::subxt::constants::Address::new_static("NomadDABridge", "DABridgePalletId", [ - 115u8, 233u8, 13u8, 223u8, 88u8, 20u8, 202u8, 139u8, 153u8, 28u8, 155u8, - 157u8, 224u8, 66u8, 3u8, 250u8, 23u8, 53u8, 88u8, 168u8, 211u8, 204u8, - 122u8, 166u8, 248u8, 23u8, 174u8, 225u8, 99u8, 108u8, 89u8, 135u8, - ]) + ::subxt::constants::Address::new_static( + "NomadDABridge", + "DABridgePalletId", + [ + 115u8, 233u8, 13u8, 223u8, 88u8, 20u8, 202u8, 139u8, 153u8, 28u8, + 155u8, 157u8, 224u8, 66u8, 3u8, 250u8, 23u8, 53u8, 88u8, 168u8, 211u8, + 204u8, 122u8, 166u8, 248u8, 23u8, 174u8, 225u8, 99u8, 108u8, 89u8, + 135u8, + ], + ) } } } } pub mod preimage { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_preimage::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_preimage::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -19117,8 +19289,8 @@ pub mod api { pub bytes: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for NotePreimage { - const CALL: &'static str = "note_preimage"; const PALLET: &'static str = "Preimage"; + const CALL: &'static str = "note_preimage"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19137,8 +19309,8 @@ pub mod api { pub hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for UnnotePreimage { - const CALL: &'static str = "unnote_preimage"; const PALLET: &'static str = "Preimage"; + const CALL: &'static str = "unnote_preimage"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19157,8 +19329,8 @@ pub mod api { pub hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for RequestPreimage { - const CALL: &'static str = "request_preimage"; const PALLET: &'static str = "Preimage"; + const CALL: &'static str = "request_preimage"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19177,8 +19349,8 @@ pub mod api { pub hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for UnrequestPreimage { - const CALL: &'static str = "unrequest_preimage"; const PALLET: &'static str = "Preimage"; + const CALL: &'static str = "unrequest_preimage"; } } pub struct TransactionApi; @@ -19199,7 +19371,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::unnote_preimage`]."] pub fn unnote_preimage( &self, @@ -19217,7 +19388,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::request_preimage`]."] pub fn request_preimage( &self, @@ -19234,7 +19404,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::unrequest_preimage`]."] pub fn unrequest_preimage( &self, @@ -19276,8 +19445,8 @@ pub mod api { pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Noted { - const EVENT: &'static str = "Noted"; const PALLET: &'static str = "Preimage"; + const EVENT: &'static str = "Noted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19297,8 +19466,8 @@ pub mod api { pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Requested { - const EVENT: &'static str = "Requested"; const PALLET: &'static str = "Preimage"; + const EVENT: &'static str = "Requested"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19318,8 +19487,8 @@ pub mod api { pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Cleared { - const EVENT: &'static str = "Cleared"; const PALLET: &'static str = "Preimage"; + const EVENT: &'static str = "Cleared"; } } pub mod storage { @@ -19354,7 +19523,6 @@ pub mod api { ], ) } - #[doc = " The request status of a given hash."] pub fn status_for_root( &self, @@ -19380,7 +19548,6 @@ pub mod api { ], ) } - pub fn preimage_for( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, @@ -19408,7 +19575,6 @@ pub mod api { ], ) } - pub fn preimage_for_root( &self, ) -> ::subxt::storage::address::Address< @@ -19435,13 +19601,15 @@ pub mod api { } } pub mod multisig { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_multisig::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_multisig::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -19463,8 +19631,8 @@ pub mod api { pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for AsMultiThreshold1 { - const CALL: &'static str = "as_multi_threshold_1"; const PALLET: &'static str = "Multisig"; + const CALL: &'static str = "as_multi_threshold_1"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19489,8 +19657,8 @@ pub mod api { pub max_weight: runtime_types::sp_weights::weight_v2::Weight, } impl ::subxt::blocks::StaticExtrinsic for AsMulti { - const CALL: &'static str = "as_multi"; const PALLET: &'static str = "Multisig"; + const CALL: &'static str = "as_multi"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19515,8 +19683,8 @@ pub mod api { pub max_weight: runtime_types::sp_weights::weight_v2::Weight, } impl ::subxt::blocks::StaticExtrinsic for ApproveAsMulti { - const CALL: &'static str = "approve_as_multi"; const PALLET: &'static str = "Multisig"; + const CALL: &'static str = "approve_as_multi"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19539,8 +19707,8 @@ pub mod api { pub call_hash: [::core::primitive::u8; 32usize], } impl ::subxt::blocks::StaticExtrinsic for CancelAsMulti { - const CALL: &'static str = "cancel_as_multi"; const PALLET: &'static str = "Multisig"; + const CALL: &'static str = "cancel_as_multi"; } } pub struct TransactionApi; @@ -19566,7 +19734,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::as_multi`]."] pub fn as_multi( &self, @@ -19596,7 +19763,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::approve_as_multi`]."] pub fn approve_as_multi( &self, @@ -19625,7 +19791,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::cancel_as_multi`]."] pub fn cancel_as_multi( &self, @@ -19677,8 +19842,8 @@ pub mod api { pub call_hash: [::core::primitive::u8; 32usize], } impl ::subxt::events::StaticEvent for NewMultisig { - const EVENT: &'static str = "NewMultisig"; const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "NewMultisig"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19701,8 +19866,8 @@ pub mod api { pub call_hash: [::core::primitive::u8; 32usize], } impl ::subxt::events::StaticEvent for MultisigApproval { - const EVENT: &'static str = "MultisigApproval"; const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "MultisigApproval"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19726,8 +19891,8 @@ pub mod api { pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for MultisigExecuted { - const EVENT: &'static str = "MultisigExecuted"; const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "MultisigExecuted"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19750,8 +19915,8 @@ pub mod api { pub call_hash: [::core::primitive::u8; 32usize], } impl ::subxt::events::StaticEvent for MultisigCancelled { - const EVENT: &'static str = "MultisigCancelled"; const PALLET: &'static str = "Multisig"; + const EVENT: &'static str = "MultisigCancelled"; } } pub mod storage { @@ -19788,7 +19953,6 @@ pub mod api { ], ) } - #[doc = " The set of open multisig operations."] pub fn multisigs_root( &self, @@ -19827,47 +19991,60 @@ pub mod api { #[doc = " `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is"] #[doc = " `32 + sizeof(AccountId)` bytes."] pub fn deposit_base(&self) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Multisig", "DepositBase", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Multisig", + "DepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } - #[doc = " The amount of currency needed per unit threshold when creating a multisig execution."] #[doc = ""] #[doc = " This is held for adding 32 bytes more into a pre-existing storage value."] pub fn deposit_factor( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Multisig", "DepositFactor", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Multisig", + "DepositFactor", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } - #[doc = " The maximum amount of signatories allowed in the multisig."] pub fn max_signatories( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Multisig", "MaxSignatories", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Multisig", + "MaxSignatories", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } } pub mod voter_list { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_bags_list::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_bags_list::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -19891,8 +20068,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for Rebag { - const CALL: &'static str = "rebag"; const PALLET: &'static str = "VoterList"; + const CALL: &'static str = "rebag"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19914,8 +20091,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for PutInFrontOf { - const CALL: &'static str = "put_in_front_of"; const PALLET: &'static str = "VoterList"; + const CALL: &'static str = "put_in_front_of"; } } pub struct TransactionApi; @@ -19939,7 +20116,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::put_in_front_of`]."] pub fn put_in_front_of( &self, @@ -19986,8 +20162,8 @@ pub mod api { pub to: ::core::primitive::u64, } impl ::subxt::events::StaticEvent for Rebagged { - const EVENT: &'static str = "Rebagged"; const PALLET: &'static str = "VoterList"; + const EVENT: &'static str = "Rebagged"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20008,8 +20184,8 @@ pub mod api { pub new_score: ::core::primitive::u64, } impl ::subxt::events::StaticEvent for ScoreUpdated { - const EVENT: &'static str = "ScoreUpdated"; const PALLET: &'static str = "VoterList"; + const EVENT: &'static str = "ScoreUpdated"; } } pub mod storage { @@ -20043,7 +20219,6 @@ pub mod api { ], ) } - #[doc = " A single node, within some bag."] #[doc = ""] #[doc = " Nodes store links forward and back within their respective bags."] @@ -20068,7 +20243,6 @@ pub mod api { ], ) } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_list_nodes( &self, @@ -20091,7 +20265,6 @@ pub mod api { ], ) } - #[doc = " A bag stored in storage."] #[doc = ""] #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] @@ -20118,7 +20291,6 @@ pub mod api { ], ) } - #[doc = " A bag stored in storage."] #[doc = ""] #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] @@ -20194,23 +20366,29 @@ pub mod api { pub fn bag_thresholds( &self, ) -> ::subxt::constants::Address<::std::vec::Vec<::core::primitive::u64>> { - ::subxt::constants::Address::new_static("VoterList", "BagThresholds", [ - 215u8, 118u8, 183u8, 172u8, 4u8, 42u8, 248u8, 108u8, 4u8, 110u8, 43u8, - 165u8, 228u8, 7u8, 36u8, 30u8, 135u8, 184u8, 56u8, 201u8, 107u8, 68u8, - 25u8, 164u8, 134u8, 32u8, 82u8, 107u8, 200u8, 219u8, 212u8, 198u8, - ]) + ::subxt::constants::Address::new_static( + "VoterList", + "BagThresholds", + [ + 215u8, 118u8, 183u8, 172u8, 4u8, 42u8, 248u8, 108u8, 4u8, 110u8, 43u8, + 165u8, 228u8, 7u8, 36u8, 30u8, 135u8, 184u8, 56u8, 201u8, 107u8, 68u8, + 25u8, 164u8, 134u8, 32u8, 82u8, 107u8, 200u8, 219u8, 212u8, 198u8, + ], + ) } } } } pub mod nomination_pools { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_nomination_pools::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_nomination_pools::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -20233,8 +20411,8 @@ pub mod api { pub pool_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Join { - const CALL: &'static str = "join"; const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "join"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20254,8 +20432,8 @@ pub mod api { runtime_types::pallet_nomination_pools::BondExtra<::core::primitive::u128>, } impl ::subxt::blocks::StaticExtrinsic for BondExtra { - const CALL: &'static str = "bond_extra"; const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "bond_extra"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20272,8 +20450,8 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClaimPayout; impl ::subxt::blocks::StaticExtrinsic for ClaimPayout { - const CALL: &'static str = "claim_payout"; const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "claim_payout"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20297,8 +20475,8 @@ pub mod api { pub unbonding_points: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for Unbond { - const CALL: &'static str = "unbond"; const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "unbond"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20318,8 +20496,8 @@ pub mod api { pub num_slashing_spans: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for PoolWithdrawUnbonded { - const CALL: &'static str = "pool_withdraw_unbonded"; const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "pool_withdraw_unbonded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20342,8 +20520,8 @@ pub mod api { pub num_slashing_spans: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for WithdrawUnbonded { - const CALL: &'static str = "withdraw_unbonded"; const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "withdraw_unbonded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20375,8 +20553,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for Create { - const CALL: &'static str = "create"; const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "create"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20409,8 +20587,8 @@ pub mod api { pub pool_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for CreateWithPoolId { - const CALL: &'static str = "create_with_pool_id"; const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "create_with_pool_id"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20430,8 +20608,8 @@ pub mod api { pub validators: ::std::vec::Vec<::subxt::utils::AccountId32>, } impl ::subxt::blocks::StaticExtrinsic for Nominate { - const CALL: &'static str = "nominate"; const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "nominate"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20451,8 +20629,8 @@ pub mod api { pub state: runtime_types::pallet_nomination_pools::PoolState, } impl ::subxt::blocks::StaticExtrinsic for SetState { - const CALL: &'static str = "set_state"; const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_state"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20472,8 +20650,8 @@ pub mod api { pub metadata: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for SetMetadata { - const CALL: &'static str = "set_metadata"; const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_metadata"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20504,8 +20682,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for SetConfigs { - const CALL: &'static str = "set_configs"; const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_configs"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20533,8 +20711,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for UpdateRoles { - const CALL: &'static str = "update_roles"; const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "update_roles"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -20554,8 +20732,8 @@ pub mod api { pub pool_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Chill { - const CALL: &'static str = "chill"; const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "chill"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20579,8 +20757,8 @@ pub mod api { runtime_types::pallet_nomination_pools::BondExtra<::core::primitive::u128>, } impl ::subxt::blocks::StaticExtrinsic for BondExtraOther { - const CALL: &'static str = "bond_extra_other"; const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "bond_extra_other"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20599,8 +20777,8 @@ pub mod api { pub permission: runtime_types::pallet_nomination_pools::ClaimPermission, } impl ::subxt::blocks::StaticExtrinsic for SetClaimPermission { - const CALL: &'static str = "set_claim_permission"; const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_claim_permission"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20619,8 +20797,8 @@ pub mod api { pub other: ::subxt::utils::AccountId32, } impl ::subxt::blocks::StaticExtrinsic for ClaimPayoutOther { - const CALL: &'static str = "claim_payout_other"; const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "claim_payout_other"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20643,8 +20821,8 @@ pub mod api { )>, } impl ::subxt::blocks::StaticExtrinsic for SetCommission { - const CALL: &'static str = "set_commission"; const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_commission"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20664,8 +20842,8 @@ pub mod api { pub max_commission: runtime_types::sp_arithmetic::per_things::Perbill, } impl ::subxt::blocks::StaticExtrinsic for SetCommissionMax { - const CALL: &'static str = "set_commission_max"; const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_commission_max"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20687,8 +20865,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for SetCommissionChangeRate { - const CALL: &'static str = "set_commission_change_rate"; const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "set_commission_change_rate"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -20708,8 +20886,8 @@ pub mod api { pub pool_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ClaimCommission { - const CALL: &'static str = "claim_commission"; const PALLET: &'static str = "NominationPools"; + const CALL: &'static str = "claim_commission"; } } pub struct TransactionApi; @@ -20731,7 +20909,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::bond_extra`]."] pub fn bond_extra( &self, @@ -20751,7 +20928,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::claim_payout`]."] pub fn claim_payout(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -20765,7 +20941,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::unbond`]."] pub fn unbond( &self, @@ -20789,7 +20964,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::pool_withdraw_unbonded`]."] pub fn pool_withdraw_unbonded( &self, @@ -20810,7 +20984,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::withdraw_unbonded`]."] pub fn withdraw_unbonded( &self, @@ -20834,7 +21007,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::create`]."] pub fn create( &self, @@ -20869,7 +21041,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::create_with_pool_id`]."] pub fn create_with_pool_id( &self, @@ -20905,7 +21076,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::nominate`]."] pub fn nominate( &self, @@ -20926,7 +21096,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_state`]."] pub fn set_state( &self, @@ -20944,7 +21113,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_metadata`]."] pub fn set_metadata( &self, @@ -20962,7 +21130,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_configs`]."] pub fn set_configs( &self, @@ -21003,7 +21170,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::update_roles`]."] pub fn update_roles( &self, @@ -21034,7 +21200,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::chill`]."] pub fn chill( &self, @@ -21051,7 +21216,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::bond_extra_other`]."] pub fn bond_extra_other( &self, @@ -21075,7 +21239,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_claim_permission`]."] pub fn set_claim_permission( &self, @@ -21092,7 +21255,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::claim_payout_other`]."] pub fn claim_payout_other( &self, @@ -21110,7 +21272,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_commission`]."] pub fn set_commission( &self, @@ -21135,7 +21296,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_commission_max`]."] pub fn set_commission_max( &self, @@ -21156,7 +21316,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_commission_change_rate`]."] pub fn set_commission_change_rate( &self, @@ -21180,7 +21339,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::claim_commission`]."] pub fn claim_commission( &self, @@ -21222,8 +21380,8 @@ pub mod api { pub pool_id: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Created { - const EVENT: &'static str = "Created"; const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "Created"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21246,8 +21404,8 @@ pub mod api { pub joined: ::core::primitive::bool, } impl ::subxt::events::StaticEvent for Bonded { - const EVENT: &'static str = "Bonded"; const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "Bonded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21269,8 +21427,8 @@ pub mod api { pub payout: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for PaidOut { - const EVENT: &'static str = "PaidOut"; const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "PaidOut"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21304,8 +21462,8 @@ pub mod api { pub era: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Unbonded { - const EVENT: &'static str = "Unbonded"; const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "Unbonded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21333,8 +21491,8 @@ pub mod api { pub points: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Withdrawn { - const EVENT: &'static str = "Withdrawn"; const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "Withdrawn"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -21355,8 +21513,8 @@ pub mod api { pub pool_id: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Destroyed { - const EVENT: &'static str = "Destroyed"; const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "Destroyed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21377,8 +21535,8 @@ pub mod api { pub new_state: runtime_types::pallet_nomination_pools::PoolState, } impl ::subxt::events::StaticEvent for StateChanged { - const EVENT: &'static str = "StateChanged"; const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "StateChanged"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21401,8 +21559,8 @@ pub mod api { pub member: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for MemberRemoved { - const EVENT: &'static str = "MemberRemoved"; const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "MemberRemoved"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21425,8 +21583,8 @@ pub mod api { pub nominator: ::core::option::Option<::subxt::utils::AccountId32>, } impl ::subxt::events::StaticEvent for RolesUpdated { - const EVENT: &'static str = "RolesUpdated"; const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "RolesUpdated"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21447,8 +21605,8 @@ pub mod api { pub balance: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for PoolSlashed { - const EVENT: &'static str = "PoolSlashed"; const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "PoolSlashed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21470,8 +21628,8 @@ pub mod api { pub balance: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for UnbondingPoolSlashed { - const EVENT: &'static str = "UnbondingPoolSlashed"; const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "UnbondingPoolSlashed"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21495,8 +21653,8 @@ pub mod api { )>, } impl ::subxt::events::StaticEvent for PoolCommissionUpdated { - const EVENT: &'static str = "PoolCommissionUpdated"; const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "PoolCommissionUpdated"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21517,8 +21675,8 @@ pub mod api { pub max_commission: runtime_types::sp_arithmetic::per_things::Perbill, } impl ::subxt::events::StaticEvent for PoolMaxCommissionUpdated { - const EVENT: &'static str = "PoolMaxCommissionUpdated"; const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "PoolMaxCommissionUpdated"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21541,8 +21699,8 @@ pub mod api { >, } impl ::subxt::events::StaticEvent for PoolCommissionChangeRateUpdated { - const EVENT: &'static str = "PoolCommissionChangeRateUpdated"; const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "PoolCommissionChangeRateUpdated"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21563,8 +21721,8 @@ pub mod api { pub commission: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for PoolCommissionClaimed { - const EVENT: &'static str = "PoolCommissionClaimed"; const PALLET: &'static str = "NominationPools"; + const EVENT: &'static str = "PoolCommissionClaimed"; } } pub mod storage { @@ -21592,7 +21750,6 @@ pub mod api { ], ) } - #[doc = " Minimum bond required to create a pool."] #[doc = ""] #[doc = " This is the amount that the depositor must put as their initial stake in the pool, as an"] @@ -21621,7 +21778,6 @@ pub mod api { ], ) } - #[doc = " Maximum number of nomination pools that can exist. If `None`, then an unbounded number of"] #[doc = " pools can exist."] pub fn max_pools( @@ -21645,7 +21801,6 @@ pub mod api { ], ) } - #[doc = " Maximum number of members that can exist in the system. If `None`, then the count"] #[doc = " members are not bound on a system wide basis."] pub fn max_pool_members( @@ -21669,7 +21824,6 @@ pub mod api { ], ) } - #[doc = " Maximum number of members that may belong to pool. If `None`, then the count of"] #[doc = " members is not bound on a per pool basis."] pub fn max_pool_members_per_pool( @@ -21692,7 +21846,6 @@ pub mod api { ], ) } - #[doc = " The maximum commission that can be charged by a pool. Used on commission payouts to bound"] #[doc = " pool commissions that are > `GlobalMaxCommission`, necessary if a future"] #[doc = " `GlobalMaxCommission` is lower than some current pool commissions."] @@ -21717,7 +21870,6 @@ pub mod api { ], ) } - #[doc = " Active members."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] @@ -21744,7 +21896,6 @@ pub mod api { ], ) } - #[doc = " Active members."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] @@ -21768,7 +21919,6 @@ pub mod api { ], ) } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_pool_members( &self, @@ -21791,7 +21941,6 @@ pub mod api { ], ) } - #[doc = " Storage for bonded pools."] pub fn bonded_pools( &self, @@ -21817,7 +21966,6 @@ pub mod api { ], ) } - #[doc = " Storage for bonded pools."] pub fn bonded_pools_root( &self, @@ -21840,7 +21988,6 @@ pub mod api { ], ) } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_bonded_pools( &self, @@ -21862,7 +22009,6 @@ pub mod api { ], ) } - #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout is"] #[doc = " claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] pub fn reward_pools( @@ -21889,7 +22035,6 @@ pub mod api { ], ) } - #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout is"] #[doc = " claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] pub fn reward_pools_root( @@ -21913,7 +22058,6 @@ pub mod api { ], ) } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_reward_pools( &self, @@ -21936,7 +22080,6 @@ pub mod api { ], ) } - #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a"] #[doc = " bonded pool, hence the name sub-pools. Keyed by the bonded pools account."] pub fn sub_pools_storage( @@ -21962,7 +22105,6 @@ pub mod api { ], ) } - #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a"] #[doc = " bonded pool, hence the name sub-pools. Keyed by the bonded pools account."] pub fn sub_pools_storage_root( @@ -21985,7 +22127,6 @@ pub mod api { ], ) } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_sub_pools_storage( &self, @@ -22008,7 +22149,6 @@ pub mod api { ], ) } - #[doc = " Metadata for the pool."] pub fn metadata( &self, @@ -22035,7 +22175,6 @@ pub mod api { ], ) } - #[doc = " Metadata for the pool."] pub fn metadata_root( &self, @@ -22059,7 +22198,6 @@ pub mod api { ], ) } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_metadata( &self, @@ -22082,7 +22220,6 @@ pub mod api { ], ) } - #[doc = " Ever increasing number of all pools created so far."] pub fn last_pool_id( &self, @@ -22105,7 +22242,6 @@ pub mod api { ], ) } - #[doc = " A reverse lookup from the pool's account id to its id."] #[doc = ""] #[doc = " This is only used for slashing. In all other instances, the pool id is used, and the"] @@ -22133,7 +22269,6 @@ pub mod api { ], ) } - #[doc = " A reverse lookup from the pool's account id to its id."] #[doc = ""] #[doc = " This is only used for slashing. In all other instances, the pool id is used, and the"] @@ -22158,7 +22293,6 @@ pub mod api { ], ) } - #[doc = "Counter for the related counted storage map"] pub fn counter_for_reverse_pool_id_lookup( &self, @@ -22181,7 +22315,6 @@ pub mod api { ], ) } - #[doc = " Map from a pool member account to their opted claim permission."] pub fn claim_permissions( &self, @@ -22206,7 +22339,6 @@ pub mod api { ], ) } - #[doc = " Map from a pool member account to their opted claim permission."] pub fn claim_permissions_root( &self, @@ -22238,13 +22370,16 @@ pub mod api { pub fn pallet_id( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("NominationPools", "PalletId", [ - 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, - 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, - 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, - ]) + ::subxt::constants::Address::new_static( + "NominationPools", + "PalletId", + [ + 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, + 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, + 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, + ], + ) } - #[doc = " The maximum pool points-to-balance ratio that an `open` pool can have."] #[doc = ""] #[doc = " This is important in the event slashing takes place and the pool's points-to-balance"] @@ -22275,13 +22410,15 @@ pub mod api { } } pub mod identity { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_identity::pallet::Error; #[doc = "Identity pallet declaration."] pub type Call = runtime_types::pallet_identity::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -22305,8 +22442,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for AddRegistrar { - const CALL: &'static str = "add_registrar"; const PALLET: &'static str = "Identity"; + const CALL: &'static str = "add_registrar"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22326,8 +22463,8 @@ pub mod api { ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for SetIdentity { - const CALL: &'static str = "set_identity"; const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_identity"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22349,8 +22486,8 @@ pub mod api { )>, } impl ::subxt::blocks::StaticExtrinsic for SetSubs { - const CALL: &'static str = "set_subs"; const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_subs"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22367,8 +22504,8 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClearIdentity; impl ::subxt::blocks::StaticExtrinsic for ClearIdentity { - const CALL: &'static str = "clear_identity"; const PALLET: &'static str = "Identity"; + const CALL: &'static str = "clear_identity"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22390,8 +22527,8 @@ pub mod api { pub max_fee: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for RequestJudgement { - const CALL: &'static str = "request_judgement"; const PALLET: &'static str = "Identity"; + const CALL: &'static str = "request_judgement"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -22411,8 +22548,8 @@ pub mod api { pub reg_index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for CancelRequest { - const CALL: &'static str = "cancel_request"; const PALLET: &'static str = "Identity"; + const CALL: &'static str = "cancel_request"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22434,8 +22571,8 @@ pub mod api { pub fee: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for SetFee { - const CALL: &'static str = "set_fee"; const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_fee"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22459,8 +22596,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for SetAccountId { - const CALL: &'static str = "set_account_id"; const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_account_id"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22483,8 +22620,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for SetFields { - const CALL: &'static str = "set_fields"; const PALLET: &'static str = "Identity"; + const CALL: &'static str = "set_fields"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22511,8 +22648,8 @@ pub mod api { pub identity: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for ProvideJudgement { - const CALL: &'static str = "provide_judgement"; const PALLET: &'static str = "Identity"; + const CALL: &'static str = "provide_judgement"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22534,8 +22671,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for KillIdentity { - const CALL: &'static str = "kill_identity"; const PALLET: &'static str = "Identity"; + const CALL: &'static str = "kill_identity"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22558,8 +22695,8 @@ pub mod api { pub data: runtime_types::pallet_identity::types::Data, } impl ::subxt::blocks::StaticExtrinsic for AddSub { - const CALL: &'static str = "add_sub"; const PALLET: &'static str = "Identity"; + const CALL: &'static str = "add_sub"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22582,8 +22719,8 @@ pub mod api { pub data: runtime_types::pallet_identity::types::Data, } impl ::subxt::blocks::StaticExtrinsic for RenameSub { - const CALL: &'static str = "rename_sub"; const PALLET: &'static str = "Identity"; + const CALL: &'static str = "rename_sub"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22605,8 +22742,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for RemoveSub { - const CALL: &'static str = "remove_sub"; const PALLET: &'static str = "Identity"; + const CALL: &'static str = "remove_sub"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22623,8 +22760,8 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct QuitSub; impl ::subxt::blocks::StaticExtrinsic for QuitSub { - const CALL: &'static str = "quit_sub"; const PALLET: &'static str = "Identity"; + const CALL: &'static str = "quit_sub"; } } pub struct TransactionApi; @@ -22648,7 +22785,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_identity`]."] pub fn set_identity( &self, @@ -22667,7 +22803,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_subs`]."] pub fn set_subs( &self, @@ -22688,7 +22823,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::clear_identity`]."] pub fn clear_identity(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -22703,7 +22837,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::request_judgement`]."] pub fn request_judgement( &self, @@ -22721,7 +22854,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::cancel_request`]."] pub fn cancel_request( &self, @@ -22739,7 +22871,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_fee`]."] pub fn set_fee( &self, @@ -22758,7 +22889,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_account_id`]."] pub fn set_account_id( &self, @@ -22779,7 +22909,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::set_fields`]."] pub fn set_fields( &self, @@ -22799,7 +22928,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::provide_judgement`]."] pub fn provide_judgement( &self, @@ -22829,7 +22957,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::kill_identity`]."] pub fn kill_identity( &self, @@ -22849,7 +22976,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::add_sub`]."] pub fn add_sub( &self, @@ -22871,7 +22997,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::rename_sub`]."] pub fn rename_sub( &self, @@ -22893,7 +23018,6 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::remove_sub`]."] pub fn remove_sub( &self, @@ -22913,14 +23037,19 @@ pub mod api { ], ) } - #[doc = "See [`Pallet::quit_sub`]."] pub fn quit_sub(&self) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static("Identity", "quit_sub", types::QuitSub {}, [ - 147u8, 131u8, 175u8, 171u8, 187u8, 201u8, 240u8, 26u8, 146u8, 224u8, 74u8, - 166u8, 242u8, 193u8, 204u8, 247u8, 168u8, 93u8, 18u8, 32u8, 27u8, 208u8, - 149u8, 146u8, 179u8, 172u8, 75u8, 112u8, 84u8, 141u8, 233u8, 223u8, - ]) + ::subxt::tx::Payload::new_static( + "Identity", + "quit_sub", + types::QuitSub {}, + [ + 147u8, 131u8, 175u8, 171u8, 187u8, 201u8, 240u8, 26u8, 146u8, 224u8, + 74u8, 166u8, 242u8, 193u8, 204u8, 247u8, 168u8, 93u8, 18u8, 32u8, 27u8, + 208u8, 149u8, 146u8, 179u8, 172u8, 75u8, 112u8, 84u8, 141u8, 233u8, + 223u8, + ], + ) } } } @@ -22946,8 +23075,8 @@ pub mod api { pub who: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for IdentitySet { - const EVENT: &'static str = "IdentitySet"; const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "IdentitySet"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22968,8 +23097,8 @@ pub mod api { pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for IdentityCleared { - const EVENT: &'static str = "IdentityCleared"; const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "IdentityCleared"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22990,8 +23119,8 @@ pub mod api { pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for IdentityKilled { - const EVENT: &'static str = "IdentityKilled"; const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "IdentityKilled"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23012,8 +23141,8 @@ pub mod api { pub registrar_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for JudgementRequested { - const EVENT: &'static str = "JudgementRequested"; const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "JudgementRequested"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23034,8 +23163,8 @@ pub mod api { pub registrar_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for JudgementUnrequested { - const EVENT: &'static str = "JudgementUnrequested"; const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "JudgementUnrequested"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23056,8 +23185,8 @@ pub mod api { pub registrar_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for JudgementGiven { - const EVENT: &'static str = "JudgementGiven"; const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "JudgementGiven"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -23078,8 +23207,8 @@ pub mod api { pub registrar_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for RegistrarAdded { - const EVENT: &'static str = "RegistrarAdded"; const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "RegistrarAdded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23101,8 +23230,8 @@ pub mod api { pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for SubIdentityAdded { - const EVENT: &'static str = "SubIdentityAdded"; const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "SubIdentityAdded"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23124,8 +23253,8 @@ pub mod api { pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for SubIdentityRemoved { - const EVENT: &'static str = "SubIdentityRemoved"; const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "SubIdentityRemoved"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23148,8 +23277,8 @@ pub mod api { pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for SubIdentityRevoked { - const EVENT: &'static str = "SubIdentityRevoked"; const PALLET: &'static str = "Identity"; + const EVENT: &'static str = "SubIdentityRevoked"; } } pub mod storage { @@ -23182,7 +23311,6 @@ pub mod api { ], ) } - #[doc = " Information that is pertinent to identify the entity behind an account."] #[doc = ""] #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] @@ -23206,7 +23334,6 @@ pub mod api { ], ) } - #[doc = " The super-identity of an alternative \"sub\" identity together with its name, within that"] #[doc = " context. If the account is not some other account's sub-identity, then just `None`."] pub fn super_of( @@ -23235,7 +23362,6 @@ pub mod api { ], ) } - #[doc = " The super-identity of an alternative \"sub\" identity together with its name, within that"] #[doc = " context. If the account is not some other account's sub-identity, then just `None`."] pub fn super_of_root( @@ -23261,7 +23387,6 @@ pub mod api { ], ) } - #[doc = " Alternative \"sub\" identities of this account."] #[doc = ""] #[doc = " The first item is the deposit, the second is a vector of the accounts."] @@ -23296,7 +23421,6 @@ pub mod api { ], ) } - #[doc = " Alternative \"sub\" identities of this account."] #[doc = ""] #[doc = " The first item is the deposit, the second is a vector of the accounts."] @@ -23328,7 +23452,6 @@ pub mod api { ], ) } - #[doc = " The set of registrars. Not expected to get very big as can only be added through a"] #[doc = " special origin (likely a council motion)."] #[doc = ""] @@ -23371,80 +23494,104 @@ pub mod api { pub fn basic_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Identity", "BasicDeposit", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Identity", + "BasicDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } - #[doc = " The amount held on deposit per additional field for a registered identity."] pub fn field_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Identity", "FieldDeposit", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Identity", + "FieldDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } - #[doc = " The amount held on deposit for a registered subaccount. This should account for the fact"] #[doc = " that one storage item's value will increase by the size of an account ID, and there will"] #[doc = " be another trie item whose value is the size of an account ID plus 32 bytes."] pub fn sub_account_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Identity", "SubAccountDeposit", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Identity", + "SubAccountDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } - #[doc = " The maximum number of sub-accounts allowed per identified account."] pub fn max_sub_accounts( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Identity", "MaxSubAccounts", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Identity", + "MaxSubAccounts", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O"] #[doc = " required to access an identity, but can be pretty high."] pub fn max_additional_fields( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Identity", "MaxAdditionalFields", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Identity", + "MaxAdditionalFields", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } - #[doc = " Maxmimum number of registrars allowed in the system. Needed to bound the complexity"] #[doc = " of, e.g., updating judgements."] pub fn max_registrars( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Identity", "MaxRegistrars", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Identity", + "MaxRegistrars", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } } pub mod mandate { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_mandate::pallet::Call; pub mod calls { - use super::{root_mod, runtime_types}; + use super::root_mod; + use super::runtime_types; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -23465,8 +23612,8 @@ pub mod api { pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for Mandate { - const CALL: &'static str = "mandate"; const PALLET: &'static str = "Mandate"; + const CALL: &'static str = "mandate"; } } pub struct TransactionApi; @@ -23513,8 +23660,8 @@ pub mod api { pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for RootOp { - const EVENT: &'static str = "RootOp"; const PALLET: &'static str = "Mandate"; + const EVENT: &'static str = "RootOp"; } } } diff --git a/avail-subxt/src/e2e.rs b/avail-subxt/src/e2e.rs index 193253704..689c0f23d 100644 --- a/avail-subxt/src/e2e.rs +++ b/avail-subxt/src/e2e.rs @@ -1,5 +1,3 @@ -#![feature(async_closure)] - use std::{process::Stdio, str, time::Duration}; use anyhow::{anyhow, ensure, Result}; diff --git a/pallets/system/src/lib.rs b/pallets/system/src/lib.rs index 976b59e74..8862100aa 100644 --- a/pallets/system/src/lib.rs +++ b/pallets/system/src/lib.rs @@ -63,7 +63,6 @@ //! extensions included in a chain. #![cfg_attr(not(feature = "std"), no_std)] -#![feature(result_option_inspect)] use avail_core::{ header::HeaderExtension, @@ -192,15 +191,23 @@ pub trait ConsumerLimits { } impl ConsumerLimits for ConstU32 { - fn max_consumers() -> RefCount { Z } + fn max_consumers() -> RefCount { + Z + } - fn max_overflow() -> RefCount { Z } + fn max_overflow() -> RefCount { + Z + } } impl, MaxOverflow: Get> ConsumerLimits for (MaxNormal, MaxOverflow) { - fn max_consumers() -> RefCount { MaxNormal::get() } + fn max_consumers() -> RefCount { + MaxNormal::get() + } - fn max_overflow() -> RefCount { MaxOverflow::get() } + fn max_overflow() -> RefCount { + MaxOverflow::get() + } } #[derive(Clone, Encode, Decode, TypeInfo, MaxEncodedLen)] pub struct ExtrinsicLen { @@ -732,7 +739,9 @@ pub enum Phase { } impl Default for Phase { - fn default() -> Self { Self::Initialization } + fn default() -> Self { + Self::Initialization + } } /// Record of an event happening. @@ -825,7 +834,9 @@ impl, O>> + From>, Acco } #[cfg(feature = "runtime-benchmarks")] - fn try_successful_origin() -> Result { Ok(O::from(RawOrigin::Root)) } + fn try_successful_origin() -> Result { + Ok(O::from(RawOrigin::Root)) + } } impl_ensure_origin_with_arg_ignoring_arg! { @@ -854,7 +865,9 @@ impl< } #[cfg(feature = "runtime-benchmarks")] - fn try_successful_origin() -> Result { Ok(O::from(RawOrigin::Root)) } + fn try_successful_origin() -> Result { + Ok(O::from(RawOrigin::Root)) + } } impl_ensure_origin_with_arg_ignoring_arg! { @@ -882,7 +895,9 @@ impl< } #[cfg(feature = "runtime-benchmarks")] - fn try_successful_origin() -> Result { Ensure::try_successful_origin() } + fn try_successful_origin() -> Result { + Ensure::try_successful_origin() + } } impl_ensure_origin_with_arg_ignoring_arg! { @@ -964,7 +979,9 @@ impl, O>> + From>, Acco } #[cfg(feature = "runtime-benchmarks")] - fn try_successful_origin() -> Result { Ok(O::from(RawOrigin::None)) } + fn try_successful_origin() -> Result { + Ok(O::from(RawOrigin::None)) + } } impl_ensure_origin_with_arg_ignoring_arg! { @@ -978,10 +995,14 @@ pub struct EnsureNever(sp_std::marker::PhantomData); impl EnsureOrigin for EnsureNever { type Success = Success; - fn try_origin(o: O) -> Result { Err(o) } + fn try_origin(o: O) -> Result { + Err(o) + } #[cfg(feature = "runtime-benchmarks")] - fn try_successful_origin() -> Result { Err(()) } + fn try_successful_origin() -> Result { + Err(()) + } } impl_ensure_origin_with_arg_ignoring_arg! { @@ -1066,7 +1087,9 @@ pub enum DecRefStatus { } impl Pallet { - pub fn account_exists(who: &T::AccountId) -> bool { Account::::contains_key(who) } + pub fn account_exists(who: &T::AccountId) -> bool { + Account::::contains_key(who) + } /// Write code to the storage and emit related events and digest items. /// @@ -1082,20 +1105,28 @@ impl Pallet { /// Increment the reference counter on an account. #[deprecated = "Use `inc_consumers` instead"] - pub fn inc_ref(who: &T::AccountId) { let _ = Self::inc_consumers(who); } + pub fn inc_ref(who: &T::AccountId) { + let _ = Self::inc_consumers(who); + } /// Decrement the reference counter on an account. This *MUST* only be done once for every time /// you called `inc_consumers` on `who`. #[deprecated = "Use `dec_consumers` instead"] - pub fn dec_ref(who: &T::AccountId) { Self::dec_consumers(who); } + pub fn dec_ref(who: &T::AccountId) { + Self::dec_consumers(who); + } /// The number of outstanding references for the account `who`. #[deprecated = "Use `consumers` instead"] - pub fn refs(who: &T::AccountId) -> RefCount { Self::consumers(who) } + pub fn refs(who: &T::AccountId) -> RefCount { + Self::consumers(who) + } /// True if the account has no outstanding references. #[deprecated = "Use `!is_provider_required` instead"] - pub fn allow_death(who: &T::AccountId) -> bool { !Self::is_provider_required(who) } + pub fn allow_death(who: &T::AccountId) -> bool { + !Self::is_provider_required(who) + } /// Increment the provider reference counter on an account. pub fn inc_providers(who: &T::AccountId) -> IncRefStatus { @@ -1205,10 +1236,14 @@ impl Pallet { } /// The number of outstanding provider references for the account `who`. - pub fn providers(who: &T::AccountId) -> RefCount { Account::::get(who).providers } + pub fn providers(who: &T::AccountId) -> RefCount { + Account::::get(who).providers + } /// The number of outstanding sufficient references for the account `who`. - pub fn sufficients(who: &T::AccountId) -> RefCount { Account::::get(who).sufficients } + pub fn sufficients(who: &T::AccountId) -> RefCount { + Account::::get(who).sufficients + } /// The number of outstanding provider and sufficient references for the account `who`. pub fn reference_count(who: &T::AccountId) -> RefCount { @@ -1265,7 +1300,9 @@ impl Pallet { } /// The number of outstanding references for the account `who`. - pub fn consumers(who: &T::AccountId) -> RefCount { Account::::get(who).consumers } + pub fn consumers(who: &T::AccountId) -> RefCount { + Account::::get(who).consumers + } /// True if the account has some outstanding consumer references. pub fn is_provider_required(who: &T::AccountId) -> bool { @@ -1290,7 +1327,9 @@ impl Pallet { /// True if the account has at least one provider reference and fewer consumer references than /// the maximum. - pub fn can_inc_consumer(who: &T::AccountId) -> bool { Self::can_accrue_consumers(who, 1) } + pub fn can_inc_consumer(who: &T::AccountId) -> bool { + Self::can_accrue_consumers(who, 1) + } /// Deposits an event into this block's event record. /// @@ -1346,10 +1385,14 @@ impl Pallet { } /// Gets extrinsics count. - pub fn extrinsic_count() -> u32 { ExtrinsicCount::::get().unwrap_or_default() } + pub fn extrinsic_count() -> u32 { + ExtrinsicCount::::get().unwrap_or_default() + } /// Returns all extrinsics len in raw. - pub fn all_extrinsics_len() -> u32 { AllExtrinsicsLen::::get().unwrap_or_default().raw } + pub fn all_extrinsics_len() -> u32 { + AllExtrinsicsLen::::get().unwrap_or_default().raw + } /// Returns all extrinsics len with padding. pub fn all_padded_extrinsics_len() -> u32 { @@ -1481,15 +1524,14 @@ impl Pallet { let app_extrinsics = opaques .iter() .filter_map(|opaque| { - T::UncheckedExtrinsic::try_from(opaque) - .inspect_err(|e| { - log::error!( - target: LOG_TARGET, - "Opaque extrinsic cannot be decoded as UncheckedExtrinsic: {e:?}" - ) - }) - .map(T::UncheckedExtrinsic::into) - .ok() + let res = T::UncheckedExtrinsic::try_from(opaque); + if let Err(e) = res.as_ref() { + log::error!( + target: LOG_TARGET, + "Opaque extrinsic cannot be decoded as UncheckedExtrinsic: {e:?}" + ) + } + res.map(T::UncheckedExtrinsic::into).ok() }) .collect::>(); @@ -1532,7 +1574,9 @@ impl Pallet { /// - `O(1)` /// - 1 storage write (codec `O(1)`) /// # - pub fn deposit_log(item: generic::DigestItem) { >::append(item); } + pub fn deposit_log(item: generic::DigestItem) { + >::append(item); + } /// Get the basic externalities for this pallet, useful for tests. #[cfg(any(feature = "std", test))] @@ -1587,7 +1631,9 @@ impl Pallet { /// Set the block number to something in particular. Can be used as an alternative to /// `initialize` for tests that don't need to bother with the other environment entries. #[cfg(any(feature = "std", feature = "runtime-benchmarks", test))] - pub fn set_block_number(n: BlockNumberFor) { >::put(n); } + pub fn set_block_number(n: BlockNumberFor) { + >::put(n); + } /// Sets the index of extrinsic that is currently executing. #[cfg(any(feature = "std", test))] @@ -1598,7 +1644,9 @@ impl Pallet { /// Set the parent hash number to something in particular. Can be used as an alternative to /// `initialize` for tests that don't need to bother with the other environment entries. #[cfg(any(feature = "std", test))] - pub fn set_parent_hash(n: T::Hash) { >::put(n); } + pub fn set_parent_hash(n: T::Hash) { + >::put(n); + } /// Set the current block weight. This should only be used in some integration tests. #[cfg(any(feature = "std", test))] @@ -1655,7 +1703,9 @@ impl Pallet { } /// Return the chain's current runtime version. - pub fn runtime_version() -> RuntimeVersion { T::Version::get() } + pub fn runtime_version() -> RuntimeVersion { + T::Version::get() + } /// Retrieve the account transaction counter from storage. pub fn account_nonce(who: impl EncodeLike) -> T::Nonce { @@ -1720,7 +1770,9 @@ impl Pallet { /// To be called immediately after finishing the initialization of the block /// (e.g., called `on_initialize` for all pallets). - pub fn note_finished_initialize() { ExecutionPhase::::put(Phase::ApplyExtrinsic(0)) } + pub fn note_finished_initialize() { + ExecutionPhase::::put(Phase::ApplyExtrinsic(0)) + } /// An account is being created. pub fn on_created_account(who: T::AccountId, _a: &mut AccountInfo) { @@ -1816,7 +1868,9 @@ impl HandleLifetime for SelfSufficient { /// Event handler which registers a consumer when created. pub struct Consumer(PhantomData); impl HandleLifetime for Consumer { - fn created(t: &T::AccountId) -> Result<(), DispatchError> { Pallet::::inc_consumers(t) } + fn created(t: &T::AccountId) -> Result<(), DispatchError> { + Pallet::::inc_consumers(t) + } fn killed(t: &T::AccountId) -> Result<(), DispatchError> { Pallet::::dec_consumers(t); @@ -1827,7 +1881,9 @@ impl HandleLifetime for Consumer { impl BlockNumberProvider for Pallet { type BlockNumber = BlockNumberFor; - fn current_block_number() -> Self::BlockNumber { Pallet::::block_number() } + fn current_block_number() -> Self::BlockNumber { + Pallet::::block_number() + } } /// Implement StoredMap for a simple single-item, provide-when-not-default system. This works fine @@ -1836,7 +1892,9 @@ impl BlockNumberProvider for Pallet { /// /// Anything more complex will need more sophisticated logic. impl StoredMap for Pallet { - fn get(k: &T::AccountId) -> T::AccountData { Account::::get(k).data } + fn get(k: &T::AccountId) -> T::AccountData { + Account::::get(k).data + } fn try_mutate_exists>( k: &T::AccountId, @@ -1871,7 +1929,9 @@ pub fn split_inner( pub struct ChainContext(PhantomData); impl Default for ChainContext { - fn default() -> Self { ChainContext(PhantomData) } + fn default() -> Self { + ChainContext(PhantomData) + } } impl Lookup for ChainContext { diff --git a/pallets/system/src/submitted_data.rs b/pallets/system/src/submitted_data.rs index 4d94b722f..274800c02 100644 --- a/pallets/system/src/submitted_data.rs +++ b/pallets/system/src/submitted_data.rs @@ -23,7 +23,9 @@ pub type RcMetrics = Rc>; impl Metrics { /// Creates a shared metric with internal mutability. - fn new_shared() -> RcMetrics { Rc::new(RefCell::new(Self::default())) } + fn new_shared() -> RcMetrics { + Rc::new(RefCell::new(Self::default())) + } } /// Extracts the `data` field from some types of extrinsics. @@ -43,7 +45,9 @@ pub trait Extractor { impl Extractor for () { type Error = (); - fn extract(_: &OpaqueExtrinsic, _: RcMetrics) -> Result>, ()> { Ok(vec![]) } + fn extract(_: &OpaqueExtrinsic, _: RcMetrics) -> Result>, ()> { + Ok(vec![]) + } } /// It is similar to `Extractor` but it uses `C` type for calls, instead of `AppExtrinsic`. @@ -57,9 +61,13 @@ pub trait Filter { #[cfg(any(feature = "std", test))] impl Filter for () { - fn filter(_: C, _: RcMetrics) -> Vec> { vec![] } + fn filter(_: C, _: RcMetrics) -> Vec> { + vec![] + } - fn process_calls(_: Vec, _: &RcMetrics) -> Vec> { vec![] } + fn process_calls(_: Vec, _: &RcMetrics) -> Vec> { + vec![] + } } fn extract_and_inspect(opaque: &OpaqueExtrinsic, metrics: RcMetrics) -> Vec> @@ -67,8 +75,11 @@ where E: Extractor, E::Error: Debug, { - E::extract(opaque, metrics) - .inspect_err(|e| log::error!("Extractor cannot decode opaque: {e:?}")) + let extracted = E::extract(opaque, metrics); + if let Err(e) = extracted.as_ref() { + log::error!("Extractor cannot decode opaque: {e:?}"); + } + extracted .unwrap_or_default() .into_iter() .filter(|data| !data.is_empty()) @@ -133,7 +144,9 @@ where impl Hasher for Keccak256Algorithm { type Hash = [u8; 32]; - fn hash(data: &[u8]) -> [u8; 32] { sp_io::hashing::keccak_256(data).into() } + fn hash(data: &[u8]) -> [u8; 32] { + sp_io::hashing::keccak_256(data).into() + } } let mut tree = MerkleTree::::new(); @@ -295,7 +308,9 @@ mod test { } } - fn process_calls(_: Vec, _: &RcMetrics) -> Vec> { vec![] } + fn process_calls(_: Vec, _: &RcMetrics) -> Vec> { + vec![] + } } #[test] @@ -538,10 +553,13 @@ mod test { let data_tree = MerkleTree::::from_leaves(&leaves); let proof = data_tree.proof(&[1usize]); let root_proof = proof.proof_hashes().to_vec(); - assert_eq!(root_proof, vec![ - hex!("754B9412E0ED7907BDF4B7CA5D2A22F5E129A03DEB1F4E1C1FE42D322FDEE90E"), - hex!("8D6E30E494D17D7675A94C3C614467FF8CCE35201C1056751A6E9A100515DAF9"), - ]); + assert_eq!( + root_proof, + vec![ + hex!("754B9412E0ED7907BDF4B7CA5D2A22F5E129A03DEB1F4E1C1FE42D322FDEE90E"), + hex!("8D6E30E494D17D7675A94C3C614467FF8CCE35201C1056751A6E9A100515DAF9"), + ] + ); } #[test] diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 684e0c3c3..cdf7c3772 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -21,7 +21,6 @@ #![cfg_attr(not(feature = "std"), no_std)] // `construct_runtime!` does a lot of recursion and requires us to increase the limit to 512. #![recursion_limit = "512"] -#![feature(result_option_inspect)] #![allow(macro_expanded_macro_exports_accessed_by_absolute_paths)] mod weights; @@ -606,11 +605,15 @@ parameter_types! { use sp_runtime::traits::Convert; pub struct BalanceToU256; impl Convert for BalanceToU256 { - fn convert(balance: Balance) -> sp_core::U256 { sp_core::U256::from(balance) } + fn convert(balance: Balance) -> sp_core::U256 { + sp_core::U256::from(balance) + } } pub struct U256ToBalance; impl Convert for U256ToBalance { - fn convert(n: sp_core::U256) -> Balance { n.try_into().unwrap_or(Balance::max_value()) } + fn convert(n: sp_core::U256) -> Balance { + n.try_into().unwrap_or(Balance::max_value()) + } } impl pallet_nomination_pools::Config for Runtime { diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 6de056c46..5d7d273a9 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,5 +1,5 @@ [toolchain] -channel = "nightly-2023-05-22" +channel = "stable-2023-08-24" components = ["rustfmt", "clippy", "llvm-tools-preview"] profile = "minimal" targets = ["wasm32-unknown-unknown"] From 568a08fa65b0f03f291affe9c28abf9a1c106185 Mon Sep 17 00:00:00 2001 From: Toufeeq Pasha Date: Mon, 11 Sep 2023 16:20:53 +0530 Subject: [PATCH 56/58] fmt --- avail-subxt/src/api_dev.rs | 3523 ++++++++++++-------------- pallets/system/src/lib.rs | 124 +- pallets/system/src/submitted_data.rs | 35 +- runtime/src/lib.rs | 8 +- 4 files changed, 1731 insertions(+), 1959 deletions(-) diff --git a/avail-subxt/src/api_dev.rs b/avail-subxt/src/api_dev.rs index 357e42da5..9ad5ea030 100644 --- a/avail-subxt/src/api_dev.rs +++ b/avail-subxt/src/api_dev.rs @@ -919,312 +919,320 @@ pub mod api { .into()) } } - pub fn constants() -> ConstantsApi { - ConstantsApi - } - pub fn storage() -> StorageApi { - StorageApi - } - pub fn tx() -> TransactionApi { - TransactionApi - } - pub fn apis() -> runtime_apis::RuntimeApi { - runtime_apis::RuntimeApi - } + pub fn constants() -> ConstantsApi { ConstantsApi } + pub fn storage() -> StorageApi { StorageApi } + pub fn tx() -> TransactionApi { TransactionApi } + pub fn apis() -> runtime_apis::RuntimeApi { runtime_apis::RuntimeApi } pub mod runtime_apis { - use super::root_mod; - use super::runtime_types; use ::subxt::ext::codec::Encode; + + use super::{root_mod, runtime_types}; pub struct RuntimeApi; impl RuntimeApi {} } pub struct ConstantsApi; impl ConstantsApi { - pub fn system(&self) -> system::constants::ConstantsApi { - system::constants::ConstantsApi - } + pub fn system(&self) -> system::constants::ConstantsApi { system::constants::ConstantsApi } + pub fn utility(&self) -> utility::constants::ConstantsApi { utility::constants::ConstantsApi } - pub fn babe(&self) -> babe::constants::ConstantsApi { - babe::constants::ConstantsApi - } + + pub fn babe(&self) -> babe::constants::ConstantsApi { babe::constants::ConstantsApi } + pub fn timestamp(&self) -> timestamp::constants::ConstantsApi { timestamp::constants::ConstantsApi } + pub fn indices(&self) -> indices::constants::ConstantsApi { indices::constants::ConstantsApi } + pub fn balances(&self) -> balances::constants::ConstantsApi { balances::constants::ConstantsApi } + pub fn transaction_payment(&self) -> transaction_payment::constants::ConstantsApi { transaction_payment::constants::ConstantsApi } + pub fn election_provider_multi_phase( &self, ) -> election_provider_multi_phase::constants::ConstantsApi { election_provider_multi_phase::constants::ConstantsApi } + pub fn staking(&self) -> staking::constants::ConstantsApi { staking::constants::ConstantsApi } + pub fn democracy(&self) -> democracy::constants::ConstantsApi { democracy::constants::ConstantsApi } + pub fn council(&self) -> council::constants::ConstantsApi { council::constants::ConstantsApi } + pub fn technical_committee(&self) -> technical_committee::constants::ConstantsApi { technical_committee::constants::ConstantsApi } + pub fn elections(&self) -> elections::constants::ConstantsApi { elections::constants::ConstantsApi } + pub fn grandpa(&self) -> grandpa::constants::ConstantsApi { grandpa::constants::ConstantsApi } + pub fn treasury(&self) -> treasury::constants::ConstantsApi { treasury::constants::ConstantsApi } + pub fn im_online(&self) -> im_online::constants::ConstantsApi { im_online::constants::ConstantsApi } + pub fn scheduler(&self) -> scheduler::constants::ConstantsApi { scheduler::constants::ConstantsApi } + pub fn bounties(&self) -> bounties::constants::ConstantsApi { bounties::constants::ConstantsApi } - pub fn tips(&self) -> tips::constants::ConstantsApi { - tips::constants::ConstantsApi - } + + pub fn tips(&self) -> tips::constants::ConstantsApi { tips::constants::ConstantsApi } + pub fn data_availability(&self) -> data_availability::constants::ConstantsApi { data_availability::constants::ConstantsApi } + pub fn nomad_home(&self) -> nomad_home::constants::ConstantsApi { nomad_home::constants::ConstantsApi } + pub fn nomad_da_bridge(&self) -> nomad_da_bridge::constants::ConstantsApi { nomad_da_bridge::constants::ConstantsApi } + pub fn multisig(&self) -> multisig::constants::ConstantsApi { multisig::constants::ConstantsApi } + pub fn voter_list(&self) -> voter_list::constants::ConstantsApi { voter_list::constants::ConstantsApi } + pub fn nomination_pools(&self) -> nomination_pools::constants::ConstantsApi { nomination_pools::constants::ConstantsApi } + pub fn identity(&self) -> identity::constants::ConstantsApi { identity::constants::ConstantsApi } } pub struct StorageApi; impl StorageApi { - pub fn system(&self) -> system::storage::StorageApi { - system::storage::StorageApi - } - pub fn babe(&self) -> babe::storage::StorageApi { - babe::storage::StorageApi - } - pub fn timestamp(&self) -> timestamp::storage::StorageApi { - timestamp::storage::StorageApi - } + pub fn system(&self) -> system::storage::StorageApi { system::storage::StorageApi } + + pub fn babe(&self) -> babe::storage::StorageApi { babe::storage::StorageApi } + + pub fn timestamp(&self) -> timestamp::storage::StorageApi { timestamp::storage::StorageApi } + pub fn authorship(&self) -> authorship::storage::StorageApi { authorship::storage::StorageApi } - pub fn indices(&self) -> indices::storage::StorageApi { - indices::storage::StorageApi - } - pub fn balances(&self) -> balances::storage::StorageApi { - balances::storage::StorageApi - } + + pub fn indices(&self) -> indices::storage::StorageApi { indices::storage::StorageApi } + + pub fn balances(&self) -> balances::storage::StorageApi { balances::storage::StorageApi } + pub fn transaction_payment(&self) -> transaction_payment::storage::StorageApi { transaction_payment::storage::StorageApi } + pub fn election_provider_multi_phase( &self, ) -> election_provider_multi_phase::storage::StorageApi { election_provider_multi_phase::storage::StorageApi } - pub fn staking(&self) -> staking::storage::StorageApi { - staking::storage::StorageApi - } - pub fn session(&self) -> session::storage::StorageApi { - session::storage::StorageApi - } - pub fn democracy(&self) -> democracy::storage::StorageApi { - democracy::storage::StorageApi - } - pub fn council(&self) -> council::storage::StorageApi { - council::storage::StorageApi - } + + pub fn staking(&self) -> staking::storage::StorageApi { staking::storage::StorageApi } + + pub fn session(&self) -> session::storage::StorageApi { session::storage::StorageApi } + + pub fn democracy(&self) -> democracy::storage::StorageApi { democracy::storage::StorageApi } + + pub fn council(&self) -> council::storage::StorageApi { council::storage::StorageApi } + pub fn technical_committee(&self) -> technical_committee::storage::StorageApi { technical_committee::storage::StorageApi } - pub fn elections(&self) -> elections::storage::StorageApi { - elections::storage::StorageApi - } + + pub fn elections(&self) -> elections::storage::StorageApi { elections::storage::StorageApi } + pub fn technical_membership(&self) -> technical_membership::storage::StorageApi { technical_membership::storage::StorageApi } - pub fn grandpa(&self) -> grandpa::storage::StorageApi { - grandpa::storage::StorageApi - } - pub fn treasury(&self) -> treasury::storage::StorageApi { - treasury::storage::StorageApi - } - pub fn sudo(&self) -> sudo::storage::StorageApi { - sudo::storage::StorageApi - } - pub fn im_online(&self) -> im_online::storage::StorageApi { - im_online::storage::StorageApi - } + + pub fn grandpa(&self) -> grandpa::storage::StorageApi { grandpa::storage::StorageApi } + + pub fn treasury(&self) -> treasury::storage::StorageApi { treasury::storage::StorageApi } + + pub fn sudo(&self) -> sudo::storage::StorageApi { sudo::storage::StorageApi } + + pub fn im_online(&self) -> im_online::storage::StorageApi { im_online::storage::StorageApi } + pub fn authority_discovery(&self) -> authority_discovery::storage::StorageApi { authority_discovery::storage::StorageApi } - pub fn offences(&self) -> offences::storage::StorageApi { - offences::storage::StorageApi - } + + pub fn offences(&self) -> offences::storage::StorageApi { offences::storage::StorageApi } + pub fn historical(&self) -> historical::storage::StorageApi { historical::storage::StorageApi } - pub fn scheduler(&self) -> scheduler::storage::StorageApi { - scheduler::storage::StorageApi - } - pub fn bounties(&self) -> bounties::storage::StorageApi { - bounties::storage::StorageApi - } - pub fn tips(&self) -> tips::storage::StorageApi { - tips::storage::StorageApi - } - pub fn mmr(&self) -> mmr::storage::StorageApi { - mmr::storage::StorageApi - } + + pub fn scheduler(&self) -> scheduler::storage::StorageApi { scheduler::storage::StorageApi } + + pub fn bounties(&self) -> bounties::storage::StorageApi { bounties::storage::StorageApi } + + pub fn tips(&self) -> tips::storage::StorageApi { tips::storage::StorageApi } + + pub fn mmr(&self) -> mmr::storage::StorageApi { mmr::storage::StorageApi } + pub fn data_availability(&self) -> data_availability::storage::StorageApi { data_availability::storage::StorageApi } + pub fn nomad_updater_manager(&self) -> nomad_updater_manager::storage::StorageApi { nomad_updater_manager::storage::StorageApi } + pub fn nomad_home(&self) -> nomad_home::storage::StorageApi { nomad_home::storage::StorageApi } - pub fn preimage(&self) -> preimage::storage::StorageApi { - preimage::storage::StorageApi - } - pub fn multisig(&self) -> multisig::storage::StorageApi { - multisig::storage::StorageApi - } + + pub fn preimage(&self) -> preimage::storage::StorageApi { preimage::storage::StorageApi } + + pub fn multisig(&self) -> multisig::storage::StorageApi { multisig::storage::StorageApi } + pub fn voter_list(&self) -> voter_list::storage::StorageApi { voter_list::storage::StorageApi } + pub fn nomination_pools(&self) -> nomination_pools::storage::StorageApi { nomination_pools::storage::StorageApi } - pub fn identity(&self) -> identity::storage::StorageApi { - identity::storage::StorageApi - } + + pub fn identity(&self) -> identity::storage::StorageApi { identity::storage::StorageApi } } pub struct TransactionApi; impl TransactionApi { - pub fn system(&self) -> system::calls::TransactionApi { - system::calls::TransactionApi - } - pub fn utility(&self) -> utility::calls::TransactionApi { - utility::calls::TransactionApi - } - pub fn babe(&self) -> babe::calls::TransactionApi { - babe::calls::TransactionApi - } + pub fn system(&self) -> system::calls::TransactionApi { system::calls::TransactionApi } + + pub fn utility(&self) -> utility::calls::TransactionApi { utility::calls::TransactionApi } + + pub fn babe(&self) -> babe::calls::TransactionApi { babe::calls::TransactionApi } + pub fn timestamp(&self) -> timestamp::calls::TransactionApi { timestamp::calls::TransactionApi } - pub fn indices(&self) -> indices::calls::TransactionApi { - indices::calls::TransactionApi - } + + pub fn indices(&self) -> indices::calls::TransactionApi { indices::calls::TransactionApi } + pub fn balances(&self) -> balances::calls::TransactionApi { balances::calls::TransactionApi } + pub fn election_provider_multi_phase( &self, ) -> election_provider_multi_phase::calls::TransactionApi { election_provider_multi_phase::calls::TransactionApi } - pub fn staking(&self) -> staking::calls::TransactionApi { - staking::calls::TransactionApi - } - pub fn session(&self) -> session::calls::TransactionApi { - session::calls::TransactionApi - } + + pub fn staking(&self) -> staking::calls::TransactionApi { staking::calls::TransactionApi } + + pub fn session(&self) -> session::calls::TransactionApi { session::calls::TransactionApi } + pub fn democracy(&self) -> democracy::calls::TransactionApi { democracy::calls::TransactionApi } - pub fn council(&self) -> council::calls::TransactionApi { - council::calls::TransactionApi - } + + pub fn council(&self) -> council::calls::TransactionApi { council::calls::TransactionApi } + pub fn technical_committee(&self) -> technical_committee::calls::TransactionApi { technical_committee::calls::TransactionApi } + pub fn elections(&self) -> elections::calls::TransactionApi { elections::calls::TransactionApi } + pub fn technical_membership(&self) -> technical_membership::calls::TransactionApi { technical_membership::calls::TransactionApi } - pub fn grandpa(&self) -> grandpa::calls::TransactionApi { - grandpa::calls::TransactionApi - } + + pub fn grandpa(&self) -> grandpa::calls::TransactionApi { grandpa::calls::TransactionApi } + pub fn treasury(&self) -> treasury::calls::TransactionApi { treasury::calls::TransactionApi } - pub fn sudo(&self) -> sudo::calls::TransactionApi { - sudo::calls::TransactionApi - } + + pub fn sudo(&self) -> sudo::calls::TransactionApi { sudo::calls::TransactionApi } + pub fn im_online(&self) -> im_online::calls::TransactionApi { im_online::calls::TransactionApi } + pub fn scheduler(&self) -> scheduler::calls::TransactionApi { scheduler::calls::TransactionApi } + pub fn bounties(&self) -> bounties::calls::TransactionApi { bounties::calls::TransactionApi } - pub fn tips(&self) -> tips::calls::TransactionApi { - tips::calls::TransactionApi - } + + pub fn tips(&self) -> tips::calls::TransactionApi { tips::calls::TransactionApi } + pub fn data_availability(&self) -> data_availability::calls::TransactionApi { data_availability::calls::TransactionApi } + pub fn nomad_updater_manager(&self) -> nomad_updater_manager::calls::TransactionApi { nomad_updater_manager::calls::TransactionApi } + pub fn nomad_home(&self) -> nomad_home::calls::TransactionApi { nomad_home::calls::TransactionApi } + pub fn nomad_da_bridge(&self) -> nomad_da_bridge::calls::TransactionApi { nomad_da_bridge::calls::TransactionApi } + pub fn preimage(&self) -> preimage::calls::TransactionApi { preimage::calls::TransactionApi } + pub fn multisig(&self) -> multisig::calls::TransactionApi { multisig::calls::TransactionApi } + pub fn voter_list(&self) -> voter_list::calls::TransactionApi { voter_list::calls::TransactionApi } + pub fn nomination_pools(&self) -> nomination_pools::calls::TransactionApi { nomination_pools::calls::TransactionApi } + pub fn identity(&self) -> identity::calls::TransactionApi { identity::calls::TransactionApi } - pub fn mandate(&self) -> mandate::calls::TransactionApi { - mandate::calls::TransactionApi - } + + pub fn mandate(&self) -> mandate::calls::TransactionApi { mandate::calls::TransactionApi } } #[doc = r" check whether the Client you are using is aligned with the statically generated codegen."] pub fn validate_codegen>( @@ -1247,15 +1255,13 @@ pub mod api { } } pub mod system { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "Error for the System pallet"] pub type Error = runtime_types::frame_system::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::frame_system::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -1276,8 +1282,8 @@ pub mod api { pub remark: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for Remark { - const PALLET: &'static str = "System"; const CALL: &'static str = "remark"; + const PALLET: &'static str = "System"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -1297,8 +1303,8 @@ pub mod api { pub pages: ::core::primitive::u64, } impl ::subxt::blocks::StaticExtrinsic for SetHeapPages { - const PALLET: &'static str = "System"; const CALL: &'static str = "set_heap_pages"; + const PALLET: &'static str = "System"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1317,8 +1323,8 @@ pub mod api { pub code: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for SetCode { - const PALLET: &'static str = "System"; const CALL: &'static str = "set_code"; + const PALLET: &'static str = "System"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1337,8 +1343,8 @@ pub mod api { pub code: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for SetCodeWithoutChecks { - const PALLET: &'static str = "System"; const CALL: &'static str = "set_code_without_checks"; + const PALLET: &'static str = "System"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1360,8 +1366,8 @@ pub mod api { )>, } impl ::subxt::blocks::StaticExtrinsic for SetStorage { - const PALLET: &'static str = "System"; const CALL: &'static str = "set_storage"; + const PALLET: &'static str = "System"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1380,8 +1386,8 @@ pub mod api { pub keys: ::std::vec::Vec<::std::vec::Vec<::core::primitive::u8>>, } impl ::subxt::blocks::StaticExtrinsic for KillStorage { - const PALLET: &'static str = "System"; const CALL: &'static str = "kill_storage"; + const PALLET: &'static str = "System"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1401,8 +1407,8 @@ pub mod api { pub subkeys: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for KillPrefix { - const PALLET: &'static str = "System"; const CALL: &'static str = "kill_prefix"; + const PALLET: &'static str = "System"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1421,8 +1427,8 @@ pub mod api { pub remark: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for RemarkWithEvent { - const PALLET: &'static str = "System"; const CALL: &'static str = "remark_with_event"; + const PALLET: &'static str = "System"; } } pub struct TransactionApi; @@ -1444,6 +1450,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_heap_pages`]."] pub fn set_heap_pages( &self, @@ -1461,6 +1468,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_code`]."] pub fn set_code( &self, @@ -1477,6 +1485,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_code_without_checks`]."] pub fn set_code_without_checks( &self, @@ -1494,6 +1503,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_storage`]."] pub fn set_storage( &self, @@ -1513,6 +1523,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::kill_storage`]."] pub fn kill_storage( &self, @@ -1530,6 +1541,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::kill_prefix`]."] pub fn kill_prefix( &self, @@ -1548,6 +1560,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::remark_with_event`]."] pub fn remark_with_event( &self, @@ -1588,8 +1601,8 @@ pub mod api { pub dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, } impl ::subxt::events::StaticEvent for ExtrinsicSuccess { - const PALLET: &'static str = "System"; const EVENT: &'static str = "ExtrinsicSuccess"; + const PALLET: &'static str = "System"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1610,8 +1623,8 @@ pub mod api { pub dispatch_info: runtime_types::frame_support::dispatch::DispatchInfo, } impl ::subxt::events::StaticEvent for ExtrinsicFailed { - const PALLET: &'static str = "System"; const EVENT: &'static str = "ExtrinsicFailed"; + const PALLET: &'static str = "System"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1629,8 +1642,8 @@ pub mod api { #[doc = "`:code` was updated."] pub struct CodeUpdated; impl ::subxt::events::StaticEvent for CodeUpdated { - const PALLET: &'static str = "System"; const EVENT: &'static str = "CodeUpdated"; + const PALLET: &'static str = "System"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1650,8 +1663,8 @@ pub mod api { pub account: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for NewAccount { - const PALLET: &'static str = "System"; const EVENT: &'static str = "NewAccount"; + const PALLET: &'static str = "System"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1671,8 +1684,8 @@ pub mod api { pub account: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for KilledAccount { - const PALLET: &'static str = "System"; const EVENT: &'static str = "KilledAccount"; + const PALLET: &'static str = "System"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1693,8 +1706,8 @@ pub mod api { pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Remarked { - const PALLET: &'static str = "System"; const EVENT: &'static str = "Remarked"; + const PALLET: &'static str = "System"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -1714,8 +1727,8 @@ pub mod api { pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for RemarkedByRoot { - const PALLET: &'static str = "System"; const EVENT: &'static str = "RemarkedByRoot"; + const PALLET: &'static str = "System"; } } pub mod storage { @@ -1749,6 +1762,7 @@ pub mod api { ], ) } + #[doc = " The full account information for a particular account ID."] pub fn account_root( &self, @@ -1773,6 +1787,7 @@ pub mod api { ], ) } + #[doc = " Total extrinsics count for the current block."] pub fn extrinsic_count( &self, @@ -1795,6 +1810,7 @@ pub mod api { ], ) } + #[doc = " The current weight for the block."] pub fn block_weight( &self, @@ -1819,6 +1835,7 @@ pub mod api { ], ) } + #[doc = " Total length (in bytes) for all extrinsics put together, for the current block."] pub fn all_extrinsics_len( &self, @@ -1841,6 +1858,7 @@ pub mod api { ], ) } + #[doc = " Map of block numbers to block hashes."] pub fn block_hash( &self, @@ -1866,6 +1884,7 @@ pub mod api { ], ) } + #[doc = " Map of block numbers to block hashes."] pub fn block_hash_root( &self, @@ -1888,6 +1907,7 @@ pub mod api { ], ) } + #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] pub fn extrinsic_data( &self, @@ -1912,6 +1932,7 @@ pub mod api { ], ) } + #[doc = " Extrinsics data for the current block (maps an extrinsic's index to its data)."] pub fn extrinsic_data_root( &self, @@ -1933,6 +1954,7 @@ pub mod api { ], ) } + #[doc = " The current block number being processed. Set by `execute_block`."] pub fn number( &self, @@ -1943,17 +1965,13 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static( - "System", - "Number", - vec![], - [ - 30u8, 194u8, 177u8, 90u8, 194u8, 232u8, 46u8, 180u8, 85u8, 129u8, 14u8, - 9u8, 8u8, 8u8, 23u8, 95u8, 230u8, 5u8, 13u8, 105u8, 125u8, 2u8, 22u8, - 200u8, 78u8, 93u8, 115u8, 28u8, 150u8, 113u8, 48u8, 53u8, - ], - ) + ::subxt::storage::address::Address::new_static("System", "Number", vec![], [ + 30u8, 194u8, 177u8, 90u8, 194u8, 232u8, 46u8, 180u8, 85u8, 129u8, 14u8, + 9u8, 8u8, 8u8, 23u8, 95u8, 230u8, 5u8, 13u8, 105u8, 125u8, 2u8, 22u8, + 200u8, 78u8, 93u8, 115u8, 28u8, 150u8, 113u8, 48u8, 53u8, + ]) } + #[doc = " Hash of the previous block."] pub fn parent_hash( &self, @@ -1975,6 +1993,7 @@ pub mod api { ], ) } + #[doc = " Digest of the current block, also part of the block header."] pub fn digest( &self, @@ -1985,18 +2004,13 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static( - "System", - "Digest", - vec![], - [ - 70u8, 156u8, 127u8, 89u8, 115u8, 250u8, 103u8, 62u8, 185u8, 153u8, - 26u8, 72u8, 39u8, 226u8, 181u8, 97u8, 137u8, 225u8, 45u8, 158u8, 212u8, - 254u8, 142u8, 136u8, 90u8, 22u8, 243u8, 125u8, 226u8, 49u8, 235u8, - 215u8, - ], - ) + ::subxt::storage::address::Address::new_static("System", "Digest", vec![], [ + 70u8, 156u8, 127u8, 89u8, 115u8, 250u8, 103u8, 62u8, 185u8, 153u8, 26u8, + 72u8, 39u8, 226u8, 181u8, 97u8, 137u8, 225u8, 45u8, 158u8, 212u8, 254u8, + 142u8, 136u8, 90u8, 22u8, 243u8, 125u8, 226u8, 49u8, 235u8, 215u8, + ]) } + #[doc = " Events deposited for the current block."] #[doc = ""] #[doc = " NOTE: The item is unbound and should therefore never be read on chain."] @@ -2018,18 +2032,13 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static( - "System", - "Events", - vec![], - [ - 135u8, 70u8, 188u8, 138u8, 189u8, 89u8, 46u8, 4u8, 225u8, 244u8, 212u8, - 189u8, 221u8, 105u8, 161u8, 239u8, 176u8, 2u8, 188u8, 39u8, 88u8, - 209u8, 24u8, 183u8, 165u8, 251u8, 104u8, 239u8, 253u8, 88u8, 150u8, - 34u8, - ], - ) + ::subxt::storage::address::Address::new_static("System", "Events", vec![], [ + 135u8, 70u8, 188u8, 138u8, 189u8, 89u8, 46u8, 4u8, 225u8, 244u8, 212u8, + 189u8, 221u8, 105u8, 161u8, 239u8, 176u8, 2u8, 188u8, 39u8, 88u8, 209u8, + 24u8, 183u8, 165u8, 251u8, 104u8, 239u8, 253u8, 88u8, 150u8, 34u8, + ]) } + #[doc = " The number of events in the `Events` list."] pub fn event_count( &self, @@ -2052,6 +2061,7 @@ pub mod api { ], ) } + #[doc = " Mapping between a topic (represented by T::Hash) and a vector of indexes"] #[doc = " of events in the `>` list."] #[doc = ""] @@ -2085,6 +2095,7 @@ pub mod api { ], ) } + #[doc = " Mapping between a topic (represented by T::Hash) and a vector of indexes"] #[doc = " of events in the `>` list."] #[doc = ""] @@ -2115,6 +2126,7 @@ pub mod api { ], ) } + #[doc = " Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened."] pub fn last_runtime_upgrade( &self, @@ -2136,6 +2148,7 @@ pub mod api { ], ) } + #[doc = " True if we have upgraded so that `type RefCount` is `u32`. False (default) if not."] pub fn upgraded_to_u32_ref_count( &self, @@ -2157,6 +2170,7 @@ pub mod api { ], ) } + #[doc = " True if we have upgraded so that AccountInfo contains three types of `RefCount`. False"] #[doc = " (default) if not."] pub fn upgraded_to_triple_ref_count( @@ -2180,6 +2194,7 @@ pub mod api { ], ) } + #[doc = " The execution phase of the block."] pub fn execution_phase( &self, @@ -2201,6 +2216,7 @@ pub mod api { ], ) } + #[doc = " The dynamic block length"] pub fn dynamic_block_length( &self, @@ -2233,103 +2249,80 @@ pub mod api { &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static( - "System", - "BlockWeights", - [ - 238u8, 20u8, 221u8, 11u8, 146u8, 236u8, 47u8, 103u8, 8u8, 239u8, 13u8, - 176u8, 202u8, 10u8, 151u8, 68u8, 110u8, 162u8, 99u8, 40u8, 211u8, - 136u8, 71u8, 82u8, 50u8, 80u8, 244u8, 211u8, 231u8, 198u8, 36u8, 152u8, - ], - ) + ::subxt::constants::Address::new_static("System", "BlockWeights", [ + 238u8, 20u8, 221u8, 11u8, 146u8, 236u8, 47u8, 103u8, 8u8, 239u8, 13u8, + 176u8, 202u8, 10u8, 151u8, 68u8, 110u8, 162u8, 99u8, 40u8, 211u8, 136u8, + 71u8, 82u8, 50u8, 80u8, 244u8, 211u8, 231u8, 198u8, 36u8, 152u8, + ]) } + #[doc = " The maximum length of a block (in bytes)."] pub fn block_length( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static( - "System", - "BlockLength", - [ - 166u8, 7u8, 126u8, 154u8, 133u8, 31u8, 100u8, 149u8, 118u8, 168u8, 1u8, - 21u8, 202u8, 114u8, 104u8, 193u8, 44u8, 97u8, 240u8, 37u8, 177u8, 43u8, - 83u8, 195u8, 176u8, 252u8, 201u8, 229u8, 170u8, 45u8, 136u8, 81u8, - ], - ) + ::subxt::constants::Address::new_static("System", "BlockLength", [ + 166u8, 7u8, 126u8, 154u8, 133u8, 31u8, 100u8, 149u8, 118u8, 168u8, 1u8, + 21u8, 202u8, 114u8, 104u8, 193u8, 44u8, 97u8, 240u8, 37u8, 177u8, 43u8, + 83u8, 195u8, 176u8, 252u8, 201u8, 229u8, 170u8, 45u8, 136u8, 81u8, + ]) } + #[doc = " Maximum number of block number to block hash mappings to keep (oldest pruned first)."] pub fn block_hash_count( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "System", - "BlockHashCount", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("System", "BlockHashCount", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " The weight of runtime database operations the runtime can invoke."] pub fn db_weight( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static( - "System", - "DbWeight", - [ - 206u8, 53u8, 134u8, 247u8, 42u8, 38u8, 197u8, 59u8, 191u8, 83u8, 160u8, - 9u8, 207u8, 133u8, 108u8, 152u8, 150u8, 103u8, 109u8, 228u8, 218u8, - 24u8, 27u8, 210u8, 106u8, 252u8, 74u8, 93u8, 27u8, 63u8, 109u8, 252u8, - ], - ) + ::subxt::constants::Address::new_static("System", "DbWeight", [ + 206u8, 53u8, 134u8, 247u8, 42u8, 38u8, 197u8, 59u8, 191u8, 83u8, 160u8, + 9u8, 207u8, 133u8, 108u8, 152u8, 150u8, 103u8, 109u8, 228u8, 218u8, 24u8, + 27u8, 210u8, 106u8, 252u8, 74u8, 93u8, 27u8, 63u8, 109u8, 252u8, + ]) } + #[doc = " Get the chain's current version."] pub fn version( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static( - "System", - "Version", - [ - 134u8, 0u8, 23u8, 0u8, 199u8, 213u8, 89u8, 240u8, 194u8, 186u8, 239u8, - 157u8, 168u8, 211u8, 223u8, 156u8, 138u8, 140u8, 194u8, 23u8, 167u8, - 158u8, 195u8, 233u8, 25u8, 165u8, 27u8, 237u8, 198u8, 206u8, 233u8, - 28u8, - ], - ) + ::subxt::constants::Address::new_static("System", "Version", [ + 134u8, 0u8, 23u8, 0u8, 199u8, 213u8, 89u8, 240u8, 194u8, 186u8, 239u8, + 157u8, 168u8, 211u8, 223u8, 156u8, 138u8, 140u8, 194u8, 23u8, 167u8, 158u8, + 195u8, 233u8, 25u8, 165u8, 27u8, 237u8, 198u8, 206u8, 233u8, 28u8, + ]) } + #[doc = " The designated SS58 prefix of this chain."] #[doc = ""] #[doc = " This replaces the \"ss58Format\" property declared in the chain spec. Reason is"] #[doc = " that the runtime should know about the prefix in order to make use of it as"] #[doc = " an identifier of the chain."] pub fn ss58_prefix(&self) -> ::subxt::constants::Address<::core::primitive::u16> { - ::subxt::constants::Address::new_static( - "System", - "SS58Prefix", - [ - 116u8, 33u8, 2u8, 170u8, 181u8, 147u8, 171u8, 169u8, 167u8, 227u8, - 41u8, 144u8, 11u8, 236u8, 82u8, 100u8, 74u8, 60u8, 184u8, 72u8, 169u8, - 90u8, 208u8, 135u8, 15u8, 117u8, 10u8, 123u8, 128u8, 193u8, 29u8, 70u8, - ], - ) + ::subxt::constants::Address::new_static("System", "SS58Prefix", [ + 116u8, 33u8, 2u8, 170u8, 181u8, 147u8, 171u8, 169u8, 167u8, 227u8, 41u8, + 144u8, 11u8, 236u8, 82u8, 100u8, 74u8, 60u8, 184u8, 72u8, 169u8, 90u8, + 208u8, 135u8, 15u8, 117u8, 10u8, 123u8, 128u8, 193u8, 29u8, 70u8, + ]) } } } } pub mod utility { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_utility::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_utility::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -2350,8 +2343,8 @@ pub mod api { pub calls: ::std::vec::Vec, } impl ::subxt::blocks::StaticExtrinsic for Batch { - const PALLET: &'static str = "Utility"; const CALL: &'static str = "batch"; + const PALLET: &'static str = "Utility"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2371,8 +2364,8 @@ pub mod api { pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for AsDerivative { - const PALLET: &'static str = "Utility"; const CALL: &'static str = "as_derivative"; + const PALLET: &'static str = "Utility"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2391,8 +2384,8 @@ pub mod api { pub calls: ::std::vec::Vec, } impl ::subxt::blocks::StaticExtrinsic for BatchAll { - const PALLET: &'static str = "Utility"; const CALL: &'static str = "batch_all"; + const PALLET: &'static str = "Utility"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2412,8 +2405,8 @@ pub mod api { pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for DispatchAs { - const PALLET: &'static str = "Utility"; const CALL: &'static str = "dispatch_as"; + const PALLET: &'static str = "Utility"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2432,8 +2425,8 @@ pub mod api { pub calls: ::std::vec::Vec, } impl ::subxt::blocks::StaticExtrinsic for ForceBatch { - const PALLET: &'static str = "Utility"; const CALL: &'static str = "force_batch"; + const PALLET: &'static str = "Utility"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2453,8 +2446,8 @@ pub mod api { pub weight: runtime_types::sp_weights::weight_v2::Weight, } impl ::subxt::blocks::StaticExtrinsic for WithWeight { - const PALLET: &'static str = "Utility"; const CALL: &'static str = "with_weight"; + const PALLET: &'static str = "Utility"; } } pub struct TransactionApi; @@ -2464,17 +2457,13 @@ pub mod api { &self, calls: ::std::vec::Vec, ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Utility", - "batch", - types::Batch { calls }, - [ - 220u8, 133u8, 43u8, 120u8, 158u8, 223u8, 27u8, 148u8, 207u8, 167u8, - 54u8, 93u8, 208u8, 199u8, 29u8, 110u8, 176u8, 77u8, 51u8, 216u8, 24u8, - 86u8, 103u8, 71u8, 108u8, 82u8, 226u8, 22u8, 10u8, 20u8, 117u8, 152u8, - ], - ) + ::subxt::tx::Payload::new_static("Utility", "batch", types::Batch { calls }, [ + 220u8, 133u8, 43u8, 120u8, 158u8, 223u8, 27u8, 148u8, 207u8, 167u8, 54u8, + 93u8, 208u8, 199u8, 29u8, 110u8, 176u8, 77u8, 51u8, 216u8, 24u8, 86u8, + 103u8, 71u8, 108u8, 82u8, 226u8, 22u8, 10u8, 20u8, 117u8, 152u8, + ]) } + #[doc = "See [`Pallet::as_derivative`]."] pub fn as_derivative( &self, @@ -2496,6 +2485,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::batch_all`]."] pub fn batch_all( &self, @@ -2513,6 +2503,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::dispatch_as`]."] pub fn dispatch_as( &self, @@ -2533,6 +2524,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::force_batch`]."] pub fn force_batch( &self, @@ -2549,6 +2541,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::with_weight`]."] pub fn with_weight( &self, @@ -2596,8 +2589,8 @@ pub mod api { pub error: runtime_types::sp_runtime::DispatchError, } impl ::subxt::events::StaticEvent for BatchInterrupted { - const PALLET: &'static str = "Utility"; const EVENT: &'static str = "BatchInterrupted"; + const PALLET: &'static str = "Utility"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2615,8 +2608,8 @@ pub mod api { #[doc = "Batch of dispatches completed fully with no error."] pub struct BatchCompleted; impl ::subxt::events::StaticEvent for BatchCompleted { - const PALLET: &'static str = "Utility"; const EVENT: &'static str = "BatchCompleted"; + const PALLET: &'static str = "Utility"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2634,8 +2627,8 @@ pub mod api { #[doc = "Batch of dispatches completed but has errors."] pub struct BatchCompletedWithErrors; impl ::subxt::events::StaticEvent for BatchCompletedWithErrors { - const PALLET: &'static str = "Utility"; const EVENT: &'static str = "BatchCompletedWithErrors"; + const PALLET: &'static str = "Utility"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2653,8 +2646,8 @@ pub mod api { #[doc = "A single item within a Batch of dispatches has completed with no error."] pub struct ItemCompleted; impl ::subxt::events::StaticEvent for ItemCompleted { - const PALLET: &'static str = "Utility"; const EVENT: &'static str = "ItemCompleted"; + const PALLET: &'static str = "Utility"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2674,8 +2667,8 @@ pub mod api { pub error: runtime_types::sp_runtime::DispatchError, } impl ::subxt::events::StaticEvent for ItemFailed { - const PALLET: &'static str = "Utility"; const EVENT: &'static str = "ItemFailed"; + const PALLET: &'static str = "Utility"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2695,8 +2688,8 @@ pub mod api { pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for DispatchedAs { - const PALLET: &'static str = "Utility"; const EVENT: &'static str = "DispatchedAs"; + const PALLET: &'static str = "Utility"; } } pub mod constants { @@ -2707,30 +2700,23 @@ pub mod api { pub fn batched_calls_limit( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Utility", - "batched_calls_limit", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Utility", "batched_calls_limit", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } } } } pub mod babe { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_babe::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_babe::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -2760,8 +2746,8 @@ pub mod api { pub key_owner_proof: runtime_types::sp_session::MembershipProof, } impl ::subxt::blocks::StaticExtrinsic for ReportEquivocation { - const PALLET: &'static str = "Babe"; const CALL: &'static str = "report_equivocation"; + const PALLET: &'static str = "Babe"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2789,8 +2775,8 @@ pub mod api { pub key_owner_proof: runtime_types::sp_session::MembershipProof, } impl ::subxt::blocks::StaticExtrinsic for ReportEquivocationUnsigned { - const PALLET: &'static str = "Babe"; const CALL: &'static str = "report_equivocation_unsigned"; + const PALLET: &'static str = "Babe"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -2809,8 +2795,8 @@ pub mod api { pub config: runtime_types::sp_consensus_babe::digests::NextConfigDescriptor, } impl ::subxt::blocks::StaticExtrinsic for PlanConfigChange { - const PALLET: &'static str = "Babe"; const CALL: &'static str = "plan_config_change"; + const PALLET: &'static str = "Babe"; } } pub struct TransactionApi; @@ -2842,6 +2828,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] pub fn report_equivocation_unsigned( &self, @@ -2868,6 +2855,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::plan_config_change`]."] pub fn plan_config_change( &self, @@ -2901,18 +2889,13 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static( - "Babe", - "EpochIndex", - vec![], - [ - 32u8, 82u8, 130u8, 31u8, 190u8, 162u8, 237u8, 189u8, 104u8, 244u8, - 30u8, 199u8, 179u8, 0u8, 161u8, 107u8, 72u8, 240u8, 201u8, 222u8, - 177u8, 222u8, 35u8, 156u8, 81u8, 132u8, 162u8, 118u8, 238u8, 84u8, - 112u8, 89u8, - ], - ) + ::subxt::storage::address::Address::new_static("Babe", "EpochIndex", vec![], [ + 32u8, 82u8, 130u8, 31u8, 190u8, 162u8, 237u8, 189u8, 104u8, 244u8, 30u8, + 199u8, 179u8, 0u8, 161u8, 107u8, 72u8, 240u8, 201u8, 222u8, 177u8, 222u8, + 35u8, 156u8, 81u8, 132u8, 162u8, 118u8, 238u8, 84u8, 112u8, 89u8, + ]) } + #[doc = " Current epoch authorities."] pub fn authorities( &self, @@ -2926,18 +2909,13 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static( - "Babe", - "Authorities", - vec![], - [ - 67u8, 196u8, 244u8, 13u8, 246u8, 245u8, 198u8, 98u8, 81u8, 55u8, 182u8, - 187u8, 214u8, 5u8, 181u8, 76u8, 251u8, 213u8, 144u8, 166u8, 36u8, - 153u8, 234u8, 181u8, 252u8, 55u8, 198u8, 175u8, 55u8, 211u8, 105u8, - 85u8, - ], - ) + ::subxt::storage::address::Address::new_static("Babe", "Authorities", vec![], [ + 67u8, 196u8, 244u8, 13u8, 246u8, 245u8, 198u8, 98u8, 81u8, 55u8, 182u8, + 187u8, 214u8, 5u8, 181u8, 76u8, 251u8, 213u8, 144u8, 166u8, 36u8, 153u8, + 234u8, 181u8, 252u8, 55u8, 198u8, 175u8, 55u8, 211u8, 105u8, 85u8, + ]) } + #[doc = " The slot at which the first epoch actually started. This is 0"] #[doc = " until the first block of the chain."] pub fn genesis_slot( @@ -2949,18 +2927,13 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static( - "Babe", - "GenesisSlot", - vec![], - [ - 218u8, 174u8, 152u8, 76u8, 188u8, 214u8, 7u8, 88u8, 253u8, 187u8, - 139u8, 234u8, 51u8, 28u8, 220u8, 57u8, 73u8, 1u8, 18u8, 205u8, 80u8, - 160u8, 120u8, 216u8, 139u8, 191u8, 100u8, 108u8, 162u8, 106u8, 175u8, - 107u8, - ], - ) + ::subxt::storage::address::Address::new_static("Babe", "GenesisSlot", vec![], [ + 218u8, 174u8, 152u8, 76u8, 188u8, 214u8, 7u8, 88u8, 253u8, 187u8, 139u8, + 234u8, 51u8, 28u8, 220u8, 57u8, 73u8, 1u8, 18u8, 205u8, 80u8, 160u8, 120u8, + 216u8, 139u8, 191u8, 100u8, 108u8, 162u8, 106u8, 175u8, 107u8, + ]) } + #[doc = " Current slot number."] pub fn current_slot( &self, @@ -2971,18 +2944,13 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static( - "Babe", - "CurrentSlot", - vec![], - [ - 112u8, 199u8, 115u8, 248u8, 217u8, 242u8, 45u8, 231u8, 178u8, 53u8, - 236u8, 167u8, 219u8, 238u8, 81u8, 243u8, 39u8, 140u8, 68u8, 19u8, - 201u8, 169u8, 211u8, 133u8, 135u8, 213u8, 150u8, 105u8, 60u8, 252u8, - 43u8, 57u8, - ], - ) + ::subxt::storage::address::Address::new_static("Babe", "CurrentSlot", vec![], [ + 112u8, 199u8, 115u8, 248u8, 217u8, 242u8, 45u8, 231u8, 178u8, 53u8, 236u8, + 167u8, 219u8, 238u8, 81u8, 243u8, 39u8, 140u8, 68u8, 19u8, 201u8, 169u8, + 211u8, 133u8, 135u8, 213u8, 150u8, 105u8, 60u8, 252u8, 43u8, 57u8, + ]) } + #[doc = " The epoch randomness for the *current* epoch."] #[doc = ""] #[doc = " # Security"] @@ -3002,18 +2970,13 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static( - "Babe", - "Randomness", - vec![], - [ - 36u8, 15u8, 52u8, 73u8, 195u8, 177u8, 186u8, 125u8, 134u8, 11u8, 103u8, - 248u8, 170u8, 237u8, 105u8, 239u8, 168u8, 204u8, 147u8, 52u8, 15u8, - 226u8, 126u8, 176u8, 133u8, 186u8, 169u8, 241u8, 156u8, 118u8, 67u8, - 58u8, - ], - ) + ::subxt::storage::address::Address::new_static("Babe", "Randomness", vec![], [ + 36u8, 15u8, 52u8, 73u8, 195u8, 177u8, 186u8, 125u8, 134u8, 11u8, 103u8, + 248u8, 170u8, 237u8, 105u8, 239u8, 168u8, 204u8, 147u8, 52u8, 15u8, 226u8, + 126u8, 176u8, 133u8, 186u8, 169u8, 241u8, 156u8, 118u8, 67u8, 58u8, + ]) } + #[doc = " Pending epoch configuration change that will be applied when the next epoch is enacted."] pub fn pending_epoch_config_change( &self, @@ -3036,6 +2999,7 @@ pub mod api { ], ) } + #[doc = " Next epoch randomness."] pub fn next_randomness( &self, @@ -3057,6 +3021,7 @@ pub mod api { ], ) } + #[doc = " Next epoch authorities."] pub fn next_authorities( &self, @@ -3082,6 +3047,7 @@ pub mod api { ], ) } + #[doc = " Randomness under construction."] #[doc = ""] #[doc = " We make a trade-off between storage accesses and list length."] @@ -3112,6 +3078,7 @@ pub mod api { ], ) } + #[doc = " TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay."] pub fn under_construction( &self, @@ -3138,6 +3105,7 @@ pub mod api { ], ) } + #[doc = " TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay."] pub fn under_construction_root( &self, @@ -3161,6 +3129,7 @@ pub mod api { ], ) } + #[doc = " Temporary value (cleared at block finalization) which is `Some`"] #[doc = " if per-block initialization has already been called for current block."] pub fn initialized( @@ -3172,17 +3141,13 @@ pub mod api { (), (), > { - ::subxt::storage::address::Address::new_static( - "Babe", - "Initialized", - vec![], - [ - 61u8, 100u8, 12u8, 43u8, 50u8, 166u8, 173u8, 130u8, 86u8, 36u8, 92u8, - 221u8, 44u8, 235u8, 241u8, 150u8, 231u8, 108u8, 15u8, 134u8, 12u8, 6u8, - 198u8, 102u8, 63u8, 69u8, 201u8, 171u8, 14u8, 135u8, 254u8, 239u8, - ], - ) + ::subxt::storage::address::Address::new_static("Babe", "Initialized", vec![], [ + 61u8, 100u8, 12u8, 43u8, 50u8, 166u8, 173u8, 130u8, 86u8, 36u8, 92u8, + 221u8, 44u8, 235u8, 241u8, 150u8, 231u8, 108u8, 15u8, 134u8, 12u8, 6u8, + 198u8, 102u8, 63u8, 69u8, 201u8, 171u8, 14u8, 135u8, 254u8, 239u8, + ]) } + #[doc = " This field should always be populated during block processing unless"] #[doc = " secondary plain slots are enabled (which don't contain a VRF output)."] #[doc = ""] @@ -3208,6 +3173,7 @@ pub mod api { ], ) } + #[doc = " The block numbers when the last and current epoch have started, respectively `N-1` and"] #[doc = " `N`."] #[doc = " NOTE: We track this is in order to annotate the block number when a given pool of"] @@ -3222,18 +3188,13 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static( - "Babe", - "EpochStart", - vec![], - [ - 246u8, 69u8, 165u8, 217u8, 181u8, 138u8, 201u8, 64u8, 251u8, 121u8, - 50u8, 231u8, 221u8, 144u8, 225u8, 249u8, 42u8, 135u8, 31u8, 136u8, - 21u8, 160u8, 186u8, 148u8, 139u8, 232u8, 182u8, 121u8, 82u8, 110u8, - 14u8, 160u8, - ], - ) + ::subxt::storage::address::Address::new_static("Babe", "EpochStart", vec![], [ + 246u8, 69u8, 165u8, 217u8, 181u8, 138u8, 201u8, 64u8, 251u8, 121u8, 50u8, + 231u8, 221u8, 144u8, 225u8, 249u8, 42u8, 135u8, 31u8, 136u8, 21u8, 160u8, + 186u8, 148u8, 139u8, 232u8, 182u8, 121u8, 82u8, 110u8, 14u8, 160u8, + ]) } + #[doc = " How late the current block is compared to its parent."] #[doc = ""] #[doc = " This entry is populated as part of block execution and is cleaned up"] @@ -3248,18 +3209,13 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static( - "Babe", - "Lateness", - vec![], - [ - 229u8, 214u8, 133u8, 149u8, 32u8, 159u8, 26u8, 22u8, 252u8, 131u8, - 200u8, 191u8, 231u8, 176u8, 178u8, 127u8, 33u8, 212u8, 139u8, 220u8, - 157u8, 38u8, 4u8, 226u8, 204u8, 32u8, 55u8, 20u8, 205u8, 141u8, 29u8, - 87u8, - ], - ) + ::subxt::storage::address::Address::new_static("Babe", "Lateness", vec![], [ + 229u8, 214u8, 133u8, 149u8, 32u8, 159u8, 26u8, 22u8, 252u8, 131u8, 200u8, + 191u8, 231u8, 176u8, 178u8, 127u8, 33u8, 212u8, 139u8, 220u8, 157u8, 38u8, + 4u8, 226u8, 204u8, 32u8, 55u8, 20u8, 205u8, 141u8, 29u8, 87u8, + ]) } + #[doc = " The configuration for the current epoch. Should never be `None` as it is initialized in"] #[doc = " genesis."] pub fn epoch_config( @@ -3271,18 +3227,13 @@ pub mod api { (), (), > { - ::subxt::storage::address::Address::new_static( - "Babe", - "EpochConfig", - vec![], - [ - 23u8, 188u8, 70u8, 119u8, 36u8, 199u8, 230u8, 191u8, 131u8, 219u8, - 85u8, 201u8, 237u8, 70u8, 214u8, 149u8, 212u8, 94u8, 87u8, 87u8, 62u8, - 16u8, 46u8, 143u8, 73u8, 169u8, 42u8, 139u8, 157u8, 139u8, 190u8, - 166u8, - ], - ) + ::subxt::storage::address::Address::new_static("Babe", "EpochConfig", vec![], [ + 23u8, 188u8, 70u8, 119u8, 36u8, 199u8, 230u8, 191u8, 131u8, 219u8, 85u8, + 201u8, 237u8, 70u8, 214u8, 149u8, 212u8, 94u8, 87u8, 87u8, 62u8, 16u8, + 46u8, 143u8, 73u8, 169u8, 42u8, 139u8, 157u8, 139u8, 190u8, 166u8, + ]) } + #[doc = " The configuration for the next epoch, `None` if the config will not change"] #[doc = " (you can fallback to `EpochConfig` instead in that case)."] pub fn next_epoch_config( @@ -3305,6 +3256,7 @@ pub mod api { ], ) } + #[doc = " A list of the last 100 skipped epochs and the corresponding session index"] #[doc = " when the epoch was skipped."] #[doc = ""] @@ -3348,17 +3300,13 @@ pub mod api { pub fn epoch_duration( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static( - "Babe", - "EpochDuration", - [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, - 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, - 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, - 246u8, - ], - ) + ::subxt::constants::Address::new_static("Babe", "EpochDuration", [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, 59u8, + 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, 119u8, + 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, + ]) } + #[doc = " The expected average block time at which BABE should be creating"] #[doc = " blocks. Since BABE is probabilistic it is not trivial to figure out"] #[doc = " what the expected average block time should be based on the slot"] @@ -3367,43 +3315,32 @@ pub mod api { pub fn expected_block_time( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static( - "Babe", - "ExpectedBlockTime", - [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, - 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, - 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, - 246u8, - ], - ) + ::subxt::constants::Address::new_static("Babe", "ExpectedBlockTime", [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, 59u8, + 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, 119u8, + 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, + ]) } + #[doc = " Max number of authorities allowed"] pub fn max_authorities( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Babe", - "MaxAuthorities", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Babe", "MaxAuthorities", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } } } } pub mod timestamp { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_timestamp::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -3425,24 +3362,19 @@ pub mod api { pub now: ::core::primitive::u64, } impl ::subxt::blocks::StaticExtrinsic for Set { - const PALLET: &'static str = "Timestamp"; const CALL: &'static str = "set"; + const PALLET: &'static str = "Timestamp"; } } pub struct TransactionApi; impl TransactionApi { #[doc = "See [`Pallet::set`]."] pub fn set(&self, now: ::core::primitive::u64) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Timestamp", - "set", - types::Set { now }, - [ - 37u8, 95u8, 49u8, 218u8, 24u8, 22u8, 0u8, 95u8, 72u8, 35u8, 155u8, - 199u8, 213u8, 54u8, 207u8, 22u8, 185u8, 193u8, 221u8, 70u8, 18u8, - 200u8, 4u8, 231u8, 195u8, 173u8, 6u8, 122u8, 11u8, 203u8, 231u8, 227u8, - ], - ) + ::subxt::tx::Payload::new_static("Timestamp", "set", types::Set { now }, [ + 37u8, 95u8, 49u8, 218u8, 24u8, 22u8, 0u8, 95u8, 72u8, 35u8, 155u8, 199u8, + 213u8, 54u8, 207u8, 22u8, 185u8, 193u8, 221u8, 70u8, 18u8, 200u8, 4u8, + 231u8, 195u8, 173u8, 6u8, 122u8, 11u8, 203u8, 231u8, 227u8, + ]) } } } @@ -3460,17 +3392,13 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static( - "Timestamp", - "Now", - vec![], - [ - 44u8, 50u8, 80u8, 30u8, 195u8, 146u8, 123u8, 238u8, 8u8, 163u8, 187u8, - 92u8, 61u8, 39u8, 51u8, 29u8, 173u8, 169u8, 217u8, 158u8, 85u8, 187u8, - 141u8, 26u8, 12u8, 115u8, 51u8, 11u8, 200u8, 244u8, 138u8, 152u8, - ], - ) + ::subxt::storage::address::Address::new_static("Timestamp", "Now", vec![], [ + 44u8, 50u8, 80u8, 30u8, 195u8, 146u8, 123u8, 238u8, 8u8, 163u8, 187u8, + 92u8, 61u8, 39u8, 51u8, 29u8, 173u8, 169u8, 217u8, 158u8, 85u8, 187u8, + 141u8, 26u8, 12u8, 115u8, 51u8, 11u8, 200u8, 244u8, 138u8, 152u8, + ]) } + #[doc = " Did the timestamp get updated in this block?"] pub fn did_update( &self, @@ -3506,23 +3434,17 @@ pub mod api { pub fn minimum_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static( - "Timestamp", - "MinimumPeriod", - [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, - 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, - 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, - 246u8, - ], - ) + ::subxt::constants::Address::new_static("Timestamp", "MinimumPeriod", [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, 59u8, + 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, 119u8, + 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, + ]) } } } } pub mod authorship { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; pub mod storage { use super::runtime_types; pub struct StorageApi; @@ -3553,15 +3475,13 @@ pub mod api { } } pub mod indices { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_indices::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_indices::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -3583,8 +3503,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Claim { - const PALLET: &'static str = "Indices"; const CALL: &'static str = "claim"; + const PALLET: &'static str = "Indices"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -3607,8 +3527,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Transfer { - const PALLET: &'static str = "Indices"; const CALL: &'static str = "transfer"; + const PALLET: &'static str = "Indices"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -3628,8 +3548,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Free { - const PALLET: &'static str = "Indices"; const CALL: &'static str = "free"; + const PALLET: &'static str = "Indices"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -3653,8 +3573,8 @@ pub mod api { pub freeze: ::core::primitive::bool, } impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { - const PALLET: &'static str = "Indices"; const CALL: &'static str = "force_transfer"; + const PALLET: &'static str = "Indices"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -3674,8 +3594,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Freeze { - const PALLET: &'static str = "Indices"; const CALL: &'static str = "freeze"; + const PALLET: &'static str = "Indices"; } } pub struct TransactionApi; @@ -3685,17 +3605,13 @@ pub mod api { &self, index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Indices", - "claim", - types::Claim { index }, - [ - 146u8, 58u8, 246u8, 135u8, 59u8, 90u8, 3u8, 5u8, 140u8, 169u8, 232u8, - 195u8, 11u8, 107u8, 36u8, 141u8, 118u8, 174u8, 160u8, 160u8, 19u8, - 205u8, 177u8, 193u8, 18u8, 102u8, 115u8, 31u8, 72u8, 29u8, 91u8, 235u8, - ], - ) + ::subxt::tx::Payload::new_static("Indices", "claim", types::Claim { index }, [ + 146u8, 58u8, 246u8, 135u8, 59u8, 90u8, 3u8, 5u8, 140u8, 169u8, 232u8, + 195u8, 11u8, 107u8, 36u8, 141u8, 118u8, 174u8, 160u8, 160u8, 19u8, 205u8, + 177u8, 193u8, 18u8, 102u8, 115u8, 31u8, 72u8, 29u8, 91u8, 235u8, + ]) } + #[doc = "See [`Pallet::transfer`]."] pub fn transfer( &self, @@ -3717,23 +3633,19 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::free`]."] pub fn free( &self, index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Indices", - "free", - types::Free { index }, - [ - 241u8, 211u8, 234u8, 102u8, 189u8, 22u8, 209u8, 27u8, 8u8, 229u8, 80u8, - 227u8, 138u8, 252u8, 222u8, 111u8, 77u8, 201u8, 235u8, 51u8, 163u8, - 247u8, 13u8, 126u8, 216u8, 136u8, 57u8, 222u8, 56u8, 66u8, 215u8, - 244u8, - ], - ) + ::subxt::tx::Payload::new_static("Indices", "free", types::Free { index }, [ + 241u8, 211u8, 234u8, 102u8, 189u8, 22u8, 209u8, 27u8, 8u8, 229u8, 80u8, + 227u8, 138u8, 252u8, 222u8, 111u8, 77u8, 201u8, 235u8, 51u8, 163u8, 247u8, + 13u8, 126u8, 216u8, 136u8, 57u8, 222u8, 56u8, 66u8, 215u8, 244u8, + ]) } + #[doc = "See [`Pallet::force_transfer`]."] pub fn force_transfer( &self, @@ -3756,6 +3668,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::freeze`]."] pub fn freeze( &self, @@ -3798,8 +3711,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for IndexAssigned { - const PALLET: &'static str = "Indices"; const EVENT: &'static str = "IndexAssigned"; + const PALLET: &'static str = "Indices"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -3820,8 +3733,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for IndexFreed { - const PALLET: &'static str = "Indices"; const EVENT: &'static str = "IndexFreed"; + const PALLET: &'static str = "Indices"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -3842,8 +3755,8 @@ pub mod api { pub who: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for IndexFrozen { - const PALLET: &'static str = "Indices"; const EVENT: &'static str = "IndexFrozen"; + const PALLET: &'static str = "Indices"; } } pub mod storage { @@ -3879,6 +3792,7 @@ pub mod api { ], ) } + #[doc = " The lookup from index to account."] pub fn accounts_root( &self, @@ -3913,29 +3827,23 @@ pub mod api { impl ConstantsApi { #[doc = " The deposit needed for reserving an index."] pub fn deposit(&self) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Indices", - "Deposit", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) + ::subxt::constants::Address::new_static("Indices", "Deposit", [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ]) } } } } pub mod balances { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_balances::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_balances::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -3961,8 +3869,8 @@ pub mod api { pub value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for TransferAllowDeath { - const PALLET: &'static str = "Balances"; const CALL: &'static str = "transfer_allow_death"; + const PALLET: &'static str = "Balances"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -3988,8 +3896,8 @@ pub mod api { pub old_reserved: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for SetBalanceDeprecated { - const PALLET: &'static str = "Balances"; const CALL: &'static str = "set_balance_deprecated"; + const PALLET: &'static str = "Balances"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4017,8 +3925,8 @@ pub mod api { pub value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for ForceTransfer { - const PALLET: &'static str = "Balances"; const CALL: &'static str = "force_transfer"; + const PALLET: &'static str = "Balances"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4042,8 +3950,8 @@ pub mod api { pub value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for TransferKeepAlive { - const PALLET: &'static str = "Balances"; const CALL: &'static str = "transfer_keep_alive"; + const PALLET: &'static str = "Balances"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4066,8 +3974,8 @@ pub mod api { pub keep_alive: ::core::primitive::bool, } impl ::subxt::blocks::StaticExtrinsic for TransferAll { - const PALLET: &'static str = "Balances"; const CALL: &'static str = "transfer_all"; + const PALLET: &'static str = "Balances"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4090,8 +3998,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for ForceUnreserve { - const PALLET: &'static str = "Balances"; const CALL: &'static str = "force_unreserve"; + const PALLET: &'static str = "Balances"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4110,8 +4018,8 @@ pub mod api { pub who: ::std::vec::Vec<::subxt::utils::AccountId32>, } impl ::subxt::blocks::StaticExtrinsic for UpgradeAccounts { - const PALLET: &'static str = "Balances"; const CALL: &'static str = "upgrade_accounts"; + const PALLET: &'static str = "Balances"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4135,8 +4043,8 @@ pub mod api { pub value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for Transfer { - const PALLET: &'static str = "Balances"; const CALL: &'static str = "transfer"; + const PALLET: &'static str = "Balances"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4160,8 +4068,8 @@ pub mod api { pub new_free: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for ForceSetBalance { - const PALLET: &'static str = "Balances"; const CALL: &'static str = "force_set_balance"; + const PALLET: &'static str = "Balances"; } } pub struct TransactionApi; @@ -4186,6 +4094,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_balance_deprecated`]."] pub fn set_balance_deprecated( &self, @@ -4211,6 +4120,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::force_transfer`]."] pub fn force_transfer( &self, @@ -4240,6 +4150,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::transfer_keep_alive`]."] pub fn transfer_keep_alive( &self, @@ -4260,6 +4171,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::transfer_all`]."] pub fn transfer_all( &self, @@ -4281,6 +4193,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::force_unreserve`]."] pub fn force_unreserve( &self, @@ -4302,6 +4215,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::upgrade_accounts`]."] pub fn upgrade_accounts( &self, @@ -4318,6 +4232,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::transfer`]."] pub fn transfer( &self, @@ -4338,6 +4253,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::force_set_balance`]."] pub fn force_set_balance( &self, @@ -4383,8 +4299,8 @@ pub mod api { pub free_balance: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Endowed { - const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Endowed"; + const PALLET: &'static str = "Balances"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4406,8 +4322,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for DustLost { - const PALLET: &'static str = "Balances"; const EVENT: &'static str = "DustLost"; + const PALLET: &'static str = "Balances"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4429,8 +4345,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Transfer { - const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Transfer"; + const PALLET: &'static str = "Balances"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4451,8 +4367,8 @@ pub mod api { pub free: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for BalanceSet { - const PALLET: &'static str = "Balances"; const EVENT: &'static str = "BalanceSet"; + const PALLET: &'static str = "Balances"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4473,8 +4389,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Reserved { - const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Reserved"; + const PALLET: &'static str = "Balances"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4495,8 +4411,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Unreserved { - const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Unreserved"; + const PALLET: &'static str = "Balances"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4521,8 +4437,8 @@ pub mod api { runtime_types::frame_support::traits::tokens::misc::BalanceStatus, } impl ::subxt::events::StaticEvent for ReserveRepatriated { - const PALLET: &'static str = "Balances"; const EVENT: &'static str = "ReserveRepatriated"; + const PALLET: &'static str = "Balances"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4543,8 +4459,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Deposit { - const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Deposit"; + const PALLET: &'static str = "Balances"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4565,8 +4481,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Withdraw { - const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Withdraw"; + const PALLET: &'static str = "Balances"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4587,8 +4503,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Slashed { - const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Slashed"; + const PALLET: &'static str = "Balances"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4609,8 +4525,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Minted { - const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Minted"; + const PALLET: &'static str = "Balances"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4631,8 +4547,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Burned { - const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Burned"; + const PALLET: &'static str = "Balances"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4653,8 +4569,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Suspended { - const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Suspended"; + const PALLET: &'static str = "Balances"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4675,8 +4591,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Restored { - const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Restored"; + const PALLET: &'static str = "Balances"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4696,8 +4612,8 @@ pub mod api { pub who: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Upgraded { - const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Upgraded"; + const PALLET: &'static str = "Balances"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -4718,8 +4634,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Issued { - const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Issued"; + const PALLET: &'static str = "Balances"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -4740,8 +4656,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Rescinded { - const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Rescinded"; + const PALLET: &'static str = "Balances"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4762,8 +4678,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Locked { - const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Locked"; + const PALLET: &'static str = "Balances"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4784,8 +4700,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Unlocked { - const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Unlocked"; + const PALLET: &'static str = "Balances"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4806,8 +4722,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Frozen { - const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Frozen"; + const PALLET: &'static str = "Balances"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -4828,8 +4744,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Thawed { - const PALLET: &'static str = "Balances"; const EVENT: &'static str = "Thawed"; + const PALLET: &'static str = "Balances"; } } pub mod storage { @@ -4858,6 +4774,7 @@ pub mod api { ], ) } + #[doc = " The total units of outstanding deactivated balance in the system."] pub fn inactive_issuance( &self, @@ -4879,6 +4796,7 @@ pub mod api { ], ) } + #[doc = " The Balances pallet example of storing the balance of an account."] #[doc = ""] #[doc = " # Example"] @@ -4927,6 +4845,7 @@ pub mod api { ], ) } + #[doc = " The Balances pallet example of storing the balance of an account."] #[doc = ""] #[doc = " # Example"] @@ -4972,6 +4891,7 @@ pub mod api { ], ) } + #[doc = " Any liquidity locks on some account balances."] #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks( @@ -4999,6 +4919,7 @@ pub mod api { ], ) } + #[doc = " Any liquidity locks on some account balances."] #[doc = " NOTE: Should only be accessed when setting, changing and freeing a lock."] pub fn locks_root( @@ -5023,6 +4944,7 @@ pub mod api { ], ) } + #[doc = " Named reserves on some account balances."] pub fn reserves( &self, @@ -5053,6 +4975,7 @@ pub mod api { ], ) } + #[doc = " Named reserves on some account balances."] pub fn reserves_root( &self, @@ -5080,6 +5003,7 @@ pub mod api { ], ) } + #[doc = " Holds on account balances."] pub fn holds( &self, @@ -5109,6 +5033,7 @@ pub mod api { ], ) } + #[doc = " Holds on account balances."] pub fn holds_root( &self, @@ -5135,6 +5060,7 @@ pub mod api { ], ) } + #[doc = " Freeze locks on account balances."] pub fn freezes( &self, @@ -5164,6 +5090,7 @@ pub mod api { ], ) } + #[doc = " Freeze locks on account balances."] pub fn freezes_root( &self, @@ -5207,75 +5134,54 @@ pub mod api { pub fn existential_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Balances", - "ExistentialDeposit", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) + ::subxt::constants::Address::new_static("Balances", "ExistentialDeposit", [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ]) } + #[doc = " The maximum number of locks that should exist on an account."] #[doc = " Not strictly enforced, but used for weight estimation."] pub fn max_locks(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Balances", - "MaxLocks", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Balances", "MaxLocks", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " The maximum number of named reserves that can exist on an account."] pub fn max_reserves(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Balances", - "MaxReserves", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Balances", "MaxReserves", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " The maximum number of holds that can exist on an account at any time."] pub fn max_holds(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Balances", - "MaxHolds", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Balances", "MaxHolds", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " The maximum number of individual freeze locks that can exist on an account at any time."] pub fn max_freezes(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Balances", - "MaxFreezes", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Balances", "MaxFreezes", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } } } } pub mod transaction_payment { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "The `Event` enum of this pallet"] pub type Event = runtime_types::pallet_transaction_payment::pallet::Event; pub mod events { @@ -5301,8 +5207,8 @@ pub mod api { pub tip: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for TransactionFeePaid { - const PALLET: &'static str = "TransactionPayment"; const EVENT: &'static str = "TransactionFeePaid"; + const PALLET: &'static str = "TransactionPayment"; } } pub mod storage { @@ -5330,6 +5236,7 @@ pub mod api { ], ) } + pub fn storage_version( &self, ) -> ::subxt::storage::address::Address< @@ -5396,15 +5303,13 @@ pub mod api { } } pub mod election_provider_multi_phase { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "Error of the pallet that can be returned in response to dispatches."] pub type Error = runtime_types::pallet_election_provider_multi_phase::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_election_provider_multi_phase::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -5431,8 +5336,8 @@ pub mod api { runtime_types::pallet_election_provider_multi_phase::SolutionOrSnapshotSize, } impl ::subxt::blocks::StaticExtrinsic for SubmitUnsigned { - const PALLET: &'static str = "ElectionProviderMultiPhase"; const CALL: &'static str = "submit_unsigned"; + const PALLET: &'static str = "ElectionProviderMultiPhase"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -5452,8 +5357,8 @@ pub mod api { ::core::option::Option, } impl ::subxt::blocks::StaticExtrinsic for SetMinimumUntrustedScore { - const PALLET: &'static str = "ElectionProviderMultiPhase"; const CALL: &'static str = "set_minimum_untrusted_score"; + const PALLET: &'static str = "ElectionProviderMultiPhase"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -5475,8 +5380,8 @@ pub mod api { )>, } impl ::subxt::blocks::StaticExtrinsic for SetEmergencyElectionResult { - const PALLET: &'static str = "ElectionProviderMultiPhase"; const CALL: &'static str = "set_emergency_election_result"; + const PALLET: &'static str = "ElectionProviderMultiPhase"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -5499,8 +5404,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for Submit { - const PALLET: &'static str = "ElectionProviderMultiPhase"; const CALL: &'static str = "submit"; + const PALLET: &'static str = "ElectionProviderMultiPhase"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -5520,8 +5425,8 @@ pub mod api { pub maybe_max_targets: ::core::option::Option<::core::primitive::u32>, } impl ::subxt::blocks::StaticExtrinsic for GovernanceFallback { - const PALLET: &'static str = "ElectionProviderMultiPhase"; const CALL: &'static str = "governance_fallback"; + const PALLET: &'static str = "ElectionProviderMultiPhase"; } } pub struct TransactionApi; @@ -5548,6 +5453,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_minimum_untrusted_score`]."] pub fn set_minimum_untrusted_score( &self, @@ -5567,6 +5473,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_emergency_election_result`]."] pub fn set_emergency_election_result( &self, @@ -5586,6 +5493,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::submit`]."] pub fn submit( &self, @@ -5606,6 +5514,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::governance_fallback`]."] pub fn governance_fallback( &self, @@ -5659,8 +5568,8 @@ pub mod api { pub prev_ejected: ::core::primitive::bool, } impl ::subxt::events::StaticEvent for SolutionStored { - const PALLET: &'static str = "ElectionProviderMultiPhase"; const EVENT: &'static str = "SolutionStored"; + const PALLET: &'static str = "ElectionProviderMultiPhase"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -5681,8 +5590,8 @@ pub mod api { pub score: runtime_types::sp_npos_elections::ElectionScore, } impl ::subxt::events::StaticEvent for ElectionFinalized { - const PALLET: &'static str = "ElectionProviderMultiPhase"; const EVENT: &'static str = "ElectionFinalized"; + const PALLET: &'static str = "ElectionProviderMultiPhase"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -5702,8 +5611,8 @@ pub mod api { #[doc = "Not much can be said about which computes failed in the process."] pub struct ElectionFailed; impl ::subxt::events::StaticEvent for ElectionFailed { - const PALLET: &'static str = "ElectionProviderMultiPhase"; const EVENT: &'static str = "ElectionFailed"; + const PALLET: &'static str = "ElectionProviderMultiPhase"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -5724,8 +5633,8 @@ pub mod api { pub value: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Rewarded { - const PALLET: &'static str = "ElectionProviderMultiPhase"; const EVENT: &'static str = "Rewarded"; + const PALLET: &'static str = "ElectionProviderMultiPhase"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -5746,8 +5655,8 @@ pub mod api { pub value: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Slashed { - const PALLET: &'static str = "ElectionProviderMultiPhase"; const EVENT: &'static str = "Slashed"; + const PALLET: &'static str = "ElectionProviderMultiPhase"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -5773,8 +5682,8 @@ pub mod api { pub round: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for PhaseTransitioned { - const PALLET: &'static str = "ElectionProviderMultiPhase"; const EVENT: &'static str = "PhaseTransitioned"; + const PALLET: &'static str = "ElectionProviderMultiPhase"; } } pub mod storage { @@ -5807,6 +5716,7 @@ pub mod api { ], ) } + #[doc = " Current phase."] pub fn current_phase( &self, @@ -5830,6 +5740,7 @@ pub mod api { ], ) } + #[doc = " Current best solution, signed or unsigned, queued to be returned upon `elect`."] #[doc = ""] #[doc = " Always sorted by score."] @@ -5854,6 +5765,7 @@ pub mod api { ], ) } + #[doc = " Snapshot data of the round."] #[doc = ""] #[doc = " This is created at the beginning of the signed phase and cleared upon calling `elect`."] @@ -5887,6 +5799,7 @@ pub mod api { ], ) } + #[doc = " Desired number of targets to elect for this round."] #[doc = ""] #[doc = " Only exists when [`Snapshot`] is present."] @@ -5910,6 +5823,7 @@ pub mod api { ], ) } + #[doc = " The metadata of the [`RoundSnapshot`]"] #[doc = ""] #[doc = " Only exists when [`Snapshot`] is present."] @@ -5934,6 +5848,7 @@ pub mod api { ], ) } + #[doc = " The next index to be assigned to an incoming signed submission."] #[doc = ""] #[doc = " Every accepted submission is assigned a unique index; that index is bound to that particular"] @@ -5963,6 +5878,7 @@ pub mod api { ], ) } + #[doc = " A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a"] #[doc = " value in `SignedSubmissions`."] #[doc = ""] @@ -5993,6 +5909,7 @@ pub mod api { ], ) } + #[doc = " Unchecked, signed solutions."] #[doc = ""] #[doc = " Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while"] @@ -6028,6 +5945,7 @@ pub mod api { ], ) } + #[doc = " Unchecked, signed solutions."] #[doc = ""] #[doc = " Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while"] @@ -6060,6 +5978,7 @@ pub mod api { ], ) } + #[doc = " The minimum score that each 'untrusted' solution must attain in order to be considered"] #[doc = " feasible."] #[doc = ""] @@ -6105,6 +6024,7 @@ pub mod api { ], ) } + #[doc = " Duration of the signed phase."] pub fn signed_phase(&self) -> ::subxt::constants::Address<::core::primitive::u32> { ::subxt::constants::Address::new_static( @@ -6118,6 +6038,7 @@ pub mod api { ], ) } + #[doc = " The minimum amount of improvement to the solution score that defines a solution as"] #[doc = " \"better\" in the Signed phase."] pub fn better_signed_threshold( @@ -6134,6 +6055,7 @@ pub mod api { ], ) } + #[doc = " The minimum amount of improvement to the solution score that defines a solution as"] #[doc = " \"better\" in the Unsigned phase."] pub fn better_unsigned_threshold( @@ -6150,6 +6072,7 @@ pub mod api { ], ) } + #[doc = " The repeat threshold of the offchain worker."] #[doc = ""] #[doc = " For example, if it is 5, that means that at least 5 blocks will elapse between attempts"] @@ -6168,6 +6091,7 @@ pub mod api { ], ) } + #[doc = " The priority of the unsigned transaction submitted in the unsigned-phase"] pub fn miner_tx_priority( &self, @@ -6183,6 +6107,7 @@ pub mod api { ], ) } + #[doc = " Maximum number of signed submissions that can be queued."] #[doc = ""] #[doc = " It is best to avoid adjusting this during an election, as it impacts downstream data"] @@ -6204,6 +6129,7 @@ pub mod api { ], ) } + #[doc = " Maximum weight of a signed solution."] #[doc = ""] #[doc = " If [`Config::MinerConfig`] is being implemented to submit signed solutions (outside of"] @@ -6222,6 +6148,7 @@ pub mod api { ], ) } + #[doc = " The maximum amount of unchecked solutions to refund the call fee for."] pub fn signed_max_refunds( &self, @@ -6237,6 +6164,7 @@ pub mod api { ], ) } + #[doc = " Base reward for a signed solution"] pub fn signed_reward_base( &self, @@ -6251,6 +6179,7 @@ pub mod api { ], ) } + #[doc = " Base deposit for a signed solution."] pub fn signed_deposit_base( &self, @@ -6265,6 +6194,7 @@ pub mod api { ], ) } + #[doc = " Per-byte deposit for a signed solution."] pub fn signed_deposit_byte( &self, @@ -6279,6 +6209,7 @@ pub mod api { ], ) } + #[doc = " Per-weight deposit for a signed solution."] pub fn signed_deposit_weight( &self, @@ -6293,6 +6224,7 @@ pub mod api { ], ) } + #[doc = " The maximum number of electing voters to put in the snapshot. At the moment, snapshots"] #[doc = " are only over a single block, but once multi-block elections are introduced they will"] #[doc = " take place over multiple blocks."] @@ -6310,6 +6242,7 @@ pub mod api { ], ) } + #[doc = " The maximum number of electable targets to put in the snapshot."] pub fn max_electable_targets( &self, @@ -6324,6 +6257,7 @@ pub mod api { ], ) } + #[doc = " The maximum number of winners that can be elected by this `ElectionProvider`"] #[doc = " implementation."] #[doc = ""] @@ -6340,6 +6274,7 @@ pub mod api { ], ) } + pub fn miner_max_length( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -6354,6 +6289,7 @@ pub mod api { ], ) } + pub fn miner_max_weight( &self, ) -> ::subxt::constants::Address { @@ -6367,6 +6303,7 @@ pub mod api { ], ) } + pub fn miner_max_votes_per_voter( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -6381,6 +6318,7 @@ pub mod api { ], ) } + pub fn miner_max_winners( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { @@ -6399,15 +6337,13 @@ pub mod api { } } pub mod staking { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_staking::pallet::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_staking::pallet::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -6432,8 +6368,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for Bond { - const PALLET: &'static str = "Staking"; const CALL: &'static str = "bond"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6453,8 +6389,8 @@ pub mod api { pub max_additional: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for BondExtra { - const PALLET: &'static str = "Staking"; const CALL: &'static str = "bond_extra"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6474,8 +6410,8 @@ pub mod api { pub value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for Unbond { - const PALLET: &'static str = "Staking"; const CALL: &'static str = "unbond"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -6495,8 +6431,8 @@ pub mod api { pub num_slashing_spans: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for WithdrawUnbonded { - const PALLET: &'static str = "Staking"; const CALL: &'static str = "withdraw_unbonded"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6515,8 +6451,8 @@ pub mod api { pub prefs: runtime_types::pallet_staking::ValidatorPrefs, } impl ::subxt::blocks::StaticExtrinsic for Validate { - const PALLET: &'static str = "Staking"; const CALL: &'static str = "validate"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6540,8 +6476,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for Nominate { - const PALLET: &'static str = "Staking"; const CALL: &'static str = "nominate"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6558,8 +6494,8 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Chill; impl ::subxt::blocks::StaticExtrinsic for Chill { - const PALLET: &'static str = "Staking"; const CALL: &'static str = "chill"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6580,8 +6516,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for SetPayee { - const PALLET: &'static str = "Staking"; const CALL: &'static str = "set_payee"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6598,8 +6534,8 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct SetController; impl ::subxt::blocks::StaticExtrinsic for SetController { - const PALLET: &'static str = "Staking"; const CALL: &'static str = "set_controller"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6619,8 +6555,8 @@ pub mod api { pub new: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetValidatorCount { - const PALLET: &'static str = "Staking"; const CALL: &'static str = "set_validator_count"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6640,8 +6576,8 @@ pub mod api { pub additional: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for IncreaseValidatorCount { - const PALLET: &'static str = "Staking"; const CALL: &'static str = "increase_validator_count"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6660,8 +6596,8 @@ pub mod api { pub factor: runtime_types::sp_arithmetic::per_things::Percent, } impl ::subxt::blocks::StaticExtrinsic for ScaleValidatorCount { - const PALLET: &'static str = "Staking"; const CALL: &'static str = "scale_validator_count"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6678,8 +6614,8 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceNoEras; impl ::subxt::blocks::StaticExtrinsic for ForceNoEras { - const PALLET: &'static str = "Staking"; const CALL: &'static str = "force_no_eras"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6696,8 +6632,8 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceNewEra; impl ::subxt::blocks::StaticExtrinsic for ForceNewEra { - const PALLET: &'static str = "Staking"; const CALL: &'static str = "force_new_era"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6716,8 +6652,8 @@ pub mod api { pub invulnerables: ::std::vec::Vec<::subxt::utils::AccountId32>, } impl ::subxt::blocks::StaticExtrinsic for SetInvulnerables { - const PALLET: &'static str = "Staking"; const CALL: &'static str = "set_invulnerables"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6737,8 +6673,8 @@ pub mod api { pub num_slashing_spans: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ForceUnstake { - const PALLET: &'static str = "Staking"; const CALL: &'static str = "force_unstake"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6755,8 +6691,8 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ForceNewEraAlways; impl ::subxt::blocks::StaticExtrinsic for ForceNewEraAlways { - const PALLET: &'static str = "Staking"; const CALL: &'static str = "force_new_era_always"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6776,8 +6712,8 @@ pub mod api { pub slash_indices: ::std::vec::Vec<::core::primitive::u32>, } impl ::subxt::blocks::StaticExtrinsic for CancelDeferredSlash { - const PALLET: &'static str = "Staking"; const CALL: &'static str = "cancel_deferred_slash"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6797,8 +6733,8 @@ pub mod api { pub era: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for PayoutStakers { - const PALLET: &'static str = "Staking"; const CALL: &'static str = "payout_stakers"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6818,8 +6754,8 @@ pub mod api { pub value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for Rebond { - const PALLET: &'static str = "Staking"; const CALL: &'static str = "rebond"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6839,8 +6775,8 @@ pub mod api { pub num_slashing_spans: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ReapStash { - const PALLET: &'static str = "Staking"; const CALL: &'static str = "reap_stash"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6864,8 +6800,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for Kick { - const PALLET: &'static str = "Staking"; const CALL: &'static str = "kick"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6903,8 +6839,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for SetStakingConfigs { - const PALLET: &'static str = "Staking"; const CALL: &'static str = "set_staking_configs"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6923,8 +6859,8 @@ pub mod api { pub controller: ::subxt::utils::AccountId32, } impl ::subxt::blocks::StaticExtrinsic for ChillOther { - const PALLET: &'static str = "Staking"; const CALL: &'static str = "chill_other"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6943,8 +6879,8 @@ pub mod api { pub validator_stash: ::subxt::utils::AccountId32, } impl ::subxt::blocks::StaticExtrinsic for ForceApplyMinCommission { - const PALLET: &'static str = "Staking"; const CALL: &'static str = "force_apply_min_commission"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -6963,8 +6899,8 @@ pub mod api { pub new: runtime_types::sp_arithmetic::per_things::Perbill, } impl ::subxt::blocks::StaticExtrinsic for SetMinCommission { - const PALLET: &'static str = "Staking"; const CALL: &'static str = "set_min_commission"; + const PALLET: &'static str = "Staking"; } } pub struct TransactionApi; @@ -6988,6 +6924,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::bond_extra`]."] pub fn bond_extra( &self, @@ -7004,6 +6941,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::unbond`]."] pub fn unbond( &self, @@ -7020,6 +6958,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::withdraw_unbonded`]."] pub fn withdraw_unbonded( &self, @@ -7037,6 +6976,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::validate`]."] pub fn validate( &self, @@ -7053,6 +6993,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::nominate`]."] pub fn nominate( &self, @@ -7075,19 +7016,16 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::chill`]."] pub fn chill(&self) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "chill", - types::Chill {}, - [ - 157u8, 75u8, 243u8, 69u8, 110u8, 192u8, 22u8, 27u8, 107u8, 68u8, 236u8, - 58u8, 179u8, 34u8, 118u8, 98u8, 131u8, 62u8, 242u8, 84u8, 149u8, 24u8, - 83u8, 223u8, 78u8, 12u8, 192u8, 22u8, 111u8, 11u8, 171u8, 149u8, - ], - ) + ::subxt::tx::Payload::new_static("Staking", "chill", types::Chill {}, [ + 157u8, 75u8, 243u8, 69u8, 110u8, 192u8, 22u8, 27u8, 107u8, 68u8, 236u8, + 58u8, 179u8, 34u8, 118u8, 98u8, 131u8, 62u8, 242u8, 84u8, 149u8, 24u8, + 83u8, 223u8, 78u8, 12u8, 192u8, 22u8, 111u8, 11u8, 171u8, 149u8, + ]) } + #[doc = "See [`Pallet::set_payee`]."] pub fn set_payee( &self, @@ -7107,6 +7045,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_controller`]."] pub fn set_controller(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -7121,6 +7060,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_validator_count`]."] pub fn set_validator_count( &self, @@ -7138,6 +7078,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::increase_validator_count`]."] pub fn increase_validator_count( &self, @@ -7155,6 +7096,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::scale_validator_count`]."] pub fn scale_validator_count( &self, @@ -7172,6 +7114,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::force_no_eras`]."] pub fn force_no_eras(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -7186,6 +7129,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::force_new_era`]."] pub fn force_new_era(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -7199,6 +7143,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_invulnerables`]."] pub fn set_invulnerables( &self, @@ -7215,6 +7160,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::force_unstake`]."] pub fn force_unstake( &self, @@ -7235,6 +7181,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::force_new_era_always`]."] pub fn force_new_era_always( &self, @@ -7250,6 +7197,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::cancel_deferred_slash`]."] pub fn cancel_deferred_slash( &self, @@ -7268,6 +7216,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::payout_stakers`]."] pub fn payout_stakers( &self, @@ -7288,6 +7237,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::rebond`]."] pub fn rebond( &self, @@ -7304,6 +7254,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::reap_stash`]."] pub fn reap_stash( &self, @@ -7324,6 +7275,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::kick`]."] pub fn kick( &self, @@ -7334,17 +7286,13 @@ pub mod api { >, >, ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Staking", - "kick", - types::Kick { who }, - [ - 28u8, 254u8, 219u8, 14u8, 44u8, 187u8, 186u8, 72u8, 55u8, 21u8, 129u8, - 205u8, 225u8, 204u8, 162u8, 53u8, 255u8, 56u8, 49u8, 194u8, 63u8, 43u8, - 96u8, 177u8, 125u8, 0u8, 163u8, 97u8, 231u8, 159u8, 43u8, 249u8, - ], - ) + ::subxt::tx::Payload::new_static("Staking", "kick", types::Kick { who }, [ + 28u8, 254u8, 219u8, 14u8, 44u8, 187u8, 186u8, 72u8, 55u8, 21u8, 129u8, + 205u8, 225u8, 204u8, 162u8, 53u8, 255u8, 56u8, 49u8, 194u8, 63u8, 43u8, + 96u8, 177u8, 125u8, 0u8, 163u8, 97u8, 231u8, 159u8, 43u8, 249u8, + ]) } + #[doc = "See [`Pallet::set_staking_configs`]."] pub fn set_staking_configs( &self, @@ -7386,6 +7334,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::chill_other`]."] pub fn chill_other( &self, @@ -7402,6 +7351,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::force_apply_min_commission`]."] pub fn force_apply_min_commission( &self, @@ -7418,6 +7368,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_min_commission`]."] pub fn set_min_commission( &self, @@ -7462,8 +7413,8 @@ pub mod api { pub remainder: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for EraPaid { - const PALLET: &'static str = "Staking"; const EVENT: &'static str = "EraPaid"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -7484,8 +7435,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Rewarded { - const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Rewarded"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -7506,8 +7457,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Slashed { - const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Slashed"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -7530,8 +7481,8 @@ pub mod api { pub slash_era: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for SlashReported { - const PALLET: &'static str = "Staking"; const EVENT: &'static str = "SlashReported"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -7553,8 +7504,8 @@ pub mod api { pub session_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for OldSlashingReportDiscarded { - const PALLET: &'static str = "Staking"; const EVENT: &'static str = "OldSlashingReportDiscarded"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -7572,8 +7523,8 @@ pub mod api { #[doc = "A new set of stakers was elected."] pub struct StakersElected; impl ::subxt::events::StaticEvent for StakersElected { - const PALLET: &'static str = "Staking"; const EVENT: &'static str = "StakersElected"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -7597,8 +7548,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Bonded { - const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Bonded"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -7619,8 +7570,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Unbonded { - const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Unbonded"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -7642,8 +7593,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Withdrawn { - const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Withdrawn"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -7664,8 +7615,8 @@ pub mod api { pub stash: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Kicked { - const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Kicked"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -7683,8 +7634,8 @@ pub mod api { #[doc = "The election failed. No new era is planned."] pub struct StakingElectionFailed; impl ::subxt::events::StaticEvent for StakingElectionFailed { - const PALLET: &'static str = "Staking"; const EVENT: &'static str = "StakingElectionFailed"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -7704,8 +7655,8 @@ pub mod api { pub stash: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Chilled { - const PALLET: &'static str = "Staking"; const EVENT: &'static str = "Chilled"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -7726,8 +7677,8 @@ pub mod api { pub validator_stash: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for PayoutStarted { - const PALLET: &'static str = "Staking"; const EVENT: &'static str = "PayoutStarted"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -7748,8 +7699,8 @@ pub mod api { pub prefs: runtime_types::pallet_staking::ValidatorPrefs, } impl ::subxt::events::StaticEvent for ValidatorPrefsSet { - const PALLET: &'static str = "Staking"; const EVENT: &'static str = "ValidatorPrefsSet"; + const PALLET: &'static str = "Staking"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -7769,8 +7720,8 @@ pub mod api { pub mode: runtime_types::pallet_staking::Forcing, } impl ::subxt::events::StaticEvent for ForceEra { - const PALLET: &'static str = "Staking"; const EVENT: &'static str = "ForceEra"; + const PALLET: &'static str = "Staking"; } } pub mod storage { @@ -7799,6 +7750,7 @@ pub mod api { ], ) } + #[doc = " Minimum number of staking participants before emergency conditions are imposed."] pub fn minimum_validator_count( &self, @@ -7820,6 +7772,7 @@ pub mod api { ], ) } + #[doc = " Any validators that may never be slashed or forcibly kicked. It's a Vec since they're"] #[doc = " easy to initialize and the performance hit is minimal (we expect no more than four"] #[doc = " invulnerables) and restricted to testnets."] @@ -7844,6 +7797,7 @@ pub mod api { ], ) } + #[doc = " Map from all locked \"stash\" accounts to the controller account."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] @@ -7871,6 +7825,7 @@ pub mod api { ], ) } + #[doc = " Map from all locked \"stash\" accounts to the controller account."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] @@ -7895,6 +7850,7 @@ pub mod api { ], ) } + #[doc = " The minimum active bond to become and maintain the role of a nominator."] pub fn min_nominator_bond( &self, @@ -7917,6 +7873,7 @@ pub mod api { ], ) } + #[doc = " The minimum active bond to become and maintain the role of a validator."] pub fn min_validator_bond( &self, @@ -7939,6 +7896,7 @@ pub mod api { ], ) } + #[doc = " The minimum active nominator stake of the last successful election."] pub fn minimum_active_stake( &self, @@ -7960,6 +7918,7 @@ pub mod api { ], ) } + #[doc = " The minimum amount of commission that validators can set."] #[doc = ""] #[doc = " If set to `0`, no limit exists."] @@ -7983,6 +7942,7 @@ pub mod api { ], ) } + #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] pub fn ledger( &self, @@ -8008,6 +7968,7 @@ pub mod api { ], ) } + #[doc = " Map from all (unlocked) \"controller\" accounts to the info regarding the staking."] pub fn ledger_root( &self, @@ -8030,6 +7991,7 @@ pub mod api { ], ) } + #[doc = " Where the reward payment should be made. Keyed by stash."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] @@ -8056,6 +8018,7 @@ pub mod api { ], ) } + #[doc = " Where the reward payment should be made. Keyed by stash."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] @@ -8079,6 +8042,7 @@ pub mod api { ], ) } + #[doc = " The map from (wannabe) validator stash key to the preferences of that validator."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] @@ -8105,6 +8069,7 @@ pub mod api { ], ) } + #[doc = " The map from (wannabe) validator stash key to the preferences of that validator."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] @@ -8128,6 +8093,7 @@ pub mod api { ], ) } + #[doc = "Counter for the related counted storage map"] pub fn counter_for_validators( &self, @@ -8150,6 +8116,7 @@ pub mod api { ], ) } + #[doc = " The maximum validator count before we stop allowing new validators to join."] #[doc = ""] #[doc = " When this value is not set, no limits are enforced."] @@ -8174,6 +8141,7 @@ pub mod api { ], ) } + #[doc = " The map from nominator stash key to their nomination preferences, namely the validators that"] #[doc = " they wish to support."] #[doc = ""] @@ -8215,6 +8183,7 @@ pub mod api { ], ) } + #[doc = " The map from nominator stash key to their nomination preferences, namely the validators that"] #[doc = " they wish to support."] #[doc = ""] @@ -8253,6 +8222,7 @@ pub mod api { ], ) } + #[doc = "Counter for the related counted storage map"] pub fn counter_for_nominators( &self, @@ -8274,6 +8244,7 @@ pub mod api { ], ) } + #[doc = " The maximum nominator count before we stop allowing new validators to join."] #[doc = ""] #[doc = " When this value is not set, no limits are enforced."] @@ -8297,6 +8268,7 @@ pub mod api { ], ) } + #[doc = " The current era index."] #[doc = ""] #[doc = " This is the latest planned era, depending on how the Session pallet queues the validator"] @@ -8322,6 +8294,7 @@ pub mod api { ], ) } + #[doc = " The active era information, it holds index and start."] #[doc = ""] #[doc = " The active era is the era being currently rewarded. Validator set of this era must be"] @@ -8347,6 +8320,7 @@ pub mod api { ], ) } + #[doc = " The session index at which the era start for the last `HISTORY_DEPTH` eras."] #[doc = ""] #[doc = " Note: This tracks the starting session (i.e. session index when era start being active)"] @@ -8375,6 +8349,7 @@ pub mod api { ], ) } + #[doc = " The session index at which the era start for the last `HISTORY_DEPTH` eras."] #[doc = ""] #[doc = " Note: This tracks the starting session (i.e. session index when era start being active)"] @@ -8400,6 +8375,7 @@ pub mod api { ], ) } + #[doc = " Exposure of validator at era."] #[doc = ""] #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] @@ -8434,6 +8410,7 @@ pub mod api { ], ) } + #[doc = " Exposure of validator at era."] #[doc = ""] #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] @@ -8463,6 +8440,7 @@ pub mod api { ], ) } + #[doc = " Clipped Exposure of validator at era."] #[doc = ""] #[doc = " This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the"] @@ -8503,6 +8481,7 @@ pub mod api { ], ) } + #[doc = " Clipped Exposure of validator at era."] #[doc = ""] #[doc = " This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the"] @@ -8538,6 +8517,7 @@ pub mod api { ], ) } + #[doc = " Similar to `ErasStakers`, this holds the preferences of validators."] #[doc = ""] #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] @@ -8569,6 +8549,7 @@ pub mod api { ], ) } + #[doc = " Similar to `ErasStakers`, this holds the preferences of validators."] #[doc = ""] #[doc = " This is keyed first by the era index to allow bulk deletion and then the stash account."] @@ -8595,6 +8576,7 @@ pub mod api { ], ) } + #[doc = " The total validator era payout for the last `HISTORY_DEPTH` eras."] #[doc = ""] #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] @@ -8621,6 +8603,7 @@ pub mod api { ], ) } + #[doc = " The total validator era payout for the last `HISTORY_DEPTH` eras."] #[doc = ""] #[doc = " Eras that haven't finished yet or has been removed doesn't have reward."] @@ -8644,6 +8627,7 @@ pub mod api { ], ) } + #[doc = " Rewards for the last `HISTORY_DEPTH` eras."] #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] pub fn eras_reward_points( @@ -8669,6 +8653,7 @@ pub mod api { ], ) } + #[doc = " Rewards for the last `HISTORY_DEPTH` eras."] #[doc = " If reward hasn't been set or has been removed then 0 reward is returned."] pub fn eras_reward_points_root( @@ -8691,6 +8676,7 @@ pub mod api { ], ) } + #[doc = " The total amount staked for the last `HISTORY_DEPTH` eras."] #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] pub fn eras_total_stake( @@ -8717,6 +8703,7 @@ pub mod api { ], ) } + #[doc = " The total amount staked for the last `HISTORY_DEPTH` eras."] #[doc = " If total hasn't been set or has been removed then 0 stake is returned."] pub fn eras_total_stake_root( @@ -8740,6 +8727,7 @@ pub mod api { ], ) } + #[doc = " Mode of era forcing."] pub fn force_era( &self, @@ -8750,18 +8738,13 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static( - "Staking", - "ForceEra", - vec![], - [ - 177u8, 148u8, 73u8, 108u8, 136u8, 126u8, 89u8, 18u8, 124u8, 66u8, 30u8, - 102u8, 133u8, 164u8, 78u8, 214u8, 184u8, 163u8, 75u8, 164u8, 117u8, - 233u8, 209u8, 158u8, 99u8, 208u8, 21u8, 194u8, 152u8, 82u8, 16u8, - 222u8, - ], - ) + ::subxt::storage::address::Address::new_static("Staking", "ForceEra", vec![], [ + 177u8, 148u8, 73u8, 108u8, 136u8, 126u8, 89u8, 18u8, 124u8, 66u8, 30u8, + 102u8, 133u8, 164u8, 78u8, 214u8, 184u8, 163u8, 75u8, 164u8, 117u8, 233u8, + 209u8, 158u8, 99u8, 208u8, 21u8, 194u8, 152u8, 82u8, 16u8, 222u8, + ]) } + #[doc = " The percentage of the slash that is distributed to reporters."] #[doc = ""] #[doc = " The rest of the slashed value is handled by the `Slash`."] @@ -8786,6 +8769,7 @@ pub mod api { ], ) } + #[doc = " The amount of currency given to reporters of a slash event which was"] #[doc = " canceled by extraordinary circumstances (e.g. governance)."] pub fn canceled_slash_payout( @@ -8809,6 +8793,7 @@ pub mod api { ], ) } + #[doc = " All unapplied slashes that are queued for later."] pub fn unapplied_slashes( &self, @@ -8839,6 +8824,7 @@ pub mod api { ], ) } + #[doc = " All unapplied slashes that are queued for later."] pub fn unapplied_slashes_root( &self, @@ -8866,6 +8852,7 @@ pub mod api { ], ) } + #[doc = " A mapping from still-bonded eras to the first session index of that era."] #[doc = ""] #[doc = " Must contains information for eras for the range:"] @@ -8891,6 +8878,7 @@ pub mod api { ], ) } + #[doc = " All slashing events on validators, mapped by era to the highest slash proportion"] #[doc = " and slash value of the era."] pub fn validator_slash_in_era( @@ -8921,6 +8909,7 @@ pub mod api { ], ) } + #[doc = " All slashing events on validators, mapped by era to the highest slash proportion"] #[doc = " and slash value of the era."] pub fn validator_slash_in_era_root( @@ -8946,6 +8935,7 @@ pub mod api { ], ) } + #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] pub fn nominator_slash_in_era( &self, @@ -8972,6 +8962,7 @@ pub mod api { ], ) } + #[doc = " All slashing events on nominators, mapped by era to the highest slash value of the era."] pub fn nominator_slash_in_era_root( &self, @@ -8993,6 +8984,7 @@ pub mod api { ], ) } + #[doc = " Slashing spans for stash accounts."] pub fn slashing_spans( &self, @@ -9018,6 +9010,7 @@ pub mod api { ], ) } + #[doc = " Slashing spans for stash accounts."] pub fn slashing_spans_root( &self, @@ -9040,6 +9033,7 @@ pub mod api { ], ) } + #[doc = " Records information about the maximum slash of a stash within a slashing span,"] #[doc = " as well as how much reward has been paid out."] pub fn span_slash( @@ -9067,6 +9061,7 @@ pub mod api { ], ) } + #[doc = " Records information about the maximum slash of a stash within a slashing span,"] #[doc = " as well as how much reward has been paid out."] pub fn span_slash_root( @@ -9089,6 +9084,7 @@ pub mod api { ], ) } + #[doc = " The last planned session scheduled by the session pallet."] #[doc = ""] #[doc = " This is basically in sync with the call to [`pallet_session::SessionManager::new_session`]."] @@ -9112,6 +9108,7 @@ pub mod api { ], ) } + #[doc = " Indices of validators that have offended in the active era and whether they are currently"] #[doc = " disabled."] #[doc = ""] @@ -9142,6 +9139,7 @@ pub mod api { ], ) } + #[doc = " The threshold for when users can start calling `chill_other` for other validators /"] #[doc = " nominators. The threshold is compared to the actual number of validators / nominators"] #[doc = " (`CountFor*`) in the system compared to the configured max (`Max*Count`)."] @@ -9175,17 +9173,13 @@ pub mod api { pub fn max_nominations( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Staking", - "MaxNominations", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Staking", "MaxNominations", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " Number of eras to keep in history."] #[doc = ""] #[doc = " Following information is kept for eras in `[current_era -"] @@ -9207,47 +9201,35 @@ pub mod api { #[doc = " `StakingLedger` and will need to be handled properly in a migration."] #[doc = " The test `reducing_history_depth_abrupt` shows this effect."] pub fn history_depth(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Staking", - "HistoryDepth", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Staking", "HistoryDepth", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " Number of sessions per era."] pub fn sessions_per_era( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Staking", - "SessionsPerEra", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Staking", "SessionsPerEra", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " Number of eras that staked funds must remain bonded for."] pub fn bonding_duration( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Staking", - "BondingDuration", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Staking", "BondingDuration", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " Number of eras that slashes are deferred by, after computation."] #[doc = ""] #[doc = " This should be less than the bonding duration. Set to 0 if slashes"] @@ -9255,17 +9237,13 @@ pub mod api { pub fn slash_defer_duration( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Staking", - "SlashDeferDuration", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Staking", "SlashDeferDuration", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " The maximum number of nominators rewarded for each validator."] #[doc = ""] #[doc = " For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can"] @@ -9284,6 +9262,7 @@ pub mod api { ], ) } + #[doc = " The maximum number of `unlocking` chunks a [`StakingLedger`] can"] #[doc = " have. Effectively determines how many unique eras a staker may be"] #[doc = " unbonding in."] @@ -9297,30 +9276,23 @@ pub mod api { pub fn max_unlocking_chunks( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Staking", - "MaxUnlockingChunks", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Staking", "MaxUnlockingChunks", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } } } } pub mod session { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "Error for the session pallet."] pub type Error = runtime_types::pallet_session::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_session::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -9342,8 +9314,8 @@ pub mod api { pub proof: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for SetKeys { - const PALLET: &'static str = "Session"; const CALL: &'static str = "set_keys"; + const PALLET: &'static str = "Session"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -9360,8 +9332,8 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct PurgeKeys; impl ::subxt::blocks::StaticExtrinsic for PurgeKeys { - const PALLET: &'static str = "Session"; const CALL: &'static str = "purge_keys"; + const PALLET: &'static str = "Session"; } } pub struct TransactionApi; @@ -9383,6 +9355,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::purge_keys`]."] pub fn purge_keys(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -9423,8 +9396,8 @@ pub mod api { pub session_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for NewSession { - const PALLET: &'static str = "Session"; const EVENT: &'static str = "NewSession"; + const PALLET: &'static str = "Session"; } } pub mod storage { @@ -9453,6 +9426,7 @@ pub mod api { ], ) } + #[doc = " Current index of the session."] pub fn current_index( &self, @@ -9475,6 +9449,7 @@ pub mod api { ], ) } + #[doc = " True if the underlying economic identities or weighting behind the validators"] #[doc = " has changed in the queued validator set."] pub fn queued_changed( @@ -9498,6 +9473,7 @@ pub mod api { ], ) } + #[doc = " The queued keys for the next session. When the next session begins, these keys"] #[doc = " will be used to determine the validator's session keys."] pub fn queued_keys( @@ -9524,6 +9500,7 @@ pub mod api { ], ) } + #[doc = " Indices of disabled validators."] #[doc = ""] #[doc = " The vec is always kept sorted so that we can find whether a given validator is"] @@ -9549,6 +9526,7 @@ pub mod api { ], ) } + #[doc = " The next session keys for a validator."] pub fn next_keys( &self, @@ -9573,6 +9551,7 @@ pub mod api { ], ) } + #[doc = " The next session keys for a validator."] pub fn next_keys_root( &self, @@ -9594,6 +9573,7 @@ pub mod api { ], ) } + #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] pub fn key_owner( &self, @@ -9620,6 +9600,7 @@ pub mod api { ], ) } + #[doc = " The owner of a key. The key is the `KeyTypeId` + the encoded key."] pub fn key_owner_root( &self, @@ -9645,15 +9626,13 @@ pub mod api { } } pub mod democracy { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_democracy::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_democracy::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -9678,8 +9657,8 @@ pub mod api { pub value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for Propose { - const PALLET: &'static str = "Democracy"; const CALL: &'static str = "propose"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -9699,8 +9678,8 @@ pub mod api { pub proposal: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Second { - const PALLET: &'static str = "Democracy"; const CALL: &'static str = "second"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -9722,8 +9701,8 @@ pub mod api { runtime_types::pallet_democracy::vote::AccountVote<::core::primitive::u128>, } impl ::subxt::blocks::StaticExtrinsic for Vote { - const PALLET: &'static str = "Democracy"; const CALL: &'static str = "vote"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -9743,8 +9722,8 @@ pub mod api { pub ref_index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for EmergencyCancel { - const PALLET: &'static str = "Democracy"; const CALL: &'static str = "emergency_cancel"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -9765,8 +9744,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for ExternalPropose { - const PALLET: &'static str = "Democracy"; const CALL: &'static str = "external_propose"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -9787,8 +9766,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for ExternalProposeMajority { - const PALLET: &'static str = "Democracy"; const CALL: &'static str = "external_propose_majority"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -9809,8 +9788,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for ExternalProposeDefault { - const PALLET: &'static str = "Democracy"; const CALL: &'static str = "external_propose_default"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -9831,8 +9810,8 @@ pub mod api { pub delay: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for FastTrack { - const PALLET: &'static str = "Democracy"; const CALL: &'static str = "fast_track"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -9851,8 +9830,8 @@ pub mod api { pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for VetoExternal { - const PALLET: &'static str = "Democracy"; const CALL: &'static str = "veto_external"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -9872,8 +9851,8 @@ pub mod api { pub ref_index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for CancelReferendum { - const PALLET: &'static str = "Democracy"; const CALL: &'static str = "cancel_referendum"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -9897,8 +9876,8 @@ pub mod api { pub balance: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for Delegate { - const PALLET: &'static str = "Democracy"; const CALL: &'static str = "delegate"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -9915,8 +9894,8 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct Undelegate; impl ::subxt::blocks::StaticExtrinsic for Undelegate { - const PALLET: &'static str = "Democracy"; const CALL: &'static str = "undelegate"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -9933,8 +9912,8 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClearPublicProposals; impl ::subxt::blocks::StaticExtrinsic for ClearPublicProposals { - const PALLET: &'static str = "Democracy"; const CALL: &'static str = "clear_public_proposals"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -9956,8 +9935,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for Unlock { - const PALLET: &'static str = "Democracy"; const CALL: &'static str = "unlock"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -9977,8 +9956,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for RemoveVote { - const PALLET: &'static str = "Democracy"; const CALL: &'static str = "remove_vote"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10001,8 +9980,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for RemoveOtherVote { - const PALLET: &'static str = "Democracy"; const CALL: &'static str = "remove_other_vote"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10022,8 +10001,8 @@ pub mod api { pub maybe_ref_index: ::core::option::Option<::core::primitive::u32>, } impl ::subxt::blocks::StaticExtrinsic for Blacklist { - const PALLET: &'static str = "Democracy"; const CALL: &'static str = "blacklist"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10043,8 +10022,8 @@ pub mod api { pub prop_index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for CancelProposal { - const PALLET: &'static str = "Democracy"; const CALL: &'static str = "cancel_proposal"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10064,8 +10043,8 @@ pub mod api { pub maybe_hash: ::core::option::Option<::subxt::utils::H256>, } impl ::subxt::blocks::StaticExtrinsic for SetMetadata { - const PALLET: &'static str = "Democracy"; const CALL: &'static str = "set_metadata"; + const PALLET: &'static str = "Democracy"; } } pub struct TransactionApi; @@ -10090,6 +10069,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::second`]."] pub fn second( &self, @@ -10107,6 +10087,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::vote`]."] pub fn vote( &self, @@ -10127,6 +10108,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::emergency_cancel`]."] pub fn emergency_cancel( &self, @@ -10143,6 +10125,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::external_propose`]."] pub fn external_propose( &self, @@ -10162,6 +10145,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::external_propose_majority`]."] pub fn external_propose_majority( &self, @@ -10181,6 +10165,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::external_propose_default`]."] pub fn external_propose_default( &self, @@ -10200,6 +10185,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::fast_track`]."] pub fn fast_track( &self, @@ -10223,6 +10209,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::veto_external`]."] pub fn veto_external( &self, @@ -10240,6 +10227,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::cancel_referendum`]."] pub fn cancel_referendum( &self, @@ -10257,6 +10245,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::delegate`]."] pub fn delegate( &self, @@ -10282,6 +10271,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::undelegate`]."] pub fn undelegate(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -10296,6 +10286,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::clear_public_proposals`]."] pub fn clear_public_proposals( &self, @@ -10312,6 +10303,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::unlock`]."] pub fn unlock( &self, @@ -10331,6 +10323,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::remove_vote`]."] pub fn remove_vote( &self, @@ -10348,6 +10341,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::remove_other_vote`]."] pub fn remove_other_vote( &self, @@ -10369,6 +10363,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::blacklist`]."] pub fn blacklist( &self, @@ -10390,6 +10385,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::cancel_proposal`]."] pub fn cancel_proposal( &self, @@ -10406,6 +10402,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_metadata`]."] pub fn set_metadata( &self, @@ -10449,8 +10446,8 @@ pub mod api { pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Proposed { - const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Proposed"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10471,8 +10468,8 @@ pub mod api { pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Tabled { - const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Tabled"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10490,8 +10487,8 @@ pub mod api { #[doc = "An external proposal has been tabled."] pub struct ExternalTabled; impl ::subxt::events::StaticEvent for ExternalTabled { - const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "ExternalTabled"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10512,8 +10509,8 @@ pub mod api { pub threshold: runtime_types::pallet_democracy::vote_threshold::VoteThreshold, } impl ::subxt::events::StaticEvent for Started { - const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Started"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -10534,8 +10531,8 @@ pub mod api { pub ref_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Passed { - const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Passed"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -10556,8 +10553,8 @@ pub mod api { pub ref_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for NotPassed { - const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "NotPassed"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -10578,8 +10575,8 @@ pub mod api { pub ref_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Cancelled { - const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Cancelled"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10600,8 +10597,8 @@ pub mod api { pub target: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Delegated { - const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Delegated"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10621,8 +10618,8 @@ pub mod api { pub account: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Undelegated { - const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Undelegated"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10644,8 +10641,8 @@ pub mod api { pub until: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Vetoed { - const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Vetoed"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10665,8 +10662,8 @@ pub mod api { pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Blacklisted { - const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Blacklisted"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10689,8 +10686,8 @@ pub mod api { runtime_types::pallet_democracy::vote::AccountVote<::core::primitive::u128>, } impl ::subxt::events::StaticEvent for Voted { - const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Voted"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10711,8 +10708,8 @@ pub mod api { pub prop_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Seconded { - const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "Seconded"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -10733,8 +10730,8 @@ pub mod api { pub prop_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for ProposalCanceled { - const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "ProposalCanceled"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10755,8 +10752,8 @@ pub mod api { pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for MetadataSet { - const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "MetadataSet"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10777,8 +10774,8 @@ pub mod api { pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for MetadataCleared { - const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "MetadataCleared"; + const PALLET: &'static str = "Democracy"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -10800,8 +10797,8 @@ pub mod api { pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for MetadataTransferred { - const PALLET: &'static str = "Democracy"; const EVENT: &'static str = "MetadataTransferred"; + const PALLET: &'static str = "Democracy"; } } pub mod storage { @@ -10830,6 +10827,7 @@ pub mod api { ], ) } + #[doc = " The public proposals. Unsorted. The second item is the proposal."] pub fn public_props( &self, @@ -10857,6 +10855,7 @@ pub mod api { ], ) } + #[doc = " Those who have locked a deposit."] #[doc = ""] #[doc = " TWOX-NOTE: Safe, as increasing integer keys are safe."] @@ -10888,6 +10887,7 @@ pub mod api { ], ) } + #[doc = " Those who have locked a deposit."] #[doc = ""] #[doc = " TWOX-NOTE: Safe, as increasing integer keys are safe."] @@ -10916,6 +10916,7 @@ pub mod api { ], ) } + #[doc = " The next free referendum index, aka the number of referenda started so far."] pub fn referendum_count( &self, @@ -10938,6 +10939,7 @@ pub mod api { ], ) } + #[doc = " The lowest referendum index representing an unbaked referendum. Equal to"] #[doc = " `ReferendumCount` if there isn't a unbaked referendum."] pub fn lowest_unbaked( @@ -10960,6 +10962,7 @@ pub mod api { ], ) } + #[doc = " Information concerning any given referendum."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE as indexes are not under an attacker’s control."] @@ -10993,6 +10996,7 @@ pub mod api { ], ) } + #[doc = " Information concerning any given referendum."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE as indexes are not under an attacker’s control."] @@ -11023,6 +11027,7 @@ pub mod api { ], ) } + #[doc = " All votes for a particular voter. We store the balance for the number of votes that we"] #[doc = " have recorded. The second item is the total amount of delegations, that will be added."] #[doc = ""] @@ -11055,6 +11060,7 @@ pub mod api { ], ) } + #[doc = " All votes for a particular voter. We store the balance for the number of votes that we"] #[doc = " have recorded. The second item is the total amount of delegations, that will be added."] #[doc = ""] @@ -11084,6 +11090,7 @@ pub mod api { ], ) } + #[doc = " True if the last referendum tabled was submitted externally. False if it was a public"] #[doc = " proposal."] pub fn last_tabled_was_external( @@ -11106,6 +11113,7 @@ pub mod api { ], ) } + #[doc = " The referendum to be tabled whenever it would be valid to table an external proposal."] #[doc = " This happens when a referendum needs to be tabled and one of two conditions are met:"] #[doc = " - `LastTabledWasExternal` is `false`; or"] @@ -11135,6 +11143,7 @@ pub mod api { ], ) } + #[doc = " A record of who vetoed what. Maps proposal hash to a possible existent block number"] #[doc = " (until when it may not be resubmitted) and who vetoed it."] pub fn blacklist( @@ -11165,6 +11174,7 @@ pub mod api { ], ) } + #[doc = " A record of who vetoed what. Maps proposal hash to a possible existent block number"] #[doc = " (until when it may not be resubmitted) and who vetoed it."] pub fn blacklist_root( @@ -11192,6 +11202,7 @@ pub mod api { ], ) } + #[doc = " Record of all proposals that have been subject to emergency cancellation."] pub fn cancellations( &self, @@ -11217,6 +11228,7 @@ pub mod api { ], ) } + #[doc = " Record of all proposals that have been subject to emergency cancellation."] pub fn cancellations_root( &self, @@ -11239,6 +11251,7 @@ pub mod api { ], ) } + #[doc = " General information concerning any proposal or referendum."] #[doc = " The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON"] #[doc = " dump or IPFS hash of a JSON file."] @@ -11271,6 +11284,7 @@ pub mod api { ], ) } + #[doc = " General information concerning any proposal or referendum."] #[doc = " The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON"] #[doc = " dump or IPFS hash of a JSON file."] @@ -11312,43 +11326,31 @@ pub mod api { pub fn enactment_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Democracy", - "EnactmentPeriod", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Democracy", "EnactmentPeriod", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " How often (in blocks) new public referenda are launched."] pub fn launch_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Democracy", - "LaunchPeriod", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Democracy", "LaunchPeriod", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " How often (in blocks) to check for new votes."] pub fn voting_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Democracy", - "VotingPeriod", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Democracy", "VotingPeriod", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " The minimum period of vote locking."] #[doc = ""] #[doc = " It should be no shorter than enactment period to ensure that in the case of an approval,"] @@ -11356,147 +11358,110 @@ pub mod api { pub fn vote_locking_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Democracy", - "VoteLockingPeriod", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Democracy", "VoteLockingPeriod", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " The minimum amount to be used as a deposit for a public referendum proposal."] pub fn minimum_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Democracy", - "MinimumDeposit", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) + ::subxt::constants::Address::new_static("Democracy", "MinimumDeposit", [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ]) } + #[doc = " Indicator for whether an emergency origin is even allowed to happen. Some chains may"] #[doc = " want to set this permanently to `false`, others may want to condition it on things such"] #[doc = " as an upgrade having happened recently."] pub fn instant_allowed( &self, ) -> ::subxt::constants::Address<::core::primitive::bool> { - ::subxt::constants::Address::new_static( - "Democracy", - "InstantAllowed", - [ - 165u8, 28u8, 112u8, 190u8, 18u8, 129u8, 182u8, 206u8, 237u8, 1u8, 68u8, - 252u8, 125u8, 234u8, 185u8, 50u8, 149u8, 164u8, 47u8, 126u8, 134u8, - 100u8, 14u8, 86u8, 209u8, 39u8, 20u8, 4u8, 233u8, 115u8, 102u8, 131u8, - ], - ) + ::subxt::constants::Address::new_static("Democracy", "InstantAllowed", [ + 165u8, 28u8, 112u8, 190u8, 18u8, 129u8, 182u8, 206u8, 237u8, 1u8, 68u8, + 252u8, 125u8, 234u8, 185u8, 50u8, 149u8, 164u8, 47u8, 126u8, 134u8, 100u8, + 14u8, 86u8, 209u8, 39u8, 20u8, 4u8, 233u8, 115u8, 102u8, 131u8, + ]) } + #[doc = " Minimum voting period allowed for a fast-track referendum."] pub fn fast_track_voting_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Democracy", - "FastTrackVotingPeriod", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Democracy", "FastTrackVotingPeriod", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " Period in blocks where an external proposal may not be re-submitted after being vetoed."] pub fn cooloff_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Democracy", - "CooloffPeriod", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Democracy", "CooloffPeriod", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " The maximum number of votes for an account."] #[doc = ""] #[doc = " Also used to compute weight, an overly big value can"] #[doc = " lead to extrinsic with very big weight: see `delegate` for instance."] pub fn max_votes(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Democracy", - "MaxVotes", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Democracy", "MaxVotes", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " The maximum number of public proposals that can exist at any time."] pub fn max_proposals(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Democracy", - "MaxProposals", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Democracy", "MaxProposals", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " The maximum number of deposits a public proposal may have at any time."] pub fn max_deposits(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Democracy", - "MaxDeposits", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Democracy", "MaxDeposits", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " The maximum number of items which can be blacklisted."] pub fn max_blacklisted( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Democracy", - "MaxBlacklisted", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Democracy", "MaxBlacklisted", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } } } } pub mod council { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_collective::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_collective::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -11519,8 +11484,8 @@ pub mod api { pub old_count: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetMembers { - const PALLET: &'static str = "Council"; const CALL: &'static str = "set_members"; + const PALLET: &'static str = "Council"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11541,8 +11506,8 @@ pub mod api { pub length_bound: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Execute { - const PALLET: &'static str = "Council"; const CALL: &'static str = "execute"; + const PALLET: &'static str = "Council"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11565,8 +11530,8 @@ pub mod api { pub length_bound: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Propose { - const PALLET: &'static str = "Council"; const CALL: &'static str = "propose"; + const PALLET: &'static str = "Council"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11588,8 +11553,8 @@ pub mod api { pub approve: ::core::primitive::bool, } impl ::subxt::blocks::StaticExtrinsic for Vote { - const PALLET: &'static str = "Council"; const CALL: &'static str = "vote"; + const PALLET: &'static str = "Council"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11608,8 +11573,8 @@ pub mod api { pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for DisapproveProposal { - const PALLET: &'static str = "Council"; const CALL: &'static str = "disapprove_proposal"; + const PALLET: &'static str = "Council"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11633,8 +11598,8 @@ pub mod api { pub length_bound: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Close { - const PALLET: &'static str = "Council"; const CALL: &'static str = "close"; + const PALLET: &'static str = "Council"; } } pub struct TransactionApi; @@ -11662,6 +11627,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::execute`]."] pub fn execute( &self, @@ -11683,6 +11649,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::propose`]."] pub fn propose( &self, @@ -11705,6 +11672,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::vote`]."] pub fn vote( &self, @@ -11728,6 +11696,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::disapprove_proposal`]."] pub fn disapprove_proposal( &self, @@ -11744,6 +11713,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::close`]."] pub fn close( &self, @@ -11796,8 +11766,8 @@ pub mod api { pub threshold: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Proposed { - const PALLET: &'static str = "Council"; const EVENT: &'static str = "Proposed"; + const PALLET: &'static str = "Council"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11822,8 +11792,8 @@ pub mod api { pub no: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Voted { - const PALLET: &'static str = "Council"; const EVENT: &'static str = "Voted"; + const PALLET: &'static str = "Council"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11843,8 +11813,8 @@ pub mod api { pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Approved { - const PALLET: &'static str = "Council"; const EVENT: &'static str = "Approved"; + const PALLET: &'static str = "Council"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11864,8 +11834,8 @@ pub mod api { pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Disapproved { - const PALLET: &'static str = "Council"; const EVENT: &'static str = "Disapproved"; + const PALLET: &'static str = "Council"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11886,8 +11856,8 @@ pub mod api { pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for Executed { - const PALLET: &'static str = "Council"; const EVENT: &'static str = "Executed"; + const PALLET: &'static str = "Council"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11908,8 +11878,8 @@ pub mod api { pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for MemberExecuted { - const PALLET: &'static str = "Council"; const EVENT: &'static str = "MemberExecuted"; + const PALLET: &'static str = "Council"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -11931,8 +11901,8 @@ pub mod api { pub no: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Closed { - const PALLET: &'static str = "Council"; const EVENT: &'static str = "Closed"; + const PALLET: &'static str = "Council"; } } pub mod storage { @@ -11962,6 +11932,7 @@ pub mod api { ], ) } + #[doc = " Actual proposal for a given hash, if it's current."] pub fn proposal_of( &self, @@ -11987,6 +11958,7 @@ pub mod api { ], ) } + #[doc = " Actual proposal for a given hash, if it's current."] pub fn proposal_of_root( &self, @@ -12009,6 +11981,7 @@ pub mod api { ], ) } + #[doc = " Votes on a given proposal, if it is ongoing."] pub fn voting( &self, @@ -12036,6 +12009,7 @@ pub mod api { ], ) } + #[doc = " Votes on a given proposal, if it is ongoing."] pub fn voting_root( &self, @@ -12060,6 +12034,7 @@ pub mod api { ], ) } + #[doc = " Proposals so far."] pub fn proposal_count( &self, @@ -12081,6 +12056,7 @@ pub mod api { ], ) } + #[doc = " The current members of the collective. This is stored sorted (just by value)."] pub fn members( &self, @@ -12091,17 +12067,13 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static( - "Council", - "Members", - vec![], - [ - 16u8, 29u8, 32u8, 222u8, 175u8, 136u8, 111u8, 101u8, 43u8, 74u8, 209u8, - 81u8, 47u8, 97u8, 129u8, 39u8, 225u8, 243u8, 110u8, 229u8, 237u8, 21u8, - 90u8, 127u8, 80u8, 239u8, 156u8, 32u8, 90u8, 109u8, 179u8, 0u8, - ], - ) + ::subxt::storage::address::Address::new_static("Council", "Members", vec![], [ + 16u8, 29u8, 32u8, 222u8, 175u8, 136u8, 111u8, 101u8, 43u8, 74u8, 209u8, + 81u8, 47u8, 97u8, 129u8, 39u8, 225u8, 243u8, 110u8, 229u8, 237u8, 21u8, + 90u8, 127u8, 80u8, 239u8, 156u8, 32u8, 90u8, 109u8, 179u8, 0u8, + ]) } + #[doc = " The prime member that helps determine the default vote behavior in case of absentations."] pub fn prime( &self, @@ -12112,16 +12084,11 @@ pub mod api { (), (), > { - ::subxt::storage::address::Address::new_static( - "Council", - "Prime", - vec![], - [ - 72u8, 128u8, 214u8, 72u8, 78u8, 80u8, 100u8, 198u8, 114u8, 215u8, 59u8, - 3u8, 103u8, 14u8, 152u8, 202u8, 12u8, 165u8, 224u8, 10u8, 41u8, 154u8, - 77u8, 95u8, 116u8, 143u8, 250u8, 250u8, 176u8, 92u8, 238u8, 154u8, - ], - ) + ::subxt::storage::address::Address::new_static("Council", "Prime", vec![], [ + 72u8, 128u8, 214u8, 72u8, 78u8, 80u8, 100u8, 198u8, 114u8, 215u8, 59u8, + 3u8, 103u8, 14u8, 152u8, 202u8, 12u8, 165u8, 224u8, 10u8, 41u8, 154u8, + 77u8, 95u8, 116u8, 143u8, 250u8, 250u8, 176u8, 92u8, 238u8, 154u8, + ]) } } } @@ -12133,29 +12100,23 @@ pub mod api { pub fn max_proposal_weight( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static( - "Council", - "MaxProposalWeight", - [ - 222u8, 183u8, 203u8, 169u8, 31u8, 134u8, 28u8, 12u8, 47u8, 140u8, 71u8, - 74u8, 61u8, 55u8, 71u8, 236u8, 215u8, 83u8, 28u8, 70u8, 45u8, 128u8, - 184u8, 57u8, 101u8, 83u8, 42u8, 165u8, 34u8, 155u8, 64u8, 145u8, - ], - ) + ::subxt::constants::Address::new_static("Council", "MaxProposalWeight", [ + 222u8, 183u8, 203u8, 169u8, 31u8, 134u8, 28u8, 12u8, 47u8, 140u8, 71u8, + 74u8, 61u8, 55u8, 71u8, 236u8, 215u8, 83u8, 28u8, 70u8, 45u8, 128u8, 184u8, + 57u8, 101u8, 83u8, 42u8, 165u8, 34u8, 155u8, 64u8, 145u8, + ]) } } } } pub mod technical_committee { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_collective::pallet::Error2; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_collective::pallet::Call2; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -12178,8 +12139,8 @@ pub mod api { pub old_count: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SetMembers { - const PALLET: &'static str = "TechnicalCommittee"; const CALL: &'static str = "set_members"; + const PALLET: &'static str = "TechnicalCommittee"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12200,8 +12161,8 @@ pub mod api { pub length_bound: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Execute { - const PALLET: &'static str = "TechnicalCommittee"; const CALL: &'static str = "execute"; + const PALLET: &'static str = "TechnicalCommittee"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12224,8 +12185,8 @@ pub mod api { pub length_bound: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Propose { - const PALLET: &'static str = "TechnicalCommittee"; const CALL: &'static str = "propose"; + const PALLET: &'static str = "TechnicalCommittee"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12247,8 +12208,8 @@ pub mod api { pub approve: ::core::primitive::bool, } impl ::subxt::blocks::StaticExtrinsic for Vote { - const PALLET: &'static str = "TechnicalCommittee"; const CALL: &'static str = "vote"; + const PALLET: &'static str = "TechnicalCommittee"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12267,8 +12228,8 @@ pub mod api { pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for DisapproveProposal { - const PALLET: &'static str = "TechnicalCommittee"; const CALL: &'static str = "disapprove_proposal"; + const PALLET: &'static str = "TechnicalCommittee"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12292,8 +12253,8 @@ pub mod api { pub length_bound: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Close { - const PALLET: &'static str = "TechnicalCommittee"; const CALL: &'static str = "close"; + const PALLET: &'static str = "TechnicalCommittee"; } } pub struct TransactionApi; @@ -12321,6 +12282,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::execute`]."] pub fn execute( &self, @@ -12342,6 +12304,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::propose`]."] pub fn propose( &self, @@ -12364,6 +12327,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::vote`]."] pub fn vote( &self, @@ -12387,6 +12351,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::disapprove_proposal`]."] pub fn disapprove_proposal( &self, @@ -12403,6 +12368,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::close`]."] pub fn close( &self, @@ -12455,8 +12421,8 @@ pub mod api { pub threshold: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Proposed { - const PALLET: &'static str = "TechnicalCommittee"; const EVENT: &'static str = "Proposed"; + const PALLET: &'static str = "TechnicalCommittee"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12481,8 +12447,8 @@ pub mod api { pub no: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Voted { - const PALLET: &'static str = "TechnicalCommittee"; const EVENT: &'static str = "Voted"; + const PALLET: &'static str = "TechnicalCommittee"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12502,8 +12468,8 @@ pub mod api { pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Approved { - const PALLET: &'static str = "TechnicalCommittee"; const EVENT: &'static str = "Approved"; + const PALLET: &'static str = "TechnicalCommittee"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12523,8 +12489,8 @@ pub mod api { pub proposal_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Disapproved { - const PALLET: &'static str = "TechnicalCommittee"; const EVENT: &'static str = "Disapproved"; + const PALLET: &'static str = "TechnicalCommittee"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12545,8 +12511,8 @@ pub mod api { pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for Executed { - const PALLET: &'static str = "TechnicalCommittee"; const EVENT: &'static str = "Executed"; + const PALLET: &'static str = "TechnicalCommittee"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12567,8 +12533,8 @@ pub mod api { pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for MemberExecuted { - const PALLET: &'static str = "TechnicalCommittee"; const EVENT: &'static str = "MemberExecuted"; + const PALLET: &'static str = "TechnicalCommittee"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12590,8 +12556,8 @@ pub mod api { pub no: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Closed { - const PALLET: &'static str = "TechnicalCommittee"; const EVENT: &'static str = "Closed"; + const PALLET: &'static str = "TechnicalCommittee"; } } pub mod storage { @@ -12621,6 +12587,7 @@ pub mod api { ], ) } + #[doc = " Actual proposal for a given hash, if it's current."] pub fn proposal_of( &self, @@ -12646,6 +12613,7 @@ pub mod api { ], ) } + #[doc = " Actual proposal for a given hash, if it's current."] pub fn proposal_of_root( &self, @@ -12668,6 +12636,7 @@ pub mod api { ], ) } + #[doc = " Votes on a given proposal, if it is ongoing."] pub fn voting( &self, @@ -12695,6 +12664,7 @@ pub mod api { ], ) } + #[doc = " Votes on a given proposal, if it is ongoing."] pub fn voting_root( &self, @@ -12719,6 +12689,7 @@ pub mod api { ], ) } + #[doc = " Proposals so far."] pub fn proposal_count( &self, @@ -12740,6 +12711,7 @@ pub mod api { ], ) } + #[doc = " The current members of the collective. This is stored sorted (just by value)."] pub fn members( &self, @@ -12761,6 +12733,7 @@ pub mod api { ], ) } + #[doc = " The prime member that helps determine the default vote behavior in case of absentations."] pub fn prime( &self, @@ -12806,15 +12779,13 @@ pub mod api { } } pub mod elections { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_elections_phragmen::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_elections_phragmen::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -12837,8 +12808,8 @@ pub mod api { pub value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for Vote { - const PALLET: &'static str = "Elections"; const CALL: &'static str = "vote"; + const PALLET: &'static str = "Elections"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12855,8 +12826,8 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct RemoveVoter; impl ::subxt::blocks::StaticExtrinsic for RemoveVoter { - const PALLET: &'static str = "Elections"; const CALL: &'static str = "remove_voter"; + const PALLET: &'static str = "Elections"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12876,8 +12847,8 @@ pub mod api { pub candidate_count: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SubmitCandidacy { - const PALLET: &'static str = "Elections"; const CALL: &'static str = "submit_candidacy"; + const PALLET: &'static str = "Elections"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12896,8 +12867,8 @@ pub mod api { pub renouncing: runtime_types::pallet_elections_phragmen::Renouncing, } impl ::subxt::blocks::StaticExtrinsic for RenounceCandidacy { - const PALLET: &'static str = "Elections"; const CALL: &'static str = "renounce_candidacy"; + const PALLET: &'static str = "Elections"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12921,8 +12892,8 @@ pub mod api { pub rerun_election: ::core::primitive::bool, } impl ::subxt::blocks::StaticExtrinsic for RemoveMember { - const PALLET: &'static str = "Elections"; const CALL: &'static str = "remove_member"; + const PALLET: &'static str = "Elections"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -12942,8 +12913,8 @@ pub mod api { pub num_defunct: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for CleanDefunctVoters { - const PALLET: &'static str = "Elections"; const CALL: &'static str = "clean_defunct_voters"; + const PALLET: &'static str = "Elections"; } } pub struct TransactionApi; @@ -12965,6 +12936,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::remove_voter`]."] pub fn remove_voter(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -12979,6 +12951,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::submit_candidacy`]."] pub fn submit_candidacy( &self, @@ -12996,6 +12969,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::renounce_candidacy`]."] pub fn renounce_candidacy( &self, @@ -13013,6 +12987,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::remove_member`]."] pub fn remove_member( &self, @@ -13039,6 +13014,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::clean_defunct_voters`]."] pub fn clean_defunct_voters( &self, @@ -13089,8 +13065,8 @@ pub mod api { ::std::vec::Vec<(::subxt::utils::AccountId32, ::core::primitive::u128)>, } impl ::subxt::events::StaticEvent for NewTerm { - const PALLET: &'static str = "Elections"; const EVENT: &'static str = "NewTerm"; + const PALLET: &'static str = "Elections"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13109,8 +13085,8 @@ pub mod api { #[doc = "`NewTerm(\\[\\])`. See the description of `NewTerm`."] pub struct EmptyTerm; impl ::subxt::events::StaticEvent for EmptyTerm { - const PALLET: &'static str = "Elections"; const EVENT: &'static str = "EmptyTerm"; + const PALLET: &'static str = "Elections"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13128,8 +13104,8 @@ pub mod api { #[doc = "Internal error happened while trying to perform election."] pub struct ElectionError; impl ::subxt::events::StaticEvent for ElectionError { - const PALLET: &'static str = "Elections"; const EVENT: &'static str = "ElectionError"; + const PALLET: &'static str = "Elections"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13150,8 +13126,8 @@ pub mod api { pub member: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for MemberKicked { - const PALLET: &'static str = "Elections"; const EVENT: &'static str = "MemberKicked"; + const PALLET: &'static str = "Elections"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13171,8 +13147,8 @@ pub mod api { pub candidate: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Renounced { - const PALLET: &'static str = "Elections"; const EVENT: &'static str = "Renounced"; + const PALLET: &'static str = "Elections"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13196,8 +13172,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for CandidateSlashed { - const PALLET: &'static str = "Elections"; const EVENT: &'static str = "CandidateSlashed"; + const PALLET: &'static str = "Elections"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13218,8 +13194,8 @@ pub mod api { pub amount: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for SeatHolderSlashed { - const PALLET: &'static str = "Elections"; const EVENT: &'static str = "SeatHolderSlashed"; + const PALLET: &'static str = "Elections"; } } pub mod storage { @@ -13255,6 +13231,7 @@ pub mod api { ], ) } + #[doc = " The current reserved runners-up."] #[doc = ""] #[doc = " Invariant: Always sorted based on rank (worse to best). Upon removal of a member, the"] @@ -13285,6 +13262,7 @@ pub mod api { ], ) } + #[doc = " The present candidate list. A current member or runner-up can never enter this vector"] #[doc = " and is always implicitly assumed to be a candidate."] #[doc = ""] @@ -13311,6 +13289,7 @@ pub mod api { ], ) } + #[doc = " The total number of vote rounds that have happened, excluding the upcoming one."] pub fn election_rounds( &self, @@ -13332,6 +13311,7 @@ pub mod api { ], ) } + #[doc = " Votes and locked stake of a particular voter."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE as `AccountId` is a crypto hash."] @@ -13361,6 +13341,7 @@ pub mod api { ], ) } + #[doc = " Votes and locked stake of a particular voter."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE as `AccountId` is a crypto hash."] @@ -13397,30 +13378,24 @@ pub mod api { pub fn pallet_id( &self, ) -> ::subxt::constants::Address<[::core::primitive::u8; 8usize]> { - ::subxt::constants::Address::new_static( - "Elections", - "PalletId", - [ - 157u8, 118u8, 79u8, 88u8, 241u8, 22u8, 185u8, 37u8, 42u8, 20u8, 133u8, - 240u8, 11u8, 25u8, 66u8, 154u8, 84u8, 163u8, 78u8, 92u8, 171u8, 82u8, - 248u8, 76u8, 189u8, 70u8, 142u8, 249u8, 153u8, 84u8, 180u8, 60u8, - ], - ) + ::subxt::constants::Address::new_static("Elections", "PalletId", [ + 157u8, 118u8, 79u8, 88u8, 241u8, 22u8, 185u8, 37u8, 42u8, 20u8, 133u8, + 240u8, 11u8, 25u8, 66u8, 154u8, 84u8, 163u8, 78u8, 92u8, 171u8, 82u8, + 248u8, 76u8, 189u8, 70u8, 142u8, 249u8, 153u8, 84u8, 180u8, 60u8, + ]) } + #[doc = " How much should be locked up in order to submit one's candidacy."] pub fn candidacy_bond( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Elections", - "CandidacyBond", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) + ::subxt::constants::Address::new_static("Elections", "CandidacyBond", [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ]) } + #[doc = " Base deposit associated with voting."] #[doc = ""] #[doc = " This should be sensibly high to economically ensure the pallet cannot be attacked by"] @@ -13428,75 +13403,57 @@ pub mod api { pub fn voting_bond_base( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Elections", - "VotingBondBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) + ::subxt::constants::Address::new_static("Elections", "VotingBondBase", [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ]) } + #[doc = " The amount of bond that need to be locked for each vote (32 bytes)."] pub fn voting_bond_factor( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Elections", - "VotingBondFactor", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) + ::subxt::constants::Address::new_static("Elections", "VotingBondFactor", [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ]) } + #[doc = " Number of members to elect."] pub fn desired_members( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Elections", - "DesiredMembers", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Elections", "DesiredMembers", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " Number of runners_up to keep."] pub fn desired_runners_up( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Elections", - "DesiredRunnersUp", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Elections", "DesiredRunnersUp", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " How long each seat is kept. This defines the next block number at which an election"] #[doc = " round will happen. If set to zero, no elections are ever triggered and the module will"] #[doc = " be in passive mode."] pub fn term_duration(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Elections", - "TermDuration", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Elections", "TermDuration", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " The maximum number of candidates in a phragmen election."] #[doc = ""] #[doc = " Warning: This impacts the size of the election which is run onchain. Chose wisely, and"] @@ -13506,17 +13463,13 @@ pub mod api { pub fn max_candidates( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Elections", - "MaxCandidates", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Elections", "MaxCandidates", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " The maximum number of voters to allow in a phragmen election."] #[doc = ""] #[doc = " Warning: This impacts the size of the election which is run onchain. Chose wisely, and"] @@ -13524,17 +13477,13 @@ pub mod api { #[doc = ""] #[doc = " When the limit is reached the new voters are ignored."] pub fn max_voters(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Elections", - "MaxVoters", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Elections", "MaxVoters", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " Maximum numbers of votes per voter."] #[doc = ""] #[doc = " Warning: This impacts the size of the election which is run onchain. Chose wisely, and"] @@ -13542,30 +13491,23 @@ pub mod api { pub fn max_votes_per_voter( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Elections", - "MaxVotesPerVoter", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Elections", "MaxVotesPerVoter", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } } } } pub mod technical_membership { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_membership::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_membership::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -13589,8 +13531,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for AddMember { - const PALLET: &'static str = "TechnicalMembership"; const CALL: &'static str = "add_member"; + const PALLET: &'static str = "TechnicalMembership"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13612,8 +13554,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for RemoveMember { - const PALLET: &'static str = "TechnicalMembership"; const CALL: &'static str = "remove_member"; + const PALLET: &'static str = "TechnicalMembership"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13639,8 +13581,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for SwapMember { - const PALLET: &'static str = "TechnicalMembership"; const CALL: &'static str = "swap_member"; + const PALLET: &'static str = "TechnicalMembership"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13659,8 +13601,8 @@ pub mod api { pub members: ::std::vec::Vec<::subxt::utils::AccountId32>, } impl ::subxt::blocks::StaticExtrinsic for ResetMembers { - const PALLET: &'static str = "TechnicalMembership"; const CALL: &'static str = "reset_members"; + const PALLET: &'static str = "TechnicalMembership"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13682,8 +13624,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for ChangeKey { - const PALLET: &'static str = "TechnicalMembership"; const CALL: &'static str = "change_key"; + const PALLET: &'static str = "TechnicalMembership"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13705,8 +13647,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for SetPrime { - const PALLET: &'static str = "TechnicalMembership"; const CALL: &'static str = "set_prime"; + const PALLET: &'static str = "TechnicalMembership"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13723,8 +13665,8 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClearPrime; impl ::subxt::blocks::StaticExtrinsic for ClearPrime { - const PALLET: &'static str = "TechnicalMembership"; const CALL: &'static str = "clear_prime"; + const PALLET: &'static str = "TechnicalMembership"; } } pub struct TransactionApi; @@ -13748,6 +13690,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::remove_member`]."] pub fn remove_member( &self, @@ -13768,6 +13711,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::swap_member`]."] pub fn swap_member( &self, @@ -13792,6 +13736,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::reset_members`]."] pub fn reset_members( &self, @@ -13808,6 +13753,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::change_key`]."] pub fn change_key( &self, @@ -13828,6 +13774,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_prime`]."] pub fn set_prime( &self, @@ -13848,6 +13795,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::clear_prime`]."] pub fn clear_prime(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -13883,8 +13831,8 @@ pub mod api { #[doc = "The given member was added; see the transaction for who."] pub struct MemberAdded; impl ::subxt::events::StaticEvent for MemberAdded { - const PALLET: &'static str = "TechnicalMembership"; const EVENT: &'static str = "MemberAdded"; + const PALLET: &'static str = "TechnicalMembership"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13902,8 +13850,8 @@ pub mod api { #[doc = "The given member was removed; see the transaction for who."] pub struct MemberRemoved; impl ::subxt::events::StaticEvent for MemberRemoved { - const PALLET: &'static str = "TechnicalMembership"; const EVENT: &'static str = "MemberRemoved"; + const PALLET: &'static str = "TechnicalMembership"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13921,8 +13869,8 @@ pub mod api { #[doc = "Two members were swapped; see the transaction for who."] pub struct MembersSwapped; impl ::subxt::events::StaticEvent for MembersSwapped { - const PALLET: &'static str = "TechnicalMembership"; const EVENT: &'static str = "MembersSwapped"; + const PALLET: &'static str = "TechnicalMembership"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13940,8 +13888,8 @@ pub mod api { #[doc = "The membership was reset; see the transaction for who the new set is."] pub struct MembersReset; impl ::subxt::events::StaticEvent for MembersReset { - const PALLET: &'static str = "TechnicalMembership"; const EVENT: &'static str = "MembersReset"; + const PALLET: &'static str = "TechnicalMembership"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13959,8 +13907,8 @@ pub mod api { #[doc = "One of the members' keys changed."] pub struct KeyChanged; impl ::subxt::events::StaticEvent for KeyChanged { - const PALLET: &'static str = "TechnicalMembership"; const EVENT: &'static str = "KeyChanged"; + const PALLET: &'static str = "TechnicalMembership"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -13978,8 +13926,8 @@ pub mod api { #[doc = "Phantom member, never used."] pub struct Dummy; impl ::subxt::events::StaticEvent for Dummy { - const PALLET: &'static str = "TechnicalMembership"; const EVENT: &'static str = "Dummy"; + const PALLET: &'static str = "TechnicalMembership"; } } pub mod storage { @@ -14010,6 +13958,7 @@ pub mod api { ], ) } + #[doc = " The current prime member, if one exists."] pub fn prime( &self, @@ -14035,15 +13984,13 @@ pub mod api { } } pub mod grandpa { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_grandpa::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_grandpa::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -14070,8 +14017,8 @@ pub mod api { pub key_owner_proof: runtime_types::sp_session::MembershipProof, } impl ::subxt::blocks::StaticExtrinsic for ReportEquivocation { - const PALLET: &'static str = "Grandpa"; const CALL: &'static str = "report_equivocation"; + const PALLET: &'static str = "Grandpa"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14096,8 +14043,8 @@ pub mod api { pub key_owner_proof: runtime_types::sp_session::MembershipProof, } impl ::subxt::blocks::StaticExtrinsic for ReportEquivocationUnsigned { - const PALLET: &'static str = "Grandpa"; const CALL: &'static str = "report_equivocation_unsigned"; + const PALLET: &'static str = "Grandpa"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14117,8 +14064,8 @@ pub mod api { pub best_finalized_block_number: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for NoteStalled { - const PALLET: &'static str = "Grandpa"; const CALL: &'static str = "note_stalled"; + const PALLET: &'static str = "Grandpa"; } } pub struct TransactionApi; @@ -14147,6 +14094,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::report_equivocation_unsigned`]."] pub fn report_equivocation_unsigned( &self, @@ -14170,6 +14118,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::note_stalled`]."] pub fn note_stalled( &self, @@ -14218,8 +14167,8 @@ pub mod api { )>, } impl ::subxt::events::StaticEvent for NewAuthorities { - const PALLET: &'static str = "Grandpa"; const EVENT: &'static str = "NewAuthorities"; + const PALLET: &'static str = "Grandpa"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14237,8 +14186,8 @@ pub mod api { #[doc = "Current authority set has been paused."] pub struct Paused; impl ::subxt::events::StaticEvent for Paused { - const PALLET: &'static str = "Grandpa"; const EVENT: &'static str = "Paused"; + const PALLET: &'static str = "Grandpa"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14256,8 +14205,8 @@ pub mod api { #[doc = "Current authority set has been resumed."] pub struct Resumed; impl ::subxt::events::StaticEvent for Resumed { - const PALLET: &'static str = "Grandpa"; const EVENT: &'static str = "Resumed"; + const PALLET: &'static str = "Grandpa"; } } pub mod storage { @@ -14274,17 +14223,13 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static( - "Grandpa", - "State", - vec![], - [ - 254u8, 81u8, 54u8, 203u8, 26u8, 74u8, 162u8, 215u8, 165u8, 247u8, - 143u8, 139u8, 242u8, 164u8, 67u8, 27u8, 97u8, 172u8, 66u8, 98u8, 28u8, - 151u8, 32u8, 38u8, 209u8, 82u8, 41u8, 209u8, 72u8, 3u8, 167u8, 42u8, - ], - ) + ::subxt::storage::address::Address::new_static("Grandpa", "State", vec![], [ + 254u8, 81u8, 54u8, 203u8, 26u8, 74u8, 162u8, 215u8, 165u8, 247u8, 143u8, + 139u8, 242u8, 164u8, 67u8, 27u8, 97u8, 172u8, 66u8, 98u8, 28u8, 151u8, + 32u8, 38u8, 209u8, 82u8, 41u8, 209u8, 72u8, 3u8, 167u8, 42u8, + ]) } + #[doc = " Pending change: (signaled at, scheduled change)."] pub fn pending_change( &self, @@ -14306,6 +14251,7 @@ pub mod api { ], ) } + #[doc = " next block number where we can force a change."] pub fn next_forced( &self, @@ -14327,6 +14273,7 @@ pub mod api { ], ) } + #[doc = " `true` if we are currently stalled."] pub fn stalled( &self, @@ -14337,17 +14284,13 @@ pub mod api { (), (), > { - ::subxt::storage::address::Address::new_static( - "Grandpa", - "Stalled", - vec![], - [ - 146u8, 18u8, 59u8, 59u8, 21u8, 246u8, 5u8, 167u8, 221u8, 8u8, 230u8, - 74u8, 81u8, 217u8, 67u8, 158u8, 136u8, 36u8, 23u8, 106u8, 136u8, 89u8, - 110u8, 217u8, 31u8, 138u8, 107u8, 251u8, 164u8, 10u8, 119u8, 18u8, - ], - ) + ::subxt::storage::address::Address::new_static("Grandpa", "Stalled", vec![], [ + 146u8, 18u8, 59u8, 59u8, 21u8, 246u8, 5u8, 167u8, 221u8, 8u8, 230u8, 74u8, + 81u8, 217u8, 67u8, 158u8, 136u8, 36u8, 23u8, 106u8, 136u8, 89u8, 110u8, + 217u8, 31u8, 138u8, 107u8, 251u8, 164u8, 10u8, 119u8, 18u8, + ]) } + #[doc = " The number of changes (both in terms of keys and underlying economic responsibilities)"] #[doc = " in the \"set\" of Grandpa validators from genesis."] pub fn current_set_id( @@ -14371,6 +14314,7 @@ pub mod api { ], ) } + #[doc = " A mapping from grandpa set ID to the index of the *most recent* session for which its"] #[doc = " members were responsible."] #[doc = ""] @@ -14404,6 +14348,7 @@ pub mod api { ], ) } + #[doc = " A mapping from grandpa set ID to the index of the *most recent* session for which its"] #[doc = " members were responsible."] #[doc = ""] @@ -14444,17 +14389,13 @@ pub mod api { pub fn max_authorities( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Grandpa", - "MaxAuthorities", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Grandpa", "MaxAuthorities", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " The maximum number of entries to keep in the set id to session index mapping."] #[doc = ""] #[doc = " Since the `SetIdSession` map is only used for validating equivocations this"] @@ -14464,30 +14405,23 @@ pub mod api { pub fn max_set_id_session_entries( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static( - "Grandpa", - "MaxSetIdSessionEntries", - [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, - 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, - 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, - 246u8, - ], - ) + ::subxt::constants::Address::new_static("Grandpa", "MaxSetIdSessionEntries", [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, 59u8, + 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, 119u8, + 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, + ]) } } } } pub mod treasury { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "Error for the treasury pallet."] pub type Error = runtime_types::pallet_treasury::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_treasury::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -14513,8 +14447,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for ProposeSpend { - const PALLET: &'static str = "Treasury"; const CALL: &'static str = "propose_spend"; + const PALLET: &'static str = "Treasury"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14534,8 +14468,8 @@ pub mod api { pub proposal_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for RejectProposal { - const PALLET: &'static str = "Treasury"; const CALL: &'static str = "reject_proposal"; + const PALLET: &'static str = "Treasury"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14555,8 +14489,8 @@ pub mod api { pub proposal_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ApproveProposal { - const PALLET: &'static str = "Treasury"; const CALL: &'static str = "approve_proposal"; + const PALLET: &'static str = "Treasury"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14580,8 +14514,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for Spend { - const PALLET: &'static str = "Treasury"; const CALL: &'static str = "spend"; + const PALLET: &'static str = "Treasury"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14601,8 +14535,8 @@ pub mod api { pub proposal_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for RemoveApproval { - const PALLET: &'static str = "Treasury"; const CALL: &'static str = "remove_approval"; + const PALLET: &'static str = "Treasury"; } } pub struct TransactionApi; @@ -14628,6 +14562,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::reject_proposal`]."] pub fn reject_proposal( &self, @@ -14644,6 +14579,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::approve_proposal`]."] pub fn approve_proposal( &self, @@ -14660,6 +14596,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::spend`]."] pub fn spend( &self, @@ -14683,6 +14620,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::remove_approval`]."] pub fn remove_approval( &self, @@ -14725,8 +14663,8 @@ pub mod api { pub proposal_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Proposed { - const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "Proposed"; + const PALLET: &'static str = "Treasury"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -14747,8 +14685,8 @@ pub mod api { pub budget_remaining: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Spending { - const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "Spending"; + const PALLET: &'static str = "Treasury"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14770,8 +14708,8 @@ pub mod api { pub account: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for Awarded { - const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "Awarded"; + const PALLET: &'static str = "Treasury"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14792,8 +14730,8 @@ pub mod api { pub slashed: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Rejected { - const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "Rejected"; + const PALLET: &'static str = "Treasury"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -14814,8 +14752,8 @@ pub mod api { pub burnt_funds: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Burnt { - const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "Burnt"; + const PALLET: &'static str = "Treasury"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -14836,8 +14774,8 @@ pub mod api { pub rollover_balance: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Rollover { - const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "Rollover"; + const PALLET: &'static str = "Treasury"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -14858,8 +14796,8 @@ pub mod api { pub value: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Deposit { - const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "Deposit"; + const PALLET: &'static str = "Treasury"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14881,8 +14819,8 @@ pub mod api { pub beneficiary: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for SpendApproved { - const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "SpendApproved"; + const PALLET: &'static str = "Treasury"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -14903,8 +14841,8 @@ pub mod api { pub deactivated: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for UpdatedInactive { - const PALLET: &'static str = "Treasury"; const EVENT: &'static str = "UpdatedInactive"; + const PALLET: &'static str = "Treasury"; } } pub mod storage { @@ -14932,6 +14870,7 @@ pub mod api { ], ) } + #[doc = " Proposals that have been made."] pub fn proposals( &self, @@ -14959,6 +14898,7 @@ pub mod api { ], ) } + #[doc = " Proposals that have been made."] pub fn proposals_root( &self, @@ -14983,6 +14923,7 @@ pub mod api { ], ) } + #[doc = " The amount which has been reported as inactive to Currency."] pub fn deactivated( &self, @@ -15005,6 +14946,7 @@ pub mod api { ], ) } + #[doc = " Proposal indices that have been approved but not yet awarded."] pub fn approvals( &self, @@ -15040,115 +14982,88 @@ pub mod api { &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static( - "Treasury", - "ProposalBond", - [ - 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, - 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, - 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, - ], - ) + ::subxt::constants::Address::new_static("Treasury", "ProposalBond", [ + 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, 114u8, + 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, 200u8, + 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, + ]) } + #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] pub fn proposal_bond_minimum( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Treasury", - "ProposalBondMinimum", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) + ::subxt::constants::Address::new_static("Treasury", "ProposalBondMinimum", [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ]) } + #[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."] pub fn proposal_bond_maximum( &self, ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> { - ::subxt::constants::Address::new_static( - "Treasury", - "ProposalBondMaximum", - [ - 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, - 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, - 215u8, 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, - 147u8, - ], - ) + ::subxt::constants::Address::new_static("Treasury", "ProposalBondMaximum", [ + 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, + 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, 215u8, + 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, 147u8, + ]) } + #[doc = " Period between successive spends."] pub fn spend_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Treasury", - "SpendPeriod", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Treasury", "SpendPeriod", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " Percentage of spare funds (if any) that are burnt per spend period."] pub fn burn( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static( - "Treasury", - "Burn", - [ - 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, - 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, - 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, - ], - ) + ::subxt::constants::Address::new_static("Treasury", "Burn", [ + 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, 114u8, + 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, 200u8, + 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, + ]) } + #[doc = " The treasury's pallet id, used for deriving its sovereign account ID."] pub fn pallet_id( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static( - "Treasury", - "PalletId", - [ - 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, - 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, - 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, - ], - ) + ::subxt::constants::Address::new_static("Treasury", "PalletId", [ + 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, + 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, + 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, + ]) } + #[doc = " The maximum number of approvals that can wait in the spending queue."] #[doc = ""] #[doc = " NOTE: This parameter is also used within the Bounties Pallet extension if enabled."] pub fn max_approvals(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Treasury", - "MaxApprovals", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Treasury", "MaxApprovals", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } } } } pub mod sudo { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "Error for the Sudo pallet"] pub type Error = runtime_types::pallet_sudo::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_sudo::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -15169,8 +15084,8 @@ pub mod api { pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for Sudo { - const PALLET: &'static str = "Sudo"; const CALL: &'static str = "sudo"; + const PALLET: &'static str = "Sudo"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15190,8 +15105,8 @@ pub mod api { pub weight: runtime_types::sp_weights::weight_v2::Weight, } impl ::subxt::blocks::StaticExtrinsic for SudoUncheckedWeight { - const PALLET: &'static str = "Sudo"; const CALL: &'static str = "sudo_unchecked_weight"; + const PALLET: &'static str = "Sudo"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15213,8 +15128,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for SetKey { - const PALLET: &'static str = "Sudo"; const CALL: &'static str = "set_key"; + const PALLET: &'static str = "Sudo"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15237,8 +15152,8 @@ pub mod api { pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for SudoAs { - const PALLET: &'static str = "Sudo"; const CALL: &'static str = "sudo_as"; + const PALLET: &'static str = "Sudo"; } } pub struct TransactionApi; @@ -15261,6 +15176,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::sudo_unchecked_weight`]."] pub fn sudo_unchecked_weight( &self, @@ -15282,6 +15198,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_key`]."] pub fn set_key( &self, @@ -15290,18 +15207,13 @@ pub mod api { ::core::primitive::u32, >, ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Sudo", - "set_key", - types::SetKey { new }, - [ - 46u8, 208u8, 84u8, 223u8, 141u8, 188u8, 184u8, 156u8, 101u8, 97u8, - 255u8, 166u8, 168u8, 102u8, 75u8, 3u8, 149u8, 105u8, 202u8, 220u8, - 187u8, 117u8, 156u8, 83u8, 159u8, 115u8, 231u8, 201u8, 171u8, 47u8, - 170u8, 36u8, - ], - ) + ::subxt::tx::Payload::new_static("Sudo", "set_key", types::SetKey { new }, [ + 46u8, 208u8, 84u8, 223u8, 141u8, 188u8, 184u8, 156u8, 101u8, 97u8, 255u8, + 166u8, 168u8, 102u8, 75u8, 3u8, 149u8, 105u8, 202u8, 220u8, 187u8, 117u8, + 156u8, 83u8, 159u8, 115u8, 231u8, 201u8, 171u8, 47u8, 170u8, 36u8, + ]) } + #[doc = "See [`Pallet::sudo_as`]."] pub fn sudo_as( &self, @@ -15351,8 +15263,8 @@ pub mod api { ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for Sudid { - const PALLET: &'static str = "Sudo"; const EVENT: &'static str = "Sudid"; + const PALLET: &'static str = "Sudo"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15372,8 +15284,8 @@ pub mod api { pub old_sudoer: ::core::option::Option<::subxt::utils::AccountId32>, } impl ::subxt::events::StaticEvent for KeyChanged { - const PALLET: &'static str = "Sudo"; const EVENT: &'static str = "KeyChanged"; + const PALLET: &'static str = "Sudo"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15394,8 +15306,8 @@ pub mod api { ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for SudoAsDone { - const PALLET: &'static str = "Sudo"; const EVENT: &'static str = "SudoAsDone"; + const PALLET: &'static str = "Sudo"; } } pub mod storage { @@ -15412,30 +15324,23 @@ pub mod api { (), (), > { - ::subxt::storage::address::Address::new_static( - "Sudo", - "Key", - vec![], - [ - 72u8, 14u8, 225u8, 162u8, 205u8, 247u8, 227u8, 105u8, 116u8, 57u8, 4u8, - 31u8, 84u8, 137u8, 227u8, 228u8, 133u8, 245u8, 206u8, 227u8, 117u8, - 36u8, 252u8, 151u8, 107u8, 15u8, 180u8, 4u8, 4u8, 152u8, 195u8, 144u8, - ], - ) + ::subxt::storage::address::Address::new_static("Sudo", "Key", vec![], [ + 72u8, 14u8, 225u8, 162u8, 205u8, 247u8, 227u8, 105u8, 116u8, 57u8, 4u8, + 31u8, 84u8, 137u8, 227u8, 228u8, 133u8, 245u8, 206u8, 227u8, 117u8, 36u8, + 252u8, 151u8, 107u8, 15u8, 180u8, 4u8, 4u8, 152u8, 195u8, 144u8, + ]) } } } } pub mod im_online { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_im_online::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_im_online::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -15458,8 +15363,8 @@ pub mod api { pub signature: runtime_types::pallet_im_online::sr25519::app_sr25519::Signature, } impl ::subxt::blocks::StaticExtrinsic for Heartbeat { - const PALLET: &'static str = "ImOnline"; const CALL: &'static str = "heartbeat"; + const PALLET: &'static str = "ImOnline"; } } pub struct TransactionApi; @@ -15509,8 +15414,8 @@ pub mod api { pub authority_id: runtime_types::pallet_im_online::sr25519::app_sr25519::Public, } impl ::subxt::events::StaticEvent for HeartbeatReceived { - const PALLET: &'static str = "ImOnline"; const EVENT: &'static str = "HeartbeatReceived"; + const PALLET: &'static str = "ImOnline"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15528,8 +15433,8 @@ pub mod api { #[doc = "At the end of the session, no offence was committed."] pub struct AllGood; impl ::subxt::events::StaticEvent for AllGood { - const PALLET: &'static str = "ImOnline"; const EVENT: &'static str = "AllGood"; + const PALLET: &'static str = "ImOnline"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -15555,8 +15460,8 @@ pub mod api { )>, } impl ::subxt::events::StaticEvent for SomeOffline { - const PALLET: &'static str = "ImOnline"; const EVENT: &'static str = "SomeOffline"; + const PALLET: &'static str = "ImOnline"; } } pub mod storage { @@ -15594,6 +15499,7 @@ pub mod api { ], ) } + #[doc = " The current set of keys that may issue a heartbeat."] pub fn keys( &self, @@ -15606,18 +15512,13 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static( - "ImOnline", - "Keys", - vec![], - [ - 111u8, 104u8, 188u8, 46u8, 152u8, 140u8, 137u8, 244u8, 52u8, 214u8, - 115u8, 156u8, 39u8, 239u8, 15u8, 168u8, 193u8, 125u8, 57u8, 195u8, - 250u8, 156u8, 234u8, 222u8, 222u8, 253u8, 135u8, 232u8, 196u8, 163u8, - 29u8, 218u8, - ], - ) + ::subxt::storage::address::Address::new_static("ImOnline", "Keys", vec![], [ + 111u8, 104u8, 188u8, 46u8, 152u8, 140u8, 137u8, 244u8, 52u8, 214u8, 115u8, + 156u8, 39u8, 239u8, 15u8, 168u8, 193u8, 125u8, 57u8, 195u8, 250u8, 156u8, + 234u8, 222u8, 222u8, 253u8, 135u8, 232u8, 196u8, 163u8, 29u8, 218u8, + ]) } + #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] pub fn received_heartbeats( &self, @@ -15644,6 +15545,7 @@ pub mod api { ], ) } + #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] pub fn received_heartbeats_root( &self, @@ -15665,6 +15567,7 @@ pub mod api { ], ) } + #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] #[doc = " number of blocks authored by the given authority."] pub fn authored_blocks( @@ -15693,6 +15596,7 @@ pub mod api { ], ) } + #[doc = " For each session index, we keep a mapping of `ValidatorId` to the"] #[doc = " number of blocks authored by the given authority."] pub fn authored_blocks_root( @@ -15729,23 +15633,17 @@ pub mod api { pub fn unsigned_priority( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static( - "ImOnline", - "UnsignedPriority", - [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, - 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, - 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, - 246u8, - ], - ) + ::subxt::constants::Address::new_static("ImOnline", "UnsignedPriority", [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, 59u8, + 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, 119u8, + 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, + ]) } } } } pub mod authority_discovery { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; pub mod storage { use super::runtime_types; pub struct StorageApi; @@ -15774,6 +15672,7 @@ pub mod api { ], ) } + #[doc = " Keys of the next authority set."] pub fn next_keys( &self, @@ -15801,8 +15700,7 @@ pub mod api { } } pub mod offences { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "Events type."] pub type Event = runtime_types::pallet_offences::pallet::Event; pub mod events { @@ -15828,8 +15726,8 @@ pub mod api { pub timeslot: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::events::StaticEvent for Offence { - const PALLET: &'static str = "Offences"; const EVENT: &'static str = "Offence"; + const PALLET: &'static str = "Offences"; } } pub mod storage { @@ -15870,6 +15768,7 @@ pub mod api { ], ) } + #[doc = " The primary structure that holds all offence records keyed by report identifiers."] pub fn reports_root( &self, @@ -15901,6 +15800,7 @@ pub mod api { ], ) } + #[doc = " A vector of reports of the same kind that happened at the same time slot."] pub fn concurrent_reports_index( &self, @@ -15928,6 +15828,7 @@ pub mod api { ], ) } + #[doc = " A vector of reports of the same kind that happened at the same time slot."] pub fn concurrent_reports_index_root( &self, @@ -15954,8 +15855,7 @@ pub mod api { } } pub mod historical { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; pub mod storage { use super::runtime_types; pub struct StorageApi; @@ -15985,6 +15885,7 @@ pub mod api { ], ) } + #[doc = " Mapping from historical session indices to session-data root hash and validator count."] pub fn historical_sessions_root( &self, @@ -16007,6 +15908,7 @@ pub mod api { ], ) } + #[doc = " The range of historical sessions we store. [first, last)"] pub fn stored_range( &self, @@ -16033,15 +15935,13 @@ pub mod api { } } pub mod scheduler { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_scheduler::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_scheduler::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -16066,8 +15966,8 @@ pub mod api { pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for Schedule { - const PALLET: &'static str = "Scheduler"; const CALL: &'static str = "schedule"; + const PALLET: &'static str = "Scheduler"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16087,8 +15987,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Cancel { - const PALLET: &'static str = "Scheduler"; const CALL: &'static str = "cancel"; + const PALLET: &'static str = "Scheduler"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16112,8 +16012,8 @@ pub mod api { pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for ScheduleNamed { - const PALLET: &'static str = "Scheduler"; const CALL: &'static str = "schedule_named"; + const PALLET: &'static str = "Scheduler"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16132,8 +16032,8 @@ pub mod api { pub id: [::core::primitive::u8; 32usize], } impl ::subxt::blocks::StaticExtrinsic for CancelNamed { - const PALLET: &'static str = "Scheduler"; const CALL: &'static str = "cancel_named"; + const PALLET: &'static str = "Scheduler"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16156,8 +16056,8 @@ pub mod api { pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for ScheduleAfter { - const PALLET: &'static str = "Scheduler"; const CALL: &'static str = "schedule_after"; + const PALLET: &'static str = "Scheduler"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16181,8 +16081,8 @@ pub mod api { pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for ScheduleNamedAfter { - const PALLET: &'static str = "Scheduler"; const CALL: &'static str = "schedule_named_after"; + const PALLET: &'static str = "Scheduler"; } } pub struct TransactionApi; @@ -16215,6 +16115,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::cancel`]."] pub fn cancel( &self, @@ -16233,6 +16134,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::schedule_named`]."] pub fn schedule_named( &self, @@ -16262,6 +16164,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::cancel_named`]."] pub fn cancel_named( &self, @@ -16278,6 +16181,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::schedule_after`]."] pub fn schedule_after( &self, @@ -16306,6 +16210,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::schedule_named_after`]."] pub fn schedule_named_after( &self, @@ -16360,8 +16265,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Scheduled { - const PALLET: &'static str = "Scheduler"; const EVENT: &'static str = "Scheduled"; + const PALLET: &'static str = "Scheduler"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16382,8 +16287,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Canceled { - const PALLET: &'static str = "Scheduler"; const EVENT: &'static str = "Canceled"; + const PALLET: &'static str = "Scheduler"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16405,8 +16310,8 @@ pub mod api { pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for Dispatched { - const PALLET: &'static str = "Scheduler"; const EVENT: &'static str = "Dispatched"; + const PALLET: &'static str = "Scheduler"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16427,8 +16332,8 @@ pub mod api { pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, } impl ::subxt::events::StaticEvent for CallUnavailable { - const PALLET: &'static str = "Scheduler"; const EVENT: &'static str = "CallUnavailable"; + const PALLET: &'static str = "Scheduler"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16449,8 +16354,8 @@ pub mod api { pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, } impl ::subxt::events::StaticEvent for PeriodicFailed { - const PALLET: &'static str = "Scheduler"; const EVENT: &'static str = "PeriodicFailed"; + const PALLET: &'static str = "Scheduler"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16471,8 +16376,8 @@ pub mod api { pub id: ::core::option::Option<[::core::primitive::u8; 32usize]>, } impl ::subxt::events::StaticEvent for PermanentlyOverweight { - const PALLET: &'static str = "Scheduler"; const EVENT: &'static str = "PermanentlyOverweight"; + const PALLET: &'static str = "Scheduler"; } } pub mod storage { @@ -16499,6 +16404,7 @@ pub mod api { ], ) } + #[doc = " Items to be executed, indexed by the block number that they should be executed on."] pub fn agenda( &self, @@ -16536,6 +16442,7 @@ pub mod api { ], ) } + #[doc = " Items to be executed, indexed by the block number that they should be executed on."] pub fn agenda_root( &self, @@ -16570,6 +16477,7 @@ pub mod api { ], ) } + #[doc = " Lookup from a name to the block number and index of the task."] #[doc = ""] #[doc = " For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4"] @@ -16598,6 +16506,7 @@ pub mod api { ], ) } + #[doc = " Lookup from a name to the block number and index of the task."] #[doc = ""] #[doc = " For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4"] @@ -16633,16 +16542,13 @@ pub mod api { pub fn maximum_weight( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static( - "Scheduler", - "MaximumWeight", - [ - 222u8, 183u8, 203u8, 169u8, 31u8, 134u8, 28u8, 12u8, 47u8, 140u8, 71u8, - 74u8, 61u8, 55u8, 71u8, 236u8, 215u8, 83u8, 28u8, 70u8, 45u8, 128u8, - 184u8, 57u8, 101u8, 83u8, 42u8, 165u8, 34u8, 155u8, 64u8, 145u8, - ], - ) + ::subxt::constants::Address::new_static("Scheduler", "MaximumWeight", [ + 222u8, 183u8, 203u8, 169u8, 31u8, 134u8, 28u8, 12u8, 47u8, 140u8, 71u8, + 74u8, 61u8, 55u8, 71u8, 236u8, 215u8, 83u8, 28u8, 70u8, 45u8, 128u8, 184u8, + 57u8, 101u8, 83u8, 42u8, 165u8, 34u8, 155u8, 64u8, 145u8, + ]) } + #[doc = " The maximum number of scheduled calls in the queue for a single block."] #[doc = ""] #[doc = " NOTE:"] @@ -16651,30 +16557,23 @@ pub mod api { pub fn max_scheduled_per_block( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Scheduler", - "MaxScheduledPerBlock", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Scheduler", "MaxScheduledPerBlock", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } } } } pub mod bounties { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_bounties::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_bounties::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -16697,8 +16596,8 @@ pub mod api { pub description: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for ProposeBounty { - const PALLET: &'static str = "Bounties"; const CALL: &'static str = "propose_bounty"; + const PALLET: &'static str = "Bounties"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16718,8 +16617,8 @@ pub mod api { pub bounty_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ApproveBounty { - const PALLET: &'static str = "Bounties"; const CALL: &'static str = "approve_bounty"; + const PALLET: &'static str = "Bounties"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16745,8 +16644,8 @@ pub mod api { pub fee: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for ProposeCurator { - const PALLET: &'static str = "Bounties"; const CALL: &'static str = "propose_curator"; + const PALLET: &'static str = "Bounties"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16766,8 +16665,8 @@ pub mod api { pub bounty_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for UnassignCurator { - const PALLET: &'static str = "Bounties"; const CALL: &'static str = "unassign_curator"; + const PALLET: &'static str = "Bounties"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16787,8 +16686,8 @@ pub mod api { pub bounty_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for AcceptCurator { - const PALLET: &'static str = "Bounties"; const CALL: &'static str = "accept_curator"; + const PALLET: &'static str = "Bounties"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16812,8 +16711,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for AwardBounty { - const PALLET: &'static str = "Bounties"; const CALL: &'static str = "award_bounty"; + const PALLET: &'static str = "Bounties"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16833,8 +16732,8 @@ pub mod api { pub bounty_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ClaimBounty { - const PALLET: &'static str = "Bounties"; const CALL: &'static str = "claim_bounty"; + const PALLET: &'static str = "Bounties"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16854,8 +16753,8 @@ pub mod api { pub bounty_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for CloseBounty { - const PALLET: &'static str = "Bounties"; const CALL: &'static str = "close_bounty"; + const PALLET: &'static str = "Bounties"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -16876,8 +16775,8 @@ pub mod api { pub remark: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for ExtendBountyExpiry { - const PALLET: &'static str = "Bounties"; const CALL: &'static str = "extend_bounty_expiry"; + const PALLET: &'static str = "Bounties"; } } pub struct TransactionApi; @@ -16899,6 +16798,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::approve_bounty`]."] pub fn approve_bounty( &self, @@ -16916,6 +16816,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::propose_curator`]."] pub fn propose_curator( &self, @@ -16942,6 +16843,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::unassign_curator`]."] pub fn unassign_curator( &self, @@ -16959,6 +16861,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::accept_curator`]."] pub fn accept_curator( &self, @@ -16975,6 +16878,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::award_bounty`]."] pub fn award_bounty( &self, @@ -16999,6 +16903,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::claim_bounty`]."] pub fn claim_bounty( &self, @@ -17016,6 +16921,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::close_bounty`]."] pub fn close_bounty( &self, @@ -17033,6 +16939,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::extend_bounty_expiry`]."] pub fn extend_bounty_expiry( &self, @@ -17076,8 +16983,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for BountyProposed { - const PALLET: &'static str = "Bounties"; const EVENT: &'static str = "BountyProposed"; + const PALLET: &'static str = "Bounties"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17098,8 +17005,8 @@ pub mod api { pub bond: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for BountyRejected { - const PALLET: &'static str = "Bounties"; const EVENT: &'static str = "BountyRejected"; + const PALLET: &'static str = "Bounties"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -17120,8 +17027,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for BountyBecameActive { - const PALLET: &'static str = "Bounties"; const EVENT: &'static str = "BountyBecameActive"; + const PALLET: &'static str = "Bounties"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17142,8 +17049,8 @@ pub mod api { pub beneficiary: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for BountyAwarded { - const PALLET: &'static str = "Bounties"; const EVENT: &'static str = "BountyAwarded"; + const PALLET: &'static str = "Bounties"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17165,8 +17072,8 @@ pub mod api { pub beneficiary: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for BountyClaimed { - const PALLET: &'static str = "Bounties"; const EVENT: &'static str = "BountyClaimed"; + const PALLET: &'static str = "Bounties"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -17187,8 +17094,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for BountyCanceled { - const PALLET: &'static str = "Bounties"; const EVENT: &'static str = "BountyCanceled"; + const PALLET: &'static str = "Bounties"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -17209,8 +17116,8 @@ pub mod api { pub index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for BountyExtended { - const PALLET: &'static str = "Bounties"; const EVENT: &'static str = "BountyExtended"; + const PALLET: &'static str = "Bounties"; } } pub mod storage { @@ -17239,6 +17146,7 @@ pub mod api { ], ) } + #[doc = " Bounties that have been made."] pub fn bounties( &self, @@ -17268,6 +17176,7 @@ pub mod api { ], ) } + #[doc = " Bounties that have been made."] pub fn bounties_root( &self, @@ -17294,6 +17203,7 @@ pub mod api { ], ) } + #[doc = " The description of each bounty."] pub fn bounty_descriptions( &self, @@ -17320,6 +17230,7 @@ pub mod api { ], ) } + #[doc = " The description of each bounty."] pub fn bounty_descriptions_root( &self, @@ -17343,6 +17254,7 @@ pub mod api { ], ) } + #[doc = " Bounty indices that have been approved but not yet funded."] pub fn bounty_approvals( &self, @@ -17376,16 +17288,13 @@ pub mod api { pub fn bounty_deposit_base( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Bounties", - "BountyDepositBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) + ::subxt::constants::Address::new_static("Bounties", "BountyDepositBase", [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ]) } + #[doc = " The delay period for which a bounty beneficiary need to wait before claim the payout."] pub fn bounty_deposit_payout_delay( &self, @@ -17401,21 +17310,18 @@ pub mod api { ], ) } + #[doc = " Bounty duration in blocks."] pub fn bounty_update_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Bounties", - "BountyUpdatePeriod", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Bounties", "BountyUpdatePeriod", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " The curator deposit is calculated as a percentage of the curator fee."] #[doc = ""] #[doc = " This deposit has optional upper and lower bounds with `CuratorDepositMax` and"] @@ -17434,94 +17340,74 @@ pub mod api { ], ) } + #[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."] pub fn curator_deposit_max( &self, ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> { - ::subxt::constants::Address::new_static( - "Bounties", - "CuratorDepositMax", - [ - 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, - 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, - 215u8, 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, - 147u8, - ], - ) + ::subxt::constants::Address::new_static("Bounties", "CuratorDepositMax", [ + 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, + 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, 215u8, + 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, 147u8, + ]) } + #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] pub fn curator_deposit_min( &self, ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> { - ::subxt::constants::Address::new_static( - "Bounties", - "CuratorDepositMin", - [ - 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, - 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, - 215u8, 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, - 147u8, - ], - ) + ::subxt::constants::Address::new_static("Bounties", "CuratorDepositMin", [ + 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, + 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, 215u8, + 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, 147u8, + ]) } + #[doc = " Minimum value for a bounty."] pub fn bounty_value_minimum( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Bounties", - "BountyValueMinimum", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) + ::subxt::constants::Address::new_static("Bounties", "BountyValueMinimum", [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ]) } + #[doc = " The amount held on deposit per byte within the tip report reason or bounty description."] pub fn data_deposit_per_byte( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Bounties", - "DataDepositPerByte", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) + ::subxt::constants::Address::new_static("Bounties", "DataDepositPerByte", [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ]) } + #[doc = " Maximum acceptable reason length."] #[doc = ""] #[doc = " Benchmarks depend on this value, be sure to update weights file when changing this value"] pub fn maximum_reason_length( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Bounties", - "MaximumReasonLength", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Bounties", "MaximumReasonLength", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } } } } pub mod tips { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_tips::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_tips::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -17546,8 +17432,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for ReportAwesome { - const PALLET: &'static str = "Tips"; const CALL: &'static str = "report_awesome"; + const PALLET: &'static str = "Tips"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17566,8 +17452,8 @@ pub mod api { pub hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for RetractTip { - const PALLET: &'static str = "Tips"; const CALL: &'static str = "retract_tip"; + const PALLET: &'static str = "Tips"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17592,8 +17478,8 @@ pub mod api { pub tip_value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for TipNew { - const PALLET: &'static str = "Tips"; const CALL: &'static str = "tip_new"; + const PALLET: &'static str = "Tips"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17614,8 +17500,8 @@ pub mod api { pub tip_value: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for Tip { - const PALLET: &'static str = "Tips"; const CALL: &'static str = "tip"; + const PALLET: &'static str = "Tips"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17634,8 +17520,8 @@ pub mod api { pub hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for CloseTip { - const PALLET: &'static str = "Tips"; const CALL: &'static str = "close_tip"; + const PALLET: &'static str = "Tips"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17654,8 +17540,8 @@ pub mod api { pub hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for SlashTip { - const PALLET: &'static str = "Tips"; const CALL: &'static str = "slash_tip"; + const PALLET: &'static str = "Tips"; } } pub struct TransactionApi; @@ -17681,6 +17567,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::retract_tip`]."] pub fn retract_tip( &self, @@ -17698,6 +17585,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::tip_new`]."] pub fn tip_new( &self, @@ -17724,6 +17612,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::tip`]."] pub fn tip( &self, @@ -17742,6 +17631,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::close_tip`]."] pub fn close_tip( &self, @@ -17759,6 +17649,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::slash_tip`]."] pub fn slash_tip( &self, @@ -17800,8 +17691,8 @@ pub mod api { pub tip_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for NewTip { - const PALLET: &'static str = "Tips"; const EVENT: &'static str = "NewTip"; + const PALLET: &'static str = "Tips"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17821,8 +17712,8 @@ pub mod api { pub tip_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for TipClosing { - const PALLET: &'static str = "Tips"; const EVENT: &'static str = "TipClosing"; + const PALLET: &'static str = "Tips"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17844,8 +17735,8 @@ pub mod api { pub payout: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for TipClosed { - const PALLET: &'static str = "Tips"; const EVENT: &'static str = "TipClosed"; + const PALLET: &'static str = "Tips"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17865,8 +17756,8 @@ pub mod api { pub tip_hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for TipRetracted { - const PALLET: &'static str = "Tips"; const EVENT: &'static str = "TipRetracted"; + const PALLET: &'static str = "Tips"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -17888,8 +17779,8 @@ pub mod api { pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for TipSlashed { - const PALLET: &'static str = "Tips"; const EVENT: &'static str = "TipSlashed"; + const PALLET: &'static str = "Tips"; } } pub mod storage { @@ -17927,6 +17818,7 @@ pub mod api { ], ) } + #[doc = " TipsMap that are not yet completed. Keyed by the hash of `(reason, who)` from the value."] #[doc = " This has the insecure enumerable hash function since the key itself is already"] #[doc = " guaranteed to be a secure hash."] @@ -17944,17 +17836,13 @@ pub mod api { (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::Address::new_static( - "Tips", - "Tips", - Vec::new(), - [ - 173u8, 172u8, 116u8, 247u8, 202u8, 228u8, 47u8, 222u8, 67u8, 146u8, - 225u8, 0u8, 74u8, 189u8, 226u8, 206u8, 245u8, 209u8, 26u8, 49u8, 189u8, - 73u8, 20u8, 117u8, 30u8, 41u8, 129u8, 170u8, 5u8, 226u8, 92u8, 140u8, - ], - ) + ::subxt::storage::address::Address::new_static("Tips", "Tips", Vec::new(), [ + 173u8, 172u8, 116u8, 247u8, 202u8, 228u8, 47u8, 222u8, 67u8, 146u8, 225u8, + 0u8, 74u8, 189u8, 226u8, 206u8, 245u8, 209u8, 26u8, 49u8, 189u8, 73u8, + 20u8, 117u8, 30u8, 41u8, 129u8, 170u8, 5u8, 226u8, 92u8, 140u8, + ]) } + #[doc = " Simple preimage lookup from the reason's hash to the original data. Again, has an"] #[doc = " insecure enumerable hash since the key is guaranteed to be the result of a secure hash."] pub fn reasons( @@ -17981,6 +17869,7 @@ pub mod api { ], ) } + #[doc = " Simple preimage lookup from the reason's hash to the original data. Again, has an"] #[doc = " insecure enumerable hash since the key is guaranteed to be the result of a secure hash."] pub fn reasons_root( @@ -17992,17 +17881,11 @@ pub mod api { (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::Address::new_static( - "Tips", - "Reasons", - Vec::new(), - [ - 212u8, 224u8, 153u8, 133u8, 234u8, 213u8, 134u8, 255u8, 59u8, 61u8, - 200u8, 47u8, 186u8, 177u8, 35u8, 108u8, 85u8, 144u8, 185u8, 69u8, - 159u8, 38u8, 83u8, 166u8, 200u8, 20u8, 220u8, 234u8, 59u8, 61u8, 223u8, - 167u8, - ], - ) + ::subxt::storage::address::Address::new_static("Tips", "Reasons", Vec::new(), [ + 212u8, 224u8, 153u8, 133u8, 234u8, 213u8, 134u8, 255u8, 59u8, 61u8, 200u8, + 47u8, 186u8, 177u8, 35u8, 108u8, 85u8, 144u8, 185u8, 69u8, 159u8, 38u8, + 83u8, 166u8, 200u8, 20u8, 220u8, 234u8, 59u8, 61u8, 223u8, 167u8, + ]) } } } @@ -18016,80 +17899,60 @@ pub mod api { pub fn maximum_reason_length( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Tips", - "MaximumReasonLength", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Tips", "MaximumReasonLength", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " The amount held on deposit per byte within the tip report reason or bounty description."] pub fn data_deposit_per_byte( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Tips", - "DataDepositPerByte", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) + ::subxt::constants::Address::new_static("Tips", "DataDepositPerByte", [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ]) } + #[doc = " The period for which a tip remains open after is has achieved threshold tippers."] pub fn tip_countdown(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Tips", - "TipCountdown", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Tips", "TipCountdown", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " The percent of the final tip which goes to the original reporter of the tip."] pub fn tip_finders_fee( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static( - "Tips", - "TipFindersFee", - [ - 40u8, 171u8, 69u8, 196u8, 34u8, 184u8, 50u8, 128u8, 139u8, 192u8, 63u8, - 231u8, 249u8, 200u8, 252u8, 73u8, 244u8, 170u8, 51u8, 177u8, 106u8, - 47u8, 114u8, 234u8, 84u8, 104u8, 62u8, 118u8, 227u8, 50u8, 225u8, - 122u8, - ], - ) + ::subxt::constants::Address::new_static("Tips", "TipFindersFee", [ + 40u8, 171u8, 69u8, 196u8, 34u8, 184u8, 50u8, 128u8, 139u8, 192u8, 63u8, + 231u8, 249u8, 200u8, 252u8, 73u8, 244u8, 170u8, 51u8, 177u8, 106u8, 47u8, + 114u8, 234u8, 84u8, 104u8, 62u8, 118u8, 227u8, 50u8, 225u8, 122u8, + ]) } + #[doc = " The amount held on deposit for placing a tip report."] pub fn tip_report_deposit_base( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Tips", - "TipReportDepositBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) + ::subxt::constants::Address::new_static("Tips", "TipReportDepositBase", [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ]) } } } } pub mod mmr { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; pub mod storage { use super::runtime_types; pub struct StorageApi; @@ -18104,17 +17967,13 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static( - "Mmr", - "RootHash", - vec![], - [ - 111u8, 206u8, 173u8, 92u8, 67u8, 49u8, 150u8, 113u8, 90u8, 245u8, 38u8, - 254u8, 76u8, 250u8, 167u8, 66u8, 130u8, 129u8, 251u8, 220u8, 172u8, - 229u8, 162u8, 251u8, 36u8, 227u8, 43u8, 189u8, 7u8, 106u8, 23u8, 13u8, - ], - ) + ::subxt::storage::address::Address::new_static("Mmr", "RootHash", vec![], [ + 111u8, 206u8, 173u8, 92u8, 67u8, 49u8, 150u8, 113u8, 90u8, 245u8, 38u8, + 254u8, 76u8, 250u8, 167u8, 66u8, 130u8, 129u8, 251u8, 220u8, 172u8, 229u8, + 162u8, 251u8, 36u8, 227u8, 43u8, 189u8, 7u8, 106u8, 23u8, 13u8, + ]) } + #[doc = " Current size of the MMR (number of leaves)."] pub fn number_of_leaves( &self, @@ -18136,6 +17995,7 @@ pub mod api { ], ) } + #[doc = " Hashes of the nodes in the MMR."] #[doc = ""] #[doc = " Note this collection only contains MMR peaks, the inner nodes (and leaves)"] @@ -18163,6 +18023,7 @@ pub mod api { ], ) } + #[doc = " Hashes of the nodes in the MMR."] #[doc = ""] #[doc = " Note this collection only contains MMR peaks, the inner nodes (and leaves)"] @@ -18176,30 +18037,23 @@ pub mod api { (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::Address::new_static( - "Mmr", - "Nodes", - Vec::new(), - [ - 27u8, 84u8, 41u8, 195u8, 146u8, 81u8, 211u8, 189u8, 63u8, 125u8, 173u8, - 206u8, 69u8, 198u8, 202u8, 213u8, 89u8, 31u8, 89u8, 177u8, 76u8, 154u8, - 249u8, 197u8, 133u8, 78u8, 142u8, 71u8, 183u8, 3u8, 132u8, 25u8, - ], - ) + ::subxt::storage::address::Address::new_static("Mmr", "Nodes", Vec::new(), [ + 27u8, 84u8, 41u8, 195u8, 146u8, 81u8, 211u8, 189u8, 63u8, 125u8, 173u8, + 206u8, 69u8, 198u8, 202u8, 213u8, 89u8, 31u8, 89u8, 177u8, 76u8, 154u8, + 249u8, 197u8, 133u8, 78u8, 142u8, 71u8, 183u8, 3u8, 132u8, 25u8, + ]) } } } } pub mod data_availability { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "Error for the System pallet"] pub type Error = runtime_types::da_control::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::da_control::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -18222,8 +18076,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for CreateApplicationKey { - const PALLET: &'static str = "DataAvailability"; const CALL: &'static str = "create_application_key"; + const PALLET: &'static str = "DataAvailability"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18244,8 +18098,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for SubmitData { - const PALLET: &'static str = "DataAvailability"; const CALL: &'static str = "submit_data"; + const PALLET: &'static str = "DataAvailability"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18265,8 +18119,8 @@ pub mod api { pub cols: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for SubmitBlockLengthProposal { - const PALLET: &'static str = "DataAvailability"; const CALL: &'static str = "submit_block_length_proposal"; + const PALLET: &'static str = "DataAvailability"; } } pub struct TransactionApi; @@ -18290,6 +18144,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::submit_data`]."] pub fn submit_data( &self, @@ -18309,6 +18164,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::submit_block_length_proposal`]."] pub fn submit_block_length_proposal( &self, @@ -18354,8 +18210,8 @@ pub mod api { pub id: runtime_types::avail_core::AppId, } impl ::subxt::events::StaticEvent for ApplicationKeyCreated { - const PALLET: &'static str = "DataAvailability"; const EVENT: &'static str = "ApplicationKeyCreated"; + const PALLET: &'static str = "DataAvailability"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18377,8 +18233,8 @@ pub mod api { >, } impl ::subxt::events::StaticEvent for DataSubmitted { - const PALLET: &'static str = "DataAvailability"; const EVENT: &'static str = "DataSubmitted"; + const PALLET: &'static str = "DataAvailability"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18398,8 +18254,8 @@ pub mod api { pub cols: runtime_types::avail_core::BlockLengthColumns, } impl ::subxt::events::StaticEvent for BlockLengthProposalSubmitted { - const PALLET: &'static str = "DataAvailability"; const EVENT: &'static str = "BlockLengthProposalSubmitted"; + const PALLET: &'static str = "DataAvailability"; } } pub mod storage { @@ -18427,6 +18283,7 @@ pub mod api { ], ) } + #[doc = " Store all application keys."] pub fn app_keys( &self, @@ -18456,6 +18313,7 @@ pub mod api { ], ) } + #[doc = " Store all application keys."] pub fn app_keys_root( &self, @@ -18499,6 +18357,7 @@ pub mod api { ], ) } + #[doc = " The max length of app data."] pub fn max_app_data_length( &self, @@ -18514,75 +18373,61 @@ pub mod api { ], ) } + #[doc = " Minimum number of rows in a block."] pub fn min_block_rows( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static( - "DataAvailability", - "MinBlockRows", - [ - 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, - 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, - 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, - ], - ) + ::subxt::constants::Address::new_static("DataAvailability", "MinBlockRows", [ + 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, + 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, + 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, + ]) } + #[doc = " Maximum number of rows in a block."] pub fn max_block_rows( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static( - "DataAvailability", - "MaxBlockRows", - [ - 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, - 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, - 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, - ], - ) + ::subxt::constants::Address::new_static("DataAvailability", "MaxBlockRows", [ + 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, + 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, + 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, + ]) } + #[doc = " Minimum number of cols in a block."] pub fn min_block_cols( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static( - "DataAvailability", - "MinBlockCols", - [ - 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, - 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, - 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, - ], - ) + ::subxt::constants::Address::new_static("DataAvailability", "MinBlockCols", [ + 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, + 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, + 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, + ]) } + #[doc = " Maximum number of cols in a block."] pub fn max_block_cols( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static( - "DataAvailability", - "MaxBlockCols", - [ - 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, - 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, - 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, - ], - ) + ::subxt::constants::Address::new_static("DataAvailability", "MaxBlockCols", [ + 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, + 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, + 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, + ]) } } } } pub mod nomad_updater_manager { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::nomad_updater_manager::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::nomad_updater_manager::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -18612,8 +18457,8 @@ pub mod api { pub new_updater: ::subxt::utils::H160, } impl ::subxt::events::StaticEvent for NewUpdater { - const PALLET: &'static str = "NomadUpdaterManager"; const EVENT: &'static str = "NewUpdater"; + const PALLET: &'static str = "NomadUpdaterManager"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18632,8 +18477,8 @@ pub mod api { pub reporter: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for FakeSlashed { - const PALLET: &'static str = "NomadUpdaterManager"; const EVENT: &'static str = "FakeSlashed"; + const PALLET: &'static str = "NomadUpdaterManager"; } } pub mod storage { @@ -18665,15 +18510,13 @@ pub mod api { } } pub mod nomad_home { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::nomad_home::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::nomad_home::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -18699,8 +18542,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for Dispatch { - const PALLET: &'static str = "NomadHome"; const CALL: &'static str = "dispatch"; + const PALLET: &'static str = "NomadHome"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18721,8 +18564,8 @@ pub mod api { pub max_index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Update { - const PALLET: &'static str = "NomadHome"; const CALL: &'static str = "update"; + const PALLET: &'static str = "NomadHome"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18741,8 +18584,8 @@ pub mod api { pub signed_update: runtime_types::nomad_core::update::SignedUpdate, } impl ::subxt::blocks::StaticExtrinsic for ImproperUpdate { - const PALLET: &'static str = "NomadHome"; const CALL: &'static str = "improper_update"; + const PALLET: &'static str = "NomadHome"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18761,8 +18604,8 @@ pub mod api { pub new_updater: ::subxt::utils::H160, } impl ::subxt::blocks::StaticExtrinsic for SetUpdater { - const PALLET: &'static str = "NomadHome"; const CALL: &'static str = "set_updater"; + const PALLET: &'static str = "NomadHome"; } } pub struct TransactionApi; @@ -18791,6 +18634,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::update`]."] pub fn update( &self, @@ -18811,6 +18655,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::improper_update`]."] pub fn improper_update( &self, @@ -18827,6 +18672,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_updater`]."] pub fn set_updater( &self, @@ -18871,8 +18717,8 @@ pub mod api { pub message: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::events::StaticEvent for Dispatch { - const PALLET: &'static str = "NomadHome"; const EVENT: &'static str = "Dispatch"; + const PALLET: &'static str = "NomadHome"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18894,8 +18740,8 @@ pub mod api { pub signature: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::events::StaticEvent for Update { - const PALLET: &'static str = "NomadHome"; const EVENT: &'static str = "Update"; + const PALLET: &'static str = "NomadHome"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18916,8 +18762,8 @@ pub mod api { pub signature: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::events::StaticEvent for ImproperUpdate { - const PALLET: &'static str = "NomadHome"; const EVENT: &'static str = "ImproperUpdate"; + const PALLET: &'static str = "NomadHome"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -18937,8 +18783,8 @@ pub mod api { pub reporter: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for UpdaterSlashed { - const PALLET: &'static str = "NomadHome"; const EVENT: &'static str = "UpdaterSlashed"; + const PALLET: &'static str = "NomadHome"; } } pub mod storage { @@ -18954,17 +18800,13 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static( - "NomadHome", - "Base", - vec![], - [ - 254u8, 56u8, 220u8, 109u8, 51u8, 237u8, 70u8, 31u8, 134u8, 49u8, 145u8, - 104u8, 204u8, 243u8, 216u8, 242u8, 57u8, 113u8, 132u8, 190u8, 170u8, - 80u8, 232u8, 190u8, 37u8, 91u8, 20u8, 188u8, 41u8, 41u8, 187u8, 107u8, - ], - ) + ::subxt::storage::address::Address::new_static("NomadHome", "Base", vec![], [ + 254u8, 56u8, 220u8, 109u8, 51u8, 237u8, 70u8, 31u8, 134u8, 49u8, 145u8, + 104u8, 204u8, 243u8, 216u8, 242u8, 57u8, 113u8, 132u8, 190u8, 170u8, 80u8, + 232u8, 190u8, 37u8, 91u8, 20u8, 188u8, 41u8, 41u8, 187u8, 107u8, + ]) } + pub fn tree( &self, ) -> ::subxt::storage::address::Address< @@ -18974,18 +18816,13 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static( - "NomadHome", - "Tree", - vec![], - [ - 22u8, 211u8, 114u8, 109u8, 20u8, 79u8, 40u8, 238u8, 244u8, 223u8, 95u8, - 97u8, 85u8, 113u8, 201u8, 242u8, 23u8, 140u8, 106u8, 222u8, 130u8, - 29u8, 218u8, 108u8, 210u8, 13u8, 115u8, 231u8, 22u8, 137u8, 227u8, - 175u8, - ], - ) + ::subxt::storage::address::Address::new_static("NomadHome", "Tree", vec![], [ + 22u8, 211u8, 114u8, 109u8, 20u8, 79u8, 40u8, 238u8, 244u8, 223u8, 95u8, + 97u8, 85u8, 113u8, 201u8, 242u8, 23u8, 140u8, 106u8, 222u8, 130u8, 29u8, + 218u8, 108u8, 210u8, 13u8, 115u8, 231u8, 22u8, 137u8, 227u8, 175u8, + ]) } + pub fn nonces( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -19009,6 +18846,7 @@ pub mod api { ], ) } + pub fn nonces_root( &self, ) -> ::subxt::storage::address::Address< @@ -19029,6 +18867,7 @@ pub mod api { ], ) } + pub fn index_to_root( &self, _0: impl ::std::borrow::Borrow<::core::primitive::u32>, @@ -19052,6 +18891,7 @@ pub mod api { ], ) } + pub fn index_to_root_root( &self, ) -> ::subxt::storage::address::Address< @@ -19072,6 +18912,7 @@ pub mod api { ], ) } + pub fn root_to_index( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, @@ -19095,6 +18936,7 @@ pub mod api { ], ) } + pub fn root_to_index_root( &self, ) -> ::subxt::storage::address::Address< @@ -19125,30 +18967,23 @@ pub mod api { pub fn max_message_body_bytes( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "NomadHome", - "MaxMessageBodyBytes", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("NomadHome", "MaxMessageBodyBytes", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } } } } pub mod nomad_da_bridge { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::nomad_da_bridge::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::nomad_da_bridge::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -19177,8 +19012,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for TryDispatchDataRoot { - const PALLET: &'static str = "NomadDABridge"; const CALL: &'static str = "try_dispatch_data_root"; + const PALLET: &'static str = "NomadDABridge"; } } pub struct TransactionApi; @@ -19234,8 +19069,8 @@ pub mod api { pub data_root: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for DataRootDispatched { - const PALLET: &'static str = "NomadDABridge"; const EVENT: &'static str = "DataRootDispatched"; + const PALLET: &'static str = "NomadDABridge"; } } pub mod constants { @@ -19245,30 +19080,23 @@ pub mod api { pub fn da_bridge_pallet_id( &self, ) -> ::subxt::constants::Address<::subxt::utils::H256> { - ::subxt::constants::Address::new_static( - "NomadDABridge", - "DABridgePalletId", - [ - 115u8, 233u8, 13u8, 223u8, 88u8, 20u8, 202u8, 139u8, 153u8, 28u8, - 155u8, 157u8, 224u8, 66u8, 3u8, 250u8, 23u8, 53u8, 88u8, 168u8, 211u8, - 204u8, 122u8, 166u8, 248u8, 23u8, 174u8, 225u8, 99u8, 108u8, 89u8, - 135u8, - ], - ) + ::subxt::constants::Address::new_static("NomadDABridge", "DABridgePalletId", [ + 115u8, 233u8, 13u8, 223u8, 88u8, 20u8, 202u8, 139u8, 153u8, 28u8, 155u8, + 157u8, 224u8, 66u8, 3u8, 250u8, 23u8, 53u8, 88u8, 168u8, 211u8, 204u8, + 122u8, 166u8, 248u8, 23u8, 174u8, 225u8, 99u8, 108u8, 89u8, 135u8, + ]) } } } } pub mod preimage { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_preimage::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_preimage::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -19289,8 +19117,8 @@ pub mod api { pub bytes: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for NotePreimage { - const PALLET: &'static str = "Preimage"; const CALL: &'static str = "note_preimage"; + const PALLET: &'static str = "Preimage"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19309,8 +19137,8 @@ pub mod api { pub hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for UnnotePreimage { - const PALLET: &'static str = "Preimage"; const CALL: &'static str = "unnote_preimage"; + const PALLET: &'static str = "Preimage"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19329,8 +19157,8 @@ pub mod api { pub hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for RequestPreimage { - const PALLET: &'static str = "Preimage"; const CALL: &'static str = "request_preimage"; + const PALLET: &'static str = "Preimage"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19349,8 +19177,8 @@ pub mod api { pub hash: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for UnrequestPreimage { - const PALLET: &'static str = "Preimage"; const CALL: &'static str = "unrequest_preimage"; + const PALLET: &'static str = "Preimage"; } } pub struct TransactionApi; @@ -19371,6 +19199,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::unnote_preimage`]."] pub fn unnote_preimage( &self, @@ -19388,6 +19217,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::request_preimage`]."] pub fn request_preimage( &self, @@ -19404,6 +19234,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::unrequest_preimage`]."] pub fn unrequest_preimage( &self, @@ -19445,8 +19276,8 @@ pub mod api { pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Noted { - const PALLET: &'static str = "Preimage"; const EVENT: &'static str = "Noted"; + const PALLET: &'static str = "Preimage"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19466,8 +19297,8 @@ pub mod api { pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Requested { - const PALLET: &'static str = "Preimage"; const EVENT: &'static str = "Requested"; + const PALLET: &'static str = "Preimage"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19487,8 +19318,8 @@ pub mod api { pub hash: ::subxt::utils::H256, } impl ::subxt::events::StaticEvent for Cleared { - const PALLET: &'static str = "Preimage"; const EVENT: &'static str = "Cleared"; + const PALLET: &'static str = "Preimage"; } } pub mod storage { @@ -19523,6 +19354,7 @@ pub mod api { ], ) } + #[doc = " The request status of a given hash."] pub fn status_for_root( &self, @@ -19548,6 +19380,7 @@ pub mod api { ], ) } + pub fn preimage_for( &self, _0: impl ::std::borrow::Borrow<::subxt::utils::H256>, @@ -19575,6 +19408,7 @@ pub mod api { ], ) } + pub fn preimage_for_root( &self, ) -> ::subxt::storage::address::Address< @@ -19601,15 +19435,13 @@ pub mod api { } } pub mod multisig { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_multisig::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_multisig::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -19631,8 +19463,8 @@ pub mod api { pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for AsMultiThreshold1 { - const PALLET: &'static str = "Multisig"; const CALL: &'static str = "as_multi_threshold_1"; + const PALLET: &'static str = "Multisig"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19657,8 +19489,8 @@ pub mod api { pub max_weight: runtime_types::sp_weights::weight_v2::Weight, } impl ::subxt::blocks::StaticExtrinsic for AsMulti { - const PALLET: &'static str = "Multisig"; const CALL: &'static str = "as_multi"; + const PALLET: &'static str = "Multisig"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19683,8 +19515,8 @@ pub mod api { pub max_weight: runtime_types::sp_weights::weight_v2::Weight, } impl ::subxt::blocks::StaticExtrinsic for ApproveAsMulti { - const PALLET: &'static str = "Multisig"; const CALL: &'static str = "approve_as_multi"; + const PALLET: &'static str = "Multisig"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19707,8 +19539,8 @@ pub mod api { pub call_hash: [::core::primitive::u8; 32usize], } impl ::subxt::blocks::StaticExtrinsic for CancelAsMulti { - const PALLET: &'static str = "Multisig"; const CALL: &'static str = "cancel_as_multi"; + const PALLET: &'static str = "Multisig"; } } pub struct TransactionApi; @@ -19734,6 +19566,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::as_multi`]."] pub fn as_multi( &self, @@ -19763,6 +19596,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::approve_as_multi`]."] pub fn approve_as_multi( &self, @@ -19791,6 +19625,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::cancel_as_multi`]."] pub fn cancel_as_multi( &self, @@ -19842,8 +19677,8 @@ pub mod api { pub call_hash: [::core::primitive::u8; 32usize], } impl ::subxt::events::StaticEvent for NewMultisig { - const PALLET: &'static str = "Multisig"; const EVENT: &'static str = "NewMultisig"; + const PALLET: &'static str = "Multisig"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19866,8 +19701,8 @@ pub mod api { pub call_hash: [::core::primitive::u8; 32usize], } impl ::subxt::events::StaticEvent for MultisigApproval { - const PALLET: &'static str = "Multisig"; const EVENT: &'static str = "MultisigApproval"; + const PALLET: &'static str = "Multisig"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19891,8 +19726,8 @@ pub mod api { pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for MultisigExecuted { - const PALLET: &'static str = "Multisig"; const EVENT: &'static str = "MultisigExecuted"; + const PALLET: &'static str = "Multisig"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -19915,8 +19750,8 @@ pub mod api { pub call_hash: [::core::primitive::u8; 32usize], } impl ::subxt::events::StaticEvent for MultisigCancelled { - const PALLET: &'static str = "Multisig"; const EVENT: &'static str = "MultisigCancelled"; + const PALLET: &'static str = "Multisig"; } } pub mod storage { @@ -19953,6 +19788,7 @@ pub mod api { ], ) } + #[doc = " The set of open multisig operations."] pub fn multisigs_root( &self, @@ -19991,60 +19827,47 @@ pub mod api { #[doc = " `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is"] #[doc = " `32 + sizeof(AccountId)` bytes."] pub fn deposit_base(&self) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Multisig", - "DepositBase", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) + ::subxt::constants::Address::new_static("Multisig", "DepositBase", [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ]) } + #[doc = " The amount of currency needed per unit threshold when creating a multisig execution."] #[doc = ""] #[doc = " This is held for adding 32 bytes more into a pre-existing storage value."] pub fn deposit_factor( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Multisig", - "DepositFactor", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) + ::subxt::constants::Address::new_static("Multisig", "DepositFactor", [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ]) } + #[doc = " The maximum amount of signatories allowed in the multisig."] pub fn max_signatories( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Multisig", - "MaxSignatories", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Multisig", "MaxSignatories", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } } } } pub mod voter_list { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_bags_list::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_bags_list::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -20068,8 +19891,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for Rebag { - const PALLET: &'static str = "VoterList"; const CALL: &'static str = "rebag"; + const PALLET: &'static str = "VoterList"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20091,8 +19914,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for PutInFrontOf { - const PALLET: &'static str = "VoterList"; const CALL: &'static str = "put_in_front_of"; + const PALLET: &'static str = "VoterList"; } } pub struct TransactionApi; @@ -20116,6 +19939,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::put_in_front_of`]."] pub fn put_in_front_of( &self, @@ -20162,8 +19986,8 @@ pub mod api { pub to: ::core::primitive::u64, } impl ::subxt::events::StaticEvent for Rebagged { - const PALLET: &'static str = "VoterList"; const EVENT: &'static str = "Rebagged"; + const PALLET: &'static str = "VoterList"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20184,8 +20008,8 @@ pub mod api { pub new_score: ::core::primitive::u64, } impl ::subxt::events::StaticEvent for ScoreUpdated { - const PALLET: &'static str = "VoterList"; const EVENT: &'static str = "ScoreUpdated"; + const PALLET: &'static str = "VoterList"; } } pub mod storage { @@ -20219,6 +20043,7 @@ pub mod api { ], ) } + #[doc = " A single node, within some bag."] #[doc = ""] #[doc = " Nodes store links forward and back within their respective bags."] @@ -20243,6 +20068,7 @@ pub mod api { ], ) } + #[doc = "Counter for the related counted storage map"] pub fn counter_for_list_nodes( &self, @@ -20265,6 +20091,7 @@ pub mod api { ], ) } + #[doc = " A bag stored in storage."] #[doc = ""] #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] @@ -20291,6 +20118,7 @@ pub mod api { ], ) } + #[doc = " A bag stored in storage."] #[doc = ""] #[doc = " Stores a `Bag` struct, which stores head and tail pointers to itself."] @@ -20366,29 +20194,23 @@ pub mod api { pub fn bag_thresholds( &self, ) -> ::subxt::constants::Address<::std::vec::Vec<::core::primitive::u64>> { - ::subxt::constants::Address::new_static( - "VoterList", - "BagThresholds", - [ - 215u8, 118u8, 183u8, 172u8, 4u8, 42u8, 248u8, 108u8, 4u8, 110u8, 43u8, - 165u8, 228u8, 7u8, 36u8, 30u8, 135u8, 184u8, 56u8, 201u8, 107u8, 68u8, - 25u8, 164u8, 134u8, 32u8, 82u8, 107u8, 200u8, 219u8, 212u8, 198u8, - ], - ) + ::subxt::constants::Address::new_static("VoterList", "BagThresholds", [ + 215u8, 118u8, 183u8, 172u8, 4u8, 42u8, 248u8, 108u8, 4u8, 110u8, 43u8, + 165u8, 228u8, 7u8, 36u8, 30u8, 135u8, 184u8, 56u8, 201u8, 107u8, 68u8, + 25u8, 164u8, 134u8, 32u8, 82u8, 107u8, 200u8, 219u8, 212u8, 198u8, + ]) } } } } pub mod nomination_pools { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_nomination_pools::pallet::Error; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_nomination_pools::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -20411,8 +20233,8 @@ pub mod api { pub pool_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Join { - const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "join"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20432,8 +20254,8 @@ pub mod api { runtime_types::pallet_nomination_pools::BondExtra<::core::primitive::u128>, } impl ::subxt::blocks::StaticExtrinsic for BondExtra { - const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "bond_extra"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20450,8 +20272,8 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClaimPayout; impl ::subxt::blocks::StaticExtrinsic for ClaimPayout { - const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "claim_payout"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20475,8 +20297,8 @@ pub mod api { pub unbonding_points: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for Unbond { - const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "unbond"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20496,8 +20318,8 @@ pub mod api { pub num_slashing_spans: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for PoolWithdrawUnbonded { - const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "pool_withdraw_unbonded"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20520,8 +20342,8 @@ pub mod api { pub num_slashing_spans: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for WithdrawUnbonded { - const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "withdraw_unbonded"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20553,8 +20375,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for Create { - const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "create"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20587,8 +20409,8 @@ pub mod api { pub pool_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for CreateWithPoolId { - const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "create_with_pool_id"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20608,8 +20430,8 @@ pub mod api { pub validators: ::std::vec::Vec<::subxt::utils::AccountId32>, } impl ::subxt::blocks::StaticExtrinsic for Nominate { - const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "nominate"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20629,8 +20451,8 @@ pub mod api { pub state: runtime_types::pallet_nomination_pools::PoolState, } impl ::subxt::blocks::StaticExtrinsic for SetState { - const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "set_state"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20650,8 +20472,8 @@ pub mod api { pub metadata: ::std::vec::Vec<::core::primitive::u8>, } impl ::subxt::blocks::StaticExtrinsic for SetMetadata { - const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "set_metadata"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20682,8 +20504,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for SetConfigs { - const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "set_configs"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20711,8 +20533,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for UpdateRoles { - const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "update_roles"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -20732,8 +20554,8 @@ pub mod api { pub pool_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for Chill { - const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "chill"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20757,8 +20579,8 @@ pub mod api { runtime_types::pallet_nomination_pools::BondExtra<::core::primitive::u128>, } impl ::subxt::blocks::StaticExtrinsic for BondExtraOther { - const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "bond_extra_other"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20777,8 +20599,8 @@ pub mod api { pub permission: runtime_types::pallet_nomination_pools::ClaimPermission, } impl ::subxt::blocks::StaticExtrinsic for SetClaimPermission { - const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "set_claim_permission"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20797,8 +20619,8 @@ pub mod api { pub other: ::subxt::utils::AccountId32, } impl ::subxt::blocks::StaticExtrinsic for ClaimPayoutOther { - const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "claim_payout_other"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20821,8 +20643,8 @@ pub mod api { )>, } impl ::subxt::blocks::StaticExtrinsic for SetCommission { - const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "set_commission"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20842,8 +20664,8 @@ pub mod api { pub max_commission: runtime_types::sp_arithmetic::per_things::Perbill, } impl ::subxt::blocks::StaticExtrinsic for SetCommissionMax { - const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "set_commission_max"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -20865,8 +20687,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for SetCommissionChangeRate { - const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "set_commission_change_rate"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -20886,8 +20708,8 @@ pub mod api { pub pool_id: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for ClaimCommission { - const PALLET: &'static str = "NominationPools"; const CALL: &'static str = "claim_commission"; + const PALLET: &'static str = "NominationPools"; } } pub struct TransactionApi; @@ -20909,6 +20731,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::bond_extra`]."] pub fn bond_extra( &self, @@ -20928,6 +20751,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::claim_payout`]."] pub fn claim_payout(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -20941,6 +20765,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::unbond`]."] pub fn unbond( &self, @@ -20964,6 +20789,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::pool_withdraw_unbonded`]."] pub fn pool_withdraw_unbonded( &self, @@ -20984,6 +20810,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::withdraw_unbonded`]."] pub fn withdraw_unbonded( &self, @@ -21007,6 +20834,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::create`]."] pub fn create( &self, @@ -21041,6 +20869,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::create_with_pool_id`]."] pub fn create_with_pool_id( &self, @@ -21076,6 +20905,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::nominate`]."] pub fn nominate( &self, @@ -21096,6 +20926,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_state`]."] pub fn set_state( &self, @@ -21113,6 +20944,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_metadata`]."] pub fn set_metadata( &self, @@ -21130,6 +20962,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_configs`]."] pub fn set_configs( &self, @@ -21170,6 +21003,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::update_roles`]."] pub fn update_roles( &self, @@ -21200,6 +21034,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::chill`]."] pub fn chill( &self, @@ -21216,6 +21051,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::bond_extra_other`]."] pub fn bond_extra_other( &self, @@ -21239,6 +21075,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_claim_permission`]."] pub fn set_claim_permission( &self, @@ -21255,6 +21092,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::claim_payout_other`]."] pub fn claim_payout_other( &self, @@ -21272,6 +21110,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_commission`]."] pub fn set_commission( &self, @@ -21296,6 +21135,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_commission_max`]."] pub fn set_commission_max( &self, @@ -21316,6 +21156,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_commission_change_rate`]."] pub fn set_commission_change_rate( &self, @@ -21339,6 +21180,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::claim_commission`]."] pub fn claim_commission( &self, @@ -21380,8 +21222,8 @@ pub mod api { pub pool_id: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Created { - const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "Created"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21404,8 +21246,8 @@ pub mod api { pub joined: ::core::primitive::bool, } impl ::subxt::events::StaticEvent for Bonded { - const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "Bonded"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21427,8 +21269,8 @@ pub mod api { pub payout: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for PaidOut { - const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "PaidOut"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21462,8 +21304,8 @@ pub mod api { pub era: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Unbonded { - const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "Unbonded"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21491,8 +21333,8 @@ pub mod api { pub points: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for Withdrawn { - const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "Withdrawn"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -21513,8 +21355,8 @@ pub mod api { pub pool_id: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for Destroyed { - const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "Destroyed"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21535,8 +21377,8 @@ pub mod api { pub new_state: runtime_types::pallet_nomination_pools::PoolState, } impl ::subxt::events::StaticEvent for StateChanged { - const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "StateChanged"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21559,8 +21401,8 @@ pub mod api { pub member: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for MemberRemoved { - const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "MemberRemoved"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21583,8 +21425,8 @@ pub mod api { pub nominator: ::core::option::Option<::subxt::utils::AccountId32>, } impl ::subxt::events::StaticEvent for RolesUpdated { - const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "RolesUpdated"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21605,8 +21447,8 @@ pub mod api { pub balance: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for PoolSlashed { - const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "PoolSlashed"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21628,8 +21470,8 @@ pub mod api { pub balance: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for UnbondingPoolSlashed { - const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "UnbondingPoolSlashed"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21653,8 +21495,8 @@ pub mod api { )>, } impl ::subxt::events::StaticEvent for PoolCommissionUpdated { - const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "PoolCommissionUpdated"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21675,8 +21517,8 @@ pub mod api { pub max_commission: runtime_types::sp_arithmetic::per_things::Perbill, } impl ::subxt::events::StaticEvent for PoolMaxCommissionUpdated { - const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "PoolMaxCommissionUpdated"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21699,8 +21541,8 @@ pub mod api { >, } impl ::subxt::events::StaticEvent for PoolCommissionChangeRateUpdated { - const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "PoolCommissionChangeRateUpdated"; + const PALLET: &'static str = "NominationPools"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -21721,8 +21563,8 @@ pub mod api { pub commission: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for PoolCommissionClaimed { - const PALLET: &'static str = "NominationPools"; const EVENT: &'static str = "PoolCommissionClaimed"; + const PALLET: &'static str = "NominationPools"; } } pub mod storage { @@ -21750,6 +21592,7 @@ pub mod api { ], ) } + #[doc = " Minimum bond required to create a pool."] #[doc = ""] #[doc = " This is the amount that the depositor must put as their initial stake in the pool, as an"] @@ -21778,6 +21621,7 @@ pub mod api { ], ) } + #[doc = " Maximum number of nomination pools that can exist. If `None`, then an unbounded number of"] #[doc = " pools can exist."] pub fn max_pools( @@ -21801,6 +21645,7 @@ pub mod api { ], ) } + #[doc = " Maximum number of members that can exist in the system. If `None`, then the count"] #[doc = " members are not bound on a system wide basis."] pub fn max_pool_members( @@ -21824,6 +21669,7 @@ pub mod api { ], ) } + #[doc = " Maximum number of members that may belong to pool. If `None`, then the count of"] #[doc = " members is not bound on a per pool basis."] pub fn max_pool_members_per_pool( @@ -21846,6 +21692,7 @@ pub mod api { ], ) } + #[doc = " The maximum commission that can be charged by a pool. Used on commission payouts to bound"] #[doc = " pool commissions that are > `GlobalMaxCommission`, necessary if a future"] #[doc = " `GlobalMaxCommission` is lower than some current pool commissions."] @@ -21870,6 +21717,7 @@ pub mod api { ], ) } + #[doc = " Active members."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] @@ -21896,6 +21744,7 @@ pub mod api { ], ) } + #[doc = " Active members."] #[doc = ""] #[doc = " TWOX-NOTE: SAFE since `AccountId` is a secure hash."] @@ -21919,6 +21768,7 @@ pub mod api { ], ) } + #[doc = "Counter for the related counted storage map"] pub fn counter_for_pool_members( &self, @@ -21941,6 +21791,7 @@ pub mod api { ], ) } + #[doc = " Storage for bonded pools."] pub fn bonded_pools( &self, @@ -21966,6 +21817,7 @@ pub mod api { ], ) } + #[doc = " Storage for bonded pools."] pub fn bonded_pools_root( &self, @@ -21988,6 +21840,7 @@ pub mod api { ], ) } + #[doc = "Counter for the related counted storage map"] pub fn counter_for_bonded_pools( &self, @@ -22009,6 +21862,7 @@ pub mod api { ], ) } + #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout is"] #[doc = " claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] pub fn reward_pools( @@ -22035,6 +21889,7 @@ pub mod api { ], ) } + #[doc = " Reward pools. This is where there rewards for each pool accumulate. When a members payout is"] #[doc = " claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account."] pub fn reward_pools_root( @@ -22058,6 +21913,7 @@ pub mod api { ], ) } + #[doc = "Counter for the related counted storage map"] pub fn counter_for_reward_pools( &self, @@ -22080,6 +21936,7 @@ pub mod api { ], ) } + #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a"] #[doc = " bonded pool, hence the name sub-pools. Keyed by the bonded pools account."] pub fn sub_pools_storage( @@ -22105,6 +21962,7 @@ pub mod api { ], ) } + #[doc = " Groups of unbonding pools. Each group of unbonding pools belongs to a"] #[doc = " bonded pool, hence the name sub-pools. Keyed by the bonded pools account."] pub fn sub_pools_storage_root( @@ -22127,6 +21985,7 @@ pub mod api { ], ) } + #[doc = "Counter for the related counted storage map"] pub fn counter_for_sub_pools_storage( &self, @@ -22149,6 +22008,7 @@ pub mod api { ], ) } + #[doc = " Metadata for the pool."] pub fn metadata( &self, @@ -22175,6 +22035,7 @@ pub mod api { ], ) } + #[doc = " Metadata for the pool."] pub fn metadata_root( &self, @@ -22198,6 +22059,7 @@ pub mod api { ], ) } + #[doc = "Counter for the related counted storage map"] pub fn counter_for_metadata( &self, @@ -22220,6 +22082,7 @@ pub mod api { ], ) } + #[doc = " Ever increasing number of all pools created so far."] pub fn last_pool_id( &self, @@ -22242,6 +22105,7 @@ pub mod api { ], ) } + #[doc = " A reverse lookup from the pool's account id to its id."] #[doc = ""] #[doc = " This is only used for slashing. In all other instances, the pool id is used, and the"] @@ -22269,6 +22133,7 @@ pub mod api { ], ) } + #[doc = " A reverse lookup from the pool's account id to its id."] #[doc = ""] #[doc = " This is only used for slashing. In all other instances, the pool id is used, and the"] @@ -22293,6 +22158,7 @@ pub mod api { ], ) } + #[doc = "Counter for the related counted storage map"] pub fn counter_for_reverse_pool_id_lookup( &self, @@ -22315,6 +22181,7 @@ pub mod api { ], ) } + #[doc = " Map from a pool member account to their opted claim permission."] pub fn claim_permissions( &self, @@ -22339,6 +22206,7 @@ pub mod api { ], ) } + #[doc = " Map from a pool member account to their opted claim permission."] pub fn claim_permissions_root( &self, @@ -22370,16 +22238,13 @@ pub mod api { pub fn pallet_id( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static( - "NominationPools", - "PalletId", - [ - 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, - 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, - 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, - ], - ) + ::subxt::constants::Address::new_static("NominationPools", "PalletId", [ + 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, + 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, + 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, + ]) } + #[doc = " The maximum pool points-to-balance ratio that an `open` pool can have."] #[doc = ""] #[doc = " This is important in the event slashing takes place and the pool's points-to-balance"] @@ -22410,15 +22275,13 @@ pub mod api { } } pub mod identity { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "The `Error` enum of this pallet."] pub type Error = runtime_types::pallet_identity::pallet::Error; #[doc = "Identity pallet declaration."] pub type Call = runtime_types::pallet_identity::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -22442,8 +22305,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for AddRegistrar { - const PALLET: &'static str = "Identity"; const CALL: &'static str = "add_registrar"; + const PALLET: &'static str = "Identity"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22463,8 +22326,8 @@ pub mod api { ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for SetIdentity { - const PALLET: &'static str = "Identity"; const CALL: &'static str = "set_identity"; + const PALLET: &'static str = "Identity"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22486,8 +22349,8 @@ pub mod api { )>, } impl ::subxt::blocks::StaticExtrinsic for SetSubs { - const PALLET: &'static str = "Identity"; const CALL: &'static str = "set_subs"; + const PALLET: &'static str = "Identity"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22504,8 +22367,8 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct ClearIdentity; impl ::subxt::blocks::StaticExtrinsic for ClearIdentity { - const PALLET: &'static str = "Identity"; const CALL: &'static str = "clear_identity"; + const PALLET: &'static str = "Identity"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22527,8 +22390,8 @@ pub mod api { pub max_fee: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for RequestJudgement { - const PALLET: &'static str = "Identity"; const CALL: &'static str = "request_judgement"; + const PALLET: &'static str = "Identity"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -22548,8 +22411,8 @@ pub mod api { pub reg_index: ::core::primitive::u32, } impl ::subxt::blocks::StaticExtrinsic for CancelRequest { - const PALLET: &'static str = "Identity"; const CALL: &'static str = "cancel_request"; + const PALLET: &'static str = "Identity"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22571,8 +22434,8 @@ pub mod api { pub fee: ::core::primitive::u128, } impl ::subxt::blocks::StaticExtrinsic for SetFee { - const PALLET: &'static str = "Identity"; const CALL: &'static str = "set_fee"; + const PALLET: &'static str = "Identity"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22596,8 +22459,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for SetAccountId { - const PALLET: &'static str = "Identity"; const CALL: &'static str = "set_account_id"; + const PALLET: &'static str = "Identity"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22620,8 +22483,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for SetFields { - const PALLET: &'static str = "Identity"; const CALL: &'static str = "set_fields"; + const PALLET: &'static str = "Identity"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22648,8 +22511,8 @@ pub mod api { pub identity: ::subxt::utils::H256, } impl ::subxt::blocks::StaticExtrinsic for ProvideJudgement { - const PALLET: &'static str = "Identity"; const CALL: &'static str = "provide_judgement"; + const PALLET: &'static str = "Identity"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22671,8 +22534,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for KillIdentity { - const PALLET: &'static str = "Identity"; const CALL: &'static str = "kill_identity"; + const PALLET: &'static str = "Identity"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22695,8 +22558,8 @@ pub mod api { pub data: runtime_types::pallet_identity::types::Data, } impl ::subxt::blocks::StaticExtrinsic for AddSub { - const PALLET: &'static str = "Identity"; const CALL: &'static str = "add_sub"; + const PALLET: &'static str = "Identity"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22719,8 +22582,8 @@ pub mod api { pub data: runtime_types::pallet_identity::types::Data, } impl ::subxt::blocks::StaticExtrinsic for RenameSub { - const PALLET: &'static str = "Identity"; const CALL: &'static str = "rename_sub"; + const PALLET: &'static str = "Identity"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22742,8 +22605,8 @@ pub mod api { >, } impl ::subxt::blocks::StaticExtrinsic for RemoveSub { - const PALLET: &'static str = "Identity"; const CALL: &'static str = "remove_sub"; + const PALLET: &'static str = "Identity"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -22760,8 +22623,8 @@ pub mod api { #[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")] pub struct QuitSub; impl ::subxt::blocks::StaticExtrinsic for QuitSub { - const PALLET: &'static str = "Identity"; const CALL: &'static str = "quit_sub"; + const PALLET: &'static str = "Identity"; } } pub struct TransactionApi; @@ -22785,6 +22648,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_identity`]."] pub fn set_identity( &self, @@ -22803,6 +22667,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_subs`]."] pub fn set_subs( &self, @@ -22823,6 +22688,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::clear_identity`]."] pub fn clear_identity(&self) -> ::subxt::tx::Payload { ::subxt::tx::Payload::new_static( @@ -22837,6 +22703,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::request_judgement`]."] pub fn request_judgement( &self, @@ -22854,6 +22721,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::cancel_request`]."] pub fn cancel_request( &self, @@ -22871,6 +22739,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_fee`]."] pub fn set_fee( &self, @@ -22889,6 +22758,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_account_id`]."] pub fn set_account_id( &self, @@ -22909,6 +22779,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::set_fields`]."] pub fn set_fields( &self, @@ -22928,6 +22799,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::provide_judgement`]."] pub fn provide_judgement( &self, @@ -22957,6 +22829,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::kill_identity`]."] pub fn kill_identity( &self, @@ -22976,6 +22849,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::add_sub`]."] pub fn add_sub( &self, @@ -22997,6 +22871,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::rename_sub`]."] pub fn rename_sub( &self, @@ -23018,6 +22893,7 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::remove_sub`]."] pub fn remove_sub( &self, @@ -23037,19 +22913,14 @@ pub mod api { ], ) } + #[doc = "See [`Pallet::quit_sub`]."] pub fn quit_sub(&self) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static( - "Identity", - "quit_sub", - types::QuitSub {}, - [ - 147u8, 131u8, 175u8, 171u8, 187u8, 201u8, 240u8, 26u8, 146u8, 224u8, - 74u8, 166u8, 242u8, 193u8, 204u8, 247u8, 168u8, 93u8, 18u8, 32u8, 27u8, - 208u8, 149u8, 146u8, 179u8, 172u8, 75u8, 112u8, 84u8, 141u8, 233u8, - 223u8, - ], - ) + ::subxt::tx::Payload::new_static("Identity", "quit_sub", types::QuitSub {}, [ + 147u8, 131u8, 175u8, 171u8, 187u8, 201u8, 240u8, 26u8, 146u8, 224u8, 74u8, + 166u8, 242u8, 193u8, 204u8, 247u8, 168u8, 93u8, 18u8, 32u8, 27u8, 208u8, + 149u8, 146u8, 179u8, 172u8, 75u8, 112u8, 84u8, 141u8, 233u8, 223u8, + ]) } } } @@ -23075,8 +22946,8 @@ pub mod api { pub who: ::subxt::utils::AccountId32, } impl ::subxt::events::StaticEvent for IdentitySet { - const PALLET: &'static str = "Identity"; const EVENT: &'static str = "IdentitySet"; + const PALLET: &'static str = "Identity"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23097,8 +22968,8 @@ pub mod api { pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for IdentityCleared { - const PALLET: &'static str = "Identity"; const EVENT: &'static str = "IdentityCleared"; + const PALLET: &'static str = "Identity"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23119,8 +22990,8 @@ pub mod api { pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for IdentityKilled { - const PALLET: &'static str = "Identity"; const EVENT: &'static str = "IdentityKilled"; + const PALLET: &'static str = "Identity"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23141,8 +23012,8 @@ pub mod api { pub registrar_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for JudgementRequested { - const PALLET: &'static str = "Identity"; const EVENT: &'static str = "JudgementRequested"; + const PALLET: &'static str = "Identity"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23163,8 +23034,8 @@ pub mod api { pub registrar_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for JudgementUnrequested { - const PALLET: &'static str = "Identity"; const EVENT: &'static str = "JudgementUnrequested"; + const PALLET: &'static str = "Identity"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23185,8 +23056,8 @@ pub mod api { pub registrar_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for JudgementGiven { - const PALLET: &'static str = "Identity"; const EVENT: &'static str = "JudgementGiven"; + const PALLET: &'static str = "Identity"; } #[derive( :: subxt :: ext :: codec :: CompactAs, @@ -23207,8 +23078,8 @@ pub mod api { pub registrar_index: ::core::primitive::u32, } impl ::subxt::events::StaticEvent for RegistrarAdded { - const PALLET: &'static str = "Identity"; const EVENT: &'static str = "RegistrarAdded"; + const PALLET: &'static str = "Identity"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23230,8 +23101,8 @@ pub mod api { pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for SubIdentityAdded { - const PALLET: &'static str = "Identity"; const EVENT: &'static str = "SubIdentityAdded"; + const PALLET: &'static str = "Identity"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23253,8 +23124,8 @@ pub mod api { pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for SubIdentityRemoved { - const PALLET: &'static str = "Identity"; const EVENT: &'static str = "SubIdentityRemoved"; + const PALLET: &'static str = "Identity"; } #[derive( :: subxt :: ext :: codec :: Decode, @@ -23277,8 +23148,8 @@ pub mod api { pub deposit: ::core::primitive::u128, } impl ::subxt::events::StaticEvent for SubIdentityRevoked { - const PALLET: &'static str = "Identity"; const EVENT: &'static str = "SubIdentityRevoked"; + const PALLET: &'static str = "Identity"; } } pub mod storage { @@ -23311,6 +23182,7 @@ pub mod api { ], ) } + #[doc = " Information that is pertinent to identify the entity behind an account."] #[doc = ""] #[doc = " TWOX-NOTE: OK ― `AccountId` is a secure hash."] @@ -23334,6 +23206,7 @@ pub mod api { ], ) } + #[doc = " The super-identity of an alternative \"sub\" identity together with its name, within that"] #[doc = " context. If the account is not some other account's sub-identity, then just `None`."] pub fn super_of( @@ -23362,6 +23235,7 @@ pub mod api { ], ) } + #[doc = " The super-identity of an alternative \"sub\" identity together with its name, within that"] #[doc = " context. If the account is not some other account's sub-identity, then just `None`."] pub fn super_of_root( @@ -23387,6 +23261,7 @@ pub mod api { ], ) } + #[doc = " Alternative \"sub\" identities of this account."] #[doc = ""] #[doc = " The first item is the deposit, the second is a vector of the accounts."] @@ -23421,6 +23296,7 @@ pub mod api { ], ) } + #[doc = " Alternative \"sub\" identities of this account."] #[doc = ""] #[doc = " The first item is the deposit, the second is a vector of the accounts."] @@ -23452,6 +23328,7 @@ pub mod api { ], ) } + #[doc = " The set of registrars. Not expected to get very big as can only be added through a"] #[doc = " special origin (likely a council motion)."] #[doc = ""] @@ -23494,104 +23371,80 @@ pub mod api { pub fn basic_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Identity", - "BasicDeposit", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) + ::subxt::constants::Address::new_static("Identity", "BasicDeposit", [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ]) } + #[doc = " The amount held on deposit per additional field for a registered identity."] pub fn field_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Identity", - "FieldDeposit", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) + ::subxt::constants::Address::new_static("Identity", "FieldDeposit", [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ]) } + #[doc = " The amount held on deposit for a registered subaccount. This should account for the fact"] #[doc = " that one storage item's value will increase by the size of an account ID, and there will"] #[doc = " be another trie item whose value is the size of an account ID plus 32 bytes."] pub fn sub_account_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static( - "Identity", - "SubAccountDeposit", - [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, - 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ], - ) + ::subxt::constants::Address::new_static("Identity", "SubAccountDeposit", [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, + 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ]) } + #[doc = " The maximum number of sub-accounts allowed per identified account."] pub fn max_sub_accounts( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Identity", - "MaxSubAccounts", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Identity", "MaxSubAccounts", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O"] #[doc = " required to access an identity, but can be pretty high."] pub fn max_additional_fields( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Identity", - "MaxAdditionalFields", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Identity", "MaxAdditionalFields", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } + #[doc = " Maxmimum number of registrars allowed in the system. Needed to bound the complexity"] #[doc = " of, e.g., updating judgements."] pub fn max_registrars( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static( - "Identity", - "MaxRegistrars", - [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, - 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, - 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, - 145u8, - ], - ) + ::subxt::constants::Address::new_static("Identity", "MaxRegistrars", [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, + 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, + 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, + ]) } } } } pub mod mandate { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; #[doc = "Contains a variant per dispatchable extrinsic that this pallet has."] pub type Call = runtime_types::pallet_mandate::pallet::Call; pub mod calls { - use super::root_mod; - use super::runtime_types; + use super::{root_mod, runtime_types}; type DispatchError = runtime_types::sp_runtime::DispatchError; pub mod types { use super::runtime_types; @@ -23612,8 +23465,8 @@ pub mod api { pub call: ::std::boxed::Box, } impl ::subxt::blocks::StaticExtrinsic for Mandate { - const PALLET: &'static str = "Mandate"; const CALL: &'static str = "mandate"; + const PALLET: &'static str = "Mandate"; } } pub struct TransactionApi; @@ -23660,8 +23513,8 @@ pub mod api { pub result: ::core::result::Result<(), runtime_types::sp_runtime::DispatchError>, } impl ::subxt::events::StaticEvent for RootOp { - const PALLET: &'static str = "Mandate"; const EVENT: &'static str = "RootOp"; + const PALLET: &'static str = "Mandate"; } } } diff --git a/pallets/system/src/lib.rs b/pallets/system/src/lib.rs index 8862100aa..a001de04b 100644 --- a/pallets/system/src/lib.rs +++ b/pallets/system/src/lib.rs @@ -191,23 +191,15 @@ pub trait ConsumerLimits { } impl ConsumerLimits for ConstU32 { - fn max_consumers() -> RefCount { - Z - } + fn max_consumers() -> RefCount { Z } - fn max_overflow() -> RefCount { - Z - } + fn max_overflow() -> RefCount { Z } } impl, MaxOverflow: Get> ConsumerLimits for (MaxNormal, MaxOverflow) { - fn max_consumers() -> RefCount { - MaxNormal::get() - } + fn max_consumers() -> RefCount { MaxNormal::get() } - fn max_overflow() -> RefCount { - MaxOverflow::get() - } + fn max_overflow() -> RefCount { MaxOverflow::get() } } #[derive(Clone, Encode, Decode, TypeInfo, MaxEncodedLen)] pub struct ExtrinsicLen { @@ -739,9 +731,7 @@ pub enum Phase { } impl Default for Phase { - fn default() -> Self { - Self::Initialization - } + fn default() -> Self { Self::Initialization } } /// Record of an event happening. @@ -834,9 +824,7 @@ impl, O>> + From>, Acco } #[cfg(feature = "runtime-benchmarks")] - fn try_successful_origin() -> Result { - Ok(O::from(RawOrigin::Root)) - } + fn try_successful_origin() -> Result { Ok(O::from(RawOrigin::Root)) } } impl_ensure_origin_with_arg_ignoring_arg! { @@ -865,9 +853,7 @@ impl< } #[cfg(feature = "runtime-benchmarks")] - fn try_successful_origin() -> Result { - Ok(O::from(RawOrigin::Root)) - } + fn try_successful_origin() -> Result { Ok(O::from(RawOrigin::Root)) } } impl_ensure_origin_with_arg_ignoring_arg! { @@ -895,9 +881,7 @@ impl< } #[cfg(feature = "runtime-benchmarks")] - fn try_successful_origin() -> Result { - Ensure::try_successful_origin() - } + fn try_successful_origin() -> Result { Ensure::try_successful_origin() } } impl_ensure_origin_with_arg_ignoring_arg! { @@ -979,9 +963,7 @@ impl, O>> + From>, Acco } #[cfg(feature = "runtime-benchmarks")] - fn try_successful_origin() -> Result { - Ok(O::from(RawOrigin::None)) - } + fn try_successful_origin() -> Result { Ok(O::from(RawOrigin::None)) } } impl_ensure_origin_with_arg_ignoring_arg! { @@ -995,14 +977,10 @@ pub struct EnsureNever(sp_std::marker::PhantomData); impl EnsureOrigin for EnsureNever { type Success = Success; - fn try_origin(o: O) -> Result { - Err(o) - } + fn try_origin(o: O) -> Result { Err(o) } #[cfg(feature = "runtime-benchmarks")] - fn try_successful_origin() -> Result { - Err(()) - } + fn try_successful_origin() -> Result { Err(()) } } impl_ensure_origin_with_arg_ignoring_arg! { @@ -1087,9 +1065,7 @@ pub enum DecRefStatus { } impl Pallet { - pub fn account_exists(who: &T::AccountId) -> bool { - Account::::contains_key(who) - } + pub fn account_exists(who: &T::AccountId) -> bool { Account::::contains_key(who) } /// Write code to the storage and emit related events and digest items. /// @@ -1105,28 +1081,20 @@ impl Pallet { /// Increment the reference counter on an account. #[deprecated = "Use `inc_consumers` instead"] - pub fn inc_ref(who: &T::AccountId) { - let _ = Self::inc_consumers(who); - } + pub fn inc_ref(who: &T::AccountId) { let _ = Self::inc_consumers(who); } /// Decrement the reference counter on an account. This *MUST* only be done once for every time /// you called `inc_consumers` on `who`. #[deprecated = "Use `dec_consumers` instead"] - pub fn dec_ref(who: &T::AccountId) { - Self::dec_consumers(who); - } + pub fn dec_ref(who: &T::AccountId) { Self::dec_consumers(who); } /// The number of outstanding references for the account `who`. #[deprecated = "Use `consumers` instead"] - pub fn refs(who: &T::AccountId) -> RefCount { - Self::consumers(who) - } + pub fn refs(who: &T::AccountId) -> RefCount { Self::consumers(who) } /// True if the account has no outstanding references. #[deprecated = "Use `!is_provider_required` instead"] - pub fn allow_death(who: &T::AccountId) -> bool { - !Self::is_provider_required(who) - } + pub fn allow_death(who: &T::AccountId) -> bool { !Self::is_provider_required(who) } /// Increment the provider reference counter on an account. pub fn inc_providers(who: &T::AccountId) -> IncRefStatus { @@ -1236,14 +1204,10 @@ impl Pallet { } /// The number of outstanding provider references for the account `who`. - pub fn providers(who: &T::AccountId) -> RefCount { - Account::::get(who).providers - } + pub fn providers(who: &T::AccountId) -> RefCount { Account::::get(who).providers } /// The number of outstanding sufficient references for the account `who`. - pub fn sufficients(who: &T::AccountId) -> RefCount { - Account::::get(who).sufficients - } + pub fn sufficients(who: &T::AccountId) -> RefCount { Account::::get(who).sufficients } /// The number of outstanding provider and sufficient references for the account `who`. pub fn reference_count(who: &T::AccountId) -> RefCount { @@ -1300,9 +1264,7 @@ impl Pallet { } /// The number of outstanding references for the account `who`. - pub fn consumers(who: &T::AccountId) -> RefCount { - Account::::get(who).consumers - } + pub fn consumers(who: &T::AccountId) -> RefCount { Account::::get(who).consumers } /// True if the account has some outstanding consumer references. pub fn is_provider_required(who: &T::AccountId) -> bool { @@ -1327,9 +1289,7 @@ impl Pallet { /// True if the account has at least one provider reference and fewer consumer references than /// the maximum. - pub fn can_inc_consumer(who: &T::AccountId) -> bool { - Self::can_accrue_consumers(who, 1) - } + pub fn can_inc_consumer(who: &T::AccountId) -> bool { Self::can_accrue_consumers(who, 1) } /// Deposits an event into this block's event record. /// @@ -1385,14 +1345,10 @@ impl Pallet { } /// Gets extrinsics count. - pub fn extrinsic_count() -> u32 { - ExtrinsicCount::::get().unwrap_or_default() - } + pub fn extrinsic_count() -> u32 { ExtrinsicCount::::get().unwrap_or_default() } /// Returns all extrinsics len in raw. - pub fn all_extrinsics_len() -> u32 { - AllExtrinsicsLen::::get().unwrap_or_default().raw - } + pub fn all_extrinsics_len() -> u32 { AllExtrinsicsLen::::get().unwrap_or_default().raw } /// Returns all extrinsics len with padding. pub fn all_padded_extrinsics_len() -> u32 { @@ -1574,9 +1530,7 @@ impl Pallet { /// - `O(1)` /// - 1 storage write (codec `O(1)`) /// # - pub fn deposit_log(item: generic::DigestItem) { - >::append(item); - } + pub fn deposit_log(item: generic::DigestItem) { >::append(item); } /// Get the basic externalities for this pallet, useful for tests. #[cfg(any(feature = "std", test))] @@ -1631,9 +1585,7 @@ impl Pallet { /// Set the block number to something in particular. Can be used as an alternative to /// `initialize` for tests that don't need to bother with the other environment entries. #[cfg(any(feature = "std", feature = "runtime-benchmarks", test))] - pub fn set_block_number(n: BlockNumberFor) { - >::put(n); - } + pub fn set_block_number(n: BlockNumberFor) { >::put(n); } /// Sets the index of extrinsic that is currently executing. #[cfg(any(feature = "std", test))] @@ -1644,9 +1596,7 @@ impl Pallet { /// Set the parent hash number to something in particular. Can be used as an alternative to /// `initialize` for tests that don't need to bother with the other environment entries. #[cfg(any(feature = "std", test))] - pub fn set_parent_hash(n: T::Hash) { - >::put(n); - } + pub fn set_parent_hash(n: T::Hash) { >::put(n); } /// Set the current block weight. This should only be used in some integration tests. #[cfg(any(feature = "std", test))] @@ -1703,9 +1653,7 @@ impl Pallet { } /// Return the chain's current runtime version. - pub fn runtime_version() -> RuntimeVersion { - T::Version::get() - } + pub fn runtime_version() -> RuntimeVersion { T::Version::get() } /// Retrieve the account transaction counter from storage. pub fn account_nonce(who: impl EncodeLike) -> T::Nonce { @@ -1770,9 +1718,7 @@ impl Pallet { /// To be called immediately after finishing the initialization of the block /// (e.g., called `on_initialize` for all pallets). - pub fn note_finished_initialize() { - ExecutionPhase::::put(Phase::ApplyExtrinsic(0)) - } + pub fn note_finished_initialize() { ExecutionPhase::::put(Phase::ApplyExtrinsic(0)) } /// An account is being created. pub fn on_created_account(who: T::AccountId, _a: &mut AccountInfo) { @@ -1868,9 +1814,7 @@ impl HandleLifetime for SelfSufficient { /// Event handler which registers a consumer when created. pub struct Consumer(PhantomData); impl HandleLifetime for Consumer { - fn created(t: &T::AccountId) -> Result<(), DispatchError> { - Pallet::::inc_consumers(t) - } + fn created(t: &T::AccountId) -> Result<(), DispatchError> { Pallet::::inc_consumers(t) } fn killed(t: &T::AccountId) -> Result<(), DispatchError> { Pallet::::dec_consumers(t); @@ -1881,9 +1825,7 @@ impl HandleLifetime for Consumer { impl BlockNumberProvider for Pallet { type BlockNumber = BlockNumberFor; - fn current_block_number() -> Self::BlockNumber { - Pallet::::block_number() - } + fn current_block_number() -> Self::BlockNumber { Pallet::::block_number() } } /// Implement StoredMap for a simple single-item, provide-when-not-default system. This works fine @@ -1892,9 +1834,7 @@ impl BlockNumberProvider for Pallet { /// /// Anything more complex will need more sophisticated logic. impl StoredMap for Pallet { - fn get(k: &T::AccountId) -> T::AccountData { - Account::::get(k).data - } + fn get(k: &T::AccountId) -> T::AccountData { Account::::get(k).data } fn try_mutate_exists>( k: &T::AccountId, @@ -1929,9 +1869,7 @@ pub fn split_inner( pub struct ChainContext(PhantomData); impl Default for ChainContext { - fn default() -> Self { - ChainContext(PhantomData) - } + fn default() -> Self { ChainContext(PhantomData) } } impl Lookup for ChainContext { diff --git a/pallets/system/src/submitted_data.rs b/pallets/system/src/submitted_data.rs index 274800c02..81b1e3528 100644 --- a/pallets/system/src/submitted_data.rs +++ b/pallets/system/src/submitted_data.rs @@ -23,9 +23,7 @@ pub type RcMetrics = Rc>; impl Metrics { /// Creates a shared metric with internal mutability. - fn new_shared() -> RcMetrics { - Rc::new(RefCell::new(Self::default())) - } + fn new_shared() -> RcMetrics { Rc::new(RefCell::new(Self::default())) } } /// Extracts the `data` field from some types of extrinsics. @@ -45,9 +43,7 @@ pub trait Extractor { impl Extractor for () { type Error = (); - fn extract(_: &OpaqueExtrinsic, _: RcMetrics) -> Result>, ()> { - Ok(vec![]) - } + fn extract(_: &OpaqueExtrinsic, _: RcMetrics) -> Result>, ()> { Ok(vec![]) } } /// It is similar to `Extractor` but it uses `C` type for calls, instead of `AppExtrinsic`. @@ -61,13 +57,9 @@ pub trait Filter { #[cfg(any(feature = "std", test))] impl Filter for () { - fn filter(_: C, _: RcMetrics) -> Vec> { - vec![] - } + fn filter(_: C, _: RcMetrics) -> Vec> { vec![] } - fn process_calls(_: Vec, _: &RcMetrics) -> Vec> { - vec![] - } + fn process_calls(_: Vec, _: &RcMetrics) -> Vec> { vec![] } } fn extract_and_inspect(opaque: &OpaqueExtrinsic, metrics: RcMetrics) -> Vec> @@ -144,9 +136,7 @@ where impl Hasher for Keccak256Algorithm { type Hash = [u8; 32]; - fn hash(data: &[u8]) -> [u8; 32] { - sp_io::hashing::keccak_256(data).into() - } + fn hash(data: &[u8]) -> [u8; 32] { sp_io::hashing::keccak_256(data).into() } } let mut tree = MerkleTree::::new(); @@ -308,9 +298,7 @@ mod test { } } - fn process_calls(_: Vec, _: &RcMetrics) -> Vec> { - vec![] - } + fn process_calls(_: Vec, _: &RcMetrics) -> Vec> { vec![] } } #[test] @@ -553,13 +541,10 @@ mod test { let data_tree = MerkleTree::::from_leaves(&leaves); let proof = data_tree.proof(&[1usize]); let root_proof = proof.proof_hashes().to_vec(); - assert_eq!( - root_proof, - vec![ - hex!("754B9412E0ED7907BDF4B7CA5D2A22F5E129A03DEB1F4E1C1FE42D322FDEE90E"), - hex!("8D6E30E494D17D7675A94C3C614467FF8CCE35201C1056751A6E9A100515DAF9"), - ] - ); + assert_eq!(root_proof, vec![ + hex!("754B9412E0ED7907BDF4B7CA5D2A22F5E129A03DEB1F4E1C1FE42D322FDEE90E"), + hex!("8D6E30E494D17D7675A94C3C614467FF8CCE35201C1056751A6E9A100515DAF9"), + ]); } #[test] diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index cdf7c3772..69a0efb72 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -605,15 +605,11 @@ parameter_types! { use sp_runtime::traits::Convert; pub struct BalanceToU256; impl Convert for BalanceToU256 { - fn convert(balance: Balance) -> sp_core::U256 { - sp_core::U256::from(balance) - } + fn convert(balance: Balance) -> sp_core::U256 { sp_core::U256::from(balance) } } pub struct U256ToBalance; impl Convert for U256ToBalance { - fn convert(n: sp_core::U256) -> Balance { - n.try_into().unwrap_or(Balance::max_value()) - } + fn convert(n: sp_core::U256) -> Balance { n.try_into().unwrap_or(Balance::max_value()) } } impl pallet_nomination_pools::Config for Runtime { From 4fa37f66853ae07485c66a68941403b6d97e3057 Mon Sep 17 00:00:00 2001 From: Marko Petrlic Date: Mon, 11 Sep 2023 15:31:50 +0200 Subject: [PATCH 57/58] Reverted formatting --- .rustfmt.toml | 10 - avail-subxt/.rustfmt.toml | 10 - avail-subxt/rustfmt.toml | 13 + avail-subxt/src/api_dev.rs | 1958 +++++++++++------ avail-subxt/src/primitives/header.rs | 8 +- node/src/benchmarking.rs | 20 +- node/src/chain_spec.rs | 4 +- node/src/chain_spec/config.rs | 4 +- node/src/chain_spec/locals.rs | 4 +- node/src/command.rs | 24 +- node/src/main.rs | 4 +- node/src/service.rs | 4 +- .../bridges/nomad/da-bridge/src/message.rs | 4 +- .../bridges/nomad/updater-manager/src/lib.rs | 8 +- pallets/dactr/src/extensions/check_app_id.rs | 24 +- pallets/dactr/src/mock.rs | 33 +- .../system/src/extensions/check_genesis.rs | 8 +- .../system/src/extensions/check_mortality.rs | 8 +- .../src/extensions/check_non_zero_sender.rs | 12 +- pallets/system/src/extensions/check_nonce.rs | 29 +- .../src/extensions/check_spec_version.rs | 8 +- .../system/src/extensions/check_tx_version.rs | 8 +- pallets/system/src/extensions/check_weight.rs | 16 +- pallets/system/src/lib.rs | 124 +- pallets/system/src/limits.rs | 16 +- pallets/system/src/mock.rs | 4 +- pallets/system/src/mocking.rs | 4 +- pallets/system/src/offchain.rs | 16 +- pallets/system/src/submitted_data.rs | 35 +- pallets/system/src/tests.rs | 166 +- runtime/src/impls.rs | 8 +- runtime/src/lib.rs | 8 +- runtime/src/migration.rs | 8 +- rustfmt.toml | 21 +- 34 files changed, 1760 insertions(+), 871 deletions(-) delete mode 100644 .rustfmt.toml delete mode 100644 avail-subxt/.rustfmt.toml create mode 100644 avail-subxt/rustfmt.toml diff --git a/.rustfmt.toml b/.rustfmt.toml deleted file mode 100644 index 6ac19618c..000000000 --- a/.rustfmt.toml +++ /dev/null @@ -1,10 +0,0 @@ -fn_single_line = true -match_arm_blocks = true -match_block_trailing_comma = true -imports_granularity = "Crate" -overflow_delimited_expr = true -reorder_impl_items = true -group_imports = "StdExternalCrate" -use_field_init_shorthand = true -edition = "2018" -hard_tabs = true \ No newline at end of file diff --git a/avail-subxt/.rustfmt.toml b/avail-subxt/.rustfmt.toml deleted file mode 100644 index 6ac19618c..000000000 --- a/avail-subxt/.rustfmt.toml +++ /dev/null @@ -1,10 +0,0 @@ -fn_single_line = true -match_arm_blocks = true -match_block_trailing_comma = true -imports_granularity = "Crate" -overflow_delimited_expr = true -reorder_impl_items = true -group_imports = "StdExternalCrate" -use_field_init_shorthand = true -edition = "2018" -hard_tabs = true \ No newline at end of file diff --git a/avail-subxt/rustfmt.toml b/avail-subxt/rustfmt.toml new file mode 100644 index 000000000..bb55bd1e8 --- /dev/null +++ b/avail-subxt/rustfmt.toml @@ -0,0 +1,13 @@ +match_block_trailing_comma = true +use_field_init_shorthand = true +edition = "2021" +hard_tabs = true + +# Disabled on Stable +# +# fn_single_line = true +# match_arm_blocks = true +# imports_granularity = "Crate" +# overflow_delimited_expr = true +# reorder_impl_items = true +# group_imports = "StdExternalCrate" \ No newline at end of file diff --git a/avail-subxt/src/api_dev.rs b/avail-subxt/src/api_dev.rs index 9ad5ea030..edd9ec2f6 100644 --- a/avail-subxt/src/api_dev.rs +++ b/avail-subxt/src/api_dev.rs @@ -919,10 +919,18 @@ pub mod api { .into()) } } - pub fn constants() -> ConstantsApi { ConstantsApi } - pub fn storage() -> StorageApi { StorageApi } - pub fn tx() -> TransactionApi { TransactionApi } - pub fn apis() -> runtime_apis::RuntimeApi { runtime_apis::RuntimeApi } + pub fn constants() -> ConstantsApi { + ConstantsApi + } + pub fn storage() -> StorageApi { + StorageApi + } + pub fn tx() -> TransactionApi { + TransactionApi + } + pub fn apis() -> runtime_apis::RuntimeApi { + runtime_apis::RuntimeApi + } pub mod runtime_apis { use ::subxt::ext::codec::Encode; @@ -932,13 +940,17 @@ pub mod api { } pub struct ConstantsApi; impl ConstantsApi { - pub fn system(&self) -> system::constants::ConstantsApi { system::constants::ConstantsApi } + pub fn system(&self) -> system::constants::ConstantsApi { + system::constants::ConstantsApi + } pub fn utility(&self) -> utility::constants::ConstantsApi { utility::constants::ConstantsApi } - pub fn babe(&self) -> babe::constants::ConstantsApi { babe::constants::ConstantsApi } + pub fn babe(&self) -> babe::constants::ConstantsApi { + babe::constants::ConstantsApi + } pub fn timestamp(&self) -> timestamp::constants::ConstantsApi { timestamp::constants::ConstantsApi @@ -1002,7 +1014,9 @@ pub mod api { bounties::constants::ConstantsApi } - pub fn tips(&self) -> tips::constants::ConstantsApi { tips::constants::ConstantsApi } + pub fn tips(&self) -> tips::constants::ConstantsApi { + tips::constants::ConstantsApi + } pub fn data_availability(&self) -> data_availability::constants::ConstantsApi { data_availability::constants::ConstantsApi @@ -1034,19 +1048,29 @@ pub mod api { } pub struct StorageApi; impl StorageApi { - pub fn system(&self) -> system::storage::StorageApi { system::storage::StorageApi } + pub fn system(&self) -> system::storage::StorageApi { + system::storage::StorageApi + } - pub fn babe(&self) -> babe::storage::StorageApi { babe::storage::StorageApi } + pub fn babe(&self) -> babe::storage::StorageApi { + babe::storage::StorageApi + } - pub fn timestamp(&self) -> timestamp::storage::StorageApi { timestamp::storage::StorageApi } + pub fn timestamp(&self) -> timestamp::storage::StorageApi { + timestamp::storage::StorageApi + } pub fn authorship(&self) -> authorship::storage::StorageApi { authorship::storage::StorageApi } - pub fn indices(&self) -> indices::storage::StorageApi { indices::storage::StorageApi } + pub fn indices(&self) -> indices::storage::StorageApi { + indices::storage::StorageApi + } - pub fn balances(&self) -> balances::storage::StorageApi { balances::storage::StorageApi } + pub fn balances(&self) -> balances::storage::StorageApi { + balances::storage::StorageApi + } pub fn transaction_payment(&self) -> transaction_payment::storage::StorageApi { transaction_payment::storage::StorageApi @@ -1058,49 +1082,77 @@ pub mod api { election_provider_multi_phase::storage::StorageApi } - pub fn staking(&self) -> staking::storage::StorageApi { staking::storage::StorageApi } + pub fn staking(&self) -> staking::storage::StorageApi { + staking::storage::StorageApi + } - pub fn session(&self) -> session::storage::StorageApi { session::storage::StorageApi } + pub fn session(&self) -> session::storage::StorageApi { + session::storage::StorageApi + } - pub fn democracy(&self) -> democracy::storage::StorageApi { democracy::storage::StorageApi } + pub fn democracy(&self) -> democracy::storage::StorageApi { + democracy::storage::StorageApi + } - pub fn council(&self) -> council::storage::StorageApi { council::storage::StorageApi } + pub fn council(&self) -> council::storage::StorageApi { + council::storage::StorageApi + } pub fn technical_committee(&self) -> technical_committee::storage::StorageApi { technical_committee::storage::StorageApi } - pub fn elections(&self) -> elections::storage::StorageApi { elections::storage::StorageApi } + pub fn elections(&self) -> elections::storage::StorageApi { + elections::storage::StorageApi + } pub fn technical_membership(&self) -> technical_membership::storage::StorageApi { technical_membership::storage::StorageApi } - pub fn grandpa(&self) -> grandpa::storage::StorageApi { grandpa::storage::StorageApi } + pub fn grandpa(&self) -> grandpa::storage::StorageApi { + grandpa::storage::StorageApi + } - pub fn treasury(&self) -> treasury::storage::StorageApi { treasury::storage::StorageApi } + pub fn treasury(&self) -> treasury::storage::StorageApi { + treasury::storage::StorageApi + } - pub fn sudo(&self) -> sudo::storage::StorageApi { sudo::storage::StorageApi } + pub fn sudo(&self) -> sudo::storage::StorageApi { + sudo::storage::StorageApi + } - pub fn im_online(&self) -> im_online::storage::StorageApi { im_online::storage::StorageApi } + pub fn im_online(&self) -> im_online::storage::StorageApi { + im_online::storage::StorageApi + } pub fn authority_discovery(&self) -> authority_discovery::storage::StorageApi { authority_discovery::storage::StorageApi } - pub fn offences(&self) -> offences::storage::StorageApi { offences::storage::StorageApi } + pub fn offences(&self) -> offences::storage::StorageApi { + offences::storage::StorageApi + } pub fn historical(&self) -> historical::storage::StorageApi { historical::storage::StorageApi } - pub fn scheduler(&self) -> scheduler::storage::StorageApi { scheduler::storage::StorageApi } + pub fn scheduler(&self) -> scheduler::storage::StorageApi { + scheduler::storage::StorageApi + } - pub fn bounties(&self) -> bounties::storage::StorageApi { bounties::storage::StorageApi } + pub fn bounties(&self) -> bounties::storage::StorageApi { + bounties::storage::StorageApi + } - pub fn tips(&self) -> tips::storage::StorageApi { tips::storage::StorageApi } + pub fn tips(&self) -> tips::storage::StorageApi { + tips::storage::StorageApi + } - pub fn mmr(&self) -> mmr::storage::StorageApi { mmr::storage::StorageApi } + pub fn mmr(&self) -> mmr::storage::StorageApi { + mmr::storage::StorageApi + } pub fn data_availability(&self) -> data_availability::storage::StorageApi { data_availability::storage::StorageApi @@ -1114,9 +1166,13 @@ pub mod api { nomad_home::storage::StorageApi } - pub fn preimage(&self) -> preimage::storage::StorageApi { preimage::storage::StorageApi } + pub fn preimage(&self) -> preimage::storage::StorageApi { + preimage::storage::StorageApi + } - pub fn multisig(&self) -> multisig::storage::StorageApi { multisig::storage::StorageApi } + pub fn multisig(&self) -> multisig::storage::StorageApi { + multisig::storage::StorageApi + } pub fn voter_list(&self) -> voter_list::storage::StorageApi { voter_list::storage::StorageApi @@ -1126,21 +1182,31 @@ pub mod api { nomination_pools::storage::StorageApi } - pub fn identity(&self) -> identity::storage::StorageApi { identity::storage::StorageApi } + pub fn identity(&self) -> identity::storage::StorageApi { + identity::storage::StorageApi + } } pub struct TransactionApi; impl TransactionApi { - pub fn system(&self) -> system::calls::TransactionApi { system::calls::TransactionApi } + pub fn system(&self) -> system::calls::TransactionApi { + system::calls::TransactionApi + } - pub fn utility(&self) -> utility::calls::TransactionApi { utility::calls::TransactionApi } + pub fn utility(&self) -> utility::calls::TransactionApi { + utility::calls::TransactionApi + } - pub fn babe(&self) -> babe::calls::TransactionApi { babe::calls::TransactionApi } + pub fn babe(&self) -> babe::calls::TransactionApi { + babe::calls::TransactionApi + } pub fn timestamp(&self) -> timestamp::calls::TransactionApi { timestamp::calls::TransactionApi } - pub fn indices(&self) -> indices::calls::TransactionApi { indices::calls::TransactionApi } + pub fn indices(&self) -> indices::calls::TransactionApi { + indices::calls::TransactionApi + } pub fn balances(&self) -> balances::calls::TransactionApi { balances::calls::TransactionApi @@ -1152,15 +1218,21 @@ pub mod api { election_provider_multi_phase::calls::TransactionApi } - pub fn staking(&self) -> staking::calls::TransactionApi { staking::calls::TransactionApi } + pub fn staking(&self) -> staking::calls::TransactionApi { + staking::calls::TransactionApi + } - pub fn session(&self) -> session::calls::TransactionApi { session::calls::TransactionApi } + pub fn session(&self) -> session::calls::TransactionApi { + session::calls::TransactionApi + } pub fn democracy(&self) -> democracy::calls::TransactionApi { democracy::calls::TransactionApi } - pub fn council(&self) -> council::calls::TransactionApi { council::calls::TransactionApi } + pub fn council(&self) -> council::calls::TransactionApi { + council::calls::TransactionApi + } pub fn technical_committee(&self) -> technical_committee::calls::TransactionApi { technical_committee::calls::TransactionApi @@ -1174,13 +1246,17 @@ pub mod api { technical_membership::calls::TransactionApi } - pub fn grandpa(&self) -> grandpa::calls::TransactionApi { grandpa::calls::TransactionApi } + pub fn grandpa(&self) -> grandpa::calls::TransactionApi { + grandpa::calls::TransactionApi + } pub fn treasury(&self) -> treasury::calls::TransactionApi { treasury::calls::TransactionApi } - pub fn sudo(&self) -> sudo::calls::TransactionApi { sudo::calls::TransactionApi } + pub fn sudo(&self) -> sudo::calls::TransactionApi { + sudo::calls::TransactionApi + } pub fn im_online(&self) -> im_online::calls::TransactionApi { im_online::calls::TransactionApi @@ -1194,7 +1270,9 @@ pub mod api { bounties::calls::TransactionApi } - pub fn tips(&self) -> tips::calls::TransactionApi { tips::calls::TransactionApi } + pub fn tips(&self) -> tips::calls::TransactionApi { + tips::calls::TransactionApi + } pub fn data_availability(&self) -> data_availability::calls::TransactionApi { data_availability::calls::TransactionApi @@ -1232,7 +1310,9 @@ pub mod api { identity::calls::TransactionApi } - pub fn mandate(&self) -> mandate::calls::TransactionApi { mandate::calls::TransactionApi } + pub fn mandate(&self) -> mandate::calls::TransactionApi { + mandate::calls::TransactionApi + } } #[doc = r" check whether the Client you are using is aligned with the statically generated codegen."] pub fn validate_codegen>( @@ -1965,11 +2045,16 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("System", "Number", vec![], [ - 30u8, 194u8, 177u8, 90u8, 194u8, 232u8, 46u8, 180u8, 85u8, 129u8, 14u8, - 9u8, 8u8, 8u8, 23u8, 95u8, 230u8, 5u8, 13u8, 105u8, 125u8, 2u8, 22u8, - 200u8, 78u8, 93u8, 115u8, 28u8, 150u8, 113u8, 48u8, 53u8, - ]) + ::subxt::storage::address::Address::new_static( + "System", + "Number", + vec![], + [ + 30u8, 194u8, 177u8, 90u8, 194u8, 232u8, 46u8, 180u8, 85u8, 129u8, 14u8, + 9u8, 8u8, 8u8, 23u8, 95u8, 230u8, 5u8, 13u8, 105u8, 125u8, 2u8, 22u8, + 200u8, 78u8, 93u8, 115u8, 28u8, 150u8, 113u8, 48u8, 53u8, + ], + ) } #[doc = " Hash of the previous block."] @@ -2004,11 +2089,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("System", "Digest", vec![], [ - 70u8, 156u8, 127u8, 89u8, 115u8, 250u8, 103u8, 62u8, 185u8, 153u8, 26u8, - 72u8, 39u8, 226u8, 181u8, 97u8, 137u8, 225u8, 45u8, 158u8, 212u8, 254u8, - 142u8, 136u8, 90u8, 22u8, 243u8, 125u8, 226u8, 49u8, 235u8, 215u8, - ]) + ::subxt::storage::address::Address::new_static( + "System", + "Digest", + vec![], + [ + 70u8, 156u8, 127u8, 89u8, 115u8, 250u8, 103u8, 62u8, 185u8, 153u8, + 26u8, 72u8, 39u8, 226u8, 181u8, 97u8, 137u8, 225u8, 45u8, 158u8, 212u8, + 254u8, 142u8, 136u8, 90u8, 22u8, 243u8, 125u8, 226u8, 49u8, 235u8, + 215u8, + ], + ) } #[doc = " Events deposited for the current block."] @@ -2032,11 +2123,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("System", "Events", vec![], [ - 135u8, 70u8, 188u8, 138u8, 189u8, 89u8, 46u8, 4u8, 225u8, 244u8, 212u8, - 189u8, 221u8, 105u8, 161u8, 239u8, 176u8, 2u8, 188u8, 39u8, 88u8, 209u8, - 24u8, 183u8, 165u8, 251u8, 104u8, 239u8, 253u8, 88u8, 150u8, 34u8, - ]) + ::subxt::storage::address::Address::new_static( + "System", + "Events", + vec![], + [ + 135u8, 70u8, 188u8, 138u8, 189u8, 89u8, 46u8, 4u8, 225u8, 244u8, 212u8, + 189u8, 221u8, 105u8, 161u8, 239u8, 176u8, 2u8, 188u8, 39u8, 88u8, + 209u8, 24u8, 183u8, 165u8, 251u8, 104u8, 239u8, 253u8, 88u8, 150u8, + 34u8, + ], + ) } #[doc = " The number of events in the `Events` list."] @@ -2249,55 +2346,77 @@ pub mod api { &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("System", "BlockWeights", [ - 238u8, 20u8, 221u8, 11u8, 146u8, 236u8, 47u8, 103u8, 8u8, 239u8, 13u8, - 176u8, 202u8, 10u8, 151u8, 68u8, 110u8, 162u8, 99u8, 40u8, 211u8, 136u8, - 71u8, 82u8, 50u8, 80u8, 244u8, 211u8, 231u8, 198u8, 36u8, 152u8, - ]) + ::subxt::constants::Address::new_static( + "System", + "BlockWeights", + [ + 238u8, 20u8, 221u8, 11u8, 146u8, 236u8, 47u8, 103u8, 8u8, 239u8, 13u8, + 176u8, 202u8, 10u8, 151u8, 68u8, 110u8, 162u8, 99u8, 40u8, 211u8, + 136u8, 71u8, 82u8, 50u8, 80u8, 244u8, 211u8, 231u8, 198u8, 36u8, 152u8, + ], + ) } #[doc = " The maximum length of a block (in bytes)."] pub fn block_length( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("System", "BlockLength", [ - 166u8, 7u8, 126u8, 154u8, 133u8, 31u8, 100u8, 149u8, 118u8, 168u8, 1u8, - 21u8, 202u8, 114u8, 104u8, 193u8, 44u8, 97u8, 240u8, 37u8, 177u8, 43u8, - 83u8, 195u8, 176u8, 252u8, 201u8, 229u8, 170u8, 45u8, 136u8, 81u8, - ]) + ::subxt::constants::Address::new_static( + "System", + "BlockLength", + [ + 166u8, 7u8, 126u8, 154u8, 133u8, 31u8, 100u8, 149u8, 118u8, 168u8, 1u8, + 21u8, 202u8, 114u8, 104u8, 193u8, 44u8, 97u8, 240u8, 37u8, 177u8, 43u8, + 83u8, 195u8, 176u8, 252u8, 201u8, 229u8, 170u8, 45u8, 136u8, 81u8, + ], + ) } #[doc = " Maximum number of block number to block hash mappings to keep (oldest pruned first)."] pub fn block_hash_count( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("System", "BlockHashCount", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "System", + "BlockHashCount", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The weight of runtime database operations the runtime can invoke."] pub fn db_weight( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("System", "DbWeight", [ - 206u8, 53u8, 134u8, 247u8, 42u8, 38u8, 197u8, 59u8, 191u8, 83u8, 160u8, - 9u8, 207u8, 133u8, 108u8, 152u8, 150u8, 103u8, 109u8, 228u8, 218u8, 24u8, - 27u8, 210u8, 106u8, 252u8, 74u8, 93u8, 27u8, 63u8, 109u8, 252u8, - ]) + ::subxt::constants::Address::new_static( + "System", + "DbWeight", + [ + 206u8, 53u8, 134u8, 247u8, 42u8, 38u8, 197u8, 59u8, 191u8, 83u8, 160u8, + 9u8, 207u8, 133u8, 108u8, 152u8, 150u8, 103u8, 109u8, 228u8, 218u8, + 24u8, 27u8, 210u8, 106u8, 252u8, 74u8, 93u8, 27u8, 63u8, 109u8, 252u8, + ], + ) } #[doc = " Get the chain's current version."] pub fn version( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("System", "Version", [ - 134u8, 0u8, 23u8, 0u8, 199u8, 213u8, 89u8, 240u8, 194u8, 186u8, 239u8, - 157u8, 168u8, 211u8, 223u8, 156u8, 138u8, 140u8, 194u8, 23u8, 167u8, 158u8, - 195u8, 233u8, 25u8, 165u8, 27u8, 237u8, 198u8, 206u8, 233u8, 28u8, - ]) + ::subxt::constants::Address::new_static( + "System", + "Version", + [ + 134u8, 0u8, 23u8, 0u8, 199u8, 213u8, 89u8, 240u8, 194u8, 186u8, 239u8, + 157u8, 168u8, 211u8, 223u8, 156u8, 138u8, 140u8, 194u8, 23u8, 167u8, + 158u8, 195u8, 233u8, 25u8, 165u8, 27u8, 237u8, 198u8, 206u8, 233u8, + 28u8, + ], + ) } #[doc = " The designated SS58 prefix of this chain."] @@ -2306,11 +2425,15 @@ pub mod api { #[doc = " that the runtime should know about the prefix in order to make use of it as"] #[doc = " an identifier of the chain."] pub fn ss58_prefix(&self) -> ::subxt::constants::Address<::core::primitive::u16> { - ::subxt::constants::Address::new_static("System", "SS58Prefix", [ - 116u8, 33u8, 2u8, 170u8, 181u8, 147u8, 171u8, 169u8, 167u8, 227u8, 41u8, - 144u8, 11u8, 236u8, 82u8, 100u8, 74u8, 60u8, 184u8, 72u8, 169u8, 90u8, - 208u8, 135u8, 15u8, 117u8, 10u8, 123u8, 128u8, 193u8, 29u8, 70u8, - ]) + ::subxt::constants::Address::new_static( + "System", + "SS58Prefix", + [ + 116u8, 33u8, 2u8, 170u8, 181u8, 147u8, 171u8, 169u8, 167u8, 227u8, + 41u8, 144u8, 11u8, 236u8, 82u8, 100u8, 74u8, 60u8, 184u8, 72u8, 169u8, + 90u8, 208u8, 135u8, 15u8, 117u8, 10u8, 123u8, 128u8, 193u8, 29u8, 70u8, + ], + ) } } } @@ -2457,11 +2580,16 @@ pub mod api { &self, calls: ::std::vec::Vec, ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static("Utility", "batch", types::Batch { calls }, [ - 220u8, 133u8, 43u8, 120u8, 158u8, 223u8, 27u8, 148u8, 207u8, 167u8, 54u8, - 93u8, 208u8, 199u8, 29u8, 110u8, 176u8, 77u8, 51u8, 216u8, 24u8, 86u8, - 103u8, 71u8, 108u8, 82u8, 226u8, 22u8, 10u8, 20u8, 117u8, 152u8, - ]) + ::subxt::tx::Payload::new_static( + "Utility", + "batch", + types::Batch { calls }, + [ + 220u8, 133u8, 43u8, 120u8, 158u8, 223u8, 27u8, 148u8, 207u8, 167u8, + 54u8, 93u8, 208u8, 199u8, 29u8, 110u8, 176u8, 77u8, 51u8, 216u8, 24u8, + 86u8, 103u8, 71u8, 108u8, 82u8, 226u8, 22u8, 10u8, 20u8, 117u8, 152u8, + ], + ) } #[doc = "See [`Pallet::as_derivative`]."] @@ -2700,11 +2828,16 @@ pub mod api { pub fn batched_calls_limit( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Utility", "batched_calls_limit", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Utility", + "batched_calls_limit", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } @@ -2889,11 +3022,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Babe", "EpochIndex", vec![], [ - 32u8, 82u8, 130u8, 31u8, 190u8, 162u8, 237u8, 189u8, 104u8, 244u8, 30u8, - 199u8, 179u8, 0u8, 161u8, 107u8, 72u8, 240u8, 201u8, 222u8, 177u8, 222u8, - 35u8, 156u8, 81u8, 132u8, 162u8, 118u8, 238u8, 84u8, 112u8, 89u8, - ]) + ::subxt::storage::address::Address::new_static( + "Babe", + "EpochIndex", + vec![], + [ + 32u8, 82u8, 130u8, 31u8, 190u8, 162u8, 237u8, 189u8, 104u8, 244u8, + 30u8, 199u8, 179u8, 0u8, 161u8, 107u8, 72u8, 240u8, 201u8, 222u8, + 177u8, 222u8, 35u8, 156u8, 81u8, 132u8, 162u8, 118u8, 238u8, 84u8, + 112u8, 89u8, + ], + ) } #[doc = " Current epoch authorities."] @@ -2909,11 +3048,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Babe", "Authorities", vec![], [ - 67u8, 196u8, 244u8, 13u8, 246u8, 245u8, 198u8, 98u8, 81u8, 55u8, 182u8, - 187u8, 214u8, 5u8, 181u8, 76u8, 251u8, 213u8, 144u8, 166u8, 36u8, 153u8, - 234u8, 181u8, 252u8, 55u8, 198u8, 175u8, 55u8, 211u8, 105u8, 85u8, - ]) + ::subxt::storage::address::Address::new_static( + "Babe", + "Authorities", + vec![], + [ + 67u8, 196u8, 244u8, 13u8, 246u8, 245u8, 198u8, 98u8, 81u8, 55u8, 182u8, + 187u8, 214u8, 5u8, 181u8, 76u8, 251u8, 213u8, 144u8, 166u8, 36u8, + 153u8, 234u8, 181u8, 252u8, 55u8, 198u8, 175u8, 55u8, 211u8, 105u8, + 85u8, + ], + ) } #[doc = " The slot at which the first epoch actually started. This is 0"] @@ -2927,11 +3072,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Babe", "GenesisSlot", vec![], [ - 218u8, 174u8, 152u8, 76u8, 188u8, 214u8, 7u8, 88u8, 253u8, 187u8, 139u8, - 234u8, 51u8, 28u8, 220u8, 57u8, 73u8, 1u8, 18u8, 205u8, 80u8, 160u8, 120u8, - 216u8, 139u8, 191u8, 100u8, 108u8, 162u8, 106u8, 175u8, 107u8, - ]) + ::subxt::storage::address::Address::new_static( + "Babe", + "GenesisSlot", + vec![], + [ + 218u8, 174u8, 152u8, 76u8, 188u8, 214u8, 7u8, 88u8, 253u8, 187u8, + 139u8, 234u8, 51u8, 28u8, 220u8, 57u8, 73u8, 1u8, 18u8, 205u8, 80u8, + 160u8, 120u8, 216u8, 139u8, 191u8, 100u8, 108u8, 162u8, 106u8, 175u8, + 107u8, + ], + ) } #[doc = " Current slot number."] @@ -2944,11 +3095,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Babe", "CurrentSlot", vec![], [ - 112u8, 199u8, 115u8, 248u8, 217u8, 242u8, 45u8, 231u8, 178u8, 53u8, 236u8, - 167u8, 219u8, 238u8, 81u8, 243u8, 39u8, 140u8, 68u8, 19u8, 201u8, 169u8, - 211u8, 133u8, 135u8, 213u8, 150u8, 105u8, 60u8, 252u8, 43u8, 57u8, - ]) + ::subxt::storage::address::Address::new_static( + "Babe", + "CurrentSlot", + vec![], + [ + 112u8, 199u8, 115u8, 248u8, 217u8, 242u8, 45u8, 231u8, 178u8, 53u8, + 236u8, 167u8, 219u8, 238u8, 81u8, 243u8, 39u8, 140u8, 68u8, 19u8, + 201u8, 169u8, 211u8, 133u8, 135u8, 213u8, 150u8, 105u8, 60u8, 252u8, + 43u8, 57u8, + ], + ) } #[doc = " The epoch randomness for the *current* epoch."] @@ -2970,11 +3127,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Babe", "Randomness", vec![], [ - 36u8, 15u8, 52u8, 73u8, 195u8, 177u8, 186u8, 125u8, 134u8, 11u8, 103u8, - 248u8, 170u8, 237u8, 105u8, 239u8, 168u8, 204u8, 147u8, 52u8, 15u8, 226u8, - 126u8, 176u8, 133u8, 186u8, 169u8, 241u8, 156u8, 118u8, 67u8, 58u8, - ]) + ::subxt::storage::address::Address::new_static( + "Babe", + "Randomness", + vec![], + [ + 36u8, 15u8, 52u8, 73u8, 195u8, 177u8, 186u8, 125u8, 134u8, 11u8, 103u8, + 248u8, 170u8, 237u8, 105u8, 239u8, 168u8, 204u8, 147u8, 52u8, 15u8, + 226u8, 126u8, 176u8, 133u8, 186u8, 169u8, 241u8, 156u8, 118u8, 67u8, + 58u8, + ], + ) } #[doc = " Pending epoch configuration change that will be applied when the next epoch is enacted."] @@ -3141,11 +3304,16 @@ pub mod api { (), (), > { - ::subxt::storage::address::Address::new_static("Babe", "Initialized", vec![], [ - 61u8, 100u8, 12u8, 43u8, 50u8, 166u8, 173u8, 130u8, 86u8, 36u8, 92u8, - 221u8, 44u8, 235u8, 241u8, 150u8, 231u8, 108u8, 15u8, 134u8, 12u8, 6u8, - 198u8, 102u8, 63u8, 69u8, 201u8, 171u8, 14u8, 135u8, 254u8, 239u8, - ]) + ::subxt::storage::address::Address::new_static( + "Babe", + "Initialized", + vec![], + [ + 61u8, 100u8, 12u8, 43u8, 50u8, 166u8, 173u8, 130u8, 86u8, 36u8, 92u8, + 221u8, 44u8, 235u8, 241u8, 150u8, 231u8, 108u8, 15u8, 134u8, 12u8, 6u8, + 198u8, 102u8, 63u8, 69u8, 201u8, 171u8, 14u8, 135u8, 254u8, 239u8, + ], + ) } #[doc = " This field should always be populated during block processing unless"] @@ -3188,11 +3356,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Babe", "EpochStart", vec![], [ - 246u8, 69u8, 165u8, 217u8, 181u8, 138u8, 201u8, 64u8, 251u8, 121u8, 50u8, - 231u8, 221u8, 144u8, 225u8, 249u8, 42u8, 135u8, 31u8, 136u8, 21u8, 160u8, - 186u8, 148u8, 139u8, 232u8, 182u8, 121u8, 82u8, 110u8, 14u8, 160u8, - ]) + ::subxt::storage::address::Address::new_static( + "Babe", + "EpochStart", + vec![], + [ + 246u8, 69u8, 165u8, 217u8, 181u8, 138u8, 201u8, 64u8, 251u8, 121u8, + 50u8, 231u8, 221u8, 144u8, 225u8, 249u8, 42u8, 135u8, 31u8, 136u8, + 21u8, 160u8, 186u8, 148u8, 139u8, 232u8, 182u8, 121u8, 82u8, 110u8, + 14u8, 160u8, + ], + ) } #[doc = " How late the current block is compared to its parent."] @@ -3209,11 +3383,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Babe", "Lateness", vec![], [ - 229u8, 214u8, 133u8, 149u8, 32u8, 159u8, 26u8, 22u8, 252u8, 131u8, 200u8, - 191u8, 231u8, 176u8, 178u8, 127u8, 33u8, 212u8, 139u8, 220u8, 157u8, 38u8, - 4u8, 226u8, 204u8, 32u8, 55u8, 20u8, 205u8, 141u8, 29u8, 87u8, - ]) + ::subxt::storage::address::Address::new_static( + "Babe", + "Lateness", + vec![], + [ + 229u8, 214u8, 133u8, 149u8, 32u8, 159u8, 26u8, 22u8, 252u8, 131u8, + 200u8, 191u8, 231u8, 176u8, 178u8, 127u8, 33u8, 212u8, 139u8, 220u8, + 157u8, 38u8, 4u8, 226u8, 204u8, 32u8, 55u8, 20u8, 205u8, 141u8, 29u8, + 87u8, + ], + ) } #[doc = " The configuration for the current epoch. Should never be `None` as it is initialized in"] @@ -3227,11 +3407,17 @@ pub mod api { (), (), > { - ::subxt::storage::address::Address::new_static("Babe", "EpochConfig", vec![], [ - 23u8, 188u8, 70u8, 119u8, 36u8, 199u8, 230u8, 191u8, 131u8, 219u8, 85u8, - 201u8, 237u8, 70u8, 214u8, 149u8, 212u8, 94u8, 87u8, 87u8, 62u8, 16u8, - 46u8, 143u8, 73u8, 169u8, 42u8, 139u8, 157u8, 139u8, 190u8, 166u8, - ]) + ::subxt::storage::address::Address::new_static( + "Babe", + "EpochConfig", + vec![], + [ + 23u8, 188u8, 70u8, 119u8, 36u8, 199u8, 230u8, 191u8, 131u8, 219u8, + 85u8, 201u8, 237u8, 70u8, 214u8, 149u8, 212u8, 94u8, 87u8, 87u8, 62u8, + 16u8, 46u8, 143u8, 73u8, 169u8, 42u8, 139u8, 157u8, 139u8, 190u8, + 166u8, + ], + ) } #[doc = " The configuration for the next epoch, `None` if the config will not change"] @@ -3300,11 +3486,16 @@ pub mod api { pub fn epoch_duration( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static("Babe", "EpochDuration", [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, 59u8, - 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, 119u8, - 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, - ]) + ::subxt::constants::Address::new_static( + "Babe", + "EpochDuration", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) } #[doc = " The expected average block time at which BABE should be creating"] @@ -3315,22 +3506,32 @@ pub mod api { pub fn expected_block_time( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static("Babe", "ExpectedBlockTime", [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, 59u8, - 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, 119u8, - 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, - ]) + ::subxt::constants::Address::new_static( + "Babe", + "ExpectedBlockTime", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) } #[doc = " Max number of authorities allowed"] pub fn max_authorities( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Babe", "MaxAuthorities", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Babe", + "MaxAuthorities", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } @@ -3370,11 +3571,16 @@ pub mod api { impl TransactionApi { #[doc = "See [`Pallet::set`]."] pub fn set(&self, now: ::core::primitive::u64) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static("Timestamp", "set", types::Set { now }, [ - 37u8, 95u8, 49u8, 218u8, 24u8, 22u8, 0u8, 95u8, 72u8, 35u8, 155u8, 199u8, - 213u8, 54u8, 207u8, 22u8, 185u8, 193u8, 221u8, 70u8, 18u8, 200u8, 4u8, - 231u8, 195u8, 173u8, 6u8, 122u8, 11u8, 203u8, 231u8, 227u8, - ]) + ::subxt::tx::Payload::new_static( + "Timestamp", + "set", + types::Set { now }, + [ + 37u8, 95u8, 49u8, 218u8, 24u8, 22u8, 0u8, 95u8, 72u8, 35u8, 155u8, + 199u8, 213u8, 54u8, 207u8, 22u8, 185u8, 193u8, 221u8, 70u8, 18u8, + 200u8, 4u8, 231u8, 195u8, 173u8, 6u8, 122u8, 11u8, 203u8, 231u8, 227u8, + ], + ) } } } @@ -3392,11 +3598,16 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Timestamp", "Now", vec![], [ - 44u8, 50u8, 80u8, 30u8, 195u8, 146u8, 123u8, 238u8, 8u8, 163u8, 187u8, - 92u8, 61u8, 39u8, 51u8, 29u8, 173u8, 169u8, 217u8, 158u8, 85u8, 187u8, - 141u8, 26u8, 12u8, 115u8, 51u8, 11u8, 200u8, 244u8, 138u8, 152u8, - ]) + ::subxt::storage::address::Address::new_static( + "Timestamp", + "Now", + vec![], + [ + 44u8, 50u8, 80u8, 30u8, 195u8, 146u8, 123u8, 238u8, 8u8, 163u8, 187u8, + 92u8, 61u8, 39u8, 51u8, 29u8, 173u8, 169u8, 217u8, 158u8, 85u8, 187u8, + 141u8, 26u8, 12u8, 115u8, 51u8, 11u8, 200u8, 244u8, 138u8, 152u8, + ], + ) } #[doc = " Did the timestamp get updated in this block?"] @@ -3434,11 +3645,16 @@ pub mod api { pub fn minimum_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static("Timestamp", "MinimumPeriod", [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, 59u8, - 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, 119u8, - 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, - ]) + ::subxt::constants::Address::new_static( + "Timestamp", + "MinimumPeriod", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) } } } @@ -3605,11 +3821,16 @@ pub mod api { &self, index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static("Indices", "claim", types::Claim { index }, [ - 146u8, 58u8, 246u8, 135u8, 59u8, 90u8, 3u8, 5u8, 140u8, 169u8, 232u8, - 195u8, 11u8, 107u8, 36u8, 141u8, 118u8, 174u8, 160u8, 160u8, 19u8, 205u8, - 177u8, 193u8, 18u8, 102u8, 115u8, 31u8, 72u8, 29u8, 91u8, 235u8, - ]) + ::subxt::tx::Payload::new_static( + "Indices", + "claim", + types::Claim { index }, + [ + 146u8, 58u8, 246u8, 135u8, 59u8, 90u8, 3u8, 5u8, 140u8, 169u8, 232u8, + 195u8, 11u8, 107u8, 36u8, 141u8, 118u8, 174u8, 160u8, 160u8, 19u8, + 205u8, 177u8, 193u8, 18u8, 102u8, 115u8, 31u8, 72u8, 29u8, 91u8, 235u8, + ], + ) } #[doc = "See [`Pallet::transfer`]."] @@ -3639,11 +3860,17 @@ pub mod api { &self, index: ::core::primitive::u32, ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static("Indices", "free", types::Free { index }, [ - 241u8, 211u8, 234u8, 102u8, 189u8, 22u8, 209u8, 27u8, 8u8, 229u8, 80u8, - 227u8, 138u8, 252u8, 222u8, 111u8, 77u8, 201u8, 235u8, 51u8, 163u8, 247u8, - 13u8, 126u8, 216u8, 136u8, 57u8, 222u8, 56u8, 66u8, 215u8, 244u8, - ]) + ::subxt::tx::Payload::new_static( + "Indices", + "free", + types::Free { index }, + [ + 241u8, 211u8, 234u8, 102u8, 189u8, 22u8, 209u8, 27u8, 8u8, 229u8, 80u8, + 227u8, 138u8, 252u8, 222u8, 111u8, 77u8, 201u8, 235u8, 51u8, 163u8, + 247u8, 13u8, 126u8, 216u8, 136u8, 57u8, 222u8, 56u8, 66u8, 215u8, + 244u8, + ], + ) } #[doc = "See [`Pallet::force_transfer`]."] @@ -3827,11 +4054,15 @@ pub mod api { impl ConstantsApi { #[doc = " The deposit needed for reserving an index."] pub fn deposit(&self) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Indices", "Deposit", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Indices", + "Deposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } } } @@ -5134,48 +5365,72 @@ pub mod api { pub fn existential_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Balances", "ExistentialDeposit", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Balances", + "ExistentialDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } #[doc = " The maximum number of locks that should exist on an account."] #[doc = " Not strictly enforced, but used for weight estimation."] pub fn max_locks(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Balances", "MaxLocks", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Balances", + "MaxLocks", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The maximum number of named reserves that can exist on an account."] pub fn max_reserves(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Balances", "MaxReserves", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Balances", + "MaxReserves", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The maximum number of holds that can exist on an account at any time."] pub fn max_holds(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Balances", "MaxHolds", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Balances", + "MaxHolds", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The maximum number of individual freeze locks that can exist on an account at any time."] pub fn max_freezes(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Balances", "MaxFreezes", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Balances", + "MaxFreezes", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } @@ -7019,11 +7274,16 @@ pub mod api { #[doc = "See [`Pallet::chill`]."] pub fn chill(&self) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static("Staking", "chill", types::Chill {}, [ - 157u8, 75u8, 243u8, 69u8, 110u8, 192u8, 22u8, 27u8, 107u8, 68u8, 236u8, - 58u8, 179u8, 34u8, 118u8, 98u8, 131u8, 62u8, 242u8, 84u8, 149u8, 24u8, - 83u8, 223u8, 78u8, 12u8, 192u8, 22u8, 111u8, 11u8, 171u8, 149u8, - ]) + ::subxt::tx::Payload::new_static( + "Staking", + "chill", + types::Chill {}, + [ + 157u8, 75u8, 243u8, 69u8, 110u8, 192u8, 22u8, 27u8, 107u8, 68u8, 236u8, + 58u8, 179u8, 34u8, 118u8, 98u8, 131u8, 62u8, 242u8, 84u8, 149u8, 24u8, + 83u8, 223u8, 78u8, 12u8, 192u8, 22u8, 111u8, 11u8, 171u8, 149u8, + ], + ) } #[doc = "See [`Pallet::set_payee`]."] @@ -7286,11 +7546,16 @@ pub mod api { >, >, ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static("Staking", "kick", types::Kick { who }, [ - 28u8, 254u8, 219u8, 14u8, 44u8, 187u8, 186u8, 72u8, 55u8, 21u8, 129u8, - 205u8, 225u8, 204u8, 162u8, 53u8, 255u8, 56u8, 49u8, 194u8, 63u8, 43u8, - 96u8, 177u8, 125u8, 0u8, 163u8, 97u8, 231u8, 159u8, 43u8, 249u8, - ]) + ::subxt::tx::Payload::new_static( + "Staking", + "kick", + types::Kick { who }, + [ + 28u8, 254u8, 219u8, 14u8, 44u8, 187u8, 186u8, 72u8, 55u8, 21u8, 129u8, + 205u8, 225u8, 204u8, 162u8, 53u8, 255u8, 56u8, 49u8, 194u8, 63u8, 43u8, + 96u8, 177u8, 125u8, 0u8, 163u8, 97u8, 231u8, 159u8, 43u8, 249u8, + ], + ) } #[doc = "See [`Pallet::set_staking_configs`]."] @@ -8738,11 +9003,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Staking", "ForceEra", vec![], [ - 177u8, 148u8, 73u8, 108u8, 136u8, 126u8, 89u8, 18u8, 124u8, 66u8, 30u8, - 102u8, 133u8, 164u8, 78u8, 214u8, 184u8, 163u8, 75u8, 164u8, 117u8, 233u8, - 209u8, 158u8, 99u8, 208u8, 21u8, 194u8, 152u8, 82u8, 16u8, 222u8, - ]) + ::subxt::storage::address::Address::new_static( + "Staking", + "ForceEra", + vec![], + [ + 177u8, 148u8, 73u8, 108u8, 136u8, 126u8, 89u8, 18u8, 124u8, 66u8, 30u8, + 102u8, 133u8, 164u8, 78u8, 214u8, 184u8, 163u8, 75u8, 164u8, 117u8, + 233u8, 209u8, 158u8, 99u8, 208u8, 21u8, 194u8, 152u8, 82u8, 16u8, + 222u8, + ], + ) } #[doc = " The percentage of the slash that is distributed to reporters."] @@ -9173,11 +9444,16 @@ pub mod api { pub fn max_nominations( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Staking", "MaxNominations", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Staking", + "MaxNominations", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " Number of eras to keep in history."] @@ -9201,33 +9477,48 @@ pub mod api { #[doc = " `StakingLedger` and will need to be handled properly in a migration."] #[doc = " The test `reducing_history_depth_abrupt` shows this effect."] pub fn history_depth(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Staking", "HistoryDepth", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Staking", + "HistoryDepth", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " Number of sessions per era."] pub fn sessions_per_era( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Staking", "SessionsPerEra", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Staking", + "SessionsPerEra", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " Number of eras that staked funds must remain bonded for."] pub fn bonding_duration( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Staking", "BondingDuration", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Staking", + "BondingDuration", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " Number of eras that slashes are deferred by, after computation."] @@ -9237,11 +9528,16 @@ pub mod api { pub fn slash_defer_duration( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Staking", "SlashDeferDuration", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Staking", + "SlashDeferDuration", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The maximum number of nominators rewarded for each validator."] @@ -9276,11 +9572,16 @@ pub mod api { pub fn max_unlocking_chunks( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Staking", "MaxUnlockingChunks", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Staking", + "MaxUnlockingChunks", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } @@ -11326,29 +11627,44 @@ pub mod api { pub fn enactment_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "EnactmentPeriod", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "EnactmentPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " How often (in blocks) new public referenda are launched."] pub fn launch_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "LaunchPeriod", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "LaunchPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " How often (in blocks) to check for new votes."] pub fn voting_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "VotingPeriod", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "VotingPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The minimum period of vote locking."] @@ -11358,22 +11674,31 @@ pub mod api { pub fn vote_locking_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "VoteLockingPeriod", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "VoteLockingPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The minimum amount to be used as a deposit for a public referendum proposal."] pub fn minimum_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Democracy", "MinimumDeposit", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "MinimumDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } #[doc = " Indicator for whether an emergency origin is even allowed to happen. Some chains may"] @@ -11382,33 +11707,47 @@ pub mod api { pub fn instant_allowed( &self, ) -> ::subxt::constants::Address<::core::primitive::bool> { - ::subxt::constants::Address::new_static("Democracy", "InstantAllowed", [ - 165u8, 28u8, 112u8, 190u8, 18u8, 129u8, 182u8, 206u8, 237u8, 1u8, 68u8, - 252u8, 125u8, 234u8, 185u8, 50u8, 149u8, 164u8, 47u8, 126u8, 134u8, 100u8, - 14u8, 86u8, 209u8, 39u8, 20u8, 4u8, 233u8, 115u8, 102u8, 131u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "InstantAllowed", + [ + 165u8, 28u8, 112u8, 190u8, 18u8, 129u8, 182u8, 206u8, 237u8, 1u8, 68u8, + 252u8, 125u8, 234u8, 185u8, 50u8, 149u8, 164u8, 47u8, 126u8, 134u8, + 100u8, 14u8, 86u8, 209u8, 39u8, 20u8, 4u8, 233u8, 115u8, 102u8, 131u8, + ], + ) } #[doc = " Minimum voting period allowed for a fast-track referendum."] pub fn fast_track_voting_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "FastTrackVotingPeriod", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "FastTrackVotingPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " Period in blocks where an external proposal may not be re-submitted after being vetoed."] pub fn cooloff_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "CooloffPeriod", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "CooloffPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The maximum number of votes for an account."] @@ -11416,40 +11755,60 @@ pub mod api { #[doc = " Also used to compute weight, an overly big value can"] #[doc = " lead to extrinsic with very big weight: see `delegate` for instance."] pub fn max_votes(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "MaxVotes", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "MaxVotes", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The maximum number of public proposals that can exist at any time."] pub fn max_proposals(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "MaxProposals", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "MaxProposals", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The maximum number of deposits a public proposal may have at any time."] pub fn max_deposits(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "MaxDeposits", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "MaxDeposits", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The maximum number of items which can be blacklisted."] pub fn max_blacklisted( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Democracy", "MaxBlacklisted", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Democracy", + "MaxBlacklisted", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } @@ -12067,11 +12426,16 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Council", "Members", vec![], [ - 16u8, 29u8, 32u8, 222u8, 175u8, 136u8, 111u8, 101u8, 43u8, 74u8, 209u8, - 81u8, 47u8, 97u8, 129u8, 39u8, 225u8, 243u8, 110u8, 229u8, 237u8, 21u8, - 90u8, 127u8, 80u8, 239u8, 156u8, 32u8, 90u8, 109u8, 179u8, 0u8, - ]) + ::subxt::storage::address::Address::new_static( + "Council", + "Members", + vec![], + [ + 16u8, 29u8, 32u8, 222u8, 175u8, 136u8, 111u8, 101u8, 43u8, 74u8, 209u8, + 81u8, 47u8, 97u8, 129u8, 39u8, 225u8, 243u8, 110u8, 229u8, 237u8, 21u8, + 90u8, 127u8, 80u8, 239u8, 156u8, 32u8, 90u8, 109u8, 179u8, 0u8, + ], + ) } #[doc = " The prime member that helps determine the default vote behavior in case of absentations."] @@ -12084,11 +12448,16 @@ pub mod api { (), (), > { - ::subxt::storage::address::Address::new_static("Council", "Prime", vec![], [ - 72u8, 128u8, 214u8, 72u8, 78u8, 80u8, 100u8, 198u8, 114u8, 215u8, 59u8, - 3u8, 103u8, 14u8, 152u8, 202u8, 12u8, 165u8, 224u8, 10u8, 41u8, 154u8, - 77u8, 95u8, 116u8, 143u8, 250u8, 250u8, 176u8, 92u8, 238u8, 154u8, - ]) + ::subxt::storage::address::Address::new_static( + "Council", + "Prime", + vec![], + [ + 72u8, 128u8, 214u8, 72u8, 78u8, 80u8, 100u8, 198u8, 114u8, 215u8, 59u8, + 3u8, 103u8, 14u8, 152u8, 202u8, 12u8, 165u8, 224u8, 10u8, 41u8, 154u8, + 77u8, 95u8, 116u8, 143u8, 250u8, 250u8, 176u8, 92u8, 238u8, 154u8, + ], + ) } } } @@ -12100,11 +12469,15 @@ pub mod api { pub fn max_proposal_weight( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("Council", "MaxProposalWeight", [ - 222u8, 183u8, 203u8, 169u8, 31u8, 134u8, 28u8, 12u8, 47u8, 140u8, 71u8, - 74u8, 61u8, 55u8, 71u8, 236u8, 215u8, 83u8, 28u8, 70u8, 45u8, 128u8, 184u8, - 57u8, 101u8, 83u8, 42u8, 165u8, 34u8, 155u8, 64u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Council", + "MaxProposalWeight", + [ + 222u8, 183u8, 203u8, 169u8, 31u8, 134u8, 28u8, 12u8, 47u8, 140u8, 71u8, + 74u8, 61u8, 55u8, 71u8, 236u8, 215u8, 83u8, 28u8, 70u8, 45u8, 128u8, + 184u8, 57u8, 101u8, 83u8, 42u8, 165u8, 34u8, 155u8, 64u8, 145u8, + ], + ) } } } @@ -13378,22 +13751,30 @@ pub mod api { pub fn pallet_id( &self, ) -> ::subxt::constants::Address<[::core::primitive::u8; 8usize]> { - ::subxt::constants::Address::new_static("Elections", "PalletId", [ - 157u8, 118u8, 79u8, 88u8, 241u8, 22u8, 185u8, 37u8, 42u8, 20u8, 133u8, - 240u8, 11u8, 25u8, 66u8, 154u8, 84u8, 163u8, 78u8, 92u8, 171u8, 82u8, - 248u8, 76u8, 189u8, 70u8, 142u8, 249u8, 153u8, 84u8, 180u8, 60u8, - ]) + ::subxt::constants::Address::new_static( + "Elections", + "PalletId", + [ + 157u8, 118u8, 79u8, 88u8, 241u8, 22u8, 185u8, 37u8, 42u8, 20u8, 133u8, + 240u8, 11u8, 25u8, 66u8, 154u8, 84u8, 163u8, 78u8, 92u8, 171u8, 82u8, + 248u8, 76u8, 189u8, 70u8, 142u8, 249u8, 153u8, 84u8, 180u8, 60u8, + ], + ) } #[doc = " How much should be locked up in order to submit one's candidacy."] pub fn candidacy_bond( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Elections", "CandidacyBond", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Elections", + "CandidacyBond", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } #[doc = " Base deposit associated with voting."] @@ -13403,55 +13784,78 @@ pub mod api { pub fn voting_bond_base( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Elections", "VotingBondBase", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Elections", + "VotingBondBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } #[doc = " The amount of bond that need to be locked for each vote (32 bytes)."] pub fn voting_bond_factor( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Elections", "VotingBondFactor", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Elections", + "VotingBondFactor", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } #[doc = " Number of members to elect."] pub fn desired_members( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Elections", "DesiredMembers", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Elections", + "DesiredMembers", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " Number of runners_up to keep."] pub fn desired_runners_up( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Elections", "DesiredRunnersUp", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Elections", + "DesiredRunnersUp", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " How long each seat is kept. This defines the next block number at which an election"] #[doc = " round will happen. If set to zero, no elections are ever triggered and the module will"] #[doc = " be in passive mode."] pub fn term_duration(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Elections", "TermDuration", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Elections", + "TermDuration", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The maximum number of candidates in a phragmen election."] @@ -13463,11 +13867,16 @@ pub mod api { pub fn max_candidates( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Elections", "MaxCandidates", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Elections", + "MaxCandidates", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The maximum number of voters to allow in a phragmen election."] @@ -13477,11 +13886,16 @@ pub mod api { #[doc = ""] #[doc = " When the limit is reached the new voters are ignored."] pub fn max_voters(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Elections", "MaxVoters", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Elections", + "MaxVoters", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " Maximum numbers of votes per voter."] @@ -13491,11 +13905,16 @@ pub mod api { pub fn max_votes_per_voter( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Elections", "MaxVotesPerVoter", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Elections", + "MaxVotesPerVoter", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } @@ -14223,11 +14642,16 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Grandpa", "State", vec![], [ - 254u8, 81u8, 54u8, 203u8, 26u8, 74u8, 162u8, 215u8, 165u8, 247u8, 143u8, - 139u8, 242u8, 164u8, 67u8, 27u8, 97u8, 172u8, 66u8, 98u8, 28u8, 151u8, - 32u8, 38u8, 209u8, 82u8, 41u8, 209u8, 72u8, 3u8, 167u8, 42u8, - ]) + ::subxt::storage::address::Address::new_static( + "Grandpa", + "State", + vec![], + [ + 254u8, 81u8, 54u8, 203u8, 26u8, 74u8, 162u8, 215u8, 165u8, 247u8, + 143u8, 139u8, 242u8, 164u8, 67u8, 27u8, 97u8, 172u8, 66u8, 98u8, 28u8, + 151u8, 32u8, 38u8, 209u8, 82u8, 41u8, 209u8, 72u8, 3u8, 167u8, 42u8, + ], + ) } #[doc = " Pending change: (signaled at, scheduled change)."] @@ -14284,11 +14708,16 @@ pub mod api { (), (), > { - ::subxt::storage::address::Address::new_static("Grandpa", "Stalled", vec![], [ - 146u8, 18u8, 59u8, 59u8, 21u8, 246u8, 5u8, 167u8, 221u8, 8u8, 230u8, 74u8, - 81u8, 217u8, 67u8, 158u8, 136u8, 36u8, 23u8, 106u8, 136u8, 89u8, 110u8, - 217u8, 31u8, 138u8, 107u8, 251u8, 164u8, 10u8, 119u8, 18u8, - ]) + ::subxt::storage::address::Address::new_static( + "Grandpa", + "Stalled", + vec![], + [ + 146u8, 18u8, 59u8, 59u8, 21u8, 246u8, 5u8, 167u8, 221u8, 8u8, 230u8, + 74u8, 81u8, 217u8, 67u8, 158u8, 136u8, 36u8, 23u8, 106u8, 136u8, 89u8, + 110u8, 217u8, 31u8, 138u8, 107u8, 251u8, 164u8, 10u8, 119u8, 18u8, + ], + ) } #[doc = " The number of changes (both in terms of keys and underlying economic responsibilities)"] @@ -14389,11 +14818,16 @@ pub mod api { pub fn max_authorities( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Grandpa", "MaxAuthorities", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Grandpa", + "MaxAuthorities", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The maximum number of entries to keep in the set id to session index mapping."] @@ -14405,11 +14839,16 @@ pub mod api { pub fn max_set_id_session_entries( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static("Grandpa", "MaxSetIdSessionEntries", [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, 59u8, - 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, 119u8, - 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, - ]) + ::subxt::constants::Address::new_static( + "Grandpa", + "MaxSetIdSessionEntries", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) } } } @@ -14982,42 +15421,60 @@ pub mod api { &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("Treasury", "ProposalBond", [ - 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, 114u8, - 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, 200u8, - 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, - ]) + ::subxt::constants::Address::new_static( + "Treasury", + "ProposalBond", + [ + 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, + 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, + 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, + ], + ) } #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] pub fn proposal_bond_minimum( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Treasury", "ProposalBondMinimum", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Treasury", + "ProposalBondMinimum", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } #[doc = " Maximum amount of funds that should be placed in a deposit for making a proposal."] pub fn proposal_bond_maximum( &self, ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> { - ::subxt::constants::Address::new_static("Treasury", "ProposalBondMaximum", [ - 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, - 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, 215u8, - 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, 147u8, - ]) + ::subxt::constants::Address::new_static( + "Treasury", + "ProposalBondMaximum", + [ + 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, + 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, + 215u8, 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, + 147u8, + ], + ) } #[doc = " Period between successive spends."] pub fn spend_period(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Treasury", "SpendPeriod", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Treasury", + "SpendPeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " Percentage of spare funds (if any) that are burnt per spend period."] @@ -15025,33 +15482,46 @@ pub mod api { &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("Treasury", "Burn", [ - 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, 114u8, - 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, 200u8, - 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, - ]) + ::subxt::constants::Address::new_static( + "Treasury", + "Burn", + [ + 65u8, 93u8, 120u8, 165u8, 204u8, 81u8, 159u8, 163u8, 93u8, 135u8, + 114u8, 121u8, 147u8, 35u8, 215u8, 213u8, 4u8, 223u8, 83u8, 37u8, 225u8, + 200u8, 189u8, 156u8, 140u8, 36u8, 58u8, 46u8, 42u8, 232u8, 155u8, 0u8, + ], + ) } #[doc = " The treasury's pallet id, used for deriving its sovereign account ID."] pub fn pallet_id( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("Treasury", "PalletId", [ - 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, - 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, - 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, - ]) + ::subxt::constants::Address::new_static( + "Treasury", + "PalletId", + [ + 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, + 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, + 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, + ], + ) } #[doc = " The maximum number of approvals that can wait in the spending queue."] #[doc = ""] #[doc = " NOTE: This parameter is also used within the Bounties Pallet extension if enabled."] pub fn max_approvals(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Treasury", "MaxApprovals", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Treasury", + "MaxApprovals", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } @@ -15207,11 +15677,17 @@ pub mod api { ::core::primitive::u32, >, ) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static("Sudo", "set_key", types::SetKey { new }, [ - 46u8, 208u8, 84u8, 223u8, 141u8, 188u8, 184u8, 156u8, 101u8, 97u8, 255u8, - 166u8, 168u8, 102u8, 75u8, 3u8, 149u8, 105u8, 202u8, 220u8, 187u8, 117u8, - 156u8, 83u8, 159u8, 115u8, 231u8, 201u8, 171u8, 47u8, 170u8, 36u8, - ]) + ::subxt::tx::Payload::new_static( + "Sudo", + "set_key", + types::SetKey { new }, + [ + 46u8, 208u8, 84u8, 223u8, 141u8, 188u8, 184u8, 156u8, 101u8, 97u8, + 255u8, 166u8, 168u8, 102u8, 75u8, 3u8, 149u8, 105u8, 202u8, 220u8, + 187u8, 117u8, 156u8, 83u8, 159u8, 115u8, 231u8, 201u8, 171u8, 47u8, + 170u8, 36u8, + ], + ) } #[doc = "See [`Pallet::sudo_as`]."] @@ -15324,11 +15800,16 @@ pub mod api { (), (), > { - ::subxt::storage::address::Address::new_static("Sudo", "Key", vec![], [ - 72u8, 14u8, 225u8, 162u8, 205u8, 247u8, 227u8, 105u8, 116u8, 57u8, 4u8, - 31u8, 84u8, 137u8, 227u8, 228u8, 133u8, 245u8, 206u8, 227u8, 117u8, 36u8, - 252u8, 151u8, 107u8, 15u8, 180u8, 4u8, 4u8, 152u8, 195u8, 144u8, - ]) + ::subxt::storage::address::Address::new_static( + "Sudo", + "Key", + vec![], + [ + 72u8, 14u8, 225u8, 162u8, 205u8, 247u8, 227u8, 105u8, 116u8, 57u8, 4u8, + 31u8, 84u8, 137u8, 227u8, 228u8, 133u8, 245u8, 206u8, 227u8, 117u8, + 36u8, 252u8, 151u8, 107u8, 15u8, 180u8, 4u8, 4u8, 152u8, 195u8, 144u8, + ], + ) } } } @@ -15512,11 +15993,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("ImOnline", "Keys", vec![], [ - 111u8, 104u8, 188u8, 46u8, 152u8, 140u8, 137u8, 244u8, 52u8, 214u8, 115u8, - 156u8, 39u8, 239u8, 15u8, 168u8, 193u8, 125u8, 57u8, 195u8, 250u8, 156u8, - 234u8, 222u8, 222u8, 253u8, 135u8, 232u8, 196u8, 163u8, 29u8, 218u8, - ]) + ::subxt::storage::address::Address::new_static( + "ImOnline", + "Keys", + vec![], + [ + 111u8, 104u8, 188u8, 46u8, 152u8, 140u8, 137u8, 244u8, 52u8, 214u8, + 115u8, 156u8, 39u8, 239u8, 15u8, 168u8, 193u8, 125u8, 57u8, 195u8, + 250u8, 156u8, 234u8, 222u8, 222u8, 253u8, 135u8, 232u8, 196u8, 163u8, + 29u8, 218u8, + ], + ) } #[doc = " For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`."] @@ -15633,11 +16120,16 @@ pub mod api { pub fn unsigned_priority( &self, ) -> ::subxt::constants::Address<::core::primitive::u64> { - ::subxt::constants::Address::new_static("ImOnline", "UnsignedPriority", [ - 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, 59u8, - 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, 103u8, 119u8, - 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, 246u8, - ]) + ::subxt::constants::Address::new_static( + "ImOnline", + "UnsignedPriority", + [ + 128u8, 214u8, 205u8, 242u8, 181u8, 142u8, 124u8, 231u8, 190u8, 146u8, + 59u8, 226u8, 157u8, 101u8, 103u8, 117u8, 249u8, 65u8, 18u8, 191u8, + 103u8, 119u8, 53u8, 85u8, 81u8, 96u8, 220u8, 42u8, 184u8, 239u8, 42u8, + 246u8, + ], + ) } } } @@ -16542,11 +17034,15 @@ pub mod api { pub fn maximum_weight( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("Scheduler", "MaximumWeight", [ - 222u8, 183u8, 203u8, 169u8, 31u8, 134u8, 28u8, 12u8, 47u8, 140u8, 71u8, - 74u8, 61u8, 55u8, 71u8, 236u8, 215u8, 83u8, 28u8, 70u8, 45u8, 128u8, 184u8, - 57u8, 101u8, 83u8, 42u8, 165u8, 34u8, 155u8, 64u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Scheduler", + "MaximumWeight", + [ + 222u8, 183u8, 203u8, 169u8, 31u8, 134u8, 28u8, 12u8, 47u8, 140u8, 71u8, + 74u8, 61u8, 55u8, 71u8, 236u8, 215u8, 83u8, 28u8, 70u8, 45u8, 128u8, + 184u8, 57u8, 101u8, 83u8, 42u8, 165u8, 34u8, 155u8, 64u8, 145u8, + ], + ) } #[doc = " The maximum number of scheduled calls in the queue for a single block."] @@ -16557,11 +17053,16 @@ pub mod api { pub fn max_scheduled_per_block( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Scheduler", "MaxScheduledPerBlock", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Scheduler", + "MaxScheduledPerBlock", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } @@ -17288,11 +17789,15 @@ pub mod api { pub fn bounty_deposit_base( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Bounties", "BountyDepositBase", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Bounties", + "BountyDepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } #[doc = " The delay period for which a bounty beneficiary need to wait before claim the payout."] @@ -17315,11 +17820,16 @@ pub mod api { pub fn bounty_update_period( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Bounties", "BountyUpdatePeriod", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Bounties", + "BountyUpdatePeriod", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The curator deposit is calculated as a percentage of the curator fee."] @@ -17345,44 +17855,62 @@ pub mod api { pub fn curator_deposit_max( &self, ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> { - ::subxt::constants::Address::new_static("Bounties", "CuratorDepositMax", [ - 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, - 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, 215u8, - 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, 147u8, - ]) + ::subxt::constants::Address::new_static( + "Bounties", + "CuratorDepositMax", + [ + 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, + 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, + 215u8, 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, + 147u8, + ], + ) } #[doc = " Minimum amount of funds that should be placed in a deposit for making a proposal."] pub fn curator_deposit_min( &self, ) -> ::subxt::constants::Address<::core::option::Option<::core::primitive::u128>> { - ::subxt::constants::Address::new_static("Bounties", "CuratorDepositMin", [ - 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, - 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, 215u8, - 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, 147u8, - ]) + ::subxt::constants::Address::new_static( + "Bounties", + "CuratorDepositMin", + [ + 198u8, 51u8, 89u8, 159u8, 124u8, 251u8, 51u8, 80u8, 167u8, 193u8, 44u8, + 199u8, 80u8, 36u8, 41u8, 130u8, 137u8, 229u8, 178u8, 208u8, 37u8, + 215u8, 169u8, 183u8, 180u8, 191u8, 140u8, 240u8, 250u8, 61u8, 42u8, + 147u8, + ], + ) } #[doc = " Minimum value for a bounty."] pub fn bounty_value_minimum( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Bounties", "BountyValueMinimum", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Bounties", + "BountyValueMinimum", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } #[doc = " The amount held on deposit per byte within the tip report reason or bounty description."] pub fn data_deposit_per_byte( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Bounties", "DataDepositPerByte", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Bounties", + "DataDepositPerByte", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } #[doc = " Maximum acceptable reason length."] @@ -17391,11 +17919,16 @@ pub mod api { pub fn maximum_reason_length( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Bounties", "MaximumReasonLength", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Bounties", + "MaximumReasonLength", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } @@ -17836,11 +18369,16 @@ pub mod api { (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::Address::new_static("Tips", "Tips", Vec::new(), [ - 173u8, 172u8, 116u8, 247u8, 202u8, 228u8, 47u8, 222u8, 67u8, 146u8, 225u8, - 0u8, 74u8, 189u8, 226u8, 206u8, 245u8, 209u8, 26u8, 49u8, 189u8, 73u8, - 20u8, 117u8, 30u8, 41u8, 129u8, 170u8, 5u8, 226u8, 92u8, 140u8, - ]) + ::subxt::storage::address::Address::new_static( + "Tips", + "Tips", + Vec::new(), + [ + 173u8, 172u8, 116u8, 247u8, 202u8, 228u8, 47u8, 222u8, 67u8, 146u8, + 225u8, 0u8, 74u8, 189u8, 226u8, 206u8, 245u8, 209u8, 26u8, 49u8, 189u8, + 73u8, 20u8, 117u8, 30u8, 41u8, 129u8, 170u8, 5u8, 226u8, 92u8, 140u8, + ], + ) } #[doc = " Simple preimage lookup from the reason's hash to the original data. Again, has an"] @@ -17881,11 +18419,17 @@ pub mod api { (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::Address::new_static("Tips", "Reasons", Vec::new(), [ - 212u8, 224u8, 153u8, 133u8, 234u8, 213u8, 134u8, 255u8, 59u8, 61u8, 200u8, - 47u8, 186u8, 177u8, 35u8, 108u8, 85u8, 144u8, 185u8, 69u8, 159u8, 38u8, - 83u8, 166u8, 200u8, 20u8, 220u8, 234u8, 59u8, 61u8, 223u8, 167u8, - ]) + ::subxt::storage::address::Address::new_static( + "Tips", + "Reasons", + Vec::new(), + [ + 212u8, 224u8, 153u8, 133u8, 234u8, 213u8, 134u8, 255u8, 59u8, 61u8, + 200u8, 47u8, 186u8, 177u8, 35u8, 108u8, 85u8, 144u8, 185u8, 69u8, + 159u8, 38u8, 83u8, 166u8, 200u8, 20u8, 220u8, 234u8, 59u8, 61u8, 223u8, + 167u8, + ], + ) } } } @@ -17899,31 +18443,45 @@ pub mod api { pub fn maximum_reason_length( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Tips", "MaximumReasonLength", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Tips", + "MaximumReasonLength", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The amount held on deposit per byte within the tip report reason or bounty description."] pub fn data_deposit_per_byte( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Tips", "DataDepositPerByte", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Tips", + "DataDepositPerByte", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } #[doc = " The period for which a tip remains open after is has achieved threshold tippers."] pub fn tip_countdown(&self) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Tips", "TipCountdown", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Tips", + "TipCountdown", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " The percent of the final tip which goes to the original reporter of the tip."] @@ -17931,22 +18489,31 @@ pub mod api { &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("Tips", "TipFindersFee", [ - 40u8, 171u8, 69u8, 196u8, 34u8, 184u8, 50u8, 128u8, 139u8, 192u8, 63u8, - 231u8, 249u8, 200u8, 252u8, 73u8, 244u8, 170u8, 51u8, 177u8, 106u8, 47u8, - 114u8, 234u8, 84u8, 104u8, 62u8, 118u8, 227u8, 50u8, 225u8, 122u8, - ]) + ::subxt::constants::Address::new_static( + "Tips", + "TipFindersFee", + [ + 40u8, 171u8, 69u8, 196u8, 34u8, 184u8, 50u8, 128u8, 139u8, 192u8, 63u8, + 231u8, 249u8, 200u8, 252u8, 73u8, 244u8, 170u8, 51u8, 177u8, 106u8, + 47u8, 114u8, 234u8, 84u8, 104u8, 62u8, 118u8, 227u8, 50u8, 225u8, + 122u8, + ], + ) } #[doc = " The amount held on deposit for placing a tip report."] pub fn tip_report_deposit_base( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Tips", "TipReportDepositBase", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Tips", + "TipReportDepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } } } @@ -17967,11 +18534,16 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("Mmr", "RootHash", vec![], [ - 111u8, 206u8, 173u8, 92u8, 67u8, 49u8, 150u8, 113u8, 90u8, 245u8, 38u8, - 254u8, 76u8, 250u8, 167u8, 66u8, 130u8, 129u8, 251u8, 220u8, 172u8, 229u8, - 162u8, 251u8, 36u8, 227u8, 43u8, 189u8, 7u8, 106u8, 23u8, 13u8, - ]) + ::subxt::storage::address::Address::new_static( + "Mmr", + "RootHash", + vec![], + [ + 111u8, 206u8, 173u8, 92u8, 67u8, 49u8, 150u8, 113u8, 90u8, 245u8, 38u8, + 254u8, 76u8, 250u8, 167u8, 66u8, 130u8, 129u8, 251u8, 220u8, 172u8, + 229u8, 162u8, 251u8, 36u8, 227u8, 43u8, 189u8, 7u8, 106u8, 23u8, 13u8, + ], + ) } #[doc = " Current size of the MMR (number of leaves)."] @@ -18037,11 +18609,16 @@ pub mod api { (), ::subxt::storage::address::Yes, > { - ::subxt::storage::address::Address::new_static("Mmr", "Nodes", Vec::new(), [ - 27u8, 84u8, 41u8, 195u8, 146u8, 81u8, 211u8, 189u8, 63u8, 125u8, 173u8, - 206u8, 69u8, 198u8, 202u8, 213u8, 89u8, 31u8, 89u8, 177u8, 76u8, 154u8, - 249u8, 197u8, 133u8, 78u8, 142u8, 71u8, 183u8, 3u8, 132u8, 25u8, - ]) + ::subxt::storage::address::Address::new_static( + "Mmr", + "Nodes", + Vec::new(), + [ + 27u8, 84u8, 41u8, 195u8, 146u8, 81u8, 211u8, 189u8, 63u8, 125u8, 173u8, + 206u8, 69u8, 198u8, 202u8, 213u8, 89u8, 31u8, 89u8, 177u8, 76u8, 154u8, + 249u8, 197u8, 133u8, 78u8, 142u8, 71u8, 183u8, 3u8, 132u8, 25u8, + ], + ) } } } @@ -18378,44 +18955,60 @@ pub mod api { pub fn min_block_rows( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("DataAvailability", "MinBlockRows", [ - 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, - 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, - 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, - ]) + ::subxt::constants::Address::new_static( + "DataAvailability", + "MinBlockRows", + [ + 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, + 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, + 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, + ], + ) } #[doc = " Maximum number of rows in a block."] pub fn max_block_rows( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("DataAvailability", "MaxBlockRows", [ - 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, - 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, - 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, - ]) + ::subxt::constants::Address::new_static( + "DataAvailability", + "MaxBlockRows", + [ + 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, + 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, + 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, + ], + ) } #[doc = " Minimum number of cols in a block."] pub fn min_block_cols( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("DataAvailability", "MinBlockCols", [ - 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, - 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, - 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, - ]) + ::subxt::constants::Address::new_static( + "DataAvailability", + "MinBlockCols", + [ + 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, + 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, + 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, + ], + ) } #[doc = " Maximum number of cols in a block."] pub fn max_block_cols( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("DataAvailability", "MaxBlockCols", [ - 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, - 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, - 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, - ]) + ::subxt::constants::Address::new_static( + "DataAvailability", + "MaxBlockCols", + [ + 65u8, 68u8, 180u8, 146u8, 16u8, 133u8, 230u8, 51u8, 17u8, 170u8, 88u8, + 49u8, 171u8, 96u8, 82u8, 152u8, 101u8, 63u8, 46u8, 141u8, 161u8, 104u8, + 204u8, 24u8, 1u8, 20u8, 116u8, 46u8, 232u8, 62u8, 223u8, 15u8, + ], + ) } } } @@ -18800,11 +19393,16 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("NomadHome", "Base", vec![], [ - 254u8, 56u8, 220u8, 109u8, 51u8, 237u8, 70u8, 31u8, 134u8, 49u8, 145u8, - 104u8, 204u8, 243u8, 216u8, 242u8, 57u8, 113u8, 132u8, 190u8, 170u8, 80u8, - 232u8, 190u8, 37u8, 91u8, 20u8, 188u8, 41u8, 41u8, 187u8, 107u8, - ]) + ::subxt::storage::address::Address::new_static( + "NomadHome", + "Base", + vec![], + [ + 254u8, 56u8, 220u8, 109u8, 51u8, 237u8, 70u8, 31u8, 134u8, 49u8, 145u8, + 104u8, 204u8, 243u8, 216u8, 242u8, 57u8, 113u8, 132u8, 190u8, 170u8, + 80u8, 232u8, 190u8, 37u8, 91u8, 20u8, 188u8, 41u8, 41u8, 187u8, 107u8, + ], + ) } pub fn tree( @@ -18816,11 +19414,17 @@ pub mod api { ::subxt::storage::address::Yes, (), > { - ::subxt::storage::address::Address::new_static("NomadHome", "Tree", vec![], [ - 22u8, 211u8, 114u8, 109u8, 20u8, 79u8, 40u8, 238u8, 244u8, 223u8, 95u8, - 97u8, 85u8, 113u8, 201u8, 242u8, 23u8, 140u8, 106u8, 222u8, 130u8, 29u8, - 218u8, 108u8, 210u8, 13u8, 115u8, 231u8, 22u8, 137u8, 227u8, 175u8, - ]) + ::subxt::storage::address::Address::new_static( + "NomadHome", + "Tree", + vec![], + [ + 22u8, 211u8, 114u8, 109u8, 20u8, 79u8, 40u8, 238u8, 244u8, 223u8, 95u8, + 97u8, 85u8, 113u8, 201u8, 242u8, 23u8, 140u8, 106u8, 222u8, 130u8, + 29u8, 218u8, 108u8, 210u8, 13u8, 115u8, 231u8, 22u8, 137u8, 227u8, + 175u8, + ], + ) } pub fn nonces( @@ -18967,11 +19571,16 @@ pub mod api { pub fn max_message_body_bytes( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("NomadHome", "MaxMessageBodyBytes", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "NomadHome", + "MaxMessageBodyBytes", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } @@ -19080,11 +19689,16 @@ pub mod api { pub fn da_bridge_pallet_id( &self, ) -> ::subxt::constants::Address<::subxt::utils::H256> { - ::subxt::constants::Address::new_static("NomadDABridge", "DABridgePalletId", [ - 115u8, 233u8, 13u8, 223u8, 88u8, 20u8, 202u8, 139u8, 153u8, 28u8, 155u8, - 157u8, 224u8, 66u8, 3u8, 250u8, 23u8, 53u8, 88u8, 168u8, 211u8, 204u8, - 122u8, 166u8, 248u8, 23u8, 174u8, 225u8, 99u8, 108u8, 89u8, 135u8, - ]) + ::subxt::constants::Address::new_static( + "NomadDABridge", + "DABridgePalletId", + [ + 115u8, 233u8, 13u8, 223u8, 88u8, 20u8, 202u8, 139u8, 153u8, 28u8, + 155u8, 157u8, 224u8, 66u8, 3u8, 250u8, 23u8, 53u8, 88u8, 168u8, 211u8, + 204u8, 122u8, 166u8, 248u8, 23u8, 174u8, 225u8, 99u8, 108u8, 89u8, + 135u8, + ], + ) } } } @@ -19827,11 +20441,15 @@ pub mod api { #[doc = " `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is"] #[doc = " `32 + sizeof(AccountId)` bytes."] pub fn deposit_base(&self) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Multisig", "DepositBase", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Multisig", + "DepositBase", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } #[doc = " The amount of currency needed per unit threshold when creating a multisig execution."] @@ -19840,22 +20458,31 @@ pub mod api { pub fn deposit_factor( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Multisig", "DepositFactor", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Multisig", + "DepositFactor", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } #[doc = " The maximum amount of signatories allowed in the multisig."] pub fn max_signatories( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Multisig", "MaxSignatories", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Multisig", + "MaxSignatories", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } @@ -20194,11 +20821,15 @@ pub mod api { pub fn bag_thresholds( &self, ) -> ::subxt::constants::Address<::std::vec::Vec<::core::primitive::u64>> { - ::subxt::constants::Address::new_static("VoterList", "BagThresholds", [ - 215u8, 118u8, 183u8, 172u8, 4u8, 42u8, 248u8, 108u8, 4u8, 110u8, 43u8, - 165u8, 228u8, 7u8, 36u8, 30u8, 135u8, 184u8, 56u8, 201u8, 107u8, 68u8, - 25u8, 164u8, 134u8, 32u8, 82u8, 107u8, 200u8, 219u8, 212u8, 198u8, - ]) + ::subxt::constants::Address::new_static( + "VoterList", + "BagThresholds", + [ + 215u8, 118u8, 183u8, 172u8, 4u8, 42u8, 248u8, 108u8, 4u8, 110u8, 43u8, + 165u8, 228u8, 7u8, 36u8, 30u8, 135u8, 184u8, 56u8, 201u8, 107u8, 68u8, + 25u8, 164u8, 134u8, 32u8, 82u8, 107u8, 200u8, 219u8, 212u8, 198u8, + ], + ) } } } @@ -22238,11 +22869,15 @@ pub mod api { pub fn pallet_id( &self, ) -> ::subxt::constants::Address { - ::subxt::constants::Address::new_static("NominationPools", "PalletId", [ - 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, - 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, - 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, - ]) + ::subxt::constants::Address::new_static( + "NominationPools", + "PalletId", + [ + 56u8, 243u8, 53u8, 83u8, 154u8, 179u8, 170u8, 80u8, 133u8, 173u8, 61u8, + 161u8, 47u8, 225u8, 146u8, 21u8, 50u8, 229u8, 248u8, 27u8, 104u8, 58u8, + 129u8, 197u8, 102u8, 160u8, 168u8, 205u8, 154u8, 42u8, 217u8, 53u8, + ], + ) } #[doc = " The maximum pool points-to-balance ratio that an `open` pool can have."] @@ -22916,11 +23551,17 @@ pub mod api { #[doc = "See [`Pallet::quit_sub`]."] pub fn quit_sub(&self) -> ::subxt::tx::Payload { - ::subxt::tx::Payload::new_static("Identity", "quit_sub", types::QuitSub {}, [ - 147u8, 131u8, 175u8, 171u8, 187u8, 201u8, 240u8, 26u8, 146u8, 224u8, 74u8, - 166u8, 242u8, 193u8, 204u8, 247u8, 168u8, 93u8, 18u8, 32u8, 27u8, 208u8, - 149u8, 146u8, 179u8, 172u8, 75u8, 112u8, 84u8, 141u8, 233u8, 223u8, - ]) + ::subxt::tx::Payload::new_static( + "Identity", + "quit_sub", + types::QuitSub {}, + [ + 147u8, 131u8, 175u8, 171u8, 187u8, 201u8, 240u8, 26u8, 146u8, 224u8, + 74u8, 166u8, 242u8, 193u8, 204u8, 247u8, 168u8, 93u8, 18u8, 32u8, 27u8, + 208u8, 149u8, 146u8, 179u8, 172u8, 75u8, 112u8, 84u8, 141u8, 233u8, + 223u8, + ], + ) } } } @@ -23371,22 +24012,30 @@ pub mod api { pub fn basic_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Identity", "BasicDeposit", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Identity", + "BasicDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } #[doc = " The amount held on deposit per additional field for a registered identity."] pub fn field_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Identity", "FieldDeposit", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Identity", + "FieldDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } #[doc = " The amount held on deposit for a registered subaccount. This should account for the fact"] @@ -23395,22 +24044,31 @@ pub mod api { pub fn sub_account_deposit( &self, ) -> ::subxt::constants::Address<::core::primitive::u128> { - ::subxt::constants::Address::new_static("Identity", "SubAccountDeposit", [ - 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, - 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, 136u8, - 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, - ]) + ::subxt::constants::Address::new_static( + "Identity", + "SubAccountDeposit", + [ + 84u8, 157u8, 140u8, 4u8, 93u8, 57u8, 29u8, 133u8, 105u8, 200u8, 214u8, + 27u8, 144u8, 208u8, 218u8, 160u8, 130u8, 109u8, 101u8, 54u8, 210u8, + 136u8, 71u8, 63u8, 49u8, 237u8, 234u8, 15u8, 178u8, 98u8, 148u8, 156u8, + ], + ) } #[doc = " The maximum number of sub-accounts allowed per identified account."] pub fn max_sub_accounts( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Identity", "MaxSubAccounts", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Identity", + "MaxSubAccounts", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O"] @@ -23418,11 +24076,16 @@ pub mod api { pub fn max_additional_fields( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Identity", "MaxAdditionalFields", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Identity", + "MaxAdditionalFields", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } #[doc = " Maxmimum number of registrars allowed in the system. Needed to bound the complexity"] @@ -23430,11 +24093,16 @@ pub mod api { pub fn max_registrars( &self, ) -> ::subxt::constants::Address<::core::primitive::u32> { - ::subxt::constants::Address::new_static("Identity", "MaxRegistrars", [ - 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, 125u8, - 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, 178u8, 197u8, - 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, 145u8, - ]) + ::subxt::constants::Address::new_static( + "Identity", + "MaxRegistrars", + [ + 98u8, 252u8, 116u8, 72u8, 26u8, 180u8, 225u8, 83u8, 200u8, 157u8, + 125u8, 151u8, 53u8, 76u8, 168u8, 26u8, 10u8, 9u8, 98u8, 68u8, 9u8, + 178u8, 197u8, 113u8, 31u8, 79u8, 200u8, 90u8, 203u8, 100u8, 41u8, + 145u8, + ], + ) } } } diff --git a/avail-subxt/src/primitives/header.rs b/avail-subxt/src/primitives/header.rs index 72da1d9ae..8c809aad5 100644 --- a/avail-subxt/src/primitives/header.rs +++ b/avail-subxt/src/primitives/header.rs @@ -41,9 +41,13 @@ impl SPHeader for Header { type Hasher = BlakeTwo256; type Number = u32; - fn number(&self) -> Self::Number { self.number } + fn number(&self) -> Self::Number { + self.number + } - fn hash(&self) -> ::Output { Self::Hasher::hash_of(self) } + fn hash(&self) -> ::Output { + Self::Hasher::hash_of(self) + } } fn number_from_hex<'de, D>(deserializer: D) -> Result diff --git a/node/src/benchmarking.rs b/node/src/benchmarking.rs index edafca68d..54cb3487f 100644 --- a/node/src/benchmarking.rs +++ b/node/src/benchmarking.rs @@ -43,13 +43,19 @@ pub struct RemarkBuilder { impl RemarkBuilder { /// Creates a new [`Self`] from the given client. #[allow(dead_code)] - pub fn new(client: Arc) -> Self { Self { client } } + pub fn new(client: Arc) -> Self { + Self { client } + } } impl frame_benchmarking_cli::ExtrinsicBuilder for RemarkBuilder { - fn pallet(&self) -> &str { "system" } + fn pallet(&self) -> &str { + "system" + } - fn extrinsic(&self) -> &str { "remark" } + fn extrinsic(&self) -> &str { + "remark" + } fn build(&self, nonce: u32) -> std::result::Result { let acc = Sr25519Keyring::Bob.pair(); @@ -87,9 +93,13 @@ impl TransferKeepAliveBuilder { } impl frame_benchmarking_cli::ExtrinsicBuilder for TransferKeepAliveBuilder { - fn pallet(&self) -> &str { "balances" } + fn pallet(&self) -> &str { + "balances" + } - fn extrinsic(&self) -> &str { "transfer_keep_alive" } + fn extrinsic(&self) -> &str { + "transfer_keep_alive" + } fn build(&self, nonce: u32) -> std::result::Result { let acc = Sr25519Keyring::Bob.pair(); diff --git a/node/src/chain_spec.rs b/node/src/chain_spec.rs index 791863d5b..7ea762c62 100644 --- a/node/src/chain_spec.rs +++ b/node/src/chain_spec.rs @@ -251,7 +251,9 @@ pub(crate) mod tests { */ #[test] - fn test_create_development_chain_spec() { locals::solo::chain_spec().build_storage().unwrap(); } + fn test_create_development_chain_spec() { + locals::solo::chain_spec().build_storage().unwrap(); + } #[test] fn test_create_development_tri_chain_spec() { diff --git a/node/src/chain_spec/config.rs b/node/src/chain_spec/config.rs index bf5c3667c..9f743e579 100644 --- a/node/src/chain_spec/config.rs +++ b/node/src/chain_spec/config.rs @@ -100,7 +100,9 @@ pub(crate) fn make_technical_committee_config(members: Vec) -> Techni } /// Uses `key` as `sudo` key. -pub(crate) fn make_sudo_config(key: AccountId) -> SudoConfig { SudoConfig { key: Some(key) } } +pub(crate) fn make_sudo_config(key: AccountId) -> SudoConfig { + SudoConfig { key: Some(key) } +} const INIT_APP_IDS: [&str; 3] = ["Data Avail", "Ethereum", "Polygon"]; diff --git a/node/src/chain_spec/locals.rs b/node/src/chain_spec/locals.rs index a9bcd2a63..6f83f75cd 100644 --- a/node/src/chain_spec/locals.rs +++ b/node/src/chain_spec/locals.rs @@ -24,7 +24,9 @@ fn dev_endowed_accounts() -> HashMap { } /// `Alice` is the sudo key in `dev`. -fn dev_sudo() -> AccountId { get_account_id_from_seed::("Alice") } +fn dev_sudo() -> AccountId { + get_account_id_from_seed::("Alice") +} fn make_genesis( sudo: AccountId, diff --git a/node/src/command.rs b/node/src/command.rs index f8c37a86f..c938e1ba0 100644 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -35,17 +35,29 @@ use crate::{ }; impl SubstrateCli for Cli { - fn impl_name() -> String { "Avail Node".into() } + fn impl_name() -> String { + "Avail Node".into() + } - fn impl_version() -> String { env!("SUBSTRATE_CLI_IMPL_VERSION").into() } + fn impl_version() -> String { + env!("SUBSTRATE_CLI_IMPL_VERSION").into() + } - fn description() -> String { env!("CARGO_PKG_DESCRIPTION").into() } + fn description() -> String { + env!("CARGO_PKG_DESCRIPTION").into() + } - fn author() -> String { env!("CARGO_PKG_AUTHORS").into() } + fn author() -> String { + env!("CARGO_PKG_AUTHORS").into() + } - fn support_url() -> String { "support.anonymous.an".into() } + fn support_url() -> String { + "support.anonymous.an".into() + } - fn copyright_start_year() -> i32 { 2017 } + fn copyright_start_year() -> i32 { + 2017 + } fn load_spec(&self, id: &str) -> std::result::Result, String> { let spec = match id { diff --git a/node/src/main.rs b/node/src/main.rs index 7ed4f3491..accfed47f 100644 --- a/node/src/main.rs +++ b/node/src/main.rs @@ -11,4 +11,6 @@ mod command; mod da_block_import; mod rpc; -fn main() -> sc_cli::Result<()> { command::run() } +fn main() -> sc_cli::Result<()> { + command::run() +} diff --git a/node/src/service.rs b/node/src/service.rs index 37b430efc..971f3845d 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -59,7 +59,9 @@ impl sc_executor::NativeExecutionDispatch for ExecutorDispatch { da_runtime::apis::api::dispatch(method, data) } - fn native_version() -> sc_executor::NativeVersion { da_runtime::native_version() } + fn native_version() -> sc_executor::NativeVersion { + da_runtime::native_version() + } } /// The full client type definition. diff --git a/pallets/bridges/nomad/da-bridge/src/message.rs b/pallets/bridges/nomad/da-bridge/src/message.rs index 281beeec9..c4b5468cd 100644 --- a/pallets/bridges/nomad/da-bridge/src/message.rs +++ b/pallets/bridges/nomad/da-bridge/src/message.rs @@ -65,7 +65,9 @@ pub enum DABridgeMessages { } impl From for DABridgeMessages { - fn from(data_root_msg: DataRootMessage) -> Self { Self::DataRootMessage(data_root_msg) } + fn from(data_root_msg: DataRootMessage) -> Self { + Self::DataRootMessage(data_root_msg) + } } impl TypedMessage for DABridgeMessages { diff --git a/pallets/bridges/nomad/updater-manager/src/lib.rs b/pallets/bridges/nomad/updater-manager/src/lib.rs index 59a53ce42..2098e9542 100644 --- a/pallets/bridges/nomad/updater-manager/src/lib.rs +++ b/pallets/bridges/nomad/updater-manager/src/lib.rs @@ -43,7 +43,9 @@ pub mod pallet { #[pallet::genesis_build] impl BuildGenesisConfig for GenesisConfig { - fn build(&self) { >::put(self.updater); } + fn build(&self) { + >::put(self.updater); + } } #[pallet::event] @@ -69,7 +71,9 @@ pub mod pallet { impl Pallet {} impl Pallet { - pub fn get_updater() -> H160 { Updater::::get() } + pub fn get_updater() -> H160 { + Updater::::get() + } pub fn set_updater(new_updater: H160) -> DispatchResult { let old_updater = Updater::::get(); diff --git a/pallets/dactr/src/extensions/check_app_id.rs b/pallets/dactr/src/extensions/check_app_id.rs index 3829ca902..2ae7198e3 100644 --- a/pallets/dactr/src/extensions/check_app_id.rs +++ b/pallets/dactr/src/extensions/check_app_id.rs @@ -43,7 +43,9 @@ where ::RuntimeCall: IsSubType> + IsSubType>, { /// utility constructor. Used only in client/factory code. - pub fn from(app_id: AppId) -> Self { Self(app_id, sp_std::marker::PhantomData) } + pub fn from(app_id: AppId) -> Self { + Self(app_id, sp_std::marker::PhantomData) + } /// It validates that `AppId` is correct and already registered for the call and potential nested calls. /// Transaction validation: @@ -100,7 +102,9 @@ where } impl Default for CheckAppId { - fn default() -> Self { Self(AppId::default(), PhantomData) } + fn default() -> Self { + Self(AppId::default(), PhantomData) + } } impl Debug for CheckAppId @@ -108,10 +112,14 @@ where T: DAConfig + UtilityConfig + Send + Sync, { #[cfg(feature = "std")] - fn fmt(&self, f: &mut Formatter) -> fmt::Result { write!(f, "CheckAppId: {}", self.0) } + fn fmt(&self, f: &mut Formatter) -> fmt::Result { + write!(f, "CheckAppId: {}", self.0) + } #[cfg(not(feature = "std"))] - fn fmt(&self, _: &mut Formatter) -> fmt::Result { Ok(()) } + fn fmt(&self, _: &mut Formatter) -> fmt::Result { + Ok(()) + } } impl SignedExtension for CheckAppId @@ -158,7 +166,9 @@ where T: DAConfig + UtilityConfig + Send + Sync, { #[inline] - fn app_id(&self) -> AppId { self.0 } + fn app_id(&self) -> AppId { + self.0 + } } #[cfg(test)] @@ -175,7 +185,9 @@ mod tests { pallet::Call as DACall, }; - fn remark_call() -> RuntimeCall { RuntimeCall::System(SysCall::remark { remark: vec![] }) } + fn remark_call() -> RuntimeCall { + RuntimeCall::System(SysCall::remark { remark: vec![] }) + } fn submit_data_call() -> RuntimeCall { RuntimeCall::DataAvailability(DACall::submit_data { diff --git a/pallets/dactr/src/mock.rs b/pallets/dactr/src/mock.rs index f24bd654f..866542b29 100644 --- a/pallets/dactr/src/mock.rs +++ b/pallets/dactr/src/mock.rs @@ -152,18 +152,27 @@ pub fn new_test_ext() -> sp_io::TestExternalities { da_control::GenesisConfig:: { _config: Default::default(), app_keys: vec![ - (b"Data Avail".to_vec(), AppKeyInfo { - owner: 1, - id: AppId(0), - }), - (b"Ethereum".to_vec(), AppKeyInfo { - owner: 2, - id: AppId(1), - }), - (b"Polygon".to_vec(), AppKeyInfo { - owner: 2, - id: AppId(2), - }), + ( + b"Data Avail".to_vec(), + AppKeyInfo { + owner: 1, + id: AppId(0), + }, + ), + ( + b"Ethereum".to_vec(), + AppKeyInfo { + owner: 2, + id: AppId(1), + }, + ), + ( + b"Polygon".to_vec(), + AppKeyInfo { + owner: 2, + id: AppId(2), + }, + ), ], } .assimilate_storage(&mut storage) diff --git a/pallets/system/src/extensions/check_genesis.rs b/pallets/system/src/extensions/check_genesis.rs index aa0f4e626..155ff8d0f 100644 --- a/pallets/system/src/extensions/check_genesis.rs +++ b/pallets/system/src/extensions/check_genesis.rs @@ -41,13 +41,17 @@ impl sp_std::fmt::Debug for CheckGenesis { } #[cfg(not(feature = "std"))] - fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { Ok(()) } + fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { + Ok(()) + } } impl CheckGenesis { /// Creates new `SignedExtension` to check genesis hash. #[allow(clippy::new_without_default)] - pub fn new() -> Self { Self(sp_std::marker::PhantomData) } + pub fn new() -> Self { + Self(sp_std::marker::PhantomData) + } } impl SignedExtension for CheckGenesis { diff --git a/pallets/system/src/extensions/check_mortality.rs b/pallets/system/src/extensions/check_mortality.rs index f0f9b97ab..06ce4904d 100644 --- a/pallets/system/src/extensions/check_mortality.rs +++ b/pallets/system/src/extensions/check_mortality.rs @@ -38,7 +38,9 @@ pub struct CheckMortality(pub Era, sp_std::marker::Phan impl CheckMortality { /// utility constructor. Used only in client/factory code. - pub fn from(era: Era) -> Self { Self(era, sp_std::marker::PhantomData) } + pub fn from(era: Era) -> Self { + Self(era, sp_std::marker::PhantomData) + } } impl sp_std::fmt::Debug for CheckMortality { @@ -48,7 +50,9 @@ impl sp_std::fmt::Debug for CheckMortality { } #[cfg(not(feature = "std"))] - fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { Ok(()) } + fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { + Ok(()) + } } impl SignedExtension for CheckMortality { diff --git a/pallets/system/src/extensions/check_non_zero_sender.rs b/pallets/system/src/extensions/check_non_zero_sender.rs index f2a7c3d72..c5c38e963 100644 --- a/pallets/system/src/extensions/check_non_zero_sender.rs +++ b/pallets/system/src/extensions/check_non_zero_sender.rs @@ -40,13 +40,17 @@ impl sp_std::fmt::Debug for CheckNonZeroSender { } #[cfg(not(feature = "std"))] - fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { Ok(()) } + fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { + Ok(()) + } } impl CheckNonZeroSender { /// Create new `SignedExtension` to check runtime version. #[allow(clippy::new_without_default)] - pub fn new() -> Self { Self(sp_std::marker::PhantomData) } + pub fn new() -> Self { + Self(sp_std::marker::PhantomData) + } } impl SignedExtension for CheckNonZeroSender @@ -60,7 +64,9 @@ where const IDENTIFIER: &'static str = "CheckNonZeroSender"; - fn additional_signed(&self) -> sp_std::result::Result<(), TransactionValidityError> { Ok(()) } + fn additional_signed(&self) -> sp_std::result::Result<(), TransactionValidityError> { + Ok(()) + } fn pre_dispatch( self, diff --git a/pallets/system/src/extensions/check_nonce.rs b/pallets/system/src/extensions/check_nonce.rs index bea3bc235..622305e25 100644 --- a/pallets/system/src/extensions/check_nonce.rs +++ b/pallets/system/src/extensions/check_nonce.rs @@ -42,7 +42,9 @@ pub struct CheckNonce(#[codec(compact)] pub T::Nonce); impl CheckNonce { /// utility constructor. Used only in client/factory code. - pub fn from(nonce: T::Nonce) -> Self { Self(nonce) } + pub fn from(nonce: T::Nonce) -> Self { + Self(nonce) + } } impl sp_std::fmt::Debug for CheckNonce { @@ -52,7 +54,9 @@ impl sp_std::fmt::Debug for CheckNonce { } #[cfg(not(feature = "std"))] - fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { Ok(()) } + fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { + Ok(()) + } } impl SignedExtension for CheckNonce @@ -66,7 +70,9 @@ where const IDENTIFIER: &'static str = "CheckNonce"; - fn additional_signed(&self) -> sp_std::result::Result<(), TransactionValidityError> { Ok(()) } + fn additional_signed(&self) -> sp_std::result::Result<(), TransactionValidityError> { + Ok(()) + } fn pre_dispatch( self, @@ -129,13 +135,16 @@ mod tests { #[test] fn signed_ext_check_nonce_works() { new_test_ext().execute_with(|| { - crate::Account::::insert(1, crate::AccountInfo { - nonce: 1, - consumers: 0, - providers: 0, - sufficients: 0, - data: 0, - }); + crate::Account::::insert( + 1, + crate::AccountInfo { + nonce: 1, + consumers: 0, + providers: 0, + sufficients: 0, + data: 0, + }, + ); let info = DispatchInfo::default(); let len = 0_usize; // stale diff --git a/pallets/system/src/extensions/check_spec_version.rs b/pallets/system/src/extensions/check_spec_version.rs index 7057051ad..f46a02c62 100644 --- a/pallets/system/src/extensions/check_spec_version.rs +++ b/pallets/system/src/extensions/check_spec_version.rs @@ -41,13 +41,17 @@ impl sp_std::fmt::Debug for CheckSpecVersion { } #[cfg(not(feature = "std"))] - fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { Ok(()) } + fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { + Ok(()) + } } impl CheckSpecVersion { /// Create new `SignedExtension` to check runtime version. #[allow(clippy::new_without_default)] - pub fn new() -> Self { Self(sp_std::marker::PhantomData) } + pub fn new() -> Self { + Self(sp_std::marker::PhantomData) + } } impl SignedExtension for CheckSpecVersion { diff --git a/pallets/system/src/extensions/check_tx_version.rs b/pallets/system/src/extensions/check_tx_version.rs index f5566054a..6d7f74f2a 100644 --- a/pallets/system/src/extensions/check_tx_version.rs +++ b/pallets/system/src/extensions/check_tx_version.rs @@ -41,13 +41,17 @@ impl sp_std::fmt::Debug for CheckTxVersion { } #[cfg(not(feature = "std"))] - fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { Ok(()) } + fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { + Ok(()) + } } impl CheckTxVersion { /// Create new `SignedExtension` to check transaction version. #[allow(clippy::new_without_default)] - pub fn new() -> Self { Self(sp_std::marker::PhantomData) } + pub fn new() -> Self { + Self(sp_std::marker::PhantomData) + } } impl SignedExtension for CheckTxVersion { diff --git a/pallets/system/src/extensions/check_weight.rs b/pallets/system/src/extensions/check_weight.rs index af9cfe37b..924bdaeb3 100644 --- a/pallets/system/src/extensions/check_weight.rs +++ b/pallets/system/src/extensions/check_weight.rs @@ -129,7 +129,9 @@ where } /// Creates new `SignedExtension` to check weight of the extrinsic. - pub fn new() -> Self { Self(Default::default()) } + pub fn new() -> Self { + Self(Default::default()) + } /// Do the pre-dispatch checks. This can be applied to both signed and unsigned. /// @@ -224,7 +226,9 @@ where const IDENTIFIER: &'static str = "CheckWeight"; - fn additional_signed(&self) -> sp_std::result::Result<(), TransactionValidityError> { Ok(()) } + fn additional_signed(&self) -> sp_std::result::Result<(), TransactionValidityError> { + Ok(()) + } fn pre_dispatch( self, @@ -287,7 +291,9 @@ impl sp_std::fmt::Debug for CheckWeight { } #[cfg(not(feature = "std"))] - fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { Ok(()) } + fn fmt(&self, _: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result { + Ok(()) + } } #[cfg(test)] @@ -317,7 +323,9 @@ mod tests { .unwrap_or_else(|| block_weights().max_block) } - fn block_weight_limit() -> Weight { block_weights().max_block } + fn block_weight_limit() -> Weight { + block_weights().max_block + } fn normal_length_limit() -> u32 { *::BlockLength::get() diff --git a/pallets/system/src/lib.rs b/pallets/system/src/lib.rs index a001de04b..8862100aa 100644 --- a/pallets/system/src/lib.rs +++ b/pallets/system/src/lib.rs @@ -191,15 +191,23 @@ pub trait ConsumerLimits { } impl ConsumerLimits for ConstU32 { - fn max_consumers() -> RefCount { Z } + fn max_consumers() -> RefCount { + Z + } - fn max_overflow() -> RefCount { Z } + fn max_overflow() -> RefCount { + Z + } } impl, MaxOverflow: Get> ConsumerLimits for (MaxNormal, MaxOverflow) { - fn max_consumers() -> RefCount { MaxNormal::get() } + fn max_consumers() -> RefCount { + MaxNormal::get() + } - fn max_overflow() -> RefCount { MaxOverflow::get() } + fn max_overflow() -> RefCount { + MaxOverflow::get() + } } #[derive(Clone, Encode, Decode, TypeInfo, MaxEncodedLen)] pub struct ExtrinsicLen { @@ -731,7 +739,9 @@ pub enum Phase { } impl Default for Phase { - fn default() -> Self { Self::Initialization } + fn default() -> Self { + Self::Initialization + } } /// Record of an event happening. @@ -824,7 +834,9 @@ impl, O>> + From>, Acco } #[cfg(feature = "runtime-benchmarks")] - fn try_successful_origin() -> Result { Ok(O::from(RawOrigin::Root)) } + fn try_successful_origin() -> Result { + Ok(O::from(RawOrigin::Root)) + } } impl_ensure_origin_with_arg_ignoring_arg! { @@ -853,7 +865,9 @@ impl< } #[cfg(feature = "runtime-benchmarks")] - fn try_successful_origin() -> Result { Ok(O::from(RawOrigin::Root)) } + fn try_successful_origin() -> Result { + Ok(O::from(RawOrigin::Root)) + } } impl_ensure_origin_with_arg_ignoring_arg! { @@ -881,7 +895,9 @@ impl< } #[cfg(feature = "runtime-benchmarks")] - fn try_successful_origin() -> Result { Ensure::try_successful_origin() } + fn try_successful_origin() -> Result { + Ensure::try_successful_origin() + } } impl_ensure_origin_with_arg_ignoring_arg! { @@ -963,7 +979,9 @@ impl, O>> + From>, Acco } #[cfg(feature = "runtime-benchmarks")] - fn try_successful_origin() -> Result { Ok(O::from(RawOrigin::None)) } + fn try_successful_origin() -> Result { + Ok(O::from(RawOrigin::None)) + } } impl_ensure_origin_with_arg_ignoring_arg! { @@ -977,10 +995,14 @@ pub struct EnsureNever(sp_std::marker::PhantomData); impl EnsureOrigin for EnsureNever { type Success = Success; - fn try_origin(o: O) -> Result { Err(o) } + fn try_origin(o: O) -> Result { + Err(o) + } #[cfg(feature = "runtime-benchmarks")] - fn try_successful_origin() -> Result { Err(()) } + fn try_successful_origin() -> Result { + Err(()) + } } impl_ensure_origin_with_arg_ignoring_arg! { @@ -1065,7 +1087,9 @@ pub enum DecRefStatus { } impl Pallet { - pub fn account_exists(who: &T::AccountId) -> bool { Account::::contains_key(who) } + pub fn account_exists(who: &T::AccountId) -> bool { + Account::::contains_key(who) + } /// Write code to the storage and emit related events and digest items. /// @@ -1081,20 +1105,28 @@ impl Pallet { /// Increment the reference counter on an account. #[deprecated = "Use `inc_consumers` instead"] - pub fn inc_ref(who: &T::AccountId) { let _ = Self::inc_consumers(who); } + pub fn inc_ref(who: &T::AccountId) { + let _ = Self::inc_consumers(who); + } /// Decrement the reference counter on an account. This *MUST* only be done once for every time /// you called `inc_consumers` on `who`. #[deprecated = "Use `dec_consumers` instead"] - pub fn dec_ref(who: &T::AccountId) { Self::dec_consumers(who); } + pub fn dec_ref(who: &T::AccountId) { + Self::dec_consumers(who); + } /// The number of outstanding references for the account `who`. #[deprecated = "Use `consumers` instead"] - pub fn refs(who: &T::AccountId) -> RefCount { Self::consumers(who) } + pub fn refs(who: &T::AccountId) -> RefCount { + Self::consumers(who) + } /// True if the account has no outstanding references. #[deprecated = "Use `!is_provider_required` instead"] - pub fn allow_death(who: &T::AccountId) -> bool { !Self::is_provider_required(who) } + pub fn allow_death(who: &T::AccountId) -> bool { + !Self::is_provider_required(who) + } /// Increment the provider reference counter on an account. pub fn inc_providers(who: &T::AccountId) -> IncRefStatus { @@ -1204,10 +1236,14 @@ impl Pallet { } /// The number of outstanding provider references for the account `who`. - pub fn providers(who: &T::AccountId) -> RefCount { Account::::get(who).providers } + pub fn providers(who: &T::AccountId) -> RefCount { + Account::::get(who).providers + } /// The number of outstanding sufficient references for the account `who`. - pub fn sufficients(who: &T::AccountId) -> RefCount { Account::::get(who).sufficients } + pub fn sufficients(who: &T::AccountId) -> RefCount { + Account::::get(who).sufficients + } /// The number of outstanding provider and sufficient references for the account `who`. pub fn reference_count(who: &T::AccountId) -> RefCount { @@ -1264,7 +1300,9 @@ impl Pallet { } /// The number of outstanding references for the account `who`. - pub fn consumers(who: &T::AccountId) -> RefCount { Account::::get(who).consumers } + pub fn consumers(who: &T::AccountId) -> RefCount { + Account::::get(who).consumers + } /// True if the account has some outstanding consumer references. pub fn is_provider_required(who: &T::AccountId) -> bool { @@ -1289,7 +1327,9 @@ impl Pallet { /// True if the account has at least one provider reference and fewer consumer references than /// the maximum. - pub fn can_inc_consumer(who: &T::AccountId) -> bool { Self::can_accrue_consumers(who, 1) } + pub fn can_inc_consumer(who: &T::AccountId) -> bool { + Self::can_accrue_consumers(who, 1) + } /// Deposits an event into this block's event record. /// @@ -1345,10 +1385,14 @@ impl Pallet { } /// Gets extrinsics count. - pub fn extrinsic_count() -> u32 { ExtrinsicCount::::get().unwrap_or_default() } + pub fn extrinsic_count() -> u32 { + ExtrinsicCount::::get().unwrap_or_default() + } /// Returns all extrinsics len in raw. - pub fn all_extrinsics_len() -> u32 { AllExtrinsicsLen::::get().unwrap_or_default().raw } + pub fn all_extrinsics_len() -> u32 { + AllExtrinsicsLen::::get().unwrap_or_default().raw + } /// Returns all extrinsics len with padding. pub fn all_padded_extrinsics_len() -> u32 { @@ -1530,7 +1574,9 @@ impl Pallet { /// - `O(1)` /// - 1 storage write (codec `O(1)`) /// # - pub fn deposit_log(item: generic::DigestItem) { >::append(item); } + pub fn deposit_log(item: generic::DigestItem) { + >::append(item); + } /// Get the basic externalities for this pallet, useful for tests. #[cfg(any(feature = "std", test))] @@ -1585,7 +1631,9 @@ impl Pallet { /// Set the block number to something in particular. Can be used as an alternative to /// `initialize` for tests that don't need to bother with the other environment entries. #[cfg(any(feature = "std", feature = "runtime-benchmarks", test))] - pub fn set_block_number(n: BlockNumberFor) { >::put(n); } + pub fn set_block_number(n: BlockNumberFor) { + >::put(n); + } /// Sets the index of extrinsic that is currently executing. #[cfg(any(feature = "std", test))] @@ -1596,7 +1644,9 @@ impl Pallet { /// Set the parent hash number to something in particular. Can be used as an alternative to /// `initialize` for tests that don't need to bother with the other environment entries. #[cfg(any(feature = "std", test))] - pub fn set_parent_hash(n: T::Hash) { >::put(n); } + pub fn set_parent_hash(n: T::Hash) { + >::put(n); + } /// Set the current block weight. This should only be used in some integration tests. #[cfg(any(feature = "std", test))] @@ -1653,7 +1703,9 @@ impl Pallet { } /// Return the chain's current runtime version. - pub fn runtime_version() -> RuntimeVersion { T::Version::get() } + pub fn runtime_version() -> RuntimeVersion { + T::Version::get() + } /// Retrieve the account transaction counter from storage. pub fn account_nonce(who: impl EncodeLike) -> T::Nonce { @@ -1718,7 +1770,9 @@ impl Pallet { /// To be called immediately after finishing the initialization of the block /// (e.g., called `on_initialize` for all pallets). - pub fn note_finished_initialize() { ExecutionPhase::::put(Phase::ApplyExtrinsic(0)) } + pub fn note_finished_initialize() { + ExecutionPhase::::put(Phase::ApplyExtrinsic(0)) + } /// An account is being created. pub fn on_created_account(who: T::AccountId, _a: &mut AccountInfo) { @@ -1814,7 +1868,9 @@ impl HandleLifetime for SelfSufficient { /// Event handler which registers a consumer when created. pub struct Consumer(PhantomData); impl HandleLifetime for Consumer { - fn created(t: &T::AccountId) -> Result<(), DispatchError> { Pallet::::inc_consumers(t) } + fn created(t: &T::AccountId) -> Result<(), DispatchError> { + Pallet::::inc_consumers(t) + } fn killed(t: &T::AccountId) -> Result<(), DispatchError> { Pallet::::dec_consumers(t); @@ -1825,7 +1881,9 @@ impl HandleLifetime for Consumer { impl BlockNumberProvider for Pallet { type BlockNumber = BlockNumberFor; - fn current_block_number() -> Self::BlockNumber { Pallet::::block_number() } + fn current_block_number() -> Self::BlockNumber { + Pallet::::block_number() + } } /// Implement StoredMap for a simple single-item, provide-when-not-default system. This works fine @@ -1834,7 +1892,9 @@ impl BlockNumberProvider for Pallet { /// /// Anything more complex will need more sophisticated logic. impl StoredMap for Pallet { - fn get(k: &T::AccountId) -> T::AccountData { Account::::get(k).data } + fn get(k: &T::AccountId) -> T::AccountData { + Account::::get(k).data + } fn try_mutate_exists>( k: &T::AccountId, @@ -1869,7 +1929,9 @@ pub fn split_inner( pub struct ChainContext(PhantomData); impl Default for ChainContext { - fn default() -> Self { ChainContext(PhantomData) } + fn default() -> Self { + ChainContext(PhantomData) + } } impl Lookup for ChainContext { diff --git a/pallets/system/src/limits.rs b/pallets/system/src/limits.rs index 5254a61ba..55a6a0cc3 100644 --- a/pallets/system/src/limits.rs +++ b/pallets/system/src/limits.rs @@ -75,7 +75,9 @@ const fn is_chunk_size_valid(new_size: NonZeroU32) -> bool { impl BlockLength { #[inline] - pub fn chunk_size(&self) -> NonZeroU32 { self.chunk_size } + pub fn chunk_size(&self) -> NonZeroU32 { + self.chunk_size + } pub fn set_chunk_size(&mut self, new_size: NonZeroU32) -> Result<(), BlockLengthError> { ensure!( @@ -412,11 +414,15 @@ impl Default for BlockWeights { impl BlockWeights { /// Get per-class weight settings. - pub fn get(&self, class: DispatchClass) -> &WeightsPerClass { self.per_class.get(class) } + pub fn get(&self, class: DispatchClass) -> &WeightsPerClass { + self.per_class.get(class) + } /// Verifies correctness of this `BlockWeights` object. pub fn validate(self) -> ValidationResult { - fn or_max(w: Option) -> Weight { w.unwrap_or_else(Weight::max_value) } + fn or_max(w: Option) -> Weight { + w.unwrap_or_else(Weight::max_value) + } let mut error = ValidationErrors::default(); for class in DispatchClass::all() { @@ -643,5 +649,7 @@ mod tests { use super::*; #[test] - fn default_weights_are_valid() { BlockWeights::default().validate().unwrap(); } + fn default_weights_are_valid() { + BlockWeights::default().validate().unwrap(); + } } diff --git a/pallets/system/src/mock.rs b/pallets/system/src/mock.rs index 4b1bd5cd7..724055854 100644 --- a/pallets/system/src/mock.rs +++ b/pallets/system/src/mock.rs @@ -80,7 +80,9 @@ parameter_types! { pub struct RecordKilled; impl OnKilledAccount for RecordKilled { - fn on_killed_account(who: &u64) { Killed::mutate(|r| r.push(*who)) } + fn on_killed_account(who: &u64) { + Killed::mutate(|r| r.push(*who)) + } } impl Config for Test { diff --git a/pallets/system/src/mocking.rs b/pallets/system/src/mocking.rs index 633ac02fa..54a96ac67 100644 --- a/pallets/system/src/mocking.rs +++ b/pallets/system/src/mocking.rs @@ -121,7 +121,9 @@ impl TryFrom<&OpaqueExtrinsic> for MockUncheckedExtrinsic { } impl From> for AppExtrinsic { - fn from(xt: MockUncheckedExtrinsic) -> Self { AppExtrinsic::from(xt.0) } + fn from(xt: MockUncheckedExtrinsic) -> Self { + AppExtrinsic::from(xt.0) + } } /// An implementation of `sp_runtime::traits::Block` to be used in tests. diff --git a/pallets/system/src/offchain.rs b/pallets/system/src/offchain.rs index aa4e3e375..16254acda 100644 --- a/pallets/system/src/offchain.rs +++ b/pallets/system/src/offchain.rs @@ -131,10 +131,14 @@ impl, X> Default for Sign impl, X> Signer { /// Use all available keys for signing. - pub fn all_accounts() -> Signer { Default::default() } + pub fn all_accounts() -> Signer { + Default::default() + } /// Use any of the available keys for signing. - pub fn any_account() -> Signer { Default::default() } + pub fn any_account() -> Signer { + Default::default() + } /// Use provided `accounts` for signing. /// @@ -147,7 +151,9 @@ impl, X> Signer } /// Check if there are any keys that could be used for signing. - pub fn can_sign(&self) -> bool { self.accounts_from_keys().count() > 0 } + pub fn can_sign(&self) -> bool { + self.accounts_from_keys().count() > 0 + } /// Return a vector of the intersection between /// all available accounts and the provided accounts @@ -651,7 +657,9 @@ mod tests { } impl SignedPayload for SimplePayload { - fn public(&self) -> UintAuthorityId { self.public.clone() } + fn public(&self) -> UintAuthorityId { + self.public.clone() + } } struct DummyAppCrypto; diff --git a/pallets/system/src/submitted_data.rs b/pallets/system/src/submitted_data.rs index 81b1e3528..274800c02 100644 --- a/pallets/system/src/submitted_data.rs +++ b/pallets/system/src/submitted_data.rs @@ -23,7 +23,9 @@ pub type RcMetrics = Rc>; impl Metrics { /// Creates a shared metric with internal mutability. - fn new_shared() -> RcMetrics { Rc::new(RefCell::new(Self::default())) } + fn new_shared() -> RcMetrics { + Rc::new(RefCell::new(Self::default())) + } } /// Extracts the `data` field from some types of extrinsics. @@ -43,7 +45,9 @@ pub trait Extractor { impl Extractor for () { type Error = (); - fn extract(_: &OpaqueExtrinsic, _: RcMetrics) -> Result>, ()> { Ok(vec![]) } + fn extract(_: &OpaqueExtrinsic, _: RcMetrics) -> Result>, ()> { + Ok(vec![]) + } } /// It is similar to `Extractor` but it uses `C` type for calls, instead of `AppExtrinsic`. @@ -57,9 +61,13 @@ pub trait Filter { #[cfg(any(feature = "std", test))] impl Filter for () { - fn filter(_: C, _: RcMetrics) -> Vec> { vec![] } + fn filter(_: C, _: RcMetrics) -> Vec> { + vec![] + } - fn process_calls(_: Vec, _: &RcMetrics) -> Vec> { vec![] } + fn process_calls(_: Vec, _: &RcMetrics) -> Vec> { + vec![] + } } fn extract_and_inspect(opaque: &OpaqueExtrinsic, metrics: RcMetrics) -> Vec> @@ -136,7 +144,9 @@ where impl Hasher for Keccak256Algorithm { type Hash = [u8; 32]; - fn hash(data: &[u8]) -> [u8; 32] { sp_io::hashing::keccak_256(data).into() } + fn hash(data: &[u8]) -> [u8; 32] { + sp_io::hashing::keccak_256(data).into() + } } let mut tree = MerkleTree::::new(); @@ -298,7 +308,9 @@ mod test { } } - fn process_calls(_: Vec, _: &RcMetrics) -> Vec> { vec![] } + fn process_calls(_: Vec, _: &RcMetrics) -> Vec> { + vec![] + } } #[test] @@ -541,10 +553,13 @@ mod test { let data_tree = MerkleTree::::from_leaves(&leaves); let proof = data_tree.proof(&[1usize]); let root_proof = proof.proof_hashes().to_vec(); - assert_eq!(root_proof, vec![ - hex!("754B9412E0ED7907BDF4B7CA5D2A22F5E129A03DEB1F4E1C1FE42D322FDEE90E"), - hex!("8D6E30E494D17D7675A94C3C614467FF8CCE35201C1056751A6E9A100515DAF9"), - ]); + assert_eq!( + root_proof, + vec![ + hex!("754B9412E0ED7907BDF4B7CA5D2A22F5E129A03DEB1F4E1C1FE42D322FDEE90E"), + hex!("8D6E30E494D17D7675A94C3C614467FF8CCE35201C1056751A6E9A100515DAF9"), + ] + ); } #[test] diff --git a/pallets/system/src/tests.rs b/pallets/system/src/tests.rs index 5942a830d..8eaf42835 100644 --- a/pallets/system/src/tests.rs +++ b/pallets/system/src/tests.rs @@ -79,13 +79,16 @@ fn stored_map_works() { assert_ok!(System::insert(&0, 42)); assert!(!System::is_provider_required(&0)); - assert_eq!(Account::::get(0), AccountInfo { - nonce: 0, - providers: 1, - consumers: 0, - sufficients: 0, - data: 42 - }); + assert_eq!( + Account::::get(0), + AccountInfo { + nonce: 0, + providers: 1, + consumers: 0, + sufficients: 0, + data: 42 + } + ); assert_ok!(System::inc_consumers(&0)); assert!(System::is_provider_required(&0)); @@ -203,11 +206,14 @@ fn deposit_event_should_work() { System::note_finished_extrinsics(); System::deposit_event(SysEvent::CodeUpdated); System::finalize(); - assert_eq!(System::events(), vec![EventRecord { - phase: Phase::Finalization, - event: SysEvent::CodeUpdated.into(), - topics: vec![], - }]); + assert_eq!( + System::events(), + vec![EventRecord { + phase: Phase::Finalization, + event: SysEvent::CodeUpdated.into(), + topics: vec![], + }] + ); let normal_base = ::BlockWeights::get() .get(DispatchClass::Normal) @@ -223,46 +229,49 @@ fn deposit_event_should_work() { System::note_finished_extrinsics(); System::deposit_event(SysEvent::NewAccount { account: 3 }); System::finalize(); - assert_eq!(System::events(), vec![ - EventRecord { - phase: Phase::Initialization, - event: SysEvent::NewAccount { account: 32 }.into(), - topics: vec![], - }, - EventRecord { - phase: Phase::ApplyExtrinsic(0), - event: SysEvent::KilledAccount { account: 42 }.into(), - topics: vec![] - }, - EventRecord { - phase: Phase::ApplyExtrinsic(0), - event: SysEvent::ExtrinsicSuccess { - dispatch_info: DispatchInfo { - weight: normal_base, - ..Default::default() + assert_eq!( + System::events(), + vec![ + EventRecord { + phase: Phase::Initialization, + event: SysEvent::NewAccount { account: 32 }.into(), + topics: vec![], + }, + EventRecord { + phase: Phase::ApplyExtrinsic(0), + event: SysEvent::KilledAccount { account: 42 }.into(), + topics: vec![] + }, + EventRecord { + phase: Phase::ApplyExtrinsic(0), + event: SysEvent::ExtrinsicSuccess { + dispatch_info: DispatchInfo { + weight: normal_base, + ..Default::default() + } } - } - .into(), - topics: vec![] - }, - EventRecord { - phase: Phase::ApplyExtrinsic(1), - event: SysEvent::ExtrinsicFailed { - dispatch_error: DispatchError::BadOrigin.into(), - dispatch_info: DispatchInfo { - weight: normal_base, - ..Default::default() + .into(), + topics: vec![] + }, + EventRecord { + phase: Phase::ApplyExtrinsic(1), + event: SysEvent::ExtrinsicFailed { + dispatch_error: DispatchError::BadOrigin.into(), + dispatch_info: DispatchInfo { + weight: normal_base, + ..Default::default() + } } - } - .into(), - topics: vec![] - }, - EventRecord { - phase: Phase::Finalization, - event: SysEvent::NewAccount { account: 3 }.into(), - topics: vec![] - }, - ]); + .into(), + topics: vec![] + }, + EventRecord { + phase: Phase::Finalization, + event: SysEvent::NewAccount { account: 3 }.into(), + topics: vec![] + }, + ] + ); }); } @@ -523,34 +532,37 @@ fn deposit_event_topics() { System::finalize(); // Check that topics are reflected in the event record. - assert_eq!(System::events(), vec![ - EventRecord { - phase: Phase::Finalization, - event: SysEvent::NewAccount { account: 1 }.into(), - topics: topics[0..3].to_vec(), - }, - EventRecord { - phase: Phase::Finalization, - event: SysEvent::NewAccount { account: 2 }.into(), - topics: topics[0..1].to_vec(), - }, - EventRecord { - phase: Phase::Finalization, - event: SysEvent::NewAccount { account: 3 }.into(), - topics: topics[1..2].to_vec(), - } - ]); + assert_eq!( + System::events(), + vec![ + EventRecord { + phase: Phase::Finalization, + event: SysEvent::NewAccount { account: 1 }.into(), + topics: topics[0..3].to_vec(), + }, + EventRecord { + phase: Phase::Finalization, + event: SysEvent::NewAccount { account: 2 }.into(), + topics: topics[0..1].to_vec(), + }, + EventRecord { + phase: Phase::Finalization, + event: SysEvent::NewAccount { account: 3 }.into(), + topics: topics[1..2].to_vec(), + } + ] + ); // Check that the topic-events mapping reflects the deposited topics. // Note that these are indexes of the events. - assert_eq!(System::event_topics(&topics[0]), vec![ - (BLOCK_NUMBER, 0), - (BLOCK_NUMBER, 1) - ]); - assert_eq!(System::event_topics(&topics[1]), vec![ - (BLOCK_NUMBER, 0), - (BLOCK_NUMBER, 2) - ]); + assert_eq!( + System::event_topics(&topics[0]), + vec![(BLOCK_NUMBER, 0), (BLOCK_NUMBER, 1)] + ); + assert_eq!( + System::event_topics(&topics[1]), + vec![(BLOCK_NUMBER, 0), (BLOCK_NUMBER, 2)] + ); assert_eq!(System::event_topics(&topics[2]), vec![(BLOCK_NUMBER, 0)]); }); } @@ -738,7 +750,9 @@ fn runtime_updated_digest_emitted_when_heap_pages_changed() { fn ensure_signed_stuff_works() { struct Members; impl SortedMembers for Members { - fn sorted_members() -> Vec { (0..10).collect() } + fn sorted_members() -> Vec { + (0..10).collect() + } } let signed_origin = RuntimeOrigin::signed(0u64); diff --git a/runtime/src/impls.rs b/runtime/src/impls.rs index 14f3ced48..647ae81c0 100644 --- a/runtime/src/impls.rs +++ b/runtime/src/impls.rs @@ -135,9 +135,13 @@ mod multiplier_tests { .unwrap_or_else(|| BlockWeights::get().max_block) } - fn min_multiplier() -> Multiplier { MinimumMultiplier::get() } + fn min_multiplier() -> Multiplier { + MinimumMultiplier::get() + } - fn target() -> Weight { TargetBlockFullness::get() * max_normal() } + fn target() -> Weight { + TargetBlockFullness::get() * max_normal() + } // update based on runtime impl. fn runtime_multiplier_update(fm: Multiplier) -> Multiplier { diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 69a0efb72..cdf7c3772 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -605,11 +605,15 @@ parameter_types! { use sp_runtime::traits::Convert; pub struct BalanceToU256; impl Convert for BalanceToU256 { - fn convert(balance: Balance) -> sp_core::U256 { sp_core::U256::from(balance) } + fn convert(balance: Balance) -> sp_core::U256 { + sp_core::U256::from(balance) + } } pub struct U256ToBalance; impl Convert for U256ToBalance { - fn convert(n: sp_core::U256) -> Balance { n.try_into().unwrap_or(Balance::max_value()) } + fn convert(n: sp_core::U256) -> Balance { + n.try_into().unwrap_or(Balance::max_value()) + } } impl pallet_nomination_pools::Config for Runtime { diff --git a/runtime/src/migration.rs b/runtime/src/migration.rs index 1bfb159d3..d030f0125 100644 --- a/runtime/src/migration.rs +++ b/runtime/src/migration.rs @@ -29,7 +29,9 @@ use crate::{Bounties, NominationPools, Runtime, Weight}; struct NominationPoolsMigrationV4OldPallet; impl Get for NominationPoolsMigrationV4OldPallet { - fn get() -> Perbill { Perbill::zero() } + fn get() -> Perbill { + Perbill::zero() + } } /// Implements `OnRuntimeUpgrade` trait. @@ -211,7 +213,9 @@ mod nomination_pools { pub const STORAGE_VERSION: StorageVersion = StorageVersion::new(1); #[cfg(feature = "try-runtime")] - pub(crate) fn pre_upgrade() -> Result, &'static str> { Ok(sp_std::vec![]) } + pub(crate) fn pre_upgrade() -> Result, &'static str> { + Ok(sp_std::vec![]) + } #[cfg(feature = "try-runtime")] pub(crate) fn post_upgrade(_state: Vec) -> Result<(), &'static str> { diff --git a/rustfmt.toml b/rustfmt.toml index 82b712fa8..bb55bd1e8 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,10 +1,13 @@ -binop_separator = "Back" -comment_width = 120 -imports_granularity = "Crate" -max_width = 120 -reorder_imports = true -tab_spaces = 4 -trailing_semicolon = true -use_small_heuristics = "Max" +match_block_trailing_comma = true use_field_init_shorthand = true -wrap_comments = true +edition = "2021" +hard_tabs = true + +# Disabled on Stable +# +# fn_single_line = true +# match_arm_blocks = true +# imports_granularity = "Crate" +# overflow_delimited_expr = true +# reorder_impl_items = true +# group_imports = "StdExternalCrate" \ No newline at end of file From ca9af86a76bd03646d9c6c56d27c8fd0b4d42b1e Mon Sep 17 00:00:00 2001 From: Marko Petrlic Date: Mon, 11 Sep 2023 15:34:27 +0200 Subject: [PATCH 58/58] Changed the CI toolchain --- .github/workflows/default.yml | 57 +++++++++++++++++------------------ 1 file changed, 27 insertions(+), 30 deletions(-) diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index ad3a04ec9..4e932d772 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -9,7 +9,7 @@ on: - main - develop env: - BUILD_TOOLCHAIN: nightly-2022-11-15 + BUILD_TOOLCHAIN: stable-2023-08-24 CARGO_SCCACHE_COMMIT: bed5571c SCCACHE_DIR: /home/runner/.cache/cargo-sccache-bed5571c SCCACHE_BIN: /home/runner/.cache/cargo-sccache-bed5571c/bin/sccache @@ -23,13 +23,13 @@ jobs: - name: Install nightly ${{ env.BUILD_TOOLCHAIN }} uses: actions-rs/toolchain@v1 with: - # NOTE: Until https://github.com/actions-rs/toolchain/pull/209 is merged, - # this should be synced with rust-toolchain.toml file. - # After merge, this section should be removed. - # toolchain: nightly-2022-11-25 - toolchain: ${{ env.BUILD_TOOLCHAIN }} - components: rustfmt - profile: minimal + # NOTE: Until https://github.com/actions-rs/toolchain/pull/209 is merged, + # this should be synced with rust-toolchain.toml file. + # After merge, this section should be removed. + # toolchain: stable-2023-08-24 + toolchain: ${{ env.BUILD_TOOLCHAIN }} + components: rustfmt + profile: minimal - name: Check Avail code formatting uses: actions-rs/cargo@v1 @@ -55,20 +55,20 @@ jobs: with: path: ${{ env.SCCACHE_DIR }} key: ${{ runner.OS }}-sccache-bin-${{ env.CARGO_SCCACHE_COMMIT }}-v1 - + - name: Install Protoc uses: arduino/setup-protoc@v1 with: - version: '3.x' + version: "3.x" # With rustup's nice new toml format, we just need to run rustup show to install the toolchain # https://github.com/actions-rs/toolchain/issues/126#issuecomment-782989659 - name: Setup Rust toolchain run: | - curl https://sh.rustup.rs -sSf | sh -s -- -y - source "$HOME/.cargo/env" - rustup default ${{ env.BUILD_TOOLCHAIN }} - rustup target add wasm32-unknown-unknown --toolchain ${{ env.BUILD_TOOLCHAIN }} + curl https://sh.rustup.rs -sSf | sh -s -- -y + source "$HOME/.cargo/env" + rustup default ${{ env.BUILD_TOOLCHAIN }} + rustup target add wasm32-unknown-unknown --toolchain ${{ env.BUILD_TOOLCHAIN }} - name: SCCache run: | @@ -85,7 +85,7 @@ jobs: $SCCACHE_BIN -s echo "RUSTC_WRAPPER=$SCCACHE_BIN" >> $GITHUB_ENV - - name: Build node + - name: Build node run: cargo build --release -p data-avail - name: Upload data-avail binary @@ -98,7 +98,7 @@ jobs: run: ${{ env.SCCACHE_BIN }} --show-stats - name: Check other features - run: cargo check --release --workspace --features "runtime-benchmarks try-runtime" -p data-avail + run: cargo check --release --workspace --features "runtime-benchmarks try-runtime" -p data-avail unit_tests: runs-on: ubuntu-latest @@ -117,26 +117,26 @@ jobs: sudo apt update sudo apt install -y build-essential sudo apt install -y git clang curl libssl-dev protobuf-compiler - + # Restore cache from `build` - uses: actions/cache/restore@v3 with: - path: ${{ env.SCCACHE_DIR }} + path: ${{ env.SCCACHE_DIR }} key: ${{ runner.OS }}-sccache-bin-${{ env.CARGO_SCCACHE_COMMIT }}-v1 - name: Install Protoc uses: arduino/setup-protoc@v1 with: - version: '3.x' + version: "3.x" # With rustup's nice new toml format, we just need to run rustup show to install the toolchain # https://github.com/actions-rs/toolchain/issues/126#issuecomment-782989659 - name: Setup Rust toolchain run: | - curl https://sh.rustup.rs -sSf | sh -s -- -y - source "$HOME/.cargo/env" - rustup default ${{ env.BUILD_TOOLCHAIN }} - rustup target add wasm32-unknown-unknown --toolchain ${{ env.BUILD_TOOLCHAIN }} + curl https://sh.rustup.rs -sSf | sh -s -- -y + source "$HOME/.cargo/env" + rustup default ${{ env.BUILD_TOOLCHAIN }} + rustup target add wasm32-unknown-unknown --toolchain ${{ env.BUILD_TOOLCHAIN }} - name: SCCache run: | @@ -195,10 +195,10 @@ jobs: # https://github.com/actions-rs/toolchain/issues/126#issuecomment-782989659 - name: Setup Rust toolchain run: | - curl https://sh.rustup.rs -sSf | sh -s -- -y - source "$HOME/.cargo/env" - rustup default ${{ env.BUILD_TOOLCHAIN }} - rustup target add wasm32-unknown-unknown --toolchain ${{ env.BUILD_TOOLCHAIN }} + curl https://sh.rustup.rs -sSf | sh -s -- -y + source "$HOME/.cargo/env" + rustup default ${{ env.BUILD_TOOLCHAIN }} + rustup target add wasm32-unknown-unknown --toolchain ${{ env.BUILD_TOOLCHAIN }} - name: SCCache run: | @@ -237,8 +237,5 @@ jobs: # cargo run --release --manifest-path avail-subxt/Cargo.toml --example democracy_external # cargo run --release --manifest-path avail-subxt/Cargo.toml --example submit_block_length_proposal_democracy - - - name: Display SCCache Stats run: ${{ env.SCCACHE_BIN }} --show-stats -