Skip to content

Commit

Permalink
Rename internal sui module to iota (#1463)
Browse files Browse the repository at this point in the history
* rename sui module to iota

* fmt
  • Loading branch information
UMR1352 authored Nov 29, 2024
1 parent 34c200c commit ffb392a
Show file tree
Hide file tree
Showing 34 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion identity_iota_core/src/rebased/assets/asset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::str::FromStr as _;

use crate::rebased::client::IdentityClient;
use crate::rebased::client::IotaKeySignature;
use crate::rebased::sui::move_calls;
use crate::rebased::iota::move_calls;
use crate::rebased::transaction::Transaction;
use crate::rebased::transaction::TransactionOutput;
use crate::rebased::utils::MoveType;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ use iota_sdk::types::transaction::ObjectArg;
use iota_sdk::types::transaction::ProgrammableTransaction;
use move_core_types::ident_str;

use crate::rebased::iota::move_calls::utils;
use crate::rebased::proposals::BorrowAction;
use crate::rebased::sui::move_calls::utils;
use crate::rebased::utils::MoveType;

pub(crate) fn propose_borrow(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ use iota_sdk::types::transaction::ObjectArg;
use iota_sdk::types::transaction::ProgrammableTransaction;
use move_core_types::ident_str;

use crate::rebased::iota::move_calls::utils;
use crate::rebased::proposals::ControllerExecution;
use crate::rebased::sui::move_calls::utils;
use crate::rebased::utils::MoveType;

pub(crate) fn propose_controller_execution(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ use iota_sdk::types::TypeTag;
use iota_sdk::types::IOTA_FRAMEWORK_PACKAGE_ID;
use move_core_types::ident_str;

use crate::rebased::iota::move_calls::utils;
use crate::rebased::migration::OnChainIdentity;
use crate::rebased::sui::move_calls::utils;

use crate::rebased::utils::MoveType;
use crate::rebased::Error;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use iota_sdk::types::transaction::ObjectArg;
use iota_sdk::types::transaction::ProgrammableTransaction;
use move_core_types::ident_str;

use crate::rebased::sui::move_calls::utils;
use crate::rebased::iota::move_calls::utils;

pub(crate) fn propose_deactivation(
identity: OwnedObjectRef,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2020-2024 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

use crate::rebased::sui::move_calls::utils;
use crate::rebased::iota::move_calls::utils;
use crate::rebased::utils::MoveType;
use crate::rebased::Error;
use iota_sdk::rpc_types::OwnedObjectRef;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ use iota_sdk::types::transaction::ProgrammableTransaction;
use iota_sdk::types::TypeTag;
use move_core_types::ident_str;

use crate::rebased::iota::move_calls;
use crate::rebased::proposals::SendAction;
use crate::rebased::sui::move_calls;
use crate::rebased::utils::MoveType;

use self::move_calls::utils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use iota_sdk::types::transaction::ObjectArg;
use iota_sdk::types::transaction::ProgrammableTransaction;
use move_core_types::ident_str;

use crate::rebased::sui::move_calls::utils;
use crate::rebased::iota::move_calls::utils;

pub(crate) fn propose_update(
identity: OwnedObjectRef,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use iota_sdk::types::transaction::ObjectArg;
use iota_sdk::types::transaction::ProgrammableTransaction;
use move_core_types::ident_str;

use crate::rebased::sui::move_calls::utils;
use crate::rebased::iota::move_calls::utils;

pub(crate) fn propose_upgrade(
identity: OwnedObjectRef,
Expand Down
2 changes: 1 addition & 1 deletion identity_iota_core/src/rebased/migration/alias.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use serde::Serialize;
use crate::rebased::client::IdentityClient;
use crate::rebased::client::IdentityClientReadOnly;
use crate::rebased::client::IotaKeySignature;
use crate::rebased::sui::move_calls;
use crate::rebased::iota::move_calls;
use crate::rebased::transaction::Transaction;
use crate::rebased::transaction::TransactionOutput;
use crate::rebased::utils::MoveType;
Expand Down
4 changes: 2 additions & 2 deletions identity_iota_core/src/rebased/migration/identity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ use std::collections::HashSet;
use std::ops::Deref;
use std::str::FromStr;

use crate::rebased::iota::types::Number;
use crate::rebased::proposals::Upgrade;
use crate::rebased::sui::types::Number;
use crate::IotaDID;
use crate::IotaDocument;
use crate::StateMetadataDocument;
Expand Down Expand Up @@ -39,14 +39,14 @@ use serde::Serialize;
use crate::rebased::client::IdentityClient;
use crate::rebased::client::IdentityClientReadOnly;
use crate::rebased::client::IotaKeySignature;
use crate::rebased::iota::move_calls;
use crate::rebased::proposals::BorrowAction;
use crate::rebased::proposals::ConfigChange;
use crate::rebased::proposals::ControllerExecution;
use crate::rebased::proposals::DeactivateDid;
use crate::rebased::proposals::ProposalBuilder;
use crate::rebased::proposals::SendAction;
use crate::rebased::proposals::UpdateDidDocument;
use crate::rebased::sui::move_calls;
use crate::rebased::transaction::Transaction;
use crate::rebased::transaction::TransactionOutput;
use crate::rebased::utils::MoveType;
Expand Down
4 changes: 2 additions & 2 deletions identity_iota_core/src/rebased/migration/multicontroller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
use std::collections::HashMap;
use std::collections::HashSet;

use crate::rebased::sui::types::Bag;
use crate::rebased::sui::types::Number;
use crate::rebased::iota::types::Bag;
use crate::rebased::iota::types::Number;
use iota_sdk::types::base_types::ObjectID;
use iota_sdk::types::collection_types::Entry;
use iota_sdk::types::collection_types::VecMap;
Expand Down
2 changes: 1 addition & 1 deletion identity_iota_core/src/rebased/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ pub mod assets;
/// Module for handling client operations.
pub mod client;
mod error;
mod iota;
/// Module for handling migration operations.
pub mod migration;
/// Contains the operations of proposals.
pub mod proposals;
mod sui;
/// Module for handling transactions.
pub mod transaction;
/// Contains utility functions.
Expand Down
2 changes: 1 addition & 1 deletion identity_iota_core/src/rebased/proposals/borrow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ use std::marker::PhantomData;

use crate::rebased::client::IdentityClient;
use crate::rebased::client::IotaKeySignature;
use crate::rebased::iota::move_calls;
use crate::rebased::migration::Proposal;
use crate::rebased::sui::move_calls;
use crate::rebased::transaction::ProtoTransaction;
use crate::rebased::transaction::Transaction;
use crate::rebased::transaction::TransactionOutput;
Expand Down
4 changes: 2 additions & 2 deletions identity_iota_core/src/rebased/proposals/config_change.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ use std::str::FromStr as _;

use crate::rebased::client::IdentityClient;
use crate::rebased::client::IotaKeySignature;
use crate::rebased::iota::move_calls;
use crate::rebased::migration::Proposal;
use crate::rebased::sui::move_calls;
use async_trait::async_trait;
use iota_sdk::rpc_types::IotaTransactionBlockResponse;
use iota_sdk::types::base_types::IotaAddress;
Expand All @@ -22,8 +22,8 @@ use secret_storage::Signer;
use serde::Deserialize;
use serde::Serialize;

use crate::rebased::iota::types::Number;
use crate::rebased::migration::OnChainIdentity;
use crate::rebased::sui::types::Number;
use crate::rebased::utils::MoveType;
use crate::rebased::Error;

Expand Down
2 changes: 1 addition & 1 deletion identity_iota_core/src/rebased/proposals/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use std::marker::PhantomData;

use crate::rebased::client::IdentityClient;
use crate::rebased::client::IotaKeySignature;
use crate::rebased::iota::move_calls;
use crate::rebased::migration::Proposal;
use crate::rebased::sui::move_calls;
use crate::rebased::transaction::ProtoTransaction;
use crate::rebased::transaction::Transaction;
use crate::rebased::transaction::TransactionOutput;
Expand Down
2 changes: 1 addition & 1 deletion identity_iota_core/src/rebased/proposals/deactivate_did.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::marker::PhantomData;

use crate::rebased::client::IdentityClient;
use crate::rebased::client::IotaKeySignature;
use crate::rebased::sui::move_calls;
use crate::rebased::iota::move_calls;
use async_trait::async_trait;
use iota_sdk::rpc_types::IotaTransactionBlockResponse;
use iota_sdk::types::base_types::ObjectID;
Expand Down
2 changes: 1 addition & 1 deletion identity_iota_core/src/rebased/proposals/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ use std::ops::DerefMut;

use crate::rebased::client::IdentityClientReadOnly;
use crate::rebased::client::IotaKeySignature;
use crate::rebased::iota::move_calls;
use crate::rebased::migration::get_identity;
use crate::rebased::sui::move_calls;
use crate::rebased::transaction::ProtoTransaction;
use async_trait::async_trait;
pub use borrow::*;
Expand Down
2 changes: 1 addition & 1 deletion identity_iota_core/src/rebased/proposals/send.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ use serde::Serialize;

use crate::rebased::client::IdentityClient;
use crate::rebased::client::IotaKeySignature;
use crate::rebased::iota::move_calls;
use crate::rebased::migration::OnChainIdentity;
use crate::rebased::sui::move_calls;
use crate::rebased::utils::MoveType;
use crate::rebased::Error;

Expand Down
2 changes: 1 addition & 1 deletion identity_iota_core/src/rebased/proposals/update_did_doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::marker::PhantomData;

use crate::rebased::client::IdentityClient;
use crate::rebased::client::IotaKeySignature;
use crate::rebased::sui::move_calls;
use crate::rebased::iota::move_calls;
use crate::IotaDocument;
use async_trait::async_trait;
use iota_sdk::rpc_types::IotaTransactionBlockResponse;
Expand Down
2 changes: 1 addition & 1 deletion identity_iota_core/src/rebased/proposals/upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::marker::PhantomData;

use crate::rebased::client::IdentityClient;
use crate::rebased::client::IotaKeySignature;
use crate::rebased::sui::move_calls;
use crate::rebased::iota::move_calls;
use async_trait::async_trait;
use iota_sdk::rpc_types::IotaTransactionBlockResponse;
use iota_sdk::types::base_types::ObjectID;
Expand Down

0 comments on commit ffb392a

Please sign in to comment.