mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 05:11:02 +00:00
backport changes from polkadot-sdk (#2872)
This commit is contained in:
committed by
Bastian Köcher
parent
4bfd7807e7
commit
8bb0bfa524
@@ -14,12 +14,12 @@ async-trait = "0.1"
|
||||
codec = { package = "parity-scale-codec", version = "3.1.5" }
|
||||
futures = "0.3.30"
|
||||
jsonrpsee = { version = "0.17", features = ["macros", "ws-client"] }
|
||||
log = "0.4.21"
|
||||
log = { workspace = true }
|
||||
num-traits = "0.2"
|
||||
rand = "0.8"
|
||||
scale-info = { version = "2.10.0", features = ["derive"] }
|
||||
tokio = { version = "1.36", features = ["rt-multi-thread"] }
|
||||
thiserror = "1.0.57"
|
||||
thiserror = { workspace = true }
|
||||
|
||||
# Bridge dependencies
|
||||
|
||||
|
||||
@@ -203,17 +203,6 @@ pub trait ChainWithTransactions: Chain {
|
||||
) -> Result<Self::SignedTransaction, crate::Error>
|
||||
where
|
||||
Self: Sized;
|
||||
|
||||
/// Returns true if transaction is signed.
|
||||
fn is_signed(tx: &Self::SignedTransaction) -> bool;
|
||||
|
||||
/// Returns true if transaction is signed by given signer.
|
||||
fn is_signed_by(signer: &Self::AccountKeyPair, tx: &Self::SignedTransaction) -> bool;
|
||||
|
||||
/// Parse signed transaction into its unsigned part.
|
||||
///
|
||||
/// Returns `None` if signed transaction has unsupported format.
|
||||
fn parse_transaction(tx: Self::SignedTransaction) -> Option<UnsignedTransaction<Self>>;
|
||||
}
|
||||
|
||||
/// Sign transaction parameters
|
||||
|
||||
Reference in New Issue
Block a user