Fix spelling (#3845)

* Fix spelling

* Add missing entry

* Proper fix for KeyPair
This commit is contained in:
Chevdor
2021-09-25 22:44:39 +02:00
committed by GitHub
parent 7bcf2e693d
commit 35f25c3f54
10 changed files with 16 additions and 12 deletions
@@ -27,7 +27,7 @@ use structopt::StructOpt;
/// since messages sent over the bridge will be able to spend these.
#[derive(StructOpt)]
pub struct DeriveAccount {
/// A bridge instance to initalize.
/// A bridge instance to initialize.
#[structopt(possible_values = &FullBridge::variants(), case_insensitive = true)]
bridge: FullBridge,
/// Source-chain address to derive Target-chain address from.
@@ -40,7 +40,7 @@ pub enum MessagePayload {
/// A `MessagePayload` to encode.
#[derive(StructOpt)]
pub struct EncodeMessage {
/// A bridge instance to initalize.
/// A bridge instance to initialize.
#[structopt(possible_values = &FullBridge::variants(), case_insensitive = true)]
bridge: FullBridge,
#[structopt(flatten)]
@@ -25,7 +25,7 @@ use structopt::{clap::arg_enum, StructOpt};
/// Initialize bridge pallet.
#[derive(StructOpt)]
pub struct InitBridge {
/// A bridge instance to initalize.
/// A bridge instance to initialize.
#[structopt(possible_values = &InitBridgeName::variants(), case_insensitive = true)]
bridge: InitBridgeName,
#[structopt(flatten)]
@@ -72,7 +72,7 @@ pub enum Command {
/// The message is being sent to the source chain, delivered to the target chain and dispatched
/// there.
SendMessage(send_message::SendMessage),
/// Generate SCALE-encoded `Call` for choosen network.
/// Generate SCALE-encoded `Call` for the chosen network.
///
/// The call can be used either as message payload or can be wrapped into a transaction
/// and executed on the chain directly.
@@ -235,7 +235,7 @@ pub trait CliChain: relay_substrate_client::Chain {
/// Bridge Message Payload type.
///
/// TODO [#854] This should be removed in favour of target-specifc types.
/// TODO [#854] This should be removed in favor of target-specifc types.
type MessagePayload;
/// Numeric value of SS58 format.
@@ -354,7 +354,7 @@ where
}
/// Create chain-specific set of configuration objects: connection parameters,
/// signing parameters and bridge initialisation parameters.
/// signing parameters and bridge initialization parameters.
#[macro_export]
macro_rules! declare_chain_options {
($chain:ident, $chain_prefix:ident) => {
@@ -385,7 +385,7 @@ macro_rules! declare_chain_options {
}
impl [<$chain SigningParams>] {
/// Parse signing params into chain-specific KeyPair.
/// Parse signing params into chain-specific `KeyPair`.
pub fn to_keypair<Chain: CliChain>(&self) -> anyhow::Result<Chain::KeyPair> {
use sp_core::crypto::Pair;
@@ -59,7 +59,7 @@ pub trait SubstrateMessageLane: MessageLane {
const INBOUND_LANE_LATEST_RECEIVED_NONCE_METHOD: &'static str;
/// Name of the runtime method that returns latest confirmed (reward-paid) nonce at the target chain.
const INBOUND_LANE_LATEST_CONFIRMED_NONCE_METHOD: &'static str;
/// Numebr of the runtime method that returns state of "unrewarded relayers" set at the target chain.
/// Number of the runtime method that returns state of "unrewarded relayers" set at the target chain.
const INBOUND_LANE_UNREWARDED_RELAYERS_STATE: &'static str;
/// Name of the runtime method that returns id of best finalized source header at target chain.
@@ -248,7 +248,7 @@ async fn background_task<SourceChain, TargetChain, TargetSign>(
}
}
/// Returns `Some()` with inclusive range of headers which must be scanned for manadatory headers
/// Returns `Some()` with inclusive range of headers which must be scanned for mandatory headers
/// and the first of such headers must be submitted to the target node.
async fn mandatory_headers_scan_range<C: Chain>(
best_finalized_source_header_at_source: Option<C::BlockNumber>,