Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typo #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),

Expand Down
2 changes: 1 addition & 1 deletion primitives/mining/common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion xpallets/assets/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ pub mod pallet {
),
/// New balances of an asset were issued. [asset_id, receiver, amount]
Issued(AssetId, T::AccountId, BalanceOf<T>),
/// 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<T>),
/// Set asset balance of an account by root. [asset_id, who, asset_type, amount]
BalanceSet(AssetId, T::AccountId, AssetType, BalanceOf<T>),
Expand Down
2 changes: 1 addition & 1 deletion xpallets/btc-ledger/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub mod pallet {
/// The overarching event type.
type Event: From<Event<Self>> + IsType<<Self as frame_system::Config>::Event>;

/// A majority of the council can excute some transactions.
/// A majority of the council can execute some transactions.
type CouncilOrigin: EnsureOrigin<Self::Origin>;

/// The btc-ledger's pallet id, used for deriving its sovereign account ID.
Expand Down
2 changes: 1 addition & 1 deletion xpallets/dex/spot/src/execution/order.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ impl<T: Config> Pallet<T> {
});

// 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;
}
Expand Down
2 changes: 1 addition & 1 deletion xpallets/dex/spot/src/execution/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use sp_runtime::traits::{CheckedAdd, CheckedSub};
/// Internal mutables
impl<T: Config> Pallet<T> {
/// 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.
Expand Down
2 changes: 1 addition & 1 deletion xpallets/gateway/bitcoin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Self::Origin>;

/// Extract the account and possible extra from the data.
Expand Down
2 changes: 1 addition & 1 deletion xpallets/gateway/common/src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ impl<AccountId, BlockNumber, TrusteeAddress: BytesLike>
}

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<u64>);
/// Each withdrawal is completed to record the weight of the signer
fn update_trustee_sig_record(chain: Chain, script: &[u8], withdraw_amout: u64);
Expand Down
4 changes: 2 additions & 2 deletions xpallets/mining/asset/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))]
Expand Down
2 changes: 1 addition & 1 deletion xpallets/mining/staking/src/reward/proposal09.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl<T: Config> Pallet<T> {
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<T>) -> BalanceOf<T> {
let asset_mining_info = T::AssetMining::asset_mining_power();

Expand Down
2 changes: 1 addition & 1 deletion xpallets/mining/staking/src/slashing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ impl<T: Config> Pallet<T> {
"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.
Expand Down