diff --git a/cli/src/cli.rs b/cli/src/cli.rs index 8cdbff3c3..58b5302fa 100644 --- a/cli/src/cli.rs +++ b/cli/src/cli.rs @@ -17,7 +17,7 @@ pub enum Subcommand { #[clap(subcommand)] Key(KeySubcommand), - /// The custom benchmark subcommmand benchmarking runtime pallets. + /// The custom benchmark subcommand benchmarking runtime pallets. #[clap(name = "benchmark", about = "Benchmark runtime pallets.")] Benchmark(frame_benchmarking_cli::BenchmarkCmd), diff --git a/primitives/mining/common/src/lib.rs b/primitives/mining/common/src/lib.rs index 877d17732..e0976f3fe 100644 --- a/primitives/mining/common/src/lib.rs +++ b/primitives/mining/common/src/lib.rs @@ -10,7 +10,7 @@ //! In this way, users(stakers) nominate some validators with some balances locked, earning //! the staking reward. //! -//! 2. One goal of ChainX is to embrace more the eixsting cryptocurrencies into one ecosystem, +//! 2. One goal of ChainX is to embrace more the existing cryptocurrencies into one ecosystem, //! therefore **Asset Mining** is introduced for winning more external assets like BTC, ETH, etc. //! For example, Bitcoin users can deposit their BTC into ChainX, then they'll get the X_BTC //! in 1:1 and the mining rights in ChainX system accordingly, earning the new minted PCX diff --git a/xpallets/assets/src/lib.rs b/xpallets/assets/src/lib.rs index 44ef09d0b..bdb38ce11 100644 --- a/xpallets/assets/src/lib.rs +++ b/xpallets/assets/src/lib.rs @@ -170,7 +170,7 @@ pub mod pallet { ), /// New balances of an asset were issued. [asset_id, receiver, amount] Issued(AssetId, T::AccountId, BalanceOf), - /// Some balances of an asset were destoryed. [asset_id, who, amount] + /// Some balances of an asset were destroyed. [asset_id, who, amount] Destroyed(AssetId, T::AccountId, BalanceOf), /// Set asset balance of an account by root. [asset_id, who, asset_type, amount] BalanceSet(AssetId, T::AccountId, AssetType, BalanceOf), diff --git a/xpallets/btc-ledger/src/lib.rs b/xpallets/btc-ledger/src/lib.rs index b873abb3c..dd8edc3b4 100644 --- a/xpallets/btc-ledger/src/lib.rs +++ b/xpallets/btc-ledger/src/lib.rs @@ -61,7 +61,7 @@ pub mod pallet { /// The overarching event type. type Event: From> + IsType<::Event>; - /// A majority of the council can excute some transactions. + /// A majority of the council can execute some transactions. type CouncilOrigin: EnsureOrigin; /// The btc-ledger's pallet id, used for deriving its sovereign account ID. diff --git a/xpallets/dex/spot/src/execution/order.rs b/xpallets/dex/spot/src/execution/order.rs index 8d727a6a5..d1c5f73df 100644 --- a/xpallets/dex/spot/src/execution/order.rs +++ b/xpallets/dex/spot/src/execution/order.rs @@ -139,7 +139,7 @@ impl Pallet { }); // NOTE: Since the handicap is not always related to a real order, - // this guard statement is neccessary! + // this guard statement is necessary! if order.already_filled > Zero::zero() { order.status = OrderStatus::PartialFill; } diff --git a/xpallets/dex/spot/src/execution/state.rs b/xpallets/dex/spot/src/execution/state.rs index 70d4a66cd..b2a8999a0 100644 --- a/xpallets/dex/spot/src/execution/state.rs +++ b/xpallets/dex/spot/src/execution/state.rs @@ -9,7 +9,7 @@ use sp_runtime::traits::{CheckedAdd, CheckedSub}; /// Internal mutables impl Pallet { /// It's worth noting that the handicap is not always related to some real orders, i.e., - /// current lowest_ask(or highest_bid) is suprious. + /// current lowest_ask(or highest_bid) is spurious. /// /// When there is no quotions at a certain price given the trading pair, we should check out /// whether the current handicap is true. If it's not true, adjust a tick accordingly. diff --git a/xpallets/gateway/bitcoin/src/lib.rs b/xpallets/gateway/bitcoin/src/lib.rs index ddef98036..ee718cf2c 100644 --- a/xpallets/gateway/bitcoin/src/lib.rs +++ b/xpallets/gateway/bitcoin/src/lib.rs @@ -104,7 +104,7 @@ pub mod pallet { /// The unix time type. type UnixTime: UnixTime; - /// A majority of the council can excute some transactions. + /// A majority of the council can execute some transactions. type CouncilOrigin: EnsureOrigin; /// Extract the account and possible extra from the data. diff --git a/xpallets/gateway/common/src/traits.rs b/xpallets/gateway/common/src/traits.rs index dcf5f4bd1..f90f00ee4 100644 --- a/xpallets/gateway/common/src/traits.rs +++ b/xpallets/gateway/common/src/traits.rs @@ -107,7 +107,7 @@ impl } pub trait TrusteeInfoUpdate { - /// Update the trustee trasition status when the renewal of the trustee is completed + /// Update the trustee transition status when the renewal of the trustee is completed fn update_transition_status(chain: Chain, status: bool, trans_amount: Option); /// Each withdrawal is completed to record the weight of the signer fn update_trustee_sig_record(chain: Chain, script: &[u8], withdraw_amout: u64); diff --git a/xpallets/mining/asset/src/types.rs b/xpallets/mining/asset/src/types.rs index 1314d9abe..314d155c9 100644 --- a/xpallets/mining/asset/src/types.rs +++ b/xpallets/mining/asset/src/types.rs @@ -43,8 +43,8 @@ impl<'a, T: Config> AssetLedgerWrapper<'a, T> { /// Mining weight properties of asset miners. /// /// Aside from the mining weight information, this struct also contains -/// the `last_claim` field, for it's not neccessary to use another -/// storeage item due to the claim restrictions of asset miners. +/// the `last_claim` field, for it's not necessary to use another +/// storage item due to the claim restrictions of asset miners. #[derive(PartialEq, Eq, Clone, Default, Encode, Decode, RuntimeDebug, TypeInfo)] #[cfg_attr(feature = "std", derive(Serialize, Deserialize))] #[cfg_attr(feature = "std", serde(rename_all = "camelCase"))] diff --git a/xpallets/mining/staking/src/reward/proposal09.rs b/xpallets/mining/staking/src/reward/proposal09.rs index f919da8a3..10221b7da 100644 --- a/xpallets/mining/staking/src/reward/proposal09.rs +++ b/xpallets/mining/staking/src/reward/proposal09.rs @@ -46,7 +46,7 @@ impl Pallet { Self::generic_calculate_by_proportion(total_reward, my_power, total_power) } - /// Distributes the invididual asset mining reward, returns the unpaid asset mining rewards. + /// Distributes the individual asset mining reward, returns the unpaid asset mining rewards. fn distribute_to_mining_assets(total_reward: BalanceOf) -> BalanceOf { let asset_mining_info = T::AssetMining::asset_mining_power(); diff --git a/xpallets/mining/staking/src/slashing.rs b/xpallets/mining/staking/src/slashing.rs index ee2b2df8d..f4ab89820 100644 --- a/xpallets/mining/staking/src/slashing.rs +++ b/xpallets/mining/staking/src/slashing.rs @@ -78,7 +78,7 @@ impl Pallet { "Slash the offender {:?} for {:?} somehow failed: {:?}", offender, penalty, e, ); // we still chill the offender even the slashing failed as currently - // the offender is only the authorties without running a node. + // the offender is only the authorities without running a node. // // TODO: Reconsider this once https://github.com/paritytech/substrate/pull/7127 // is merged.