mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 05:11:09 +00:00
Update Substrate/Polkadot/Cumulus references (#1364)
cumulus: b468d0c33e
polkadot: 827792ca833396c82c726eda0bc2ad32ecddba73
substrate: 666f39b8a22108f57732215de006518738034ba2
bump serde_json to 1.0.79
sync changes from https://github.com/paritytech/substrate/pull/11022
fixed clippy warnings
Signed-off-by: acatangiu <adrian@parity.io>
This commit is contained in:
committed by
Bastian Köcher
parent
d04b018630
commit
14b27a0209
@@ -12,7 +12,7 @@ license = "GPL-3.0-or-later WITH Classpath-exception-2.0"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
clap = { version = "3.1", features = ["derive"] }
|
clap = { version = "3.1", features = ["derive"] }
|
||||||
jsonrpc-core = "18.0"
|
jsonrpc-core = "18.0"
|
||||||
serde_json = "1.0.59"
|
serde_json = "1.0.79"
|
||||||
|
|
||||||
# Bridge dependencies
|
# Bridge dependencies
|
||||||
|
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ pub fn run() -> sc_cli::Result<()> {
|
|||||||
let runner = cli.create_runner(cmd)?;
|
let runner = cli.create_runner(cmd)?;
|
||||||
runner.async_run(|config| {
|
runner.async_run(|config| {
|
||||||
let PartialComponents { client, task_manager, backend, .. } = new_partial(&config)?;
|
let PartialComponents { client, task_manager, backend, .. } = new_partial(&config)?;
|
||||||
Ok((cmd.run(client, backend), task_manager))
|
Ok((cmd.run(client, backend, None), task_manager))
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
Some(Subcommand::Inspect(cmd)) => {
|
Some(Subcommand::Inspect(cmd)) => {
|
||||||
|
|||||||
@@ -202,9 +202,11 @@ pub fn run() -> Result<()> {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
Some(Subcommand::Revert(cmd)) => {
|
Some(Subcommand::Revert(cmd)) => {
|
||||||
construct_async_run!(|components, cli, cmd, config| Ok(
|
construct_async_run!(|components, cli, cmd, config| Ok(cmd.run(
|
||||||
cmd.run(components.client, components.backend)
|
components.client,
|
||||||
))
|
components.backend,
|
||||||
|
None
|
||||||
|
)))
|
||||||
},
|
},
|
||||||
Some(Subcommand::ExportGenesisState(params)) => {
|
Some(Subcommand::ExportGenesisState(params)) => {
|
||||||
let mut builder = sc_cli::LoggerBuilder::new("");
|
let mut builder = sc_cli::LoggerBuilder::new("");
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ jsonrpc-core = "18.0"
|
|||||||
kvdb = "0.11"
|
kvdb = "0.11"
|
||||||
kvdb-rocksdb = "0.15"
|
kvdb-rocksdb = "0.15"
|
||||||
lru = "0.7"
|
lru = "0.7"
|
||||||
serde_json = "1.0.59"
|
serde_json = "1.0.79"
|
||||||
thiserror = "1.0"
|
thiserror = "1.0"
|
||||||
|
|
||||||
# Bridge dependencies
|
# Bridge dependencies
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ pub fn run() -> sc_cli::Result<()> {
|
|||||||
runner.async_run(|mut config| {
|
runner.async_run(|mut config| {
|
||||||
let (client, backend, _, task_manager) =
|
let (client, backend, _, task_manager) =
|
||||||
polkadot_service::new_chain_ops(&mut config, None).map_err(service_error)?;
|
polkadot_service::new_chain_ops(&mut config, None).map_err(service_error)?;
|
||||||
Ok((cmd.run(client, backend), task_manager))
|
Ok((cmd.run(client, backend, None), task_manager))
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
Some(Subcommand::Inspect(cmd)) => {
|
Some(Subcommand::Inspect(cmd)) => {
|
||||||
|
|||||||
@@ -330,9 +330,9 @@ impl RelayHeadersAndMessages {
|
|||||||
LeftToRightMessageLane,
|
LeftToRightMessageLane,
|
||||||
Left,
|
Left,
|
||||||
>(
|
>(
|
||||||
left_client.clone(),
|
left_client,
|
||||||
TransactionParams {
|
TransactionParams {
|
||||||
signer: left_messages_pallet_owner.clone(),
|
signer: left_messages_pallet_owner,
|
||||||
mortality: left_transactions_mortality,
|
mortality: left_transactions_mortality,
|
||||||
},
|
},
|
||||||
left_to_right_metrics
|
left_to_right_metrics
|
||||||
@@ -366,9 +366,9 @@ impl RelayHeadersAndMessages {
|
|||||||
RightToLeftMessageLane,
|
RightToLeftMessageLane,
|
||||||
Right,
|
Right,
|
||||||
>(
|
>(
|
||||||
right_client.clone(),
|
right_client,
|
||||||
TransactionParams {
|
TransactionParams {
|
||||||
signer: right_messages_pallet_owner.clone(),
|
signer: right_messages_pallet_owner,
|
||||||
mortality: right_transactions_mortality,
|
mortality: right_transactions_mortality,
|
||||||
},
|
},
|
||||||
right_to_left_metrics
|
right_to_left_metrics
|
||||||
|
|||||||
@@ -221,7 +221,7 @@ impl SwapTokens {
|
|||||||
_,
|
_,
|
||||||
>(
|
>(
|
||||||
&source_client,
|
&source_client,
|
||||||
target_to_source_conversion_rate_override.clone(),
|
target_to_source_conversion_rate_override,
|
||||||
ESTIMATE_SOURCE_TO_TARGET_MESSAGE_FEE_METHOD,
|
ESTIMATE_SOURCE_TO_TARGET_MESSAGE_FEE_METHOD,
|
||||||
SOURCE_TO_TARGET_LANE_ID,
|
SOURCE_TO_TARGET_LANE_ID,
|
||||||
bp_message_dispatch::MessagePayload {
|
bp_message_dispatch::MessagePayload {
|
||||||
@@ -384,7 +384,7 @@ impl SwapTokens {
|
|||||||
_,
|
_,
|
||||||
>(
|
>(
|
||||||
&target_client,
|
&target_client,
|
||||||
source_to_target_conversion_rate_override.clone(),
|
source_to_target_conversion_rate_override,
|
||||||
ESTIMATE_TARGET_TO_SOURCE_MESSAGE_FEE_METHOD,
|
ESTIMATE_TARGET_TO_SOURCE_MESSAGE_FEE_METHOD,
|
||||||
TARGET_TO_SOURCE_LANE_ID,
|
TARGET_TO_SOURCE_LANE_ID,
|
||||||
claim_swap_message.clone(),
|
claim_swap_message.clone(),
|
||||||
|
|||||||
@@ -151,6 +151,7 @@ impl<C: Chain> UnsignedTransaction<C> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Set transaction tip.
|
/// Set transaction tip.
|
||||||
|
#[must_use]
|
||||||
pub fn tip(mut self, tip: C::Balance) -> Self {
|
pub fn tip(mut self, tip: C::Balance) -> Self {
|
||||||
self.tip = tip;
|
self.tip = tip;
|
||||||
self
|
self
|
||||||
|
|||||||
@@ -105,6 +105,7 @@ impl MetricsParams {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Do not expose metrics.
|
/// Do not expose metrics.
|
||||||
|
#[must_use]
|
||||||
pub fn disable(mut self) -> Self {
|
pub fn disable(mut self) -> Self {
|
||||||
self.address = None;
|
self.address = None;
|
||||||
self
|
self
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ pub struct LoopMetrics<SC, TC, LM> {
|
|||||||
|
|
||||||
impl<SC, TC, LM> Loop<SC, TC, LM> {
|
impl<SC, TC, LM> Loop<SC, TC, LM> {
|
||||||
/// Customize delay between reconnect attempts.
|
/// Customize delay between reconnect attempts.
|
||||||
|
#[must_use]
|
||||||
pub fn reconnect_delay(mut self, reconnect_delay: Duration) -> Self {
|
pub fn reconnect_delay(mut self, reconnect_delay: Duration) -> Self {
|
||||||
self.reconnect_delay = reconnect_delay;
|
self.reconnect_delay = reconnect_delay;
|
||||||
self
|
self
|
||||||
|
|||||||
Reference in New Issue
Block a user