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: several typos in the documentation #1269

Open
wants to merge 10 commits into
base: manta
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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ This is the mono-repo for Manta/Calamari nodes.
```bash
cargo run -- --chain=calamari-localdev --alice --tmp
```
> Tip: The chain only produces blocks when you submit extrinsics
> Tip: The chain only produces blocks when you submit extrinsic

## Semantic Versioning
Manta/Calamari's version number:
Expand Down
2 changes: 1 addition & 1 deletion runtime/calamari/src/diff_tx_fees.rs
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ fn calculate_all_current_extrinsic_tx_fee() -> (
}

// orml_xtokens
// cannot run this part out side of mock runtime.
// cannot run this part outside of mock runtime.
t.execute_with(|| {
assert_eq!(
crate::RuntimeCall::get_call_names("XTokens").len(),
Expand Down
2 changes: 1 addition & 1 deletion runtime/calamari/src/fee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ mod multiplier_tests {
(target_daily_congestion_cost_usd as f32 / kma_price * KMA as f32) as u128;

// assume the multiplier is initially set to its minimum and that each block
// will be full with a single user extrinsic, which will minimize then length and base fees
// will be full with a single user extrinsic, which will minimize the length and base fees
let mut multiplier = MinimumMultiplier::get();
let block_weight = BlockWeights::get()
.get(DispatchClass::Normal)
Expand Down
4 changes: 2 additions & 2 deletions runtime/calamari/src/migrations/asset_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ where
StorageVersion::new(INITIAL_PALLET_ASSETS_MANAGER_VERSION + 1)
.put::<pallet_asset_manager::Pallet<T>>();

log::info!(target: "asset-manager", "✅ Storage migration for AssetManager has been executed successfully and storage version has been update to: {:?}.", INITIAL_PALLET_ASSETS_MANAGER_VERSION + 1);
log::info!(target: "asset-manager", "✅ Storage migration for AssetManager has been executed successfully and storage version has been updated to: {:?}.", INITIAL_PALLET_ASSETS_MANAGER_VERSION + 1);

log::info!(target: "assets", "Starting migration for pallet-assets...");

Expand Down Expand Up @@ -362,7 +362,7 @@ where

StorageVersion::new(INITIAL_PALLET_ASSETS_VERSION + 1).put::<pallet_assets::Pallet<T>>();

log::info!(target: "assets", "✅ Storage migration for Assets has been executed successfully and storage version has been update to: {:?}.", INITIAL_PALLET_ASSETS_VERSION + 1);
log::info!(target: "assets", "✅ Storage migration for Assets has been executed successfully and storage version has been updated to: {:?}.", INITIAL_PALLET_ASSETS_VERSION + 1);

T::DbWeight::get()
.reads(num_reads)
Expand Down
6 changes: 3 additions & 3 deletions runtime/calamari/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ pub type XcmOriginToCallOrigin = (
// using `LocationToAccountId` and then turn that into the usual `Signed` origin. Useful for
// foreign chains who want to have a local sovereign account on this chain which they control.
SovereignSignedViaLocation<LocationToAccountId, RuntimeOrigin>,
// Native converter for Relay-chain (Parent) location; will converts to a `Relay` origin when
// recognised.
// Native converter for Relay-chain (Parent) location; will convert to a `Relay` origin when
//recognized.
RelayChainAsNative<RelayChainOrigin, RuntimeOrigin>,
// Native converter for sibling Parachains; will convert to a `SiblingPara` origin when
// recognised.
//recognized.
SiblingParachainAsNative<cumulus_pallet_xcm::Origin, RuntimeOrigin>,
// Superuser converter for the Relay-chain (Parent) location. This will allow it to issue a
// transaction from the Root origin.
Expand Down
2 changes: 1 addition & 1 deletion runtime/integration-tests/src/xcm_mock/parachain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ pub type XcmOriginToCallOrigin = (
// or `RelayNetwork`, convert it to a Native 32 byte account.
SignedAccountId32AsNative<RelayNetwork, RuntimeOrigin>,
// Native converter for sibling Parachains; will convert to a `SiblingPara` origin when
// recognised.
//recognized.
SiblingParachainAsNative<cumulus_pallet_xcm::Origin, RuntimeOrigin>,
// Xcm origins can be represented natively under the Xcm pallet's Xcm origin.
XcmPassthrough<RuntimeOrigin>,
Expand Down
2 changes: 1 addition & 1 deletion runtime/manta/src/fee.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ mod multiplier_tests {
(target_daily_congestion_cost_usd as f32 / manta_price * MANTA as f32) as u128;

// assume the multiplier is initially set to its minimum and that each block
// will be full with a single user extrinsic, which will minimize then length and base fees
// will be full with a single user extrinsic, which will minimize the length and base fees
let mut multiplier = MinimumMultiplier::get();
let block_weight = BlockWeights::get()
.get(DispatchClass::Normal)
Expand Down
2 changes: 1 addition & 1 deletion runtime/manta/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ impl Contains<RuntimeCall> for MantaFilter {
RuntimeCall::Timestamp(_) | RuntimeCall::ParachainSystem(_) | RuntimeCall::System(_)
) {
// always allow core call
// pallet-timestamp and parachainSystem could not be filtered because they are used in communication between releychain and parachain.
// pallet-timestamp and parachainSystem could not be filtered because they are used in communication between relaychain and parachain.
return true;
}

Expand Down
4 changes: 2 additions & 2 deletions runtime/manta/src/migrations/assets_genesis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ where
StorageVersion::new(INITIAL_PALLET_ASSETS_MANAGER_VERSION + 1)
.put::<pallet_asset_manager::Pallet<T>>();

log::info!(target: "asset-manager", "✅ Storage migration for AssetManager has been executed successfully and storage version has been update to: {:?}.", INITIAL_PALLET_ASSETS_MANAGER_VERSION + 1);
log::info!(target: "asset-manager", "✅ Storage migration for AssetManager has been executed successfully and storage version has been updated to: {:?}.", INITIAL_PALLET_ASSETS_MANAGER_VERSION + 1);

log::info!(target: "assets", "Starting migration for pallet-assets...");

Expand All @@ -113,7 +113,7 @@ where
let _ = clear_storage_prefix(pallet_prefix, b"Account", b"", None, None);
let _ = clear_storage_prefix(pallet_prefix, b"Approval", b"", None, None);

log::info!(target: "assets", "✅ Storage migration for Assets has been executed successfully and storage version has been update to: {:?}.", INITIAL_PALLET_ASSETS_MANAGER_VERSION + 1);
log::info!(target: "assets", "✅ Storage migration for Assets has been executed successfully and storage version has been updated to: {:?}.", INITIAL_PALLET_ASSETS_MANAGER_VERSION + 1);

StorageVersion::new(INITIAL_PALLET_ASSETS_VERSION + 1).put::<pallet_assets::Pallet<T>>();

Expand Down
6 changes: 3 additions & 3 deletions runtime/manta/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ pub type XcmOriginToCallOrigin = (
// using `LocationToAccountId` and then turn that into the usual `Signed` origin. Useful for
// foreign chains who want to have a local sovereign account on this chain which they control.
SovereignSignedViaLocation<LocationToAccountId, RuntimeOrigin>,
// Native converter for Relay-chain (Parent) location; will converts to a `Relay` origin when
// recognised.
// Native converter for Relay-chain (Parent) location; will convert to a `Relay` origin when
//recognized.
RelayChainAsNative<RelayChainOrigin, RuntimeOrigin>,
// Native converter for sibling Parachains; will convert to a `SiblingPara` origin when
// recognised.
//recognized.
SiblingParachainAsNative<cumulus_pallet_xcm::Origin, RuntimeOrigin>,
// Superuser converter for the Relay-chain (Parent) location. This will allow it to issue a
// transaction from the Root origin.
Expand Down
Loading