mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 06:21:11 +00:00
update most of the dependencies (#1946)
* update tiny-keccak to 0.2 * update deps except bitvec and shared_memory * fix some warning after futures upgrade * remove useless package rename caused by bug in cargo-upgrade * revert parity-util-mem * * remove unused import * cargo update * remove all renames on parity-scale-codec * remove the leftovers * remove unused dep
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
//! These core Polkadot types are used by the relay chain and the Parachains.
|
||||
|
||||
use sp_runtime::{generic, MultiSignature, traits::{Verify, BlakeTwo256, IdentifyAccount}};
|
||||
use parity_scale_codec::{Encode, Decode};
|
||||
|
||||
/// The block number type used by Polkadot.
|
||||
/// 32-bits will allow for 136 years of blocks assuming 1 block per second.
|
||||
@@ -55,7 +56,7 @@ pub type Hash = sp_core::H256;
|
||||
/// This type is produced by [`CandidateReceipt::hash`].
|
||||
///
|
||||
/// This type makes it easy to enforce that a hash is a candidate hash on the type level.
|
||||
#[derive(Clone, Copy, codec::Encode, codec::Decode, Hash, Eq, PartialEq, Debug, Default)]
|
||||
#[derive(Clone, Copy, Encode, Decode, Hash, Eq, PartialEq, Debug, Default)]
|
||||
pub struct CandidateHash(pub Hash);
|
||||
|
||||
/// Index of a transaction in the relay chain. 32-bit should be plenty.
|
||||
@@ -94,7 +95,7 @@ pub type DownwardMessage = sp_std::vec::Vec<u8>;
|
||||
|
||||
/// A wrapped version of `DownwardMessage`. The difference is that it has attached the block number when
|
||||
/// the message was sent.
|
||||
#[derive(codec::Encode, codec::Decode, Clone, sp_runtime::RuntimeDebug, PartialEq)]
|
||||
#[derive(Encode, Decode, Clone, sp_runtime::RuntimeDebug, PartialEq)]
|
||||
pub struct InboundDownwardMessage<BlockNumber = crate::BlockNumber> {
|
||||
/// The block number at which this messages was put into the downward message queue.
|
||||
pub sent_at: BlockNumber,
|
||||
@@ -103,7 +104,7 @@ pub struct InboundDownwardMessage<BlockNumber = crate::BlockNumber> {
|
||||
}
|
||||
|
||||
/// An HRMP message seen from the perspective of a recipient.
|
||||
#[derive(codec::Encode, codec::Decode, Clone, sp_runtime::RuntimeDebug, PartialEq)]
|
||||
#[derive(Encode, Decode, Clone, sp_runtime::RuntimeDebug, PartialEq)]
|
||||
pub struct InboundHrmpMessage<BlockNumber = crate::BlockNumber> {
|
||||
/// The block number at which this message was sent.
|
||||
/// Specifically, it is the block number at which the candidate that sends this message was
|
||||
@@ -114,7 +115,7 @@ pub struct InboundHrmpMessage<BlockNumber = crate::BlockNumber> {
|
||||
}
|
||||
|
||||
/// An HRMP message seen from the perspective of a sender.
|
||||
#[derive(codec::Encode, codec::Decode, Clone, sp_runtime::RuntimeDebug, PartialEq, Eq, Hash)]
|
||||
#[derive(Encode, Decode, Clone, sp_runtime::RuntimeDebug, PartialEq, Eq, Hash)]
|
||||
pub struct OutboundHrmpMessage<Id> {
|
||||
/// The para that will get this message in its downward message queue.
|
||||
pub recipient: Id,
|
||||
|
||||
Reference in New Issue
Block a user