mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 19:51:02 +00:00
fix/ignore cargo deny issues (#1183)
This commit is contained in:
committed by
Bastian Köcher
parent
44a6416ffc
commit
f4a82d4e81
@@ -10,7 +10,7 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
codec = { package = "parity-scale-codec", version = "2.2.0", default-features = false, features = ["derive"] }
|
codec = { package = "parity-scale-codec", version = "2.2.0", default-features = false, features = ["derive"] }
|
||||||
hex-literal = "0.3"
|
hex-literal = "0.3"
|
||||||
libsecp256k1 = { version = "0.3.4", optional = true, default-features = false, features = ["hmac"] }
|
libsecp256k1 = { version = "0.7", optional = true, default-features = false, features = ["hmac"] }
|
||||||
log = { version = "0.4.14", default-features = false }
|
log = { version = "0.4.14", default-features = false }
|
||||||
serde = { version = "1.0", optional = true, features = ["derive"] }
|
serde = { version = "1.0", optional = true, features = ["derive"] }
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@ polkadot-runtime-common = { git = "https://github.com/paritytech/polkadot", bran
|
|||||||
polkadot-runtime-parachains = { git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }
|
polkadot-runtime-parachains = { git = "https://github.com/paritytech/polkadot", branch = "master", default-features = false }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
libsecp256k1 = { version = "0.3.4", features = ["hmac"] }
|
libsecp256k1 = { version = "0.7", features = ["hmac"] }
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ pub(crate) fn prepare_ethereum_transaction(
|
|||||||
// chain id is 0x11
|
// chain id is 0x11
|
||||||
// sender secret is 0x4d5db4107d237df6a3d58ee5f70ae63d73d7658d4026f2eefd2f204c81682cb7
|
// sender secret is 0x4d5db4107d237df6a3d58ee5f70ae63d73d7658d4026f2eefd2f204c81682cb7
|
||||||
let chain_id = 0x11;
|
let chain_id = 0x11;
|
||||||
let signer = secp256k1::SecretKey::parse(&hex!(
|
let signer = libsecp256k1::SecretKey::parse(&hex!(
|
||||||
"4d5db4107d237df6a3d58ee5f70ae63d73d7658d4026f2eefd2f204c81682cb7"
|
"4d5db4107d237df6a3d58ee5f70ae63d73d7658d4026f2eefd2f204c81682cb7"
|
||||||
))
|
))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
codec = { package = "parity-scale-codec", version = "2.2.0", default-features = false }
|
codec = { package = "parity-scale-codec", version = "2.2.0", default-features = false }
|
||||||
libsecp256k1 = { version = "0.3.4", default-features = false, features = ["hmac"], optional = true }
|
libsecp256k1 = { version = "0.7", default-features = false, features = ["hmac"], optional = true }
|
||||||
log = { version = "0.4.14", default-features = false }
|
log = { version = "0.4.14", default-features = false }
|
||||||
serde = { version = "1.0", optional = true }
|
serde = { version = "1.0", optional = true }
|
||||||
|
|
||||||
@@ -26,7 +26,7 @@ sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "master
|
|||||||
sp-std = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
sp-std = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
libsecp256k1 = { version = "0.3.4", features = ["hmac"] }
|
libsecp256k1 = { version = "0.7", features = ["hmac"] }
|
||||||
hex-literal = "0.3"
|
hex-literal = "0.3"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ mod tests {
|
|||||||
validators::ValidatorsSource,
|
validators::ValidatorsSource,
|
||||||
BlocksToPrune, BridgeStorage, Headers, PruningRange,
|
BlocksToPrune, BridgeStorage, Headers, PruningRange,
|
||||||
};
|
};
|
||||||
use secp256k1::SecretKey;
|
use libsecp256k1::SecretKey;
|
||||||
|
|
||||||
const TOTAL_VALIDATORS: usize = 3;
|
const TOTAL_VALIDATORS: usize = 3;
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ use crate::{
|
|||||||
};
|
};
|
||||||
use bp_eth_poa::{Address, AuraHeader, H256, U256};
|
use bp_eth_poa::{Address, AuraHeader, H256, U256};
|
||||||
use frame_support::{parameter_types, traits::GenesisBuild, weights::Weight};
|
use frame_support::{parameter_types, traits::GenesisBuild, weights::Weight};
|
||||||
use secp256k1::SecretKey;
|
use libsecp256k1::SecretKey;
|
||||||
use sp_runtime::{
|
use sp_runtime::{
|
||||||
testing::Header as SubstrateHeader,
|
testing::Header as SubstrateHeader,
|
||||||
traits::{BlakeTwo256, IdentityLookup},
|
traits::{BlakeTwo256, IdentityLookup},
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ use bp_eth_poa::{
|
|||||||
signatures::{secret_to_address, sign, SignHeader},
|
signatures::{secret_to_address, sign, SignHeader},
|
||||||
Address, AuraHeader, Bloom, Receipt, SealedEmptyStep, H256, U256,
|
Address, AuraHeader, Bloom, Receipt, SealedEmptyStep, H256, U256,
|
||||||
};
|
};
|
||||||
use secp256k1::SecretKey;
|
use libsecp256k1::SecretKey;
|
||||||
use sp_std::prelude::*;
|
use sp_std::prelude::*;
|
||||||
|
|
||||||
/// Gas limit valid in test environment.
|
/// Gas limit valid in test environment.
|
||||||
|
|||||||
@@ -401,7 +401,7 @@ mod tests {
|
|||||||
};
|
};
|
||||||
use bp_eth_poa::{compute_merkle_root, rlp_encode, TransactionOutcome, H520, U256};
|
use bp_eth_poa::{compute_merkle_root, rlp_encode, TransactionOutcome, H520, U256};
|
||||||
use hex_literal::hex;
|
use hex_literal::hex;
|
||||||
use secp256k1::SecretKey;
|
use libsecp256k1::SecretKey;
|
||||||
use sp_runtime::transaction_validity::TransactionTag;
|
use sp_runtime::transaction_validity::TransactionTag;
|
||||||
|
|
||||||
const GENESIS_STEP: u64 = 42;
|
const GENESIS_STEP: u64 = 42;
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ fixed-hash = { version = "0.7", default-features = false }
|
|||||||
hash-db = { version = "0.15.2", default-features = false }
|
hash-db = { version = "0.15.2", default-features = false }
|
||||||
impl-rlp = { version = "0.3", default-features = false }
|
impl-rlp = { version = "0.3", default-features = false }
|
||||||
impl-serde = { version = "0.3.1", optional = true }
|
impl-serde = { version = "0.3.1", optional = true }
|
||||||
libsecp256k1 = { version = "0.3.4", default-features = false, features = ["hmac"] }
|
libsecp256k1 = { version = "0.7", default-features = false, features = ["hmac", "static-context"] }
|
||||||
parity-bytes = { version = "0.1", default-features = false }
|
parity-bytes = { version = "0.1", default-features = false }
|
||||||
plain_hasher = { version = "0.2.2", default-features = false }
|
plain_hasher = { version = "0.2.2", default-features = false }
|
||||||
primitive-types = { version = "0.10", default-features = false, features = ["codec", "rlp"] }
|
primitive-types = { version = "0.10", default-features = false, features = ["codec", "rlp"] }
|
||||||
|
|||||||
@@ -20,14 +20,14 @@
|
|||||||
//! Used for testing and benchmarking.
|
//! Used for testing and benchmarking.
|
||||||
|
|
||||||
// reexport to avoid direct secp256k1 deps by other crates
|
// reexport to avoid direct secp256k1 deps by other crates
|
||||||
pub use secp256k1::SecretKey;
|
pub use libsecp256k1::SecretKey;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
public_to_address, rlp_encode, step_validator, Address, AuraHeader, RawTransaction,
|
public_to_address, rlp_encode, step_validator, Address, AuraHeader, RawTransaction,
|
||||||
UnsignedTransaction, H256, H520, U256,
|
UnsignedTransaction, H256, H520, U256,
|
||||||
};
|
};
|
||||||
|
|
||||||
use secp256k1::{Message, PublicKey};
|
use libsecp256k1::{Message, PublicKey};
|
||||||
|
|
||||||
/// Utilities for signing headers.
|
/// Utilities for signing headers.
|
||||||
pub trait SignHeader {
|
pub trait SignHeader {
|
||||||
@@ -81,7 +81,7 @@ impl SignTransaction for UnsignedTransaction {
|
|||||||
/// Return author's signature over given message.
|
/// Return author's signature over given message.
|
||||||
pub fn sign(author: &SecretKey, message: H256) -> H520 {
|
pub fn sign(author: &SecretKey, message: H256) -> H520 {
|
||||||
let (signature, recovery_id) =
|
let (signature, recovery_id) =
|
||||||
secp256k1::sign(&Message::parse(message.as_fixed_bytes()), author);
|
libsecp256k1::sign(&Message::parse(message.as_fixed_bytes()), author);
|
||||||
let mut raw_signature = [0u8; 65];
|
let mut raw_signature = [0u8; 65];
|
||||||
raw_signature[..64].copy_from_slice(&signature.serialize());
|
raw_signature[..64].copy_from_slice(&signature.serialize());
|
||||||
raw_signature[64] = recovery_id.serialize();
|
raw_signature[64] = recovery_id.serialize();
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ ethabi-derive = { git = "https://github.com/svyatonik/ethabi.git", branch = "bum
|
|||||||
futures = "0.3.12"
|
futures = "0.3.12"
|
||||||
hex = "0.4"
|
hex = "0.4"
|
||||||
hex-literal = "0.3"
|
hex-literal = "0.3"
|
||||||
libsecp256k1 = { version = "0.3.4", default-features = false, features = ["hmac"] }
|
libsecp256k1 = { version = "0.7", default-features = false, features = ["hmac"] }
|
||||||
log = "0.4.14"
|
log = "0.4.14"
|
||||||
num-traits = "0.2"
|
num-traits = "0.2"
|
||||||
serde_json = "1.0.64"
|
serde_json = "1.0.64"
|
||||||
|
|||||||
@@ -34,11 +34,11 @@ use ethereum_sync_loop::EthereumSyncParams;
|
|||||||
use headers_relay::sync::TargetTransactionMode;
|
use headers_relay::sync::TargetTransactionMode;
|
||||||
use hex_literal::hex;
|
use hex_literal::hex;
|
||||||
use instances::{BridgeInstance, Kovan, RialtoPoA};
|
use instances::{BridgeInstance, Kovan, RialtoPoA};
|
||||||
|
use libsecp256k1::SecretKey;
|
||||||
use relay_utils::{
|
use relay_utils::{
|
||||||
initialize::initialize_relay,
|
initialize::initialize_relay,
|
||||||
metrics::{MetricsAddress, MetricsParams},
|
metrics::{MetricsAddress, MetricsParams},
|
||||||
};
|
};
|
||||||
use secp256k1::SecretKey;
|
|
||||||
use sp_core::crypto::Pair;
|
use sp_core::crypto::Pair;
|
||||||
use substrate_sync_loop::SubstrateSyncParams;
|
use substrate_sync_loop::SubstrateSyncParams;
|
||||||
|
|
||||||
|
|||||||
@@ -75,5 +75,5 @@ polkadot-runtime-parachains = { git = "https://github.com/paritytech/polkadot",
|
|||||||
hex-literal = "0.3"
|
hex-literal = "0.3"
|
||||||
pallet-bridge-grandpa = { path = "../../modules/grandpa" }
|
pallet-bridge-grandpa = { path = "../../modules/grandpa" }
|
||||||
sp-keyring = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
sp-keyring = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||||
tempdir = "0.3"
|
tempfile = "3.2"
|
||||||
finality-grandpa = { version = "0.14.0" }
|
finality-grandpa = { version = "0.14.0" }
|
||||||
|
|||||||
@@ -573,7 +573,7 @@ mod tests {
|
|||||||
let bob_with_alice_password =
|
let bob_with_alice_password =
|
||||||
sp_core::sr25519::Pair::from_string(BOB, Some(ALICE_PASSWORD)).unwrap();
|
sp_core::sr25519::Pair::from_string(BOB, Some(ALICE_PASSWORD)).unwrap();
|
||||||
|
|
||||||
let temp_dir = tempdir::TempDir::new("reads_suri_from_file").unwrap();
|
let temp_dir = tempfile::tempdir().unwrap();
|
||||||
let mut suri_file_path = temp_dir.path().to_path_buf();
|
let mut suri_file_path = temp_dir.path().to_path_buf();
|
||||||
let mut password_file_path = temp_dir.path().to_path_buf();
|
let mut password_file_path = temp_dir.path().to_path_buf();
|
||||||
suri_file_path.push("suri");
|
suri_file_path.push("suri");
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ headers-relay = { path = "../headers" }
|
|||||||
hex-literal = "0.3"
|
hex-literal = "0.3"
|
||||||
jsonrpsee-proc-macros = "0.3.1"
|
jsonrpsee-proc-macros = "0.3.1"
|
||||||
jsonrpsee-ws-client = "0.3.1"
|
jsonrpsee-ws-client = "0.3.1"
|
||||||
libsecp256k1 = { version = "0.3.4", default-features = false, features = ["hmac"] }
|
libsecp256k1 = { version = "0.7", default-features = false, features = ["hmac"] }
|
||||||
log = "0.4.11"
|
log = "0.4.11"
|
||||||
relay-utils = { path = "../utils" }
|
relay-utils = { path = "../utils" }
|
||||||
tokio = "1.8"
|
tokio = "1.8"
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ use crate::{
|
|||||||
};
|
};
|
||||||
use bp_eth_poa::signatures::{secret_to_address, SignTransaction};
|
use bp_eth_poa::signatures::{secret_to_address, SignTransaction};
|
||||||
use hex_literal::hex;
|
use hex_literal::hex;
|
||||||
use secp256k1::SecretKey;
|
use libsecp256k1::SecretKey;
|
||||||
|
|
||||||
/// Ethereum signing params.
|
/// Ethereum signing params.
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
|
|||||||
Reference in New Issue
Block a user