mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 09:51:10 +00:00
WIP: CI: add spellcheck (#3421)
* CI: add spellcheck * revert me * CI: explicit command for spellchecker * spellcheck: edit misspells * CI: run spellcheck on diff * spellcheck: edits * spellcheck: edit misspells * spellcheck: add rules * spellcheck: mv configs * spellcheck: more edits * spellcheck: chore * spellcheck: one more thing * spellcheck: and another one * spellcheck: seems like it doesn't get to an end * spellcheck: new words after rebase * spellcheck: new words appearing out of nowhere * chore * review edits * more review edits * more edits * wonky behavior * wonky behavior 2 * wonky behavior 3 * change git behavior * spellcheck: another bunch of new edits * spellcheck: new words are koming out of nowhere * CI: finding the master * CI: fetching master implicitly * CI: undebug * new errors * a bunch of new edits * and some more * Update node/core/approval-voting/src/approval_db/v1/mod.rs Co-authored-by: Andronik Ordian <write@reusable.software> * Update xcm/xcm-executor/src/assets.rs Co-authored-by: Andronik Ordian <write@reusable.software> * Apply suggestions from code review Co-authored-by: Andronik Ordian <write@reusable.software> * Suggestions from the code review * CI: scan only changed files Co-authored-by: Andronik Ordian <write@reusable.software>
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
//! # Polkadot Staking Miner.
|
||||
//!
|
||||
//! Simple bot capable of monitoring a polkadot (and cousins) chain and submitting solutions to the
|
||||
//! 'pallet-election-provider-multi-phase'. See `--help` for more details.
|
||||
//! `pallet-election-provider-multi-phase`. See `--help` for more details.
|
||||
//!
|
||||
//! # Implementation Notes:
|
||||
//!
|
||||
@@ -239,7 +239,7 @@ enum Command {
|
||||
Monitor(MonitorConfig),
|
||||
/// Just compute a solution now, and don't submit it.
|
||||
DryRun(DryRunConfig),
|
||||
/// Provide a solution that can be submitted to the chian as an emergency response.
|
||||
/// Provide a solution that can be submitted to the chain as an emergency response.
|
||||
EmergencySolution,
|
||||
}
|
||||
|
||||
@@ -269,7 +269,7 @@ struct DryRunConfig {
|
||||
|
||||
#[derive(Debug, Clone, StructOpt)]
|
||||
struct SharedConfig {
|
||||
/// The ws node to connect to.
|
||||
/// The `ws` node to connect to.
|
||||
#[structopt(long, default_value = DEFAULT_URI)]
|
||||
uri: String,
|
||||
|
||||
@@ -283,7 +283,7 @@ struct SharedConfig {
|
||||
|
||||
#[derive(Debug, Clone, StructOpt)]
|
||||
struct Opt {
|
||||
/// The ws node to connect to.
|
||||
/// The `ws` node to connect to.
|
||||
#[structopt(flatten)]
|
||||
shared: SharedConfig,
|
||||
|
||||
|
||||
@@ -44,5 +44,5 @@ pub use pallet_election_provider_multi_phase as EPM;
|
||||
/// The externalities type.
|
||||
pub type Ext = sp_io::TestExternalities;
|
||||
|
||||
/// The key pair type being used. We 'strongly' assume sr25519 for simplicity.
|
||||
/// The key pair type being used. We "strongly" assume sr25519 for simplicity.
|
||||
pub type Pair = sp_core::sr25519::Pair;
|
||||
|
||||
@@ -32,7 +32,7 @@ pub(crate) struct Signer {
|
||||
pub(crate) account: AccountId,
|
||||
/// The full crypto key-pair.
|
||||
pub(crate) pair: Pair,
|
||||
/// The raw uri read from file.
|
||||
/// The raw URI read from file.
|
||||
pub(crate) uri: String,
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ pub(crate) async fn get_account_info<T: frame_system::Config>(
|
||||
.await
|
||||
}
|
||||
|
||||
/// Read the signer account's uri from the given `path`.
|
||||
/// Read the signer account's URI from the given `path`.
|
||||
pub(crate) async fn read_signer_uri<
|
||||
P: AsRef<Path>,
|
||||
T: frame_system::Config<AccountId = AccountId, Index = Index>,
|
||||
|
||||
Reference in New Issue
Block a user