From 965970d022b1cf8c30120f0e30317558f15bd820 Mon Sep 17 00:00:00 2001 From: Jack Drogon Date: Fri, 27 Dec 2024 21:08:33 +0800 Subject: [PATCH] fix typo Signed-off-by: Jack Drogon --- bin/collator/src/benchmarking.rs | 2 +- .../types/unified-accounts/Cargo.toml | 2 +- pallets/dapp-staking/README.md | 10 +++--- pallets/dapp-staking/src/lib.rs | 2 +- pallets/dapp-staking/src/test/tests.rs | 2 +- pallets/dynamic-evm-base-fee/src/tests.rs | 2 +- pallets/unified-accounts/src/tests.rs | 8 ++--- pallets/xc-asset-config/src/lib.rs | 2 +- precompiles/assets-erc20/ERC20.sol | 6 ++-- precompiles/assets-erc20/src/mock.rs | 2 +- precompiles/dapp-staking/src/test/mock.rs | 2 +- precompiles/xcm/XCM.sol | 10 +++--- precompiles/xcm/src/mock.rs | 2 +- precompiles/xcm/src/tests.rs | 2 +- primitives/src/benchmarks.rs | 4 +-- primitives/src/xcm/tests.rs | 6 ++-- runtime/astar/src/lib.rs | 2 +- runtime/shibuya/src/genesis_config.rs | 2 +- runtime/shibuya/src/lib.rs | 2 +- runtime/shiden/src/lib.rs | 2 +- tests/xcm-simulator/src/mocks/mod.rs | 4 +-- tests/xcm-simulator/src/tests/experimental.rs | 6 ++-- .../src/tests/fungible_assets.rs | 36 +++++++++---------- 23 files changed, 59 insertions(+), 59 deletions(-) diff --git a/bin/collator/src/benchmarking.rs b/bin/collator/src/benchmarking.rs index e3c3891c17..88861d2757 100644 --- a/bin/collator/src/benchmarking.rs +++ b/bin/collator/src/benchmarking.rs @@ -488,7 +488,7 @@ pub fn para_benchmark_inherent_data( } /// Interpret client's native runtime version name (at genesis block). -/// This is valid only for benchmarking, since genesis block is alreways refered to. +/// This is valid only for benchmarking, since genesis block is alreways referred to. macro_rules! with_runtime { { $client:expr, diff --git a/chain-extensions/types/unified-accounts/Cargo.toml b/chain-extensions/types/unified-accounts/Cargo.toml index 340f7195ee..82a8e71dfe 100644 --- a/chain-extensions/types/unified-accounts/Cargo.toml +++ b/chain-extensions/types/unified-accounts/Cargo.toml @@ -12,7 +12,7 @@ num_enum = { workspace = true } parity-scale-codec = { workspace = true } scale-info = { workspace = true } -#substarte +#substrate sp-core = { workspace = true } sp-runtime = { workspace = true } diff --git a/pallets/dapp-staking/README.md b/pallets/dapp-staking/README.md index b78827acde..09db9b6605 100644 --- a/pallets/dapp-staking/README.md +++ b/pallets/dapp-staking/README.md @@ -77,7 +77,7 @@ Projects, or _dApps_, must be registered into protocol to participate. Only a privileged `ManagerOrigin` can perform dApp registration. The pallet itself does not make assumptions who the privileged origin is, and it can differ from runtime to runtime. -Once dApp has been registered, stakers can stake on it immediatelly. +Once dApp has been registered, stakers can stake on it immediately. When contract is registered, it is assigned a unique compact numeric Id - 16 bit unsigned integer. This is important for the inner workings of the pallet, and is not directly exposed to the users. @@ -89,7 +89,7 @@ After a dApp has been registered, it is possible to modify reward beneficiary or #### Unregistration -dApp can be removed from the procotol by unregistering it. +dApp can be removed from the protocol by unregistering it. This is a privileged action that only `ManagerOrigin` can perform. After a dApp has been unregistered, it's no longer eligible to receive rewards. @@ -165,7 +165,7 @@ Stakers can claim rewards for passed eras during which they were staking. Even i Only rewards for passed eras can be claimed. It is possible that a successful reward claim call will claim rewards for multiple eras. This can happen if staker hasn't claimed rewards in some time, and many eras have passed since then, accumulating pending rewards. -To achieve this, the pallet's underyling storage organizes **era reward information** into **spans**. A single span covers multiple eras, e.g. from **1** to **16**. In case user has staked during era 1, and hasn't claimed rewards until era 17, they will be eligible to claim 15 rewards in total (from era 2 to 16). All of this will be done in a single claim reward call. +To achieve this, the pallet's underlying storage organizes **era reward information** into **spans**. A single span covers multiple eras, e.g. from **1** to **16**. In case user has staked during era 1, and hasn't claimed rewards until era 17, they will be eligible to claim 15 rewards in total (from era 2 to 16). All of this will be done in a single claim reward call. In case unclaimed history has built up past one span, multiple reward claim calls will be needed to claim all of the rewards. @@ -225,9 +225,9 @@ In the case a dApp doesn't satisfy the entry threshold for any tier, even though be left out of tiers and won't earn **any** reward. In a special and unlikely case that two or more dApps have the exact same score and satisfy tier entry threshold, but there isn't enough -leftover tier capacity to accomodate them all, this is considered _undefined_ behavior. Some of the dApps will manage to enter the tier, while +leftover tier capacity to accommodate them all, this is considered _undefined_ behavior. Some of the dApps will manage to enter the tier, while others will be left out. There is no strict rule which defines this behavior - instead dApps are encouraged to ensure their tier entry by -having a larger stake than the other dApp(s). Tehnically, at the moment, the dApp with the lower `dApp Id` will have the advantage over a dApp with +having a larger stake than the other dApp(s). Ethnically, at the moment, the dApp with the lower `dApp Id` will have the advantage over a dApp with the larger Id. ### Reward Expiry diff --git a/pallets/dapp-staking/src/lib.rs b/pallets/dapp-staking/src/lib.rs index d96ff175bc..fb518884fb 100644 --- a/pallets/dapp-staking/src/lib.rs +++ b/pallets/dapp-staking/src/lib.rs @@ -2442,7 +2442,7 @@ pub mod pallet { /// ### Invariants of EraRewards /// /// 1. Era number in [`DAppTiers`] must also be stored in one of the span of [`EraRewards`]. - /// 2. Each span lenght entry in [`EraRewards`] should be lower than or equal to the [`T::EraRewardSpanLength`] constant. + /// 2. Each span length entry in [`EraRewards`] should be lower than or equal to the [`T::EraRewardSpanLength`] constant. #[cfg(any(feature = "try-runtime", test))] pub fn try_state_era_rewards() -> Result<(), sp_runtime::TryRuntimeError> { let era_rewards = EraRewards::::iter().collect::>(); diff --git a/pallets/dapp-staking/src/test/tests.rs b/pallets/dapp-staking/src/test/tests.rs index f3014e326f..dfff2267bf 100644 --- a/pallets/dapp-staking/src/test/tests.rs +++ b/pallets/dapp-staking/src/test/tests.rs @@ -973,7 +973,7 @@ fn relock_unlocking_insufficient_lock_amount_fails() { // Otherwise we always have a guarantee that the latest unlocking chunk at least covers the // minimum staking amount. // To test this, we will do a "dirty trick", and swap the two unlocking chunks that were just created. - // This shoudl ensure that the latest unlocking chunk is below the minimum staking amount. + // This should ensure that the latest unlocking chunk is below the minimum staking amount. Ledger::::mutate(&account, |ledger| { ledger.unlocking = ledger .unlocking diff --git a/pallets/dynamic-evm-base-fee/src/tests.rs b/pallets/dynamic-evm-base-fee/src/tests.rs index bd8e2bc7f6..245340dc16 100644 --- a/pallets/dynamic-evm-base-fee/src/tests.rs +++ b/pallets/dynamic-evm-base-fee/src/tests.rs @@ -245,7 +245,7 @@ fn bfpg_matches_expected_value_for_so_called_average_transaction() { BaseFeePerGas::::set(init_bfpg); let init_adj_factor = ::AdjustmentFactor::get(); - // Slighly increase the adjustment factor, and calculate the new base fee per gas + // Slightly increase the adjustment factor, and calculate the new base fee per gas // // To keep it closer to reality, let's assume we're using the proposed variability factor of 0.000_015. // Let's also assume that block fullness difference is 0.01 (1%). diff --git a/pallets/unified-accounts/src/tests.rs b/pallets/unified-accounts/src/tests.rs index 42ee3bfe27..634b2c9ecc 100644 --- a/pallets/unified-accounts/src/tests.rs +++ b/pallets/unified-accounts/src/tests.rs @@ -124,7 +124,7 @@ fn on_killed_account_hook() { // create the mappings connect_accounts(&ALICE, &alice_secret()); - // kill alice by transfering everything to bob + // kill alice by transferring everything to bob Balances::set_balance(&ALICE, 0); // check killed account events @@ -162,7 +162,7 @@ fn account_claim_should_work() { signature )); - // check if all of balances is transfered to new account (ALICE) from + // check if all of balances is transferred to new account (ALICE) from // old account (alice_eth_old_account) assert!(System::events().iter().any(|r| matches!( &r.event, @@ -242,7 +242,7 @@ fn account_default_claim_should_not_work_if_collision() { let bob_default_h160 = >::to_default_h160(&BOB); // create mapping of alice native with bob's default address - // in real world possibilty of this happening is minuscule + // in real world possibility of this happening is minuscule EvmToNative::::insert(&bob_default_h160, &ALICE); NativeToEvm::::insert(&ALICE, &bob_default_h160); @@ -362,7 +362,7 @@ fn charging_storage_fee_should_not_reap_account() { ); // - // With sufficent funds, claim should succeed + // With sufficient funds, claim should succeed // assert_ok!(UnifiedAccounts::claim_evm_address( RuntimeOrigin::signed(ALICE), diff --git a/pallets/xc-asset-config/src/lib.rs b/pallets/xc-asset-config/src/lib.rs index 5854e71ad5..f45c48f4cf 100644 --- a/pallets/xc-asset-config/src/lib.rs +++ b/pallets/xc-asset-config/src/lib.rs @@ -156,7 +156,7 @@ pub mod pallet { #[pallet::event] #[pallet::generate_deposit(pub(crate) fn deposit_event)] pub enum Event { - /// Registed mapping between asset type and asset Id. + /// Registered mapping between asset type and asset Id. AssetRegistered { asset_location: VersionedLocation, asset_id: T::AssetId, diff --git a/precompiles/assets-erc20/ERC20.sol b/precompiles/assets-erc20/ERC20.sol index 32ca243f21..4b698f89ff 100644 --- a/precompiles/assets-erc20/ERC20.sol +++ b/precompiles/assets-erc20/ERC20.sol @@ -84,11 +84,11 @@ external returns (bool); /** - * @dev Event emited when a transfer has been performed. + * @dev Event emitted when a transfer has been performed. * Selector: ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef * @param from address The address sending the tokens * @param to address The address receiving the tokens. - * @param value uint256 The amount of tokens transfered. + * @param value uint256 The amount of tokens transferred. */ event Transfer( address indexed from, @@ -97,7 +97,7 @@ ); /** - * @dev Event emited when an approval has been registered. + * @dev Event emitted when an approval has been registered. * Selector: 8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925 * @param owner address Owner of the tokens. * @param spender address Allowed spender. diff --git a/precompiles/assets-erc20/src/mock.rs b/precompiles/assets-erc20/src/mock.rs index cbc54f1292..75f653524b 100644 --- a/precompiles/assets-erc20/src/mock.rs +++ b/precompiles/assets-erc20/src/mock.rs @@ -188,7 +188,7 @@ impl pallet_evm::Config for Runtime { } // These parameters dont matter much as this will only be called by root with the forced arguments -// No deposit is substracted with those methods +// No deposit is subtracted with those methods parameter_types! { pub const AssetDeposit: Balance = 0; pub const AssetAccountDeposit: Balance = 0; diff --git a/precompiles/dapp-staking/src/test/mock.rs b/precompiles/dapp-staking/src/test/mock.rs index 04db72aa52..7e75427a07 100644 --- a/precompiles/dapp-staking/src/test/mock.rs +++ b/precompiles/dapp-staking/src/test/mock.rs @@ -236,7 +236,7 @@ impl CycleConfiguration for DummyCycleConfiguration { } } -// Just to satsify the trait bound +// Just to satisfy the trait bound #[cfg(feature = "runtime-benchmarks")] pub struct BenchmarkHelper(sp_std::marker::PhantomData<(SC, ACC)>); #[cfg(feature = "runtime-benchmarks")] diff --git a/precompiles/xcm/XCM.sol b/precompiles/xcm/XCM.sol index 408e1e07ef..843434a94b 100644 --- a/precompiles/xcm/XCM.sol +++ b/precompiles/xcm/XCM.sol @@ -16,7 +16,7 @@ interface XCM { * * How method check that assets list is valid: * - all assets resolved to multi-location (on runtime level) - * - all assets has corresponded amount (lenght of assets list matched to amount list) + * - all assets has corresponded amount (length of assets list matched to amount list) */ function assets_withdraw( address[] calldata asset_id, @@ -38,7 +38,7 @@ interface XCM { * * How method check that assets list is valid: * - all assets resolved to multi-location (on runtime level) - * - all assets has corresponded amount (lenght of assets list matched to amount list) + * - all assets has corresponded amount (length of assets list matched to amount list) */ function assets_withdraw( address[] calldata asset_id, @@ -52,7 +52,7 @@ interface XCM { /** * @param parachain_id - destination parachain Id (ignored if is_relay is true) * @param is_relay - if true, destination is relay_chain, if false it is parachain (see previous argument) - * @param payment_asset_id - ETH address of the local asset derivate used to pay for execution in the destination chain + * @param payment_asset_id - ETH address of the local asset derivative used to pay for execution in the destination chain * @param payment_amount - amount of payment asset to use for execution payment - should cover cost of XCM instructions + Transact call weight. * @param call - encoded call data (must be decodable by remote chain) * @param transact_weight - max weight that the encoded call is allowed to consume in the destination chain @@ -78,7 +78,7 @@ interface XCM { * * How method check that assets list is valid: * - all assets resolved to multi-location (on runtime level) - * - all assets has corresponded amount (lenght of assets list matched to amount list) + * - all assets has corresponded amount (length of assets list matched to amount list) */ function assets_reserve_transfer( address[] calldata asset_id, @@ -100,7 +100,7 @@ interface XCM { * * How method check that assets list is valid: * - all assets resolved to multi-location (on runtime level) - * - all assets has corresponded amount (lenght of assets list matched to amount list) + * - all assets has corresponded amount (length of assets list matched to amount list) */ function assets_reserve_transfer( address[] calldata asset_id, diff --git a/precompiles/xcm/src/mock.rs b/precompiles/xcm/src/mock.rs index 38f4a8b1b5..33220a9930 100644 --- a/precompiles/xcm/src/mock.rs +++ b/precompiles/xcm/src/mock.rs @@ -307,7 +307,7 @@ impl pallet_balances::Config for Runtime { } // These parameters dont matter much as this will only be called by root with the forced arguments -// No deposit is substracted with those methods +// No deposit is subtracted with those methods parameter_types! { pub const AssetDeposit: Balance = 0; pub const AssetAccountDeposit: Balance = 0; diff --git a/precompiles/xcm/src/tests.rs b/precompiles/xcm/src/tests.rs index e224e8ef13..996272783c 100644 --- a/precompiles/xcm/src/tests.rs +++ b/precompiles/xcm/src/tests.rs @@ -817,7 +817,7 @@ mod xcm_new_interface_test { }]), ); let weight = WeightV2::from(3_000_000_000u64, 1024); - // we only allow upto 2 currencies to be transfered + // we only allow upto 2 currencies to be transferred let currencies = vec![ ( Address::from(Runtime::asset_id_to_address(2u128)), diff --git a/primitives/src/benchmarks.rs b/primitives/src/benchmarks.rs index 9209c4d970..8059a52f71 100644 --- a/primitives/src/benchmarks.rs +++ b/primitives/src/benchmarks.rs @@ -72,10 +72,10 @@ where assert_ok!(pallet_assets::Pallet::::force_create( RawOrigin::Root.into(), (i as u128).into(), - // min balance, no significane in holding + // min balance, no significance in holding Address::Id([0u8; 32].into()).into(), true, - // min balance, no significane in holding + // min balance, no significance in holding 1u128.into() )); diff --git a/primitives/src/xcm/tests.rs b/primitives/src/xcm/tests.rs index 480c98f8dd..1741a93aee 100644 --- a/primitives/src/xcm/tests.rs +++ b/primitives/src/xcm/tests.rs @@ -133,7 +133,7 @@ fn fixed_rate_of_foreign_asset_buy_is_ok() { }; let weight: Weight = Weight::from_parts(1_000_000_000, 0); let ctx = XcmContext { - // arbitary ML + // arbitrary ML origin: Some(Location::here()), message_id: XcmHash::default(), topic: None, @@ -255,7 +255,7 @@ fn fixed_rate_of_foreign_asset_buy_execution_fails() { }; let weight: Weight = Weight::from_parts(3_000_000_000, 0); let ctx = XcmContext { - // arbitary ML + // arbitrary ML origin: Some(Location::here()), message_id: XcmHash::default(), topic: None, @@ -298,7 +298,7 @@ fn fixed_rate_of_foreign_asset_refund_is_ok() { }; let weight: Weight = Weight::from_parts(1_000_000_000, 0); let ctx = XcmContext { - // arbitary ML + // arbitrary ML origin: Some(Location::here()), message_id: XcmHash::default(), topic: None, diff --git a/runtime/astar/src/lib.rs b/runtime/astar/src/lib.rs index 61b6f7f780..7b476ce741 100644 --- a/runtime/astar/src/lib.rs +++ b/runtime/astar/src/lib.rs @@ -208,7 +208,7 @@ impl_opaque_keys! { } } -/// We assume that ~10% of the block weight is consumed by `on_initalize` handlers. +/// We assume that ~10% of the block weight is consumed by `on_initialize` handlers. /// This is used to limit the maximal weight of a single extrinsic. const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(10); /// We allow `Normal` extrinsics to fill up the block up to 75%, the rest can be used diff --git a/runtime/shibuya/src/genesis_config.rs b/runtime/shibuya/src/genesis_config.rs index 1480ed8de3..b3ed6016ec 100644 --- a/runtime/shibuya/src/genesis_config.rs +++ b/runtime/shibuya/src/genesis_config.rs @@ -135,7 +135,7 @@ pub fn default_config(para_id: u32) -> serde_json::Value { Permill::from_percent(30), Permill::from_percent(40), ], - // percentages below are calulated based on a total issuance at the time when dApp staking v3 was launched (147M) + // percentages below are calculated based on a total issuance at the time when dApp staking v3 was launched (147M) tier_thresholds: vec![ TierThreshold::DynamicPercentage { percentage: Perbill::from_parts(20_000), // 0.0020% diff --git a/runtime/shibuya/src/lib.rs b/runtime/shibuya/src/lib.rs index bf839ea052..01ffd30403 100644 --- a/runtime/shibuya/src/lib.rs +++ b/runtime/shibuya/src/lib.rs @@ -230,7 +230,7 @@ impl_opaque_keys! { } } -/// We assume that ~10% of the block weight is consumed by `on_initalize` handlers. +/// We assume that ~10% of the block weight is consumed by `on_initialize` handlers. /// This is used to limit the maximal weight of a single extrinsic. const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(10); /// We allow `Normal` extrinsics to fill up the block up to 75%, the rest can be used diff --git a/runtime/shiden/src/lib.rs b/runtime/shiden/src/lib.rs index 80a6cf3ffe..8f3f2525cb 100644 --- a/runtime/shiden/src/lib.rs +++ b/runtime/shiden/src/lib.rs @@ -199,7 +199,7 @@ impl_opaque_keys! { } } -/// We assume that ~10% of the block weight is consumed by `on_initalize` handlers. +/// We assume that ~10% of the block weight is consumed by `on_initialize` handlers. /// This is used to limit the maximal weight of a single extrinsic. const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(10); /// We allow `Normal` extrinsics to fill up the block up to 75%, the rest can be used diff --git a/tests/xcm-simulator/src/mocks/mod.rs b/tests/xcm-simulator/src/mocks/mod.rs index 16399b7bac..a1a57c8eb0 100644 --- a/tests/xcm-simulator/src/mocks/mod.rs +++ b/tests/xcm-simulator/src/mocks/mod.rs @@ -195,7 +195,7 @@ pub fn advance_parachain_block_to(block_number: u64) { /// Register and configure the asset for use in XCM /// It first create the asset in `pallet_assets` and then register the asset multilocation /// mapping in `pallet_xc_asset_config`, and lastly set the asset per second for calculating -/// XCM execution cost (only applicable if `is_sufficent` is true) +/// XCM execution cost (only applicable if `is_sufficient` is true) pub fn register_and_setup_xcm_asset( origin: Runtime::RuntimeOrigin, // AssetId for the new asset @@ -205,7 +205,7 @@ pub fn register_and_setup_xcm_asset( // Asset controller asset_controller: ::Source, // make asset payable, default true - is_sufficent: Option, + is_sufficient: Option, // minimum balance for account to exist (ED), default, 0 min_balance: Option, // Asset unit per second for calculating execution cost for XCM, default 1_000_000_000_000 diff --git a/tests/xcm-simulator/src/tests/experimental.rs b/tests/xcm-simulator/src/tests/experimental.rs index 9eb89f9449..5fe44d1097 100644 --- a/tests/xcm-simulator/src/tests/experimental.rs +++ b/tests/xcm-simulator/src/tests/experimental.rs @@ -43,7 +43,7 @@ fn basic_xcmp_transact_outcome_query_response() { }, ); - // priveleged root call + // privileged root call let root_call = parachain::RuntimeCall::System(frame_system::Call::::set_storage { items: vec![(vec![0], vec![1])], @@ -99,7 +99,7 @@ fn basic_xcmp_transact_outcome_query_response() { System::reset_events(); }); - // check the outcome we recieved from ParaB + // check the outcome we received from ParaB ParaA::execute_with(move || { let xcms = parachain::MsgQueue::received_xcmp(); // sanity check @@ -146,7 +146,7 @@ fn basic_xcmp_transact_outcome_query_response() { ))); }); - // check the outcome we recieved from ParaB + // check the outcome we received from ParaB ParaA::execute_with(|| { let xcms = parachain::MsgQueue::received_xcmp(); // sanity check diff --git a/tests/xcm-simulator/src/tests/fungible_assets.rs b/tests/xcm-simulator/src/tests/fungible_assets.rs index 0ab7bc04cd..fd86dd7b9f 100644 --- a/tests/xcm-simulator/src/tests/fungible_assets.rs +++ b/tests/xcm-simulator/src/tests/fungible_assets.rs @@ -28,7 +28,7 @@ fn para_to_para_reserve_transfer_and_back_via_xtokens() { let sibling_asset_id = 123 as u128; let para_a_multiloc = (Parent, Parachain(1)); - // On parachain B create an asset which representes a derivative of parachain A native asset. + // On parachain B create an asset which represents a derivative of parachain A native asset. // This asset is allowed as XCM execution fee payment asset. ParaB::execute_with(|| { assert_ok!(register_and_setup_xcm_asset::( @@ -74,7 +74,7 @@ fn para_to_para_reserve_transfer_and_back_via_xtokens() { ); }); - // Parachain B should receive parachain A native assets and should mint their local derivate. + // Parachain B should receive parachain A native assets and should mint their local derivative. // Portion of those assets should be taken as the XCM execution fee. let four_instructions_execution_cost = (parachain::UnitWeightCost::get() * 4).ref_time() as u128; @@ -110,7 +110,7 @@ fn para_to_para_reserve_transfer_and_back_via_xtokens() { }); ParaA::execute_with(|| { - // ParaB soveregin account account should have only the execution cost + // ParaB sovereign account account should have only the execution cost assert_eq!( parachain::Balances::free_balance(&sibling_para_account_id(2)), INITIAL_BALANCE + four_instructions_execution_cost @@ -137,7 +137,7 @@ fn para_to_para_reserve_transfer_and_back() { id: ALICE.into(), }; - // On parachain B create an asset which representes a derivative of parachain A native asset. + // On parachain B create an asset which represents a derivative of parachain A native asset. // This asset is allowed as XCM execution fee payment asset. ParaB::execute_with(|| { assert_ok!(register_and_setup_xcm_asset::( @@ -172,7 +172,7 @@ fn para_to_para_reserve_transfer_and_back() { ); }); - // Parachain B should receive parachain A native assets and should mint their local derivate. + // Parachain B should receive parachain A native assets and should mint their local derivative. // Portion of those assets should be taken as the XCM execution fee. let four_instructions_execution_cost = (parachain::UnitWeightCost::get() * 4).ref_time() as u128; @@ -197,7 +197,7 @@ fn para_to_para_reserve_transfer_and_back() { }); ParaA::execute_with(|| { - // ParaB soveregin account account should have only the execution cost + // ParaB sovereign account account should have only the execution cost assert_eq!( parachain::Balances::free_balance(&sibling_para_account_id(2)), INITIAL_BALANCE + four_instructions_execution_cost @@ -423,7 +423,7 @@ fn receive_relay_asset_from_relay_and_send_them_back_via_xtokens() { id: ALICE.into(), }; - // On parachain A create an asset which representes a derivative of relay native asset. + // On parachain A create an asset which represents a derivative of relay native asset. // This asset is allowed as XCM execution fee payment asset. ParaA::execute_with(|| { assert_ok!(register_and_setup_xcm_asset::( @@ -460,7 +460,7 @@ fn receive_relay_asset_from_relay_and_send_them_back_via_xtokens() { ); }); - // Parachain A should receive relay native assets and should mint their local derivate. + // Parachain A should receive relay native assets and should mint their local derivative. // Portion of those assets should be taken as the XCM execution fee. let four_instructions_execution_cost = (parachain::UnitWeightCost::get() * 4).ref_time() as u128; @@ -497,7 +497,7 @@ fn receive_relay_asset_from_relay_and_send_them_back_via_xtokens() { )); }); - // The balances in ParaA alice should have been substracted + // The balances in ParaA alice should have been subtracted ParaA::execute_with(|| { assert_eq!(parachain::Assets::balance(relay_asset_id, ALICE), 0); }); @@ -522,7 +522,7 @@ fn receive_relay_asset_from_relay_and_send_them_back() { id: ALICE.into(), }; - // On parachain A create an asset which representes a derivative of relay native asset. + // On parachain A create an asset which represents a derivative of relay native asset. // This asset is allowed as XCM execution fee payment asset. ParaA::execute_with(|| { assert_ok!(register_and_setup_xcm_asset::( @@ -559,7 +559,7 @@ fn receive_relay_asset_from_relay_and_send_them_back() { ); }); - // Parachain A should receive relay native assets and should mint their local derivate. + // Parachain A should receive relay native assets and should mint their local derivative. // Portion of those assets should be taken as the XCM execution fee. let four_instructions_execution_cost = (parachain::UnitWeightCost::get() * 4).ref_time() as u128; @@ -592,7 +592,7 @@ fn receive_relay_asset_from_relay_and_send_them_back() { )); }); - // The balances in ParaA alice should have been substracted + // The balances in ParaA alice should have been subtracted ParaA::execute_with(|| { assert_eq!(parachain::Assets::balance(relay_asset_id, ALICE), 0); }); @@ -616,7 +616,7 @@ fn para_a_send_relay_asset_to_para_b() { id: ALICE.into(), }; - // On parachain A create an asset which representes a derivative of relay native asset. + // On parachain A create an asset which represents a derivative of relay native asset. // This asset is allowed as XCM execution fee payment asset. // Register relay asset in ParaA ParaA::execute_with(|| { @@ -678,7 +678,7 @@ fn para_a_send_relay_asset_to_para_b() { )); }); - // Para A balances should have been substracted + // Para A balances should have been subtracted ParaA::execute_with(|| { assert_eq!(parachain::Assets::balance(relay_asset_id, ALICE), 0); }); @@ -706,7 +706,7 @@ fn send_relay_asset_to_para_b_with_extra_native() { let para_a_native: Location = (Parent, Parachain(1)).into(); let para_a_native_on_para_b = 456; - // On parachain A create an asset which representes a derivative of relay native asset. + // On parachain A create an asset which represents a derivative of relay native asset. // This asset is allowed as XCM execution fee payment asset. // Register relay asset in ParaA ParaA::execute_with(|| { @@ -786,7 +786,7 @@ fn send_relay_asset_to_para_b_with_extra_native() { )); }); - // Para A balances should have been substracted + // Para A balances should have been subtracted ParaA::execute_with(|| { assert_eq!(parachain::Assets::balance(relay_asset_id, ALICE), 0); assert_eq!( @@ -816,7 +816,7 @@ fn receive_asset_with_no_sufficients_not_possible_if_non_existent_account() { let source_location = (Parent,); let fresh_account = [2u8; 32]; - // On parachain A create an asset which representes a derivative of relay native asset. + // On parachain A create an asset which represents a derivative of relay native asset. ParaA::execute_with(|| { assert_ok!(register_and_setup_xcm_asset::( parachain::RuntimeOrigin::root(), @@ -902,7 +902,7 @@ fn receive_assets_with_sufficients_true_allows_non_funded_account_to_receive_ass let source_location = (Parent,); let fresh_account = [2u8; 32]; - // On parachain A create an asset which representes a derivative of relay native asset. + // On parachain A create an asset which represents a derivative of relay native asset. ParaA::execute_with(|| { assert_ok!(register_and_setup_xcm_asset::( parachain::RuntimeOrigin::root(),