diff --git a/bindings/nodejs/examples/client/11-build-output.ts b/bindings/nodejs/examples/client/11-build-output.ts index a34ad3876d..882652d55f 100644 --- a/bindings/nodejs/examples/client/11-build-output.ts +++ b/bindings/nodejs/examples/client/11-build-output.ts @@ -41,7 +41,7 @@ async function run() { const addressUnlockCondition: UnlockCondition = new AddressUnlockCondition(new Ed25519Address(hexAddress)); - // Build most basic output with amound and a single address unlock condition + // Build most basic output with amount and a single address unlock condition const basicOutput = await client.buildBasicOutput({ amount: BigInt(1000000), unlockConditions: [addressUnlockCondition], diff --git a/bindings/nodejs/examples/how_tos/advanced_transactions/advanced_transaction.ts b/bindings/nodejs/examples/how_tos/advanced_transactions/advanced_transaction.ts index 2659d4f04d..94b36a0298 100644 --- a/bindings/nodejs/examples/how_tos/advanced_transactions/advanced_transaction.ts +++ b/bindings/nodejs/examples/how_tos/advanced_transactions/advanced_transaction.ts @@ -36,7 +36,7 @@ async function run() { // To sign a transaction we need to unlock stronghold. await wallet.setStrongholdPassword(process.env.STRONGHOLD_PASSWORD); - // Create an ouput with amount 1_000_000 and a timelock of 1 hour + // Create an output with amount 1_000_000 and a timelock of 1 hour const in_an_hour = Math.floor(Date.now() / 1000) + 3600; const basicOutput = await new Client({}).buildBasicOutput({ unlockConditions: [ diff --git a/bindings/nodejs/examples/how_tos/outputs/features.ts b/bindings/nodejs/examples/how_tos/outputs/features.ts index fa36407e24..f7c8743df8 100644 --- a/bindings/nodejs/examples/how_tos/outputs/features.ts +++ b/bindings/nodejs/examples/how_tos/outputs/features.ts @@ -19,7 +19,7 @@ require('dotenv').config({ path: '.env' }); // Run with command: // yarn run-example ./how_tos/outputs/features.ts -// Build ouputs with all features +// Build outputs with all features async function run() { initLogger(); diff --git a/bindings/nodejs/examples/how_tos/outputs/unlock-conditions.ts b/bindings/nodejs/examples/how_tos/outputs/unlock-conditions.ts index 06451c6b25..f677023bab 100644 --- a/bindings/nodejs/examples/how_tos/outputs/unlock-conditions.ts +++ b/bindings/nodejs/examples/how_tos/outputs/unlock-conditions.ts @@ -22,7 +22,7 @@ require('dotenv').config({ path: '.env' }); // Run with command: // yarn run-example ./how_tos/outputs/unlock-conditions.ts -// Build ouputs with all unlock conditions +// Build outputs with all unlock conditions async function run() { initLogger(); diff --git a/bindings/nodejs/tests/client/infoMethods.spec.ts b/bindings/nodejs/tests/client/infoMethods.spec.ts index d72d36f1b8..4b566023f1 100644 --- a/bindings/nodejs/tests/client/infoMethods.spec.ts +++ b/bindings/nodejs/tests/client/infoMethods.spec.ts @@ -41,10 +41,10 @@ describe.skip('Client info methods', () => { expect(nodeHealth).toBeTruthy(); }); - it('gets the unhealty nodes', async () => { - const unhealtyNodes = await client.unhealthyNodes(); + it('gets the unhealthy nodes', async () => { + const unhealthyNodes = await client.unhealthyNodes(); - expect(unhealtyNodes).toBeDefined(); + expect(unhealthyNodes).toBeDefined(); }); it('gets tips', async () => { diff --git a/bindings/python/examples/how_tos/advanced_transactions/advanced_transaction.py b/bindings/python/examples/how_tos/advanced_transactions/advanced_transaction.py index 25d64e04be..81c565cbdf 100644 --- a/bindings/python/examples/how_tos/advanced_transactions/advanced_transaction.py +++ b/bindings/python/examples/how_tos/advanced_transactions/advanced_transaction.py @@ -30,7 +30,7 @@ wallet.set_stronghold_password(os.environ["STRONGHOLD_PASSWORD"]) -# Create an ouput with amount 1_000_000 and a timelock of 1 hour +# Create an output with amount 1_000_000 and a timelock of 1 hour in_an_hour = int( time.mktime( (datetime.datetime.now() + diff --git a/bindings/python/examples/how_tos/alias/create.py b/bindings/python/examples/how_tos/alias/create.py index 2f2838eef1..73e4fb4a5f 100644 --- a/bindings/python/examples/how_tos/alias/create.py +++ b/bindings/python/examples/how_tos/alias/create.py @@ -6,7 +6,7 @@ load_dotenv() -# In this example we will create an alias ouput +# In this example we will create an alias output wallet = Wallet(os.environ['WALLET_DB_PATH']) diff --git a/bindings/python/iota_sdk/types/node_info.py b/bindings/python/iota_sdk/types/node_info.py index c83cb86efc..ec0737c269 100644 --- a/bindings/python/iota_sdk/types/node_info.py +++ b/bindings/python/iota_sdk/types/node_info.py @@ -130,7 +130,7 @@ class NodeInfo: version: The version of the node. status: The status of the node. metrics: Some node metrics. - supportedProtocolVersions: Supported protocol versions by the ndoe. + supportedProtocolVersions: Supported protocol versions by the node. protocol: Information about the running protocol. pendingProtocolParameters: A list of pending (not yet active) protocol parameters. baseToken: Information about the base token. diff --git a/bindings/python/iota_sdk/types/transaction_options.py b/bindings/python/iota_sdk/types/transaction_options.py index 2c38cf33dc..7ae2f415aa 100644 --- a/bindings/python/iota_sdk/types/transaction_options.py +++ b/bindings/python/iota_sdk/types/transaction_options.py @@ -35,7 +35,7 @@ def as_dict(self): class RemainderValueStrategy(Enum): - """Remainder value stragegy variants. + """Remainder value strategy variants. Attributes: ChangeAddress: Allows to move the remainder value to a change address. diff --git a/bindings/python/iota_sdk/wallet/prepared_transaction.py b/bindings/python/iota_sdk/wallet/prepared_transaction.py index 9231683c22..464a3d5f4e 100644 --- a/bindings/python/iota_sdk/wallet/prepared_transaction.py +++ b/bindings/python/iota_sdk/wallet/prepared_transaction.py @@ -24,7 +24,7 @@ def __init__( account: Account, prepared_transaction_data: Union[PreparedTransactionData, Dict] ): - """Initalize `Self`. + """Initialize `Self`. """ self.account = account self.prepared_transaction_data_dto = prepared_transaction_data diff --git a/sdk/examples/client/node_api_indexer/02_get_alias_outputs.rs b/sdk/examples/client/node_api_indexer/02_get_alias_outputs.rs index 8ecb7150ba..5873991e76 100644 --- a/sdk/examples/client/node_api_indexer/02_get_alias_outputs.rs +++ b/sdk/examples/client/node_api_indexer/02_get_alias_outputs.rs @@ -1,7 +1,7 @@ // Copyright 2022 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -//! Gets all alias output ids accociated with an address by querying the +//! Gets all alias output ids associated with an address by querying the //! `api/indexer/v1/outputs/alias` node endpoint. //! //! Make sure that the node has the indexer plugin enabled. diff --git a/sdk/examples/client/node_api_indexer/04_get_foundry_outputs.rs b/sdk/examples/client/node_api_indexer/04_get_foundry_outputs.rs index 3b8f506495..e07becadff 100644 --- a/sdk/examples/client/node_api_indexer/04_get_foundry_outputs.rs +++ b/sdk/examples/client/node_api_indexer/04_get_foundry_outputs.rs @@ -1,7 +1,7 @@ // Copyright 2022 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -//! Gets all foundry output ids accociated with an alias address by querying the +//! Gets all foundry output ids associated with an alias address by querying the //! `api/indexer/v1/outputs/foundry` node endpoint. //! //! Make sure that the node has the indexer plugin enabled. diff --git a/sdk/examples/client/node_api_indexer/06_get_nft_outputs.rs b/sdk/examples/client/node_api_indexer/06_get_nft_outputs.rs index 0ce95267c0..a765b0d3be 100644 --- a/sdk/examples/client/node_api_indexer/06_get_nft_outputs.rs +++ b/sdk/examples/client/node_api_indexer/06_get_nft_outputs.rs @@ -1,7 +1,7 @@ // Copyright 2022 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -//! Gets all nft output ids accociated with an address by querying the +//! Gets all nft output ids associated with an address by querying the //! `api/indexer/v1/outputs/nft` node endpoint. //! //! Make sure that the node has the indexer plugin enabled. diff --git a/sdk/examples/how_tos/advanced_transactions/advanced_transaction.rs b/sdk/examples/how_tos/advanced_transactions/advanced_transaction.rs index 39bd9ccd1b..fafa2cc4b6 100644 --- a/sdk/examples/how_tos/advanced_transactions/advanced_transaction.rs +++ b/sdk/examples/how_tos/advanced_transactions/advanced_transaction.rs @@ -37,7 +37,7 @@ async fn main() -> Result<()> { .set_stronghold_password(std::env::var("STRONGHOLD_PASSWORD").unwrap()) .await?; - // Create an ouput with amount 1_000_000 and a timelock of 1 hour + // Create an output with amount 1_000_000 and a timelock of 1 hour let in_an_hour = (std::time::SystemTime::now() + std::time::Duration::from_secs(3600)) .duration_since(std::time::UNIX_EPOCH) .expect("clock went backwards") diff --git a/sdk/examples/how_tos/client/get_outputs.rs b/sdk/examples/how_tos/client/get_outputs.rs index 7711a1d990..46f4d23309 100644 --- a/sdk/examples/how_tos/client/get_outputs.rs +++ b/sdk/examples/how_tos/client/get_outputs.rs @@ -1,7 +1,7 @@ // Copyright 2022 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 -//! Gets all basic output ids accociated with an address by querying the +//! Gets all basic output ids associated with an address by querying the //! `api/indexer/v1/outputs/basic` node endpoint. //! //! Make sure that the node has the indexer plugin enabled. diff --git a/sdk/examples/how_tos/outputs/features.rs b/sdk/examples/how_tos/outputs/features.rs index ca8367531e..41db52055c 100644 --- a/sdk/examples/how_tos/outputs/features.rs +++ b/sdk/examples/how_tos/outputs/features.rs @@ -66,7 +66,7 @@ async fn main() -> Result<()> { .finish_output(token_supply)?, ]; - // Convert ouput array to json array + // Convert output array to json array let json_outputs = serde_json::to_string_pretty(&outputs.iter().map(OutputDto::from).collect::>())?; println!("{json_outputs}"); diff --git a/sdk/examples/how_tos/outputs/unlock_conditions.rs b/sdk/examples/how_tos/outputs/unlock_conditions.rs index 14dbdfdd9b..c0dec1fd49 100644 --- a/sdk/examples/how_tos/outputs/unlock_conditions.rs +++ b/sdk/examples/how_tos/outputs/unlock_conditions.rs @@ -80,7 +80,7 @@ async fn main() -> Result<()> { .finish_output(token_supply)?, ]; - // Convert ouput array to json array + // Convert output array to json array let json_outputs = serde_json::to_string_pretty(&outputs.iter().map(OutputDto::from).collect::>())?; println!("{json_outputs}"); diff --git a/sdk/src/types/block/output/metadata.rs b/sdk/src/types/block/output/metadata.rs index 0589efbf12..b0ad30807e 100644 --- a/sdk/src/types/block/output/metadata.rs +++ b/sdk/src/types/block/output/metadata.rs @@ -73,12 +73,12 @@ impl OutputMetadata { self.output_id.index() } - /// Returns whether the output is spent ot not. + /// Returns whether the output is spent or not. pub fn is_spent(&self) -> bool { self.is_spent } - /// Sets whether the output is spent ot not. + /// Sets whether the output is spent or not. pub fn set_spent(&mut self, spent: bool) { self.is_spent = spent; } diff --git a/sdk/tests/wallet/transactions.rs b/sdk/tests/wallet/transactions.rs index ccadd4c953..3fdf3d9276 100644 --- a/sdk/tests/wallet/transactions.rs +++ b/sdk/tests/wallet/transactions.rs @@ -296,7 +296,7 @@ async fn prepare_transaction_ledger() -> Result<()> { ) .await?; - let data = receiver.recv().await.expect("never recieved event"); + let data = receiver.recv().await.expect("never received event"); assert_eq!(data.essence, tx.payload.essence().into()); for (sign, input) in data.inputs_data.iter().zip(tx.inputs) { assert_eq!(sign.output, input.output);