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

rename: fix capitalization (Iota to IOTA) #24

Merged
merged 1 commit into from
Jan 16, 2025
Merged
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 crates/iota-rust-sdk/src/hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ mod type_digest {
}
}

/// A 1-byte domain separator for hashing Object ID in Iota. It is starting from
/// A 1-byte domain separator for hashing Object ID in IOTA. It is starting from
/// 0xf0 to ensure no hashing collision for any ObjectId vs Address which is
/// derived as the hash of `flag || pubkey`.
#[derive(Copy, Clone, PartialEq, Eq, Debug, Hash)]
Expand Down
2 changes: 1 addition & 1 deletion crates/iota-rust-sdk/src/types/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ impl schemars::JsonSchema for Address {
SchemaObject {
metadata: Some(Box::new(Metadata {
title: Some(Self::schema_name()),
description: Some("A 32-byte Iota address, encoded as a hex string.".to_owned()),
description: Some("A 32-byte IOTA address, encoded as a hex string.".to_owned()),
examples: vec![serde_json::to_value(Address::TWO).unwrap()],
..Default::default()
})),
Expand Down
2 changes: 1 addition & 1 deletion crates/iota-rust-sdk/src/types/crypto/passkey.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ mod serialization {
pub enum ClientDataType {
/// Serializes to the string `"webauthn.get"`
///
/// Passkey's in Iota only support the value `"webauthn.get"`, other
/// Passkey's in IOTA only support the value `"webauthn.get"`, other
/// values will be rejected.
#[serde(rename = "webauthn.get")]
Get,
Expand Down
2 changes: 1 addition & 1 deletion crates/iota-rust-sdk/src/types/digest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ impl std::fmt::LowerHex for Digest {
}
}

// Unfortunately iota's binary representation of digests is prefixed with its
// Unfortunately IOTA's binary representation of digests is prefixed with its
// length meaning its serialized binary form is 33 bytes long (in bcs) vs a more
// compact 32 bytes.
#[cfg(feature = "serde")]
Expand Down
4 changes: 2 additions & 2 deletions crates/iota-rust-sdk/src/types/execution_status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub enum ExecutionError {
/// The modules in the package must have their self-addresses set to zero.
PublishErrorNonZeroAddress,

/// Iota Move Bytecode Verification Error.
/// IOTA Move Bytecode Verification Error.
IotaMoveVerificationError,

// MoveVm Errors
Expand Down Expand Up @@ -146,7 +146,7 @@ pub enum ExecutionError {
/// Certificate is on the deny list
CertificateDenied,

/// Iota Move Bytecode verification timed out.
/// IOTA Move Bytecode verification timed out.
IotaMoveVerificationTimeout,

/// The requested shared object operation is not allowed
Expand Down
8 changes: 4 additions & 4 deletions crates/iota-rust-sdk/src/types/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ pub enum ObjectData {
Struct(MoveStruct),
/// Map from each module name to raw serialized Move module bytes
Package(MovePackage),
// ... Iota "native" types go here
// ... IOTA "native" types go here
}

// serde_bytes::ByteBuf is an analog of Vec<u8> with built-in fast
Expand Down Expand Up @@ -204,7 +204,7 @@ pub struct MoveStruct {
pub contents: Vec<u8>,
}

/// Type of a Iota object
/// Type of an IOTA object
#[derive(Clone, Ord, PartialOrd, Eq, PartialEq, Debug)]
pub enum ObjectType {
/// Move package containing one or more bytecode modules
Expand Down Expand Up @@ -352,7 +352,7 @@ mod serialization {
enum MoveStructType {
/// A type that is not `0x2::coin::Coin<T>`
Other(StructTag),
/// A IOTA coin (i.e., `0x2::coin::Coin<0x2::iota::IOTA>`)
/// An IOTA coin (i.e., `0x2::coin::Coin<0x2::iota::IOTA>`)
GasCoin,
/// A record of a staked IOTA coin (i.e.,
/// `0x3::staking_pool::StakedIota`)
Expand All @@ -370,7 +370,7 @@ mod serialization {
enum MoveStructTypeRef<'a> {
/// A type that is not `0x2::coin::Coin<T>`
Other(&'a StructTag),
/// A IOTA coin (i.e., `0x2::coin::Coin<0x2::iota::IOTA>`)
/// An IOTA coin (i.e., `0x2::coin::Coin<0x2::iota::IOTA>`)
GasCoin,
/// A record of a staked IOTA coin (i.e.,
/// `0x3::staking_pool::StakedIota`)
Expand Down
Loading