mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-20 19:45:41 +00:00
Bump dependencies (#1180)
* substrate: d0f6c1c60da22e04dd25c2eca46ebfe6f1571af0
polkadot: dd4b2e6a34a08a01b876d14641e99e7011be3463
cumulus: 9379cd6c18
* fmt
* fixed lost refs
* spelling
* benckhmarks
* fmt
This commit is contained in:
committed by
Bastian Köcher
parent
6396239e18
commit
e23266c7e6
@@ -10,6 +10,7 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
|
||||
codec = { package = "parity-scale-codec", version = "2.2.0", default-features = false }
|
||||
libsecp256k1 = { version = "0.7", default-features = false, features = ["hmac"], optional = true }
|
||||
log = { version = "0.4.14", default-features = false }
|
||||
scale-info = { version = "1.0", default-features = false, features = ["derive"] }
|
||||
serde = { version = "1.0", optional = true }
|
||||
|
||||
# Bridge dependencies
|
||||
@@ -38,6 +39,7 @@ std = [
|
||||
"frame-support/std",
|
||||
"frame-system/std",
|
||||
"log/std",
|
||||
"scale-info/std",
|
||||
"serde",
|
||||
"sp-io/std",
|
||||
"sp-runtime/std",
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
use crate::{error::Error, Storage};
|
||||
use bp_eth_poa::{public_to_address, Address, AuraHeader, HeaderId, SealedEmptyStep, H256};
|
||||
use codec::{Decode, Encode};
|
||||
use scale_info::TypeInfo;
|
||||
use sp_io::crypto::secp256k1_ecdsa_recover;
|
||||
use sp_runtime::RuntimeDebug;
|
||||
use sp_std::{
|
||||
@@ -55,7 +56,7 @@ pub struct FinalityEffects<Submitter> {
|
||||
}
|
||||
|
||||
/// Finality votes for given block.
|
||||
#[derive(RuntimeDebug, Decode, Encode)]
|
||||
#[derive(RuntimeDebug, Decode, Encode, TypeInfo)]
|
||||
#[cfg_attr(test, derive(Clone, PartialEq))]
|
||||
pub struct FinalityVotes<Submitter> {
|
||||
/// Number of votes per each validator.
|
||||
@@ -66,7 +67,7 @@ pub struct FinalityVotes<Submitter> {
|
||||
}
|
||||
|
||||
/// Information about block ancestor that is used in computations.
|
||||
#[derive(RuntimeDebug, Decode, Encode)]
|
||||
#[derive(RuntimeDebug, Decode, Encode, TypeInfo)]
|
||||
#[cfg_attr(test, derive(Clone, Default, PartialEq))]
|
||||
pub struct FinalityAncestor<Submitter> {
|
||||
/// Bock id.
|
||||
|
||||
@@ -24,6 +24,7 @@ use bp_eth_poa::{
|
||||
};
|
||||
use codec::{Decode, Encode};
|
||||
use frame_support::traits::Get;
|
||||
use scale_info::TypeInfo;
|
||||
use sp_runtime::RuntimeDebug;
|
||||
use sp_std::{boxed::Box, cmp::Ord, collections::btree_map::BTreeMap, prelude::*};
|
||||
|
||||
@@ -81,7 +82,7 @@ pub struct PoolConfiguration {
|
||||
}
|
||||
|
||||
/// Block header as it is stored in the runtime storage.
|
||||
#[derive(Clone, Encode, Decode, PartialEq, RuntimeDebug)]
|
||||
#[derive(Clone, Encode, Decode, PartialEq, RuntimeDebug, TypeInfo)]
|
||||
pub struct StoredHeader<Submitter> {
|
||||
/// Submitter of this header. May be `None` if header has been submitted
|
||||
/// using unsigned transaction.
|
||||
@@ -102,7 +103,7 @@ pub struct StoredHeader<Submitter> {
|
||||
}
|
||||
|
||||
/// Validators set as it is stored in the runtime storage.
|
||||
#[derive(Encode, Decode, PartialEq, RuntimeDebug)]
|
||||
#[derive(Encode, Decode, PartialEq, RuntimeDebug, TypeInfo)]
|
||||
#[cfg_attr(test, derive(Clone))]
|
||||
pub struct ValidatorsSet {
|
||||
/// Validators of this set.
|
||||
@@ -114,7 +115,7 @@ pub struct ValidatorsSet {
|
||||
}
|
||||
|
||||
/// Validators set change as it is stored in the runtime storage.
|
||||
#[derive(Encode, Decode, PartialEq, RuntimeDebug)]
|
||||
#[derive(Encode, Decode, PartialEq, RuntimeDebug, TypeInfo)]
|
||||
#[cfg_attr(test, derive(Clone))]
|
||||
pub struct AuraScheduledChange {
|
||||
/// Validators of this set.
|
||||
@@ -158,7 +159,7 @@ pub struct ChangeToEnact {
|
||||
}
|
||||
|
||||
/// Blocks range that we want to prune.
|
||||
#[derive(Encode, Decode, Default, RuntimeDebug, Clone, PartialEq)]
|
||||
#[derive(Encode, Decode, Default, RuntimeDebug, Clone, PartialEq, TypeInfo)]
|
||||
struct PruningRange {
|
||||
/// Number of the oldest unpruned block(s). This might be the block that we do not
|
||||
/// want to prune now (then it is equal to `oldest_block_to_keep`), or block that we
|
||||
@@ -478,7 +479,7 @@ pub mod pallet {
|
||||
|
||||
fn validate_unsigned(_source: TransactionSource, call: &Self::Call) -> TransactionValidity {
|
||||
match *call {
|
||||
Self::Call::import_unsigned_header(ref header, ref receipts) => {
|
||||
Self::Call::import_unsigned_header { ref header, ref receipts } => {
|
||||
let accept_result = verification::accept_aura_header_into_pool(
|
||||
&BridgeStorage::<T, I>::new(),
|
||||
&T::AuraConfiguration::get(),
|
||||
|
||||
Reference in New Issue
Block a user