Skip to content

Commit fb465d5

Browse files
committed
fix typo
1 parent 8b3d403 commit fb465d5

File tree

12 files changed

+29
-29
lines changed

12 files changed

+29
-29
lines changed

Diff for: authority/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
### Overview
44

5-
Authority module to provide features for governance including dispatch method on behalf other accounts and schdule dispatchables.
5+
Authority module to provide features for governance including dispatch method on behalf other accounts and schedule dispatchables.
66

77
- `dispatch_as` can dispatch a dispatchable on behalf of other origin.
8-
- `schedule_dispatch` can schdule a dispatchable to be dispatched at later block.
8+
- `schedule_dispatch` can schedule a dispatchable to be dispatched at later block.
99
- `fast_track_scheduled_dispatch` can fast track a scheduled dispatchable.
1010
- `delay_scheduled_dispatch` can delay a scheduled dispatchable.
1111
- `cancel_scheduled_dispatch` can cancel a scheduled dispatchable.

Diff for: oracle/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
This module exposes capabilities for oracle operators to feed external offchain data.
66
The raw values can be combined to provide an aggregated value.
77

8-
The data is valid only if feeded by an authorized operator. This module implements `frame_support::traits::InitializeMembers` and `frame_support::traits::ChangeMembers`, to provide a way to manage operators membership. Typically it could be leveraged to `pallet_membership` in FRAME.
8+
The data is valid only if fed by an authorized operator. This module implements `frame_support::traits::InitializeMembers` and `frame_support::traits::ChangeMembers`, to provide a way to manage operators membership. Typically it could be leveraged to `pallet_membership` in FRAME.

Diff for: oracle/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//! offchain data. The raw values can be combined to provide an aggregated
1212
//! value.
1313
//!
14-
//! The data is valid only if feeded by an authorized operator.
14+
//! The data is valid only if fed by an authorized operator.
1515
//! `pallet_membership` in FRAME can be used to as source of `T::Members`.
1616
1717
#![cfg_attr(not(feature = "std"), no_std)]
@@ -130,7 +130,7 @@ pub mod module {
130130
pub enum Error<T, I = ()> {
131131
/// Sender does not have permission
132132
NoPermission,
133-
/// Feeder has already feeded at this block
133+
/// Feeder has already fed at this block
134134
AlreadyFeeded,
135135
}
136136

Diff for: payments/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ This pallet allows users to create secure reversible payments that keep funds lo
2929

3030
- `pay` - Create an payment for the given currencyid/amount
3131
- `pay_with_remark` - Create a payment with a remark, can be used to tag payments
32-
- `release` - Release the payment amount to recipent
32+
- `release` - Release the payment amount to recipient
3333
- `cancel` - Allows the recipient to cancel the payment and release the payment amount to creator
3434
- `resolve_release_payment` - Allows assigned judge to release a payment
3535
- `resolve_cancel_payment` - Allows assigned judge to cancel a payment

Diff for: payments/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
//! - `pay` - Create an payment for the given currencyid/amount
3131
//! - `pay_with_remark` - Create a payment with a remark, can be used to tag
3232
//! payments
33-
//! - `release` - Release the payment amount to recipent
33+
//! - `release` - Release the payment amount to recipient
3434
//! - `cancel` - Allows the recipient to cancel the payment and release the
3535
//! payment amount to creator
3636
//! - `resolve_release_payment` - Allows assigned judge to release a payment
@@ -207,13 +207,13 @@ pub mod pallet {
207207
InvalidAction,
208208
/// Payment is in review state and cannot be modified
209209
PaymentNeedsReview,
210-
/// Unexpeted math error
210+
/// Unexpected math error
211211
MathError,
212212
/// Payment request has not been created
213213
RefundNotRequested,
214214
/// Dispute period has not passed
215215
DisputePeriodNotPassed,
216-
/// The automatic cancelation queue cannot accept
216+
/// The automatic cancellation queue cannot accept
217217
RefundQueueFull,
218218
}
219219

Diff for: payments/src/tests.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ fn test_pay_works() {
7070
creator_initial_balance - payment_amount
7171
);
7272
assert_eq!(Tokens::free_balance(CURRENCY_ID, &PAYMENT_RECIPENT), 0);
73-
// the transferred amount should be reserved in the recipent account
73+
// the transferred amount should be reserved in the recipient account
7474
assert_eq!(Tokens::total_balance(CURRENCY_ID, &PAYMENT_RECIPENT), payment_amount);
7575

7676
// the payment should not be overwritten
@@ -133,7 +133,7 @@ fn test_cancel_works() {
133133
);
134134
assert_eq!(Tokens::free_balance(CURRENCY_ID, &PAYMENT_RECIPENT), 0);
135135

136-
// cancel should succeed when caller is the recipent
136+
// cancel should succeed when caller is the recipient
137137
assert_ok!(Payment::cancel(
138138
RuntimeOrigin::signed(PAYMENT_RECIPENT),
139139
PAYMENT_CREATOR
@@ -468,7 +468,7 @@ fn test_pay_with_remark_works() {
468468
creator_initial_balance - payment_amount
469469
);
470470
assert_eq!(Tokens::free_balance(CURRENCY_ID, &PAYMENT_RECIPENT), 0);
471-
// the transferred amount should be reserved in the recipent account
471+
// the transferred amount should be reserved in the recipient account
472472
assert_eq!(Tokens::total_balance(CURRENCY_ID, &PAYMENT_RECIPENT), payment_amount);
473473

474474
// the payment should not be overwritten
@@ -1019,7 +1019,7 @@ fn test_reserve_payment_amount_works() {
10191019
creator_initial_balance - payment_amount
10201020
);
10211021
assert_eq!(Tokens::free_balance(CURRENCY_ID, &PAYMENT_RECIPENT), 0);
1022-
// the transferred amount should be reserved in the recipent account
1022+
// the transferred amount should be reserved in the recipient account
10231023
assert_eq!(Tokens::total_balance(CURRENCY_ID, &PAYMENT_RECIPENT), payment_amount);
10241024

10251025
// the payment should not be overwritten

Diff for: rate-limit/src/lib.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ pub mod module {
4545
/// Limit rules type.
4646
#[derive(PartialEq, Eq, Clone, Encode, Decode, RuntimeDebug, TypeInfo)]
4747
pub enum RateLimitRule {
48-
/// Each period to reset remainer quota to `quota` amount.
49-
/// `can_consume` check return true when the remainer quota gte the
48+
/// Each period to reset remainder quota to `quota` amount.
49+
/// `can_consume` check return true when the remainder quota gte the
5050
/// consume amount.
5151
PerPeriod { period: Period, quota: u128 },
52-
/// Each period to increase `quota_increment` amount to remainer quota
53-
/// and keep remainer quota lte `max_quota`.
54-
/// `can_consume` check return true when the remainer quota gte the
52+
/// Each period to increase `quota_increment` amount to remainder quota
53+
/// and keep remainder quota lte `max_quota`.
54+
/// `can_consume` check return true when the remainder quota gte the
5555
/// consume amount.
5656
TokenBucket {
5757
period: Period,
@@ -67,7 +67,7 @@ pub mod module {
6767
/// The maximum length of KeyFilter inner key.
6868
pub const MAX_FILTER_KEY_LENGTH: u32 = 256;
6969

70-
/// Match rules to fitler key is in bypass whitelist.
70+
/// Match rules to filter key is in bypass whitelist.
7171
#[derive(PartialOrd, Ord, PartialEq, Eq, Clone, Encode, Decode, RuntimeDebug, TypeInfo, MaxEncodedLen)]
7272
pub enum KeyFilter {
7373
/// If the encoded key is equal to the vec, the key is in whitelist.
@@ -442,7 +442,7 @@ pub mod module {
442442

443443
match RateLimitRules::<T>::get(limiter_id, &encoded_key) {
444444
Some(RateLimitRule::PerPeriod { .. }) | Some(RateLimitRule::TokenBucket { .. }) => {
445-
// consume remainer quota in these situation.
445+
// consume remainder quota in these situation.
446446
RateLimitQuota::<T>::mutate(limiter_id, &encoded_key, |(_, remainer_quota)| {
447447
*remainer_quota = (*remainer_quota).saturating_sub(value);
448448
});

Diff for: scripts/run-clippy.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
COMMAND=$1
66

77
ALLOW_CLIPPY_RULES=(
8-
"clippy::identity_op" # this helps the code to be consistant
8+
"clippy::identity_op" # this helps the code to be consistent
99
"clippy::disallowed_names" # TODO: allow them in test only
1010
"clippy::ptr-arg" # TODO: decide if we want to fix those
1111
"clippy::match_single_binding" # TODO: fix those

Diff for: tokens/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ pub mod module {
483483
///
484484
/// - `dest`: The recipient of the transfer.
485485
/// - `currency_id`: currency type.
486-
/// - `amount`: free balance amount to tranfer.
486+
/// - `amount`: free balance amount to transfer.
487487
#[pallet::call_index(0)]
488488
#[pallet::weight(T::WeightInfo::transfer())]
489489
pub fn transfer(
@@ -551,7 +551,7 @@ pub mod module {
551551
///
552552
/// - `dest`: The recipient of the transfer.
553553
/// - `currency_id`: currency type.
554-
/// - `amount`: free balance amount to tranfer.
554+
/// - `amount`: free balance amount to transfer.
555555
#[pallet::call_index(2)]
556556
#[pallet::weight(T::WeightInfo::transfer_keep_alive())]
557557
pub fn transfer_keep_alive(
@@ -574,7 +574,7 @@ pub mod module {
574574
/// - `source`: The sender of the transfer.
575575
/// - `dest`: The recipient of the transfer.
576576
/// - `currency_id`: currency type.
577-
/// - `amount`: free balance amount to tranfer.
577+
/// - `amount`: free balance amount to transfer.
578578
#[pallet::call_index(3)]
579579
#[pallet::weight(T::WeightInfo::force_transfer())]
580580
pub fn force_transfer(

Diff for: tokens/src/tests.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -864,8 +864,8 @@ fn do_withdraw_report_keep_alive_error_when_ed_is_not_zero() {
864864
Error::<Runtime>::KeepAlive
865865
);
866866

867-
// dave is in dust removal whitelist, still can withdraw if remainer is not zero
868-
// but below ED.
867+
// dave is in dust removal whitelist, still can withdraw if remainder is not
868+
// zero but below ED.
869869
assert!(Accounts::<Runtime>::contains_key(DAVE, DOT));
870870
assert_eq!(Tokens::free_balance(DOT, &DAVE), 100);
871871
assert_eq!(Tokens::total_issuance(DOT), 200);

Diff for: traits/src/parameters.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ macro_rules! define_parameters {
282282
};
283283
}
284284

285-
/// Define aggregrated parameters types.
285+
/// Define aggregated parameters types.
286286
///
287287
/// Example:
288288
/// ```

Diff for: xtokens/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ pub mod module {
182182
DistinctReserveForAssetAndFee,
183183
/// The fee is zero.
184184
ZeroFee,
185-
/// The transfering asset amount is zero.
185+
/// The transferring asset amount is zero.
186186
ZeroAmount,
187187
/// The number of assets to be sent is over the maximum.
188188
TooManyAssetsBeingSent,
@@ -495,7 +495,7 @@ pub mod module {
495495
assets.push((location, (*amount).into()).into())
496496
}
497497

498-
// We construct the fee now, since getting it from assets wont work as assets
498+
// We construct the fee now, since getting it from assets won't work as assets
499499
// sorts it
500500
let fee_location: Location = T::CurrencyIdConvert::convert(fee_currency_id.clone())
501501
.ok_or(Error::<T>::NotCrossChainTransferableCurrency)?;

0 commit comments

Comments
 (0)