diff --git a/.github/config/.codespellignore b/.github/config/.codespellignore new file mode 100644 index 00000000..f0f0aaaf --- /dev/null +++ b/.github/config/.codespellignore @@ -0,0 +1,6 @@ +initia +minitia +expRes +crate +Hel +ser diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml new file mode 100644 index 00000000..24005f8c --- /dev/null +++ b/.github/workflows/spellcheck.yml @@ -0,0 +1,28 @@ +name: Spell Check + +on: + pull_request: + +jobs: + spellcheck: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Run codespell + continue-on-error: true + run: | + sudo apt-get install codespell -y + codespell -w --ignore-words=.github/config/.codespellignore --skip="*.git,*.so,*.dylib,go.mod,go.sum,Cargo.toml" + - uses: peter-evans/create-pull-request@v7.0.5 + if: github.event_name != 'pull_request' + with: + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: "chore: fix typos" + title: "chore: fix typos" + branch: "chore/fix-typos" + delete-branch: true + body: | + This PR fixes typos in the codebase. + Please review it, and merge if everything is fine. + If there are proto changes, run `make proto-gen` and commit the changes. diff --git a/api/memory_test.go b/api/memory_test.go index e1dcbfaa..397faf50 100644 --- a/api/memory_test.go +++ b/api/memory_test.go @@ -50,7 +50,7 @@ func TestCreateAndDestroyUnmanagedVector(t *testing.T) { var original []byte unmanaged := newUnmanagedVector(original) require.Equal(t, cbool(true), unmanaged.is_none) - // We must not make assumtions on the other fields in this case + // We must not make assumptions on the other fields in this case copy := copyAndDestroyUnmanagedVector(unmanaged) require.Nil(t, copy) } diff --git a/api/mocks.go b/api/mocks.go index 17ee6749..f72efc62 100644 --- a/api/mocks.go +++ b/api/mocks.go @@ -20,7 +20,7 @@ func NewLookup() *Lookup { } } -// Get wraps the underlying DB's Get method panicing on error. +// Get wraps the underlying DB's Get method panicking on error. func (l Lookup) Get(key []byte) []byte { v, err := l.db.Get(key) if err != nil { @@ -30,21 +30,21 @@ func (l Lookup) Get(key []byte) []byte { return v } -// Set wraps the underlying DB's Set method panicing on error. +// Set wraps the underlying DB's Set method panicking on error. func (l Lookup) Set(key, value []byte) { if err := l.db.Set(key, value); err != nil { panic(err) } } -// Delete wraps the underlying DB's Delete method panicing on error. +// Delete wraps the underlying DB's Delete method panicking on error. func (l Lookup) Delete(key []byte) { if err := l.db.Delete(key); err != nil { panic(err) } } -// Iterator wraps the underlying DB's Iterator method panicing on error. +// Iterator wraps the underlying DB's Iterator method panicking on error. func (l Lookup) Iterator(start, end []byte) dbm.Iterator { iter, err := l.db.Iterator(start, end) if err != nil { @@ -54,7 +54,7 @@ func (l Lookup) Iterator(start, end []byte) dbm.Iterator { return iter } -// ReverseIterator wraps the underlying DB's ReverseIterator method panicing on error. +// ReverseIterator wraps the underlying DB's ReverseIterator method panicking on error. func (l Lookup) ReverseIterator(start, end []byte) dbm.Iterator { iter, err := l.db.ReverseIterator(start, end) if err != nil { diff --git a/crates/compiler/src/clean.rs b/crates/compiler/src/clean.rs index b9816d4a..4ec4742b 100644 --- a/crates/compiler/src/clean.rs +++ b/crates/compiler/src/clean.rs @@ -83,7 +83,7 @@ impl Clean { } fn validate_manifest(base_path: &Path) -> anyhow::Result<()> { - let manifest_path = base_path.join("Move.toml"); // manifest is in pakcage path + let manifest_path = base_path.join("Move.toml"); // manifest is in package path if !(manifest_path.is_file()) { bail!("move package not found in {}", base_path.display()) } diff --git a/crates/gas/src/lib.rs b/crates/gas/src/lib.rs index 6391e627..ca37213f 100644 --- a/crates/gas/src/lib.rs +++ b/crates/gas/src/lib.rs @@ -12,7 +12,7 @@ //! The reason why we need two different representations is that they serve different purposes: //! - The Rust structs are used for quick (static) lookups by the gas meter and native functions //! when calculating gas costs. -//! - The on-chain gas schedule needs to be extensible and unordered so we can upgrate it easily +//! - The on-chain gas schedule needs to be extensible and unordered so we can upgrade it easily //! in the future. #[macro_use] diff --git a/crates/gas/src/meter.rs b/crates/gas/src/meter.rs index 107b6b62..ee2a4d65 100644 --- a/crates/gas/src/meter.rs +++ b/crates/gas/src/meter.rs @@ -152,7 +152,7 @@ struct Frame { #[derive(Clone)] /// The official gas meter used inside the Initia VM. /// It maintains an internal gas counter, measured in internal gas units, and carries an environment -/// consisting all the gas parameters, which it can lookup when performing gas calcuations. +/// consisting all the gas parameters, which it can lookup when performing gas calculations. pub struct InitiaGasMeter { gas_params: InitiaGasParameters, balance: InternalGas, diff --git a/crates/json/src/json_to_move.rs b/crates/json/src/json_to_move.rs index c4609b17..a0b7f00c 100644 --- a/crates/json/src/json_to_move.rs +++ b/crates/json/src/json_to_move.rs @@ -670,7 +670,7 @@ mod json_arg_testing { .unwrap() ); - // invalid inner addresss + // invalid inner address let arg = b"[\"0xgg\"]"; _ = deserialize_json_args(&code_storage, &mock_state, &ty, arg).unwrap_err(); } diff --git a/crates/json/src/json_to_value.rs b/crates/json/src/json_to_value.rs index e5a0a62b..09de08f8 100644 --- a/crates/json/src/json_to_value.rs +++ b/crates/json/src/json_to_value.rs @@ -451,7 +451,7 @@ mod json_arg_testing { .unwrap() ); - // invalid inner addresss + // invalid inner address let arg = b"[\"0xgg\"]"; _ = deserialize_json_to_value(&module_id(), &layout, arg).unwrap_err(); } diff --git a/crates/natives/src/function_info.rs b/crates/natives/src/function_info.rs index d8e7182e..d47295e5 100644 --- a/crates/natives/src/function_info.rs +++ b/crates/natives/src/function_info.rs @@ -19,7 +19,7 @@ use crate::{ safely_pop_arg, }; -// Extract Identifer from a move value of type &String +// Extract Identifier from a move value of type &String fn identifier_from_ref(v: Value) -> SafeNativeResult { let bytes = v .value_as::() diff --git a/crates/natives/src/move_stdlib/bcs.rs b/crates/natives/src/move_stdlib/bcs.rs index 3d50e933..d8a8dd90 100644 --- a/crates/natives/src/move_stdlib/bcs.rs +++ b/crates/natives/src/move_stdlib/bcs.rs @@ -113,7 +113,7 @@ fn native_serialized_size( Err(_) => { context.charge(gas_params.bcs_serialized_size_failure)?; - // Re-use the same abort code as bcs::to_bytes. + // Reuse the same abort code as bcs::to_bytes. return Err(SafeNativeError::Abort { abort_code: BCS_SERIALIZATION_FAILURE, }); diff --git a/crates/types/src/compiler.rs b/crates/types/src/compiler.rs index 456721aa..aed44188 100644 --- a/crates/types/src/compiler.rs +++ b/crates/types/src/compiler.rs @@ -225,7 +225,7 @@ pub struct CompilerDocgenOptions { pub landing_page_template: Option, /// Package-relative path to a file whose content is added to each generated markdown file. - /// This can contain common markdown references fpr this package (e.g. `[move-book]: `). + /// This can contain common markdown references for this package (e.g. `[move-book]: `). pub references_file: Option, } diff --git a/precompile/binaries/minlib/multisig.mv b/precompile/binaries/minlib/multisig.mv index 175115dc..5d8ddd32 100644 Binary files a/precompile/binaries/minlib/multisig.mv and b/precompile/binaries/minlib/multisig.mv differ diff --git a/precompile/binaries/stdlib/minitswap.mv b/precompile/binaries/stdlib/minitswap.mv index b3ad8214..a79ed333 100644 Binary files a/precompile/binaries/stdlib/minitswap.mv and b/precompile/binaries/stdlib/minitswap.mv differ diff --git a/precompile/binaries/stdlib/multisig.mv b/precompile/binaries/stdlib/multisig.mv index 175115dc..5d8ddd32 100644 Binary files a/precompile/binaries/stdlib/multisig.mv and b/precompile/binaries/stdlib/multisig.mv differ diff --git a/precompile/modules/initia_stdlib/doc/coin.md b/precompile/modules/initia_stdlib/doc/coin.md index e7659c0d..1fa12847 100644 --- a/precompile/modules/initia_stdlib/doc/coin.md +++ b/precompile/modules/initia_stdlib/doc/coin.md @@ -475,7 +475,7 @@ Only fungible asset metadata owner can make changes. ## Function `mint` -Mint FAs as the owner of metadat object. +Mint FAs as the owner of metadata object.
public fun mint(mint_cap: &coin::MintCapability, amount: u64): fungible_asset::FungibleAsset
@@ -506,7 +506,7 @@ Mint FAs as the owner of metadat object.
 
 ## Function `mint_to`
 
-Mint FAs as the owner of metadat object to the primary fungible store of the given recipient.
+Mint FAs as the owner of metadata object to the primary fungible store of the given recipient.
 
 
 
public fun mint_to(mint_cap: &coin::MintCapability, recipient: address, amount: u64)
@@ -539,7 +539,7 @@ Mint FAs as the owner of metadat object to the primary fungible store of the giv
 
 ## Function `burn`
 
-Burn FAs as the owner of metadat object.
+Burn FAs as the owner of metadata object.
 
 
 
public fun burn(burn_cap: &coin::BurnCapability, fa: fungible_asset::FungibleAsset)
diff --git a/precompile/modules/initia_stdlib/doc/collection.md b/precompile/modules/initia_stdlib/doc/collection.md
index 108c7f80..9f220ca7 100644
--- a/precompile/modules/initia_stdlib/doc/collection.md
+++ b/precompile/modules/initia_stdlib/doc/collection.md
@@ -872,7 +872,7 @@ Provides the count of the current selection if supply tracking is used
 ## Function `nfts`
 
 get nft list from collection
-if start_after is not none, seach nfts in range (start_after, ...]
+if start_after is not none, search nfts in range (start_after, ...]
 
 
 
#[view]
diff --git a/precompile/modules/initia_stdlib/doc/dex.md b/precompile/modules/initia_stdlib/doc/dex.md
index c99add00..4fbab760 100644
--- a/precompile/modules/initia_stdlib/doc/dex.md
+++ b/precompile/modules/initia_stdlib/doc/dex.md
@@ -2584,7 +2584,7 @@ CONTRACT: not allow until LBP is ended
 
 ## Function `single_asset_provide_liquidity`
 
-Signle asset provide liquidity directly
+Single asset provide liquidity directly
 CONTRACT: cannot provide more than the pool amount to prevent huge price impact
 CONTRACT: not allow until LBP is ended
 
diff --git a/precompile/modules/initia_stdlib/doc/dispatchable_fungible_asset.md b/precompile/modules/initia_stdlib/doc/dispatchable_fungible_asset.md
index 04e1caa6..d4b988e3 100644
--- a/precompile/modules/initia_stdlib/doc/dispatchable_fungible_asset.md
+++ b/precompile/modules/initia_stdlib/doc/dispatchable_fungible_asset.md
@@ -10,7 +10,7 @@ The dispatchable_fungible_asset wraps the existing fungible_asset module and add
 to customize the logic for withdraw and deposit operations. For example:
 
 - Deflation token: a fixed percentage of token will be destructed upon transfer.
-- Transfer allowlist: token can only be transfered to addresses in the allow list.
+- Transfer allowlist: token can only be transferred to addresses in the allow list.
 - Predicated transfer: transfer can only happen when some certain predicate has been met.
 - Loyalty token: a fixed loyalty will be paid to a designated address when a fungible asset transfer happens
 
@@ -285,7 +285,7 @@ Note: it does not move the underlying object.
 ## Function `transfer_assert_minimum_deposit`
 
 Transfer an amount of fungible asset from from_store, which should be owned by sender, to receiver.
-The recipient is guranteed to receive asset greater than the expected amount.
+The recipient is guaranteed to receive asset greater than the expected amount.
 Note: it does not move the underlying object.
 
 
diff --git a/precompile/modules/initia_stdlib/doc/ed25519.md b/precompile/modules/initia_stdlib/doc/ed25519.md
index 84d3fcf1..5b98e0dc 100644
--- a/precompile/modules/initia_stdlib/doc/ed25519.md
+++ b/precompile/modules/initia_stdlib/doc/ed25519.md
@@ -133,7 +133,7 @@ The size of a serialized signature, in bytes.
 
 ## Function `public_key_from_bytes`
 
-Contructs an PublicKey struct, given 32-byte representation.
+Constructs an PublicKey struct, given 32-byte representation.
 
 
 
public fun public_key_from_bytes(bytes: vector<u8>): ed25519::PublicKey
diff --git a/precompile/modules/initia_stdlib/doc/fungible_asset.md b/precompile/modules/initia_stdlib/doc/fungible_asset.md
index a9457278..89201984 100644
--- a/precompile/modules/initia_stdlib/doc/fungible_asset.md
+++ b/precompile/modules/initia_stdlib/doc/fungible_asset.md
@@ -1301,7 +1301,7 @@ This can only be called at object creation time as constructor_ref is only avail
 
 ## Function `is_fungible_asset`
 
-Retrun true if given address has Metadata else return false
+Return true if given address has Metadata else return false
 
 
 
#[view]
diff --git a/precompile/modules/initia_stdlib/doc/math128.md b/precompile/modules/initia_stdlib/doc/math128.md
index c625ed3f..37c8ea36 100644
--- a/precompile/modules/initia_stdlib/doc/math128.md
+++ b/precompile/modules/initia_stdlib/doc/math128.md
@@ -343,7 +343,7 @@ Returns square root of x, precisely floor(sqrt(x))
     let res = 1 << ((floor_log2(x) + 1) >> 1);
     // We use standard newton-rhapson iteration to improve the initial approximation.
     // The error term evolves as delta_i+1 = delta_i^2 / 2 (quadratic convergence).
-    // It turns out that after 5 iterations the delta is smaller than 2^-64 and thus below the treshold.
+    // It turns out that after 5 iterations the delta is smaller than 2^-64 and thus below the threshold.
     res = (res + x / res) >> 1;
     res = (res + x / res) >> 1;
     res = (res + x / res) >> 1;
diff --git a/precompile/modules/initia_stdlib/doc/math64.md b/precompile/modules/initia_stdlib/doc/math64.md
index 6d866ba3..e73490aa 100644
--- a/precompile/modules/initia_stdlib/doc/math64.md
+++ b/precompile/modules/initia_stdlib/doc/math64.md
@@ -301,7 +301,7 @@ Returns square root of x, precisely floor(sqrt(x))
     let res = 1 << ((floor_log2(x) + 1) >> 1);
     // We use standard newton-rhapson iteration to improve the initial approximation.
     // The error term evolves as delta_i+1 = delta_i^2 / 2 (quadratic convergence).
-    // It turns out that after 4 iterations the delta is smaller than 2^-32 and thus below the treshold.
+    // It turns out that after 4 iterations the delta is smaller than 2^-32 and thus below the threshold.
     res = (res + x / res) >> 1;
     res = (res + x / res) >> 1;
     res = (res + x / res) >> 1;
diff --git a/precompile/modules/initia_stdlib/doc/minitswap.md b/precompile/modules/initia_stdlib/doc/minitswap.md
index 5e426054..0188d565 100644
--- a/precompile/modules/initia_stdlib/doc/minitswap.md
+++ b/precompile/modules/initia_stdlib/doc/minitswap.md
@@ -3962,7 +3962,7 @@ Event emitted when arb reverted
         error::invalid_state(EEMERGENCY)
     );
 
-    // check metdata
+    // check metadata
     let share_token_metadata = fungible_asset::metadata_from_asset(&share_token);
     assert!(
         share_token_metadata == share_token_metadata(),
@@ -4366,7 +4366,7 @@ Event emitted when arb reverted
             // and then calculate arb fee and get actual return amount which is same with return_amount_before_swap_fee - swap_fee_amount - arb_fee_amount
             // to make actual return amount to return amount, set return_amount_before_swap_fee = return_amount_before_swap_fee + return_diff
             // where return_diff = target return amount - actual return amount
-            // and recalculate offer amount repeatly until return amount <= actual return amount
+            // and recalculate offer amount repeatedly until return amount <= actual return amount
             // note that actual return is always small or equal with target return amount
 
             // adjust fee. return amount before swap fee = return amount * 1 / (1 - f)
diff --git a/precompile/modules/initia_stdlib/doc/nft.md b/precompile/modules/initia_stdlib/doc/nft.md
index 58b733f2..40386bc0 100644
--- a/precompile/modules/initia_stdlib/doc/nft.md
+++ b/precompile/modules/initia_stdlib/doc/nft.md
@@ -126,7 +126,7 @@ a small optimization to support either and take a fixed amount of 34-bytes.
 
 ## Struct `MutatorRef`
 
-This enables mutating descritpion and URI by higher level services.
+This enables mutating description and URI by higher level services.
 
 
 
struct MutatorRef has drop, store
diff --git a/precompile/modules/initia_stdlib/doc/object.md b/precompile/modules/initia_stdlib/doc/object.md
index 438abc3e..3d2e82dd 100644
--- a/precompile/modules/initia_stdlib/doc/object.md
+++ b/precompile/modules/initia_stdlib/doc/object.md
@@ -550,7 +550,7 @@ The version of ref does not match with object core version.
 
 
 
-Maximum nesting from one object to another. That is objects can technically have infinte
+Maximum nesting from one object to another. That is objects can technically have infinite
 nesting, but any checks such as transfer will only be evaluated this deep.
 
 
diff --git a/precompile/modules/initia_stdlib/doc/primary_fungible_store.md b/precompile/modules/initia_stdlib/doc/primary_fungible_store.md
index dfbbd8ac..abf46489 100644
--- a/precompile/modules/initia_stdlib/doc/primary_fungible_store.md
+++ b/precompile/modules/initia_stdlib/doc/primary_fungible_store.md
@@ -660,7 +660,7 @@ Transfer amount of fungible asset from sender's primary store to re
 ## Function `transfer_assert_minimum_deposit`
 
 Transfer amount of fungible asset from sender's primary store to receiver's primary store.
-Use the minimum deposit assertion api to make sure receipient will receive a minimum amount of fund.
+Use the minimum deposit assertion api to make sure recipient will receive a minimum amount of fund.
 
 
 
public entry fun transfer_assert_minimum_deposit<T: key>(sender: &signer, metadata: object::Object<T>, recipient: address, amount: u64, expected: u64)
diff --git a/precompile/modules/initia_stdlib/doc/property_map.md b/precompile/modules/initia_stdlib/doc/property_map.md
index cb7a15f3..4c42b871 100644
--- a/precompile/modules/initia_stdlib/doc/property_map.md
+++ b/precompile/modules/initia_stdlib/doc/property_map.md
@@ -352,7 +352,7 @@ Maximum number of characters in a property name
 ## Function `burn`
 
 Burns the entire property map
-TODO: hanlde when table is not empty
+TODO: handle when table is not empty
 
 
 
public fun burn(ref: property_map::MutatorRef)
diff --git a/precompile/modules/initia_stdlib/doc/stableswap.md b/precompile/modules/initia_stdlib/doc/stableswap.md
index 1a99cf3d..a154e3c5 100644
--- a/precompile/modules/initia_stdlib/doc/stableswap.md
+++ b/precompile/modules/initia_stdlib/doc/stableswap.md
@@ -112,7 +112,7 @@
 extend_ref: object::ExtendRef
 
 
- Extend Refernce + Extend Reference
ann: stableswap::Ann diff --git a/precompile/modules/initia_stdlib/doc/staking.md b/precompile/modules/initia_stdlib/doc/staking.md index 5fd39b68..29529064 100644 --- a/precompile/modules/initia_stdlib/doc/staking.md +++ b/precompile/modules/initia_stdlib/doc/staking.md @@ -926,7 +926,7 @@ util function to convert Unbonding => UnbondingResponse for third party queriers ## Function `get_delegation` -Get delegation info of specifed addr and validator +Get delegation info of specified addr and validator
#[view]
@@ -2116,7 +2116,7 @@ Get share from De
 
 ## Function `destroy_empty_delegation`
 
-Destory empty delegation
+Destroy empty delegation
 
 
 
public fun destroy_empty_delegation(delegation: staking::Delegation)
@@ -2485,7 +2485,7 @@ Get unbonding_amount from destroy_empty_unbonding(unbonding: staking::Unbonding)
@@ -2576,7 +2576,7 @@ Deposit the unbonding into recipient's account.
 
 ## Function `withdraw_unbonding`
 
-Withdraw specifed amount of unbonding_amount from the unbonding.
+Withdraw specified amount of unbonding_amount from the unbonding.
 
 
 
public fun withdraw_unbonding(account: &signer, metadata: object::Object<fungible_asset::Metadata>, validator: string::String, release_time: u64, amount: u64): staking::Unbonding
diff --git a/precompile/modules/initia_stdlib/sources/coin.move b/precompile/modules/initia_stdlib/sources/coin.move
index 3d9f042c..6260e0f7 100644
--- a/precompile/modules/initia_stdlib/sources/coin.move
+++ b/precompile/modules/initia_stdlib/sources/coin.move
@@ -199,7 +199,7 @@ module initia_std::coin {
     // Admin operations
     //
 
-    /// Mint FAs as the owner of metadat object.
+    /// Mint FAs as the owner of metadata object.
     public fun mint(mint_cap: &MintCapability, amount: u64): FungibleAsset acquires ManagingRefs {
         let metadata = mint_cap.metadata;
         let metadata_addr = object::object_address(&metadata);
@@ -213,7 +213,7 @@ module initia_std::coin {
         fungible_asset::mint(&refs.mint_ref, amount)
     }
 
-    /// Mint FAs as the owner of metadat object to the primary fungible store of the given recipient.
+    /// Mint FAs as the owner of metadata object to the primary fungible store of the given recipient.
     public fun mint_to(
         mint_cap: &MintCapability, recipient: address, amount: u64
     ) acquires ManagingRefs {
@@ -229,7 +229,7 @@ module initia_std::coin {
         primary_fungible_store::mint(&refs.mint_ref, recipient, amount)
     }
 
-    /// Burn FAs as the owner of metadat object.
+    /// Burn FAs as the owner of metadata object.
     public fun burn(burn_cap: &BurnCapability, fa: FungibleAsset) acquires ManagingRefs {
         let metadata = burn_cap.metadata;
         let metadata_addr = object::object_address(&metadata);
diff --git a/precompile/modules/initia_stdlib/sources/crypto/ed25519.move b/precompile/modules/initia_stdlib/sources/crypto/ed25519.move
index 2143079e..021ac445 100644
--- a/precompile/modules/initia_stdlib/sources/crypto/ed25519.move
+++ b/precompile/modules/initia_stdlib/sources/crypto/ed25519.move
@@ -40,7 +40,7 @@ module initia_std::ed25519 {
     // Functions
     //
 
-    /// Contructs an PublicKey struct, given 32-byte representation.
+    /// Constructs an PublicKey struct, given 32-byte representation.
     public fun public_key_from_bytes(bytes: vector): PublicKey {
         assert!(
             std::vector::length(&bytes) == PUBLIC_KEY_SIZE,
diff --git a/precompile/modules/initia_stdlib/sources/dex.move b/precompile/modules/initia_stdlib/sources/dex.move
index 35ff85c2..2e93caae 100644
--- a/precompile/modules/initia_stdlib/sources/dex.move
+++ b/precompile/modules/initia_stdlib/sources/dex.move
@@ -248,7 +248,7 @@ module initia_std::dex {
 
     const MAX_LIMIT: u8 = 30;
 
-    // TODO - find the resonable percision
+    // TODO - find the reasonable precision
     /// Result Precision of `pow` and `ln` function
     const PRECISION: u64 = 100000;
 
@@ -1108,7 +1108,7 @@ module initia_std::dex {
         )
     }
 
-    /// Signle asset provide liquidity directly
+    /// Single asset provide liquidity directly
     /// CONTRACT: cannot provide more than the pool amount to prevent huge price impact
     /// CONTRACT: not allow until LBP is ended
     public fun single_asset_provide_liquidity(
diff --git a/precompile/modules/initia_stdlib/sources/fa/dispatchable_fungible_asset.move b/precompile/modules/initia_stdlib/sources/fa/dispatchable_fungible_asset.move
index 8059b34f..060b45cf 100644
--- a/precompile/modules/initia_stdlib/sources/fa/dispatchable_fungible_asset.move
+++ b/precompile/modules/initia_stdlib/sources/fa/dispatchable_fungible_asset.move
@@ -5,7 +5,7 @@
 /// to customize the logic for withdraw and deposit operations. For example:
 ///
 /// - Deflation token: a fixed percentage of token will be destructed upon transfer.
-/// - Transfer allowlist: token can only be transfered to addresses in the allow list.
+/// - Transfer allowlist: token can only be transferred to addresses in the allow list.
 /// - Predicated transfer: transfer can only happen when some certain predicate has been met.
 /// - Loyalty token: a fixed loyalty will be paid to a designated address when a fungible asset transfer happens
 ///
@@ -121,7 +121,7 @@ module initia_std::dispatchable_fungible_asset {
     }
 
     /// Transfer an `amount` of fungible asset from `from_store`, which should be owned by `sender`, to `receiver`.
-    /// The recipient is guranteed to receive asset greater than the expected amount.
+    /// The recipient is guaranteed to receive asset greater than the expected amount.
     /// Note: it does not move the underlying object.
     public entry fun transfer_assert_minimum_deposit(
         sender: &signer,
diff --git a/precompile/modules/initia_stdlib/sources/fa/fungible_asset.move b/precompile/modules/initia_stdlib/sources/fa/fungible_asset.move
index 34179119..f3c93846 100644
--- a/precompile/modules/initia_stdlib/sources/fa/fungible_asset.move
+++ b/precompile/modules/initia_stdlib/sources/fa/fungible_asset.move
@@ -443,7 +443,7 @@ module initia_std::fungible_asset {
     }
 
     #[view]
-    /// Retrun true if given address has Metadata else return false
+    /// Return true if given address has Metadata else return false
     public fun is_fungible_asset(metadata_addr: address): bool {
         exists(metadata_addr)
     }
diff --git a/precompile/modules/initia_stdlib/sources/fa/primary_fungible_store.move b/precompile/modules/initia_stdlib/sources/fa/primary_fungible_store.move
index 8a7438a2..d7ce8968 100644
--- a/precompile/modules/initia_stdlib/sources/fa/primary_fungible_store.move
+++ b/precompile/modules/initia_stdlib/sources/fa/primary_fungible_store.move
@@ -312,7 +312,7 @@ module initia_std::primary_fungible_store {
     }
 
     /// Transfer `amount` of fungible asset from sender's primary store to receiver's primary store.
-    /// Use the minimum deposit assertion api to make sure receipient will receive a minimum amount of fund.
+    /// Use the minimum deposit assertion api to make sure recipient will receive a minimum amount of fund.
     public entry fun transfer_assert_minimum_deposit(
         sender: &signer,
         metadata: Object,
diff --git a/precompile/modules/initia_stdlib/sources/fixed_point64.move b/precompile/modules/initia_stdlib/sources/fixed_point64.move
index 3bd209c4..dca3078d 100644
--- a/precompile/modules/initia_stdlib/sources/fixed_point64.move
+++ b/precompile/modules/initia_stdlib/sources/fixed_point64.move
@@ -546,7 +546,7 @@ module initia_std::fixed_point64 {
     #[test_only]
     /// For functions that approximate a value it's useful to test a value is close
     /// to the most correct value up to last digit
-    fun assert_approx_the_same(x: u256, y: u256, precission: u128) {
+    fun assert_approx_the_same(x: u256, y: u256, precision: u128) {
         if (x < y) {
             let tmp = x;
             x = y;
@@ -554,11 +554,11 @@ module initia_std::fixed_point64 {
         };
         let mult = 1u256;
         let n = 10u256;
-        while (precission > 0) {
-            if (precission % 2 == 1) {
+        while (precision > 0) {
+            if (precision % 2 == 1) {
                 mult = mult * n;
             };
-            precission = precission / 2;
+            precision = precision / 2;
             n = n * n;
         };
         assert!((x - y) * mult < x, 0);
diff --git a/precompile/modules/initia_stdlib/sources/math128.move b/precompile/modules/initia_stdlib/sources/math128.move
index 00e62ef9..aa8a2eee 100644
--- a/precompile/modules/initia_stdlib/sources/math128.move
+++ b/precompile/modules/initia_stdlib/sources/math128.move
@@ -137,7 +137,7 @@ module initia_std::math128 {
         let res = 1 << ((floor_log2(x) + 1) >> 1);
         // We use standard newton-rhapson iteration to improve the initial approximation.
         // The error term evolves as delta_i+1 = delta_i^2 / 2 (quadratic convergence).
-        // It turns out that after 5 iterations the delta is smaller than 2^-64 and thus below the treshold.
+        // It turns out that after 5 iterations the delta is smaller than 2^-64 and thus below the threshold.
         res = (res + x / res) >> 1;
         res = (res + x / res) >> 1;
         res = (res + x / res) >> 1;
@@ -331,13 +331,13 @@ module initia_std::math128 {
     #[test_only]
     /// For functions that approximate a value it's useful to test a value is close
     /// to the most correct value up to last digit
-    fun assert_approx_the_same(x: u128, y: u128, precission: u128) {
+    fun assert_approx_the_same(x: u128, y: u128, precision: u128) {
         if (x < y) {
             let tmp = x;
             x = y;
             y = tmp;
         };
-        let mult = pow(10, precission);
+        let mult = pow(10, precision);
         assert!((x - y) * mult < x, 0);
     }
 }
diff --git a/precompile/modules/initia_stdlib/sources/math64.move b/precompile/modules/initia_stdlib/sources/math64.move
index c3d5eb30..e77c41e3 100644
--- a/precompile/modules/initia_stdlib/sources/math64.move
+++ b/precompile/modules/initia_stdlib/sources/math64.move
@@ -111,7 +111,7 @@ module initia_std::math64 {
         let res = 1 << ((floor_log2(x) + 1) >> 1);
         // We use standard newton-rhapson iteration to improve the initial approximation.
         // The error term evolves as delta_i+1 = delta_i^2 / 2 (quadratic convergence).
-        // It turns out that after 4 iterations the delta is smaller than 2^-32 and thus below the treshold.
+        // It turns out that after 4 iterations the delta is smaller than 2^-32 and thus below the threshold.
         res = (res + x / res) >> 1;
         res = (res + x / res) >> 1;
         res = (res + x / res) >> 1;
@@ -274,13 +274,13 @@ module initia_std::math64 {
     #[test_only]
     /// For functions that approximate a value it's useful to test a value is close
     /// to the most correct value up to last digit
-    fun assert_approx_the_same(x: u128, y: u128, precission: u64) {
+    fun assert_approx_the_same(x: u128, y: u128, precision: u64) {
         if (x < y) {
             let tmp = x;
             x = y;
             y = tmp;
         };
-        let mult = (pow(10, precission) as u128);
+        let mult = (pow(10, precision) as u128);
         assert!((x - y) * mult < x, 0);
     }
 }
diff --git a/precompile/modules/initia_stdlib/sources/minitswap.move b/precompile/modules/initia_stdlib/sources/minitswap.move
index aa358c39..64bd12d4 100644
--- a/precompile/modules/initia_stdlib/sources/minitswap.move
+++ b/precompile/modules/initia_stdlib/sources/minitswap.move
@@ -1687,7 +1687,7 @@ module initia_std::minitswap {
             error::invalid_state(EEMERGENCY)
         );
 
-        // check metdata
+        // check metadata
         let share_token_metadata = fungible_asset::metadata_from_asset(&share_token);
         assert!(
             share_token_metadata == share_token_metadata(),
@@ -2941,7 +2941,7 @@ module initia_std::minitswap {
                 // and then calculate arb fee and get actual return amount which is same with return_amount_before_swap_fee - swap_fee_amount - arb_fee_amount
                 // to make actual return amount to return amount, set return_amount_before_swap_fee = return_amount_before_swap_fee + return_diff
                 // where return_diff = target return amount - actual return amount
-                // and recalculate offer amount repeatly until return amount <= actual return amount
+                // and recalculate offer amount repeatedly until return amount <= actual return amount
                 // note that actual return is always small or equal with target return amount
 
                 // adjust fee. return amount before swap fee = return amount * 1 / (1 - f)
diff --git a/precompile/modules/initia_stdlib/sources/multisig.move b/precompile/modules/initia_stdlib/sources/multisig.move
index d5451d7e..6d9396c7 100644
--- a/precompile/modules/initia_stdlib/sources/multisig.move
+++ b/precompile/modules/initia_stdlib/sources/multisig.move
@@ -12,7 +12,7 @@ module initia_std::multisig {
     use initia_std::simple_map::{Self, SimpleMap};
     use initia_std::table::{Self, Table};
 
-    // errros
+    // errors
 
     const EINVALID_THRESHOLD: u64 = 1;
 
@@ -34,7 +34,7 @@ module initia_std::multisig {
 
     // constants
 
-    const STATUS: vector> = vector[b"in voting preiod", b"executed", b"expired"];
+    const STATUS: vector> = vector[b"in voting period", b"executed", b"expired"];
 
     const MAX_LIMIT: u8 = 30;
 
diff --git a/precompile/modules/initia_stdlib/sources/object.move b/precompile/modules/initia_stdlib/sources/object.move
index c503e273..33a3c7ee 100644
--- a/precompile/modules/initia_stdlib/sources/object.move
+++ b/precompile/modules/initia_stdlib/sources/object.move
@@ -49,7 +49,7 @@ module initia_std::object {
     /// The version of ref does not match with object core version.
     const EVERSION_MISMATCH: u64 = 9;
 
-    /// Maximum nesting from one object to another. That is objects can technically have infinte
+    /// Maximum nesting from one object to another. That is objects can technically have infinite
     /// nesting, but any checks such as transfer will only be evaluated this deep.
     const MAXIMUM_OBJECT_NESTING: u8 = 8;
 
diff --git a/precompile/modules/initia_stdlib/sources/stableswap.move b/precompile/modules/initia_stdlib/sources/stableswap.move
index 7c5a136f..cec6da65 100644
--- a/precompile/modules/initia_stdlib/sources/stableswap.move
+++ b/precompile/modules/initia_stdlib/sources/stableswap.move
@@ -22,7 +22,7 @@ module initia_std::stableswap {
     }
 
     struct Pool has key {
-        /// Extend Refernce
+        /// Extend Reference
         extend_ref: ExtendRef,
         /// ANN
         ann: Ann,
@@ -1604,7 +1604,7 @@ module initia_std::stableswap {
             option::none()
         );
 
-        // theorically it should be 100000000, 100000000 but reduce 1 from return amount because of rounding error
+        // theoretically it should be 100000000, 100000000 but reduce 1 from return amount because of rounding error
         assert!(
             get_pool(pool).coin_balances == vector[100000001, 100000000],
             0
@@ -1653,7 +1653,7 @@ module initia_std::stableswap {
 
         let liquidity_after = coin::balance(chain_addr, metadata_lp);
 
-        // theorically it should be same but reduce 1 from return amount because of rounding error
+        // theoretically it should be same but reduce 1 from return amount because of rounding error
         assert!(liquidity_before == liquidity_after + 1, 0);
     }
 }
diff --git a/precompile/modules/initia_stdlib/sources/staking.move b/precompile/modules/initia_stdlib/sources/staking.move
index ce4b5c62..aa257e14 100644
--- a/precompile/modules/initia_stdlib/sources/staking.move
+++ b/precompile/modules/initia_stdlib/sources/staking.move
@@ -359,7 +359,7 @@ module initia_std::staking {
     }
 
     #[view]
-    /// Get delegation info of specifed addr and validator
+    /// Get delegation info of specified addr and validator
     public fun get_delegation(
         addr: address, metadata: Object, validator: String
     ): DelegationResponse acquires DelegationStore, ModuleStore {
@@ -1086,7 +1086,7 @@ module initia_std::staking {
         delegation.share
     }
 
-    /// Destory empty delegation
+    /// Destroy empty delegation
     public fun destroy_empty_delegation(delegation: Delegation) {
         assert!(
             bigdecimal::is_zero(delegation.share),
@@ -1355,7 +1355,7 @@ module initia_std::staking {
         )
     }
 
-    /// Destory empty unbonding
+    /// Destroy empty unbonding
     public fun destroy_empty_unbonding(unbonding: Unbonding) {
         assert!(
             bigdecimal::is_zero(unbonding.unbonding_share),
@@ -1412,7 +1412,7 @@ module initia_std::staking {
         merge_unbonding(dst_unbonding, unbonding);
     }
 
-    /// Withdraw specifed `amount` of unbonding_amount from the unbonding.
+    /// Withdraw specified `amount` of unbonding_amount from the unbonding.
     public fun withdraw_unbonding(
         account: &signer,
         metadata: Object,
diff --git a/precompile/modules/initia_stdlib/sources/token/collection.move b/precompile/modules/initia_stdlib/sources/token/collection.move
index 278da9c8..8e95d121 100644
--- a/precompile/modules/initia_stdlib/sources/token/collection.move
+++ b/precompile/modules/initia_stdlib/sources/token/collection.move
@@ -406,7 +406,7 @@ module initia_std::collection {
 
     #[view]
     /// get nft list from collection
-    /// if `start_after` is not none, seach nfts in range (start_after, ...]
+    /// if `start_after` is not none, search nfts in range (start_after, ...]
     public fun nfts(
         collection: Object, start_after: Option, limit: u64
     ): vector acquires Collection {
@@ -545,9 +545,9 @@ module initia_std::collection {
         assert!(count(collection) == option::some(0), 0);
     }
 
-    #[test(creator = @0x123, receipient = @0x456)]
+    #[test(creator = @0x123, recipient = @0x456)]
     entry fun test_create_and_transfer(
-        creator: &signer, receipient: &signer
+        creator: &signer, recipient: &signer
     ) {
         let creator_address = signer::address_of(creator);
         let collection_name = string::utf8(b"collection name");
@@ -564,7 +564,7 @@ module initia_std::collection {
         object::transfer(
             creator,
             collection,
-            signer::address_of(receipient)
+            signer::address_of(recipient)
         );
     }
 
diff --git a/precompile/modules/initia_stdlib/sources/token/nft.move b/precompile/modules/initia_stdlib/sources/token/nft.move
index 083f44c2..5cbd19ed 100644
--- a/precompile/modules/initia_stdlib/sources/token/nft.move
+++ b/precompile/modules/initia_stdlib/sources/token/nft.move
@@ -60,7 +60,7 @@ module initia_std::nft {
         delete_ref: object::DeleteRef
     }
 
-    /// This enables mutating descritpion and URI by higher level services.
+    /// This enables mutating description and URI by higher level services.
     struct MutatorRef has drop, store {
         self: address
     }
diff --git a/precompile/modules/initia_stdlib/sources/token/property_map.move b/precompile/modules/initia_stdlib/sources/token/property_map.move
index c5c8b28c..8b90bd1b 100644
--- a/precompile/modules/initia_stdlib/sources/token/property_map.move
+++ b/precompile/modules/initia_stdlib/sources/token/property_map.move
@@ -72,7 +72,7 @@ module initia_std::property_map {
     }
 
     /// Burns the entire property map
-    /// TODO: hanlde when table is not empty
+    /// TODO: handle when table is not empty
     public fun burn(ref: MutatorRef) acquires PropertyMap {
         move_from(ref.self);
     }
diff --git a/precompile/modules/minitia_stdlib/README.md b/precompile/modules/minitia_stdlib/README.md
index 7b100110..bd19030c 100644
--- a/precompile/modules/minitia_stdlib/README.md
+++ b/precompile/modules/minitia_stdlib/README.md
@@ -1,4 +1,4 @@
-# Minitia Standar Library
+# Minitia Standard Library
 
 The Minitia standard library defines stardarads, types and util modules of Minitia.
 
diff --git a/precompile/modules/minitia_stdlib/doc/coin.md b/precompile/modules/minitia_stdlib/doc/coin.md
index 0650b3a0..1add47d7 100644
--- a/precompile/modules/minitia_stdlib/doc/coin.md
+++ b/precompile/modules/minitia_stdlib/doc/coin.md
@@ -475,7 +475,7 @@ Only fungible asset metadata owner can make changes.
 
 ## Function `mint`
 
-Mint FAs as the owner of metadat object.
+Mint FAs as the owner of metadata object.
 
 
 
public fun mint(mint_cap: &coin::MintCapability, amount: u64): fungible_asset::FungibleAsset
@@ -506,7 +506,7 @@ Mint FAs as the owner of metadat object.
 
 ## Function `mint_to`
 
-Mint FAs as the owner of metadat object to the primary fungible store of the given recipient.
+Mint FAs as the owner of metadata object to the primary fungible store of the given recipient.
 
 
 
public fun mint_to(mint_cap: &coin::MintCapability, recipient: address, amount: u64)
@@ -539,7 +539,7 @@ Mint FAs as the owner of metadat object to the primary fungible store of the giv
 
 ## Function `burn`
 
-Burn FAs as the owner of metadat object.
+Burn FAs as the owner of metadata object.
 
 
 
public fun burn(burn_cap: &coin::BurnCapability, fa: fungible_asset::FungibleAsset)
diff --git a/precompile/modules/minitia_stdlib/doc/collection.md b/precompile/modules/minitia_stdlib/doc/collection.md
index 108c7f80..9f220ca7 100644
--- a/precompile/modules/minitia_stdlib/doc/collection.md
+++ b/precompile/modules/minitia_stdlib/doc/collection.md
@@ -872,7 +872,7 @@ Provides the count of the current selection if supply tracking is used
 ## Function `nfts`
 
 get nft list from collection
-if start_after is not none, seach nfts in range (start_after, ...]
+if start_after is not none, search nfts in range (start_after, ...]
 
 
 
#[view]
diff --git a/precompile/modules/minitia_stdlib/doc/dex.md b/precompile/modules/minitia_stdlib/doc/dex.md
index b8efe0fc..646003c3 100644
--- a/precompile/modules/minitia_stdlib/doc/dex.md
+++ b/precompile/modules/minitia_stdlib/doc/dex.md
@@ -2584,7 +2584,7 @@ CONTRACT: not allow until LBP is ended
 
 ## Function `single_asset_provide_liquidity`
 
-Signle asset provide liquidity directly
+Single asset provide liquidity directly
 CONTRACT: cannot provide more than the pool amount to prevent huge price impact
 CONTRACT: not allow until LBP is ended
 
diff --git a/precompile/modules/minitia_stdlib/doc/dispatchable_fungible_asset.md b/precompile/modules/minitia_stdlib/doc/dispatchable_fungible_asset.md
index 04e1caa6..d4b988e3 100644
--- a/precompile/modules/minitia_stdlib/doc/dispatchable_fungible_asset.md
+++ b/precompile/modules/minitia_stdlib/doc/dispatchable_fungible_asset.md
@@ -10,7 +10,7 @@ The dispatchable_fungible_asset wraps the existing fungible_asset module and add
 to customize the logic for withdraw and deposit operations. For example:
 
 - Deflation token: a fixed percentage of token will be destructed upon transfer.
-- Transfer allowlist: token can only be transfered to addresses in the allow list.
+- Transfer allowlist: token can only be transferred to addresses in the allow list.
 - Predicated transfer: transfer can only happen when some certain predicate has been met.
 - Loyalty token: a fixed loyalty will be paid to a designated address when a fungible asset transfer happens
 
@@ -285,7 +285,7 @@ Note: it does not move the underlying object.
 ## Function `transfer_assert_minimum_deposit`
 
 Transfer an amount of fungible asset from from_store, which should be owned by sender, to receiver.
-The recipient is guranteed to receive asset greater than the expected amount.
+The recipient is guaranteed to receive asset greater than the expected amount.
 Note: it does not move the underlying object.
 
 
diff --git a/precompile/modules/minitia_stdlib/doc/ed25519.md b/precompile/modules/minitia_stdlib/doc/ed25519.md
index 84d3fcf1..5b98e0dc 100644
--- a/precompile/modules/minitia_stdlib/doc/ed25519.md
+++ b/precompile/modules/minitia_stdlib/doc/ed25519.md
@@ -133,7 +133,7 @@ The size of a serialized signature, in bytes.
 
 ## Function `public_key_from_bytes`
 
-Contructs an PublicKey struct, given 32-byte representation.
+Constructs an PublicKey struct, given 32-byte representation.
 
 
 
public fun public_key_from_bytes(bytes: vector<u8>): ed25519::PublicKey
diff --git a/precompile/modules/minitia_stdlib/doc/fungible_asset.md b/precompile/modules/minitia_stdlib/doc/fungible_asset.md
index e45cb391..53eb1acd 100644
--- a/precompile/modules/minitia_stdlib/doc/fungible_asset.md
+++ b/precompile/modules/minitia_stdlib/doc/fungible_asset.md
@@ -1301,7 +1301,7 @@ This can only be called at object creation time as constructor_ref is only avail
 
 ## Function `is_fungible_asset`
 
-Retrun true if given address has Metadata else return false
+Return true if given address has Metadata else return false
 
 
 
#[view]
diff --git a/precompile/modules/minitia_stdlib/doc/math128.md b/precompile/modules/minitia_stdlib/doc/math128.md
index c625ed3f..37c8ea36 100644
--- a/precompile/modules/minitia_stdlib/doc/math128.md
+++ b/precompile/modules/minitia_stdlib/doc/math128.md
@@ -343,7 +343,7 @@ Returns square root of x, precisely floor(sqrt(x))
     let res = 1 << ((floor_log2(x) + 1) >> 1);
     // We use standard newton-rhapson iteration to improve the initial approximation.
     // The error term evolves as delta_i+1 = delta_i^2 / 2 (quadratic convergence).
-    // It turns out that after 5 iterations the delta is smaller than 2^-64 and thus below the treshold.
+    // It turns out that after 5 iterations the delta is smaller than 2^-64 and thus below the threshold.
     res = (res + x / res) >> 1;
     res = (res + x / res) >> 1;
     res = (res + x / res) >> 1;
diff --git a/precompile/modules/minitia_stdlib/doc/math64.md b/precompile/modules/minitia_stdlib/doc/math64.md
index 6d866ba3..e73490aa 100644
--- a/precompile/modules/minitia_stdlib/doc/math64.md
+++ b/precompile/modules/minitia_stdlib/doc/math64.md
@@ -301,7 +301,7 @@ Returns square root of x, precisely floor(sqrt(x))
     let res = 1 << ((floor_log2(x) + 1) >> 1);
     // We use standard newton-rhapson iteration to improve the initial approximation.
     // The error term evolves as delta_i+1 = delta_i^2 / 2 (quadratic convergence).
-    // It turns out that after 4 iterations the delta is smaller than 2^-32 and thus below the treshold.
+    // It turns out that after 4 iterations the delta is smaller than 2^-32 and thus below the threshold.
     res = (res + x / res) >> 1;
     res = (res + x / res) >> 1;
     res = (res + x / res) >> 1;
diff --git a/precompile/modules/minitia_stdlib/doc/nft.md b/precompile/modules/minitia_stdlib/doc/nft.md
index 58b733f2..40386bc0 100644
--- a/precompile/modules/minitia_stdlib/doc/nft.md
+++ b/precompile/modules/minitia_stdlib/doc/nft.md
@@ -126,7 +126,7 @@ a small optimization to support either and take a fixed amount of 34-bytes.
 
 ## Struct `MutatorRef`
 
-This enables mutating descritpion and URI by higher level services.
+This enables mutating description and URI by higher level services.
 
 
 
struct MutatorRef has drop, store
diff --git a/precompile/modules/minitia_stdlib/doc/object.md b/precompile/modules/minitia_stdlib/doc/object.md
index 438abc3e..3d2e82dd 100644
--- a/precompile/modules/minitia_stdlib/doc/object.md
+++ b/precompile/modules/minitia_stdlib/doc/object.md
@@ -550,7 +550,7 @@ The version of ref does not match with object core version.
 
 
 
-Maximum nesting from one object to another. That is objects can technically have infinte
+Maximum nesting from one object to another. That is objects can technically have infinite
 nesting, but any checks such as transfer will only be evaluated this deep.
 
 
diff --git a/precompile/modules/minitia_stdlib/doc/primary_fungible_store.md b/precompile/modules/minitia_stdlib/doc/primary_fungible_store.md
index c7517892..d271d170 100644
--- a/precompile/modules/minitia_stdlib/doc/primary_fungible_store.md
+++ b/precompile/modules/minitia_stdlib/doc/primary_fungible_store.md
@@ -659,7 +659,7 @@ Transfer amount of fungible asset from sender's primary store to re
 ## Function `transfer_assert_minimum_deposit`
 
 Transfer amount of fungible asset from sender's primary store to receiver's primary store.
-Use the minimum deposit assertion api to make sure receipient will receive a minimum amount of fund.
+Use the minimum deposit assertion api to make sure recipient will receive a minimum amount of fund.
 
 
 
public entry fun transfer_assert_minimum_deposit<T: key>(sender: &signer, metadata: object::Object<T>, recipient: address, amount: u64, expected: u64)
diff --git a/precompile/modules/minitia_stdlib/doc/property_map.md b/precompile/modules/minitia_stdlib/doc/property_map.md
index cb7a15f3..4c42b871 100644
--- a/precompile/modules/minitia_stdlib/doc/property_map.md
+++ b/precompile/modules/minitia_stdlib/doc/property_map.md
@@ -352,7 +352,7 @@ Maximum number of characters in a property name
 ## Function `burn`
 
 Burns the entire property map
-TODO: hanlde when table is not empty
+TODO: handle when table is not empty
 
 
 
public fun burn(ref: property_map::MutatorRef)
diff --git a/precompile/modules/minitia_stdlib/sources/coin.move b/precompile/modules/minitia_stdlib/sources/coin.move
index 4d864b54..4f5f7723 100644
--- a/precompile/modules/minitia_stdlib/sources/coin.move
+++ b/precompile/modules/minitia_stdlib/sources/coin.move
@@ -198,7 +198,7 @@ module minitia_std::coin {
     // Admin operations
     //
 
-    /// Mint FAs as the owner of metadat object.
+    /// Mint FAs as the owner of metadata object.
     public fun mint(mint_cap: &MintCapability, amount: u64): FungibleAsset acquires ManagingRefs {
         let metadata = mint_cap.metadata;
         let metadata_addr = object::object_address(&metadata);
@@ -212,7 +212,7 @@ module minitia_std::coin {
         fungible_asset::mint(&refs.mint_ref, amount)
     }
 
-    /// Mint FAs as the owner of metadat object to the primary fungible store of the given recipient.
+    /// Mint FAs as the owner of metadata object to the primary fungible store of the given recipient.
     public fun mint_to(
         mint_cap: &MintCapability, recipient: address, amount: u64
     ) acquires ManagingRefs {
@@ -228,7 +228,7 @@ module minitia_std::coin {
         primary_fungible_store::mint(&refs.mint_ref, recipient, amount)
     }
 
-    /// Burn FAs as the owner of metadat object.
+    /// Burn FAs as the owner of metadata object.
     public fun burn(burn_cap: &BurnCapability, fa: FungibleAsset) acquires ManagingRefs {
         let metadata = burn_cap.metadata;
         let metadata_addr = object::object_address(&metadata);
diff --git a/precompile/modules/minitia_stdlib/sources/crypto/ed25519.move b/precompile/modules/minitia_stdlib/sources/crypto/ed25519.move
index 1ef52138..c77f770f 100644
--- a/precompile/modules/minitia_stdlib/sources/crypto/ed25519.move
+++ b/precompile/modules/minitia_stdlib/sources/crypto/ed25519.move
@@ -40,7 +40,7 @@ module minitia_std::ed25519 {
     // Functions
     //
 
-    /// Contructs an PublicKey struct, given 32-byte representation.
+    /// Constructs an PublicKey struct, given 32-byte representation.
     public fun public_key_from_bytes(bytes: vector): PublicKey {
         assert!(
             std::vector::length(&bytes) == PUBLIC_KEY_SIZE,
diff --git a/precompile/modules/minitia_stdlib/sources/dex.move b/precompile/modules/minitia_stdlib/sources/dex.move
index 166524b5..fcb770c0 100644
--- a/precompile/modules/minitia_stdlib/sources/dex.move
+++ b/precompile/modules/minitia_stdlib/sources/dex.move
@@ -248,7 +248,7 @@ module minitia_std::dex {
 
     const MAX_LIMIT: u8 = 30;
 
-    // TODO - find the resonable percision
+    // TODO - find the reasonable precision
     /// Result Precision of `pow` and `ln` function
     const PRECISION: u64 = 100000;
 
@@ -1108,7 +1108,7 @@ module minitia_std::dex {
         )
     }
 
-    /// Signle asset provide liquidity directly
+    /// Single asset provide liquidity directly
     /// CONTRACT: cannot provide more than the pool amount to prevent huge price impact
     /// CONTRACT: not allow until LBP is ended
     public fun single_asset_provide_liquidity(
diff --git a/precompile/modules/minitia_stdlib/sources/fa/dispatchable_fungible_asset.move b/precompile/modules/minitia_stdlib/sources/fa/dispatchable_fungible_asset.move
index a1c7b2f6..2c556145 100644
--- a/precompile/modules/minitia_stdlib/sources/fa/dispatchable_fungible_asset.move
+++ b/precompile/modules/minitia_stdlib/sources/fa/dispatchable_fungible_asset.move
@@ -5,7 +5,7 @@
 /// to customize the logic for withdraw and deposit operations. For example:
 ///
 /// - Deflation token: a fixed percentage of token will be destructed upon transfer.
-/// - Transfer allowlist: token can only be transfered to addresses in the allow list.
+/// - Transfer allowlist: token can only be transferred to addresses in the allow list.
 /// - Predicated transfer: transfer can only happen when some certain predicate has been met.
 /// - Loyalty token: a fixed loyalty will be paid to a designated address when a fungible asset transfer happens
 ///
@@ -121,7 +121,7 @@ module minitia_std::dispatchable_fungible_asset {
     }
 
     /// Transfer an `amount` of fungible asset from `from_store`, which should be owned by `sender`, to `receiver`.
-    /// The recipient is guranteed to receive asset greater than the expected amount.
+    /// The recipient is guaranteed to receive asset greater than the expected amount.
     /// Note: it does not move the underlying object.
     public entry fun transfer_assert_minimum_deposit(
         sender: &signer,
diff --git a/precompile/modules/minitia_stdlib/sources/fa/fungible_asset.move b/precompile/modules/minitia_stdlib/sources/fa/fungible_asset.move
index 160dce1d..68656188 100644
--- a/precompile/modules/minitia_stdlib/sources/fa/fungible_asset.move
+++ b/precompile/modules/minitia_stdlib/sources/fa/fungible_asset.move
@@ -443,7 +443,7 @@ module minitia_std::fungible_asset {
     }
 
     #[view]
-    /// Retrun true if given address has Metadata else return false
+    /// Return true if given address has Metadata else return false
     public fun is_fungible_asset(metadata_addr: address): bool {
         exists(metadata_addr)
     }
diff --git a/precompile/modules/minitia_stdlib/sources/fa/primary_fungible_store.move b/precompile/modules/minitia_stdlib/sources/fa/primary_fungible_store.move
index a1286153..200b12f8 100644
--- a/precompile/modules/minitia_stdlib/sources/fa/primary_fungible_store.move
+++ b/precompile/modules/minitia_stdlib/sources/fa/primary_fungible_store.move
@@ -311,7 +311,7 @@ module minitia_std::primary_fungible_store {
     }
 
     /// Transfer `amount` of fungible asset from sender's primary store to receiver's primary store.
-    /// Use the minimum deposit assertion api to make sure receipient will receive a minimum amount of fund.
+    /// Use the minimum deposit assertion api to make sure recipient will receive a minimum amount of fund.
     public entry fun transfer_assert_minimum_deposit(
         sender: &signer,
         metadata: Object,
diff --git a/precompile/modules/minitia_stdlib/sources/fixed_point64.move b/precompile/modules/minitia_stdlib/sources/fixed_point64.move
index 66924e4a..d817949c 100644
--- a/precompile/modules/minitia_stdlib/sources/fixed_point64.move
+++ b/precompile/modules/minitia_stdlib/sources/fixed_point64.move
@@ -546,7 +546,7 @@ module minitia_std::fixed_point64 {
     #[test_only]
     /// For functions that approximate a value it's useful to test a value is close
     /// to the most correct value up to last digit
-    fun assert_approx_the_same(x: u256, y: u256, precission: u128) {
+    fun assert_approx_the_same(x: u256, y: u256, precision: u128) {
         if (x < y) {
             let tmp = x;
             x = y;
@@ -554,11 +554,11 @@ module minitia_std::fixed_point64 {
         };
         let mult = 1u256;
         let n = 10u256;
-        while (precission > 0) {
-            if (precission % 2 == 1) {
+        while (precision > 0) {
+            if (precision % 2 == 1) {
                 mult = mult * n;
             };
-            precission = precission / 2;
+            precision = precision / 2;
             n = n * n;
         };
         assert!((x - y) * mult < x, 0);
diff --git a/precompile/modules/minitia_stdlib/sources/math128.move b/precompile/modules/minitia_stdlib/sources/math128.move
index 7ec7c3d3..653c5f70 100644
--- a/precompile/modules/minitia_stdlib/sources/math128.move
+++ b/precompile/modules/minitia_stdlib/sources/math128.move
@@ -137,7 +137,7 @@ module minitia_std::math128 {
         let res = 1 << ((floor_log2(x) + 1) >> 1);
         // We use standard newton-rhapson iteration to improve the initial approximation.
         // The error term evolves as delta_i+1 = delta_i^2 / 2 (quadratic convergence).
-        // It turns out that after 5 iterations the delta is smaller than 2^-64 and thus below the treshold.
+        // It turns out that after 5 iterations the delta is smaller than 2^-64 and thus below the threshold.
         res = (res + x / res) >> 1;
         res = (res + x / res) >> 1;
         res = (res + x / res) >> 1;
@@ -331,13 +331,13 @@ module minitia_std::math128 {
     #[test_only]
     /// For functions that approximate a value it's useful to test a value is close
     /// to the most correct value up to last digit
-    fun assert_approx_the_same(x: u128, y: u128, precission: u128) {
+    fun assert_approx_the_same(x: u128, y: u128, precision: u128) {
         if (x < y) {
             let tmp = x;
             x = y;
             y = tmp;
         };
-        let mult = pow(10, precission);
+        let mult = pow(10, precision);
         assert!((x - y) * mult < x, 0);
     }
 }
diff --git a/precompile/modules/minitia_stdlib/sources/math64.move b/precompile/modules/minitia_stdlib/sources/math64.move
index 99a85e0b..c34d4fe1 100644
--- a/precompile/modules/minitia_stdlib/sources/math64.move
+++ b/precompile/modules/minitia_stdlib/sources/math64.move
@@ -111,7 +111,7 @@ module minitia_std::math64 {
         let res = 1 << ((floor_log2(x) + 1) >> 1);
         // We use standard newton-rhapson iteration to improve the initial approximation.
         // The error term evolves as delta_i+1 = delta_i^2 / 2 (quadratic convergence).
-        // It turns out that after 4 iterations the delta is smaller than 2^-32 and thus below the treshold.
+        // It turns out that after 4 iterations the delta is smaller than 2^-32 and thus below the threshold.
         res = (res + x / res) >> 1;
         res = (res + x / res) >> 1;
         res = (res + x / res) >> 1;
@@ -274,13 +274,13 @@ module minitia_std::math64 {
     #[test_only]
     /// For functions that approximate a value it's useful to test a value is close
     /// to the most correct value up to last digit
-    fun assert_approx_the_same(x: u128, y: u128, precission: u64) {
+    fun assert_approx_the_same(x: u128, y: u128, precision: u64) {
         if (x < y) {
             let tmp = x;
             x = y;
             y = tmp;
         };
-        let mult = (pow(10, precission) as u128);
+        let mult = (pow(10, precision) as u128);
         assert!((x - y) * mult < x, 0);
     }
 }
diff --git a/precompile/modules/minitia_stdlib/sources/multisig.move b/precompile/modules/minitia_stdlib/sources/multisig.move
index e020708f..10d1d1e3 100644
--- a/precompile/modules/minitia_stdlib/sources/multisig.move
+++ b/precompile/modules/minitia_stdlib/sources/multisig.move
@@ -12,7 +12,7 @@ module minitia_std::multisig {
     use minitia_std::simple_map::{Self, SimpleMap};
     use minitia_std::table::{Self, Table};
 
-    // errros
+    // errors
 
     const EINVALID_THRESHOLD: u64 = 1;
 
@@ -34,7 +34,7 @@ module minitia_std::multisig {
 
     // constants
 
-    const STATUS: vector> = vector[b"in voting preiod", b"executed", b"expired"];
+    const STATUS: vector> = vector[b"in voting period", b"executed", b"expired"];
 
     const MAX_LIMIT: u8 = 30;
 
diff --git a/precompile/modules/minitia_stdlib/sources/object.move b/precompile/modules/minitia_stdlib/sources/object.move
index 727283d2..90ad880d 100644
--- a/precompile/modules/minitia_stdlib/sources/object.move
+++ b/precompile/modules/minitia_stdlib/sources/object.move
@@ -49,7 +49,7 @@ module minitia_std::object {
     /// The version of ref does not match with object core version.
     const EVERSION_MISMATCH: u64 = 9;
 
-    /// Maximum nesting from one object to another. That is objects can technically have infinte
+    /// Maximum nesting from one object to another. That is objects can technically have infinite
     /// nesting, but any checks such as transfer will only be evaluated this deep.
     const MAXIMUM_OBJECT_NESTING: u8 = 8;
 
diff --git a/precompile/modules/minitia_stdlib/sources/token/collection.move b/precompile/modules/minitia_stdlib/sources/token/collection.move
index a069604e..0f6c8975 100644
--- a/precompile/modules/minitia_stdlib/sources/token/collection.move
+++ b/precompile/modules/minitia_stdlib/sources/token/collection.move
@@ -406,7 +406,7 @@ module minitia_std::collection {
 
     #[view]
     /// get nft list from collection
-    /// if `start_after` is not none, seach nfts in range (start_after, ...]
+    /// if `start_after` is not none, search nfts in range (start_after, ...]
     public fun nfts(
         collection: Object, start_after: Option, limit: u64
     ): vector acquires Collection {
@@ -545,9 +545,9 @@ module minitia_std::collection {
         assert!(count(collection) == option::some(0), 0);
     }
 
-    #[test(creator = @0x123, receipient = @0x456)]
+    #[test(creator = @0x123, recipient = @0x456)]
     entry fun test_create_and_transfer(
-        creator: &signer, receipient: &signer
+        creator: &signer, recipient: &signer
     ) {
         let creator_address = signer::address_of(creator);
         let collection_name = string::utf8(b"collection name");
@@ -564,7 +564,7 @@ module minitia_std::collection {
         object::transfer(
             creator,
             collection,
-            signer::address_of(receipient)
+            signer::address_of(recipient)
         );
     }
 
diff --git a/precompile/modules/minitia_stdlib/sources/token/nft.move b/precompile/modules/minitia_stdlib/sources/token/nft.move
index 81f04381..37440cc7 100644
--- a/precompile/modules/minitia_stdlib/sources/token/nft.move
+++ b/precompile/modules/minitia_stdlib/sources/token/nft.move
@@ -60,7 +60,7 @@ module minitia_std::nft {
         delete_ref: object::DeleteRef
     }
 
-    /// This enables mutating descritpion and URI by higher level services.
+    /// This enables mutating description and URI by higher level services.
     struct MutatorRef has drop, store {
         self: address
     }
diff --git a/precompile/modules/minitia_stdlib/sources/token/property_map.move b/precompile/modules/minitia_stdlib/sources/token/property_map.move
index 901f3626..ef9d8295 100644
--- a/precompile/modules/minitia_stdlib/sources/token/property_map.move
+++ b/precompile/modules/minitia_stdlib/sources/token/property_map.move
@@ -72,7 +72,7 @@ module minitia_std::property_map {
     }
 
     /// Burns the entire property map
-    /// TODO: hanlde when table is not empty
+    /// TODO: handle when table is not empty
     public fun burn(ref: MutatorRef) acquires PropertyMap {
         move_from(ref.self);
     }
diff --git a/precompile/modules/move_nursery/doc/compare.md b/precompile/modules/move_nursery/doc/compare.md
index 51df5530..00224490 100644
--- a/precompile/modules/move_nursery/doc/compare.md
+++ b/precompile/modules/move_nursery/doc/compare.md
@@ -107,7 +107,7 @@ Keep this in mind when using this function to compare addresses.
         if (elem_cmp != 0) return elem_cmp
         // else, compare next element
     };
-    // all compared elements equal; use length comparion to break the tie
+    // all compared elements equal; use length comparison to break the tie
     len_cmp
 }
 
diff --git a/precompile/modules/move_nursery/sources/compare.move b/precompile/modules/move_nursery/sources/compare.move index 54864c6d..49cfb1d5 100644 --- a/precompile/modules/move_nursery/sources/compare.move +++ b/precompile/modules/move_nursery/sources/compare.move @@ -56,7 +56,7 @@ module std::compare { if (elem_cmp != 0) return elem_cmp // else, compare next element }; - // all compared elements equal; use length comparion to break the tie + // all compared elements equal; use length comparison to break the tie len_cmp } diff --git a/precompile/modules/move_stdlib/sources/signer.move b/precompile/modules/move_stdlib/sources/signer.move index 1996b433..08395646 100644 --- a/precompile/modules/move_stdlib/sources/signer.move +++ b/precompile/modules/move_stdlib/sources/signer.move @@ -1,6 +1,6 @@ module std::signer { // Borrows the address of the signer - // Conceptually, you can think of the `signer` as being a struct wrapper arround an + // Conceptually, you can think of the `signer` as being a struct wrapper around an // address // ``` // struct signer has drop { addr: address }