Skip to content

Commit

Permalink
Rename did_doc_builder->diddoc; rename diddoc->diddoc_legacy (#850)
Browse files Browse the repository at this point in the history
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
  • Loading branch information
Patrik-Stas authored May 17, 2023
1 parent e666981 commit 3072394
Show file tree
Hide file tree
Showing 89 changed files with 77 additions and 77 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ jobs:
uses: ./.github/actions/setup-testing-rust
- name: "Run resolver tests"
run: |
RUST_TEST_THREADS=1 cargo test -p did_doc_builder -p did_parser -p did_resolver -p did_resolver_registry -p did_resolver_sov -p did_resolver_web --test "*"
RUST_TEST_THREADS=1 cargo test -p did_doc -p did_parser -p did_resolver -p did_resolver_registry -p did_resolver_sov -p did_resolver_web --test "*"
test-node-wrapper:
needs: workflow-setup
Expand Down
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ members = [
"messages_macros",
"messages",
"shared_vcx",
"diddoc",
"diddoc_legacy",
"agents/rust/aries-vcx-agent",
"wrappers/vcx-napi-rs",
"aries_vcx_core",
"uniffi_aries_vcx/core",
"did_doc_builder",
"did_doc",
"did_parser",
"did_resolver",
"did_resolver_registry",
Expand Down
2 changes: 1 addition & 1 deletion aries_vcx/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ modular_libs = ["aries_vcx_core/modular_libs"]
[dependencies]
agency_client = { path = "../agency_client" }
messages = { path = "../messages" }
diddoc = { path = "../diddoc" }
diddoc_legacy = { path = "../diddoc_legacy" }
aries_vcx_core = { path = "../aries_vcx_core" }
shared_vcx = { path = "../shared_vcx" }
bs58 = "0.4.0"
Expand Down
2 changes: 1 addition & 1 deletion aries_vcx/src/common/ledger/service_didsov.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl Default for EndpointDidSov {
#[cfg(test)]
#[allow(clippy::unwrap_used)]
mod unit_tests {
use diddoc::aries::diddoc::test_utils::{_routing_keys, _service_endpoint};
use diddoc_legacy::aries::diddoc::test_utils::{_routing_keys, _service_endpoint};

use crate::common::ledger::service_didsov::{DidSovServiceType, EndpointDidSov};
use crate::utils::devsetup::SetupEmpty;
Expand Down
4 changes: 2 additions & 2 deletions aries_vcx/src/common/ledger/transactions.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bs58;
use diddoc::aries::diddoc::AriesDidDoc;
use diddoc::aries::service::AriesService;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::service::AriesService;
use messages::msg_fields::protocols::connection::invitation::Invitation;
use messages::msg_fields::protocols::out_of_band::invitation::OobService;
use std::{collections::HashMap, sync::Arc};
Expand Down
2 changes: 1 addition & 1 deletion aries_vcx/src/common/signing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ pub async fn unpack_message_to_string(wallet: &Arc<dyn BaseWallet>, msg: &[u8])
// use crate::utils::devsetup::SetupEmpty;
// use aries_vcx_core::indy::utils::test_setup::with_wallet;
// use aries_vcx_core::INVALID_POOL_HANDLE;
// use diddoc::aries::diddoc::test_utils::*;
// use diddoc_legacy::aries::diddoc::test_utils::*;
// use messages::protocols::connection::response::test_utils::{_did, _response, _thread_id};

// use super::*;
Expand Down
2 changes: 1 addition & 1 deletion aries_vcx/src/errors/mapping_diddoc.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::errors::error::{AriesVcxError, AriesVcxErrorKind};
use diddoc::errors::error::{DiddocError, DiddocErrorKind};
use diddoc_legacy::errors::error::{DiddocError, DiddocErrorKind};

impl From<DiddocError> for AriesVcxError {
fn from(msg_err: DiddocError) -> AriesVcxError {
Expand Down
2 changes: 1 addition & 1 deletion aries_vcx/src/handlers/connection/mediated_connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::collections::HashMap;
use std::sync::Arc;

use chrono::Utc;
use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use futures::future::BoxFuture;
use futures::stream::StreamExt;
use messages::decorators::timing::Timing;
Expand Down
2 changes: 1 addition & 1 deletion aries_vcx/src/handlers/discovery/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::sync::Arc;
use crate::errors::error::VcxResult;
use aries_vcx_core::wallet::base_wallet::BaseWallet;
use chrono::Utc;
use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use messages::decorators::thread::Thread;
use messages::decorators::timing::Timing;
use messages::msg_fields::protocols::discover_features::disclose::{Disclose, DiscloseContent, DiscloseDecorators};
Expand Down
2 changes: 1 addition & 1 deletion aries_vcx/src/handlers/out_of_band/receiver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::str::FromStr;
use std::sync::Arc;

use agency_client::agency_client::AgencyClient;
use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use messages::decorators::attachment::AttachmentType;
use messages::decorators::thread::Thread;
use messages::msg_fields::protocols::cred_issuance::issue_credential::IssueCredential;
Expand Down
2 changes: 1 addition & 1 deletion aries_vcx/src/protocols/connection/generic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ mod thin_state;
use std::sync::Arc;

use aries_vcx_core::wallet::base_wallet::BaseWallet;
use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use messages::AriesMessage;

pub use self::thin_state::{State, ThinState};
Expand Down
2 changes: 1 addition & 1 deletion aries_vcx/src/protocols/connection/invitee/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::sync::Arc;

use aries_vcx_core::wallet::base_wallet::BaseWallet;
use chrono::Utc;
use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use messages::{
decorators::{thread::Thread, timing::Timing},
msg_fields::protocols::{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::clone::Clone;

use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use messages::msg_fields::protocols::discover_features::{disclose::Disclose, ProtocolDescriptor};

use crate::protocols::connection::trait_bounds::{BootstrapDidDoc, CompletedState, TheirDidDoc, ThreadId};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use messages::msg_fields::protocols::connection::invitation::Invitation;

use crate::{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;

use crate::protocols::connection::trait_bounds::{BootstrapDidDoc, HandleProblem, TheirDidDoc, ThreadId};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;

use crate::protocols::connection::trait_bounds::{BootstrapDidDoc, TheirDidDoc, ThreadId};

Expand Down
2 changes: 1 addition & 1 deletion aries_vcx/src/protocols/connection/inviter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::sync::Arc;

use ::uuid::Uuid;
use chrono::Utc;
use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use messages::decorators::thread::Thread;
use messages::decorators::timing::Timing;
use messages::msg_fields::protocols::connection::invitation::{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::clone::Clone;

use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use messages::msg_fields::protocols::discover_features::{disclose::Disclose, ProtocolDescriptor};

use crate::protocols::connection::trait_bounds::{CompletedState, TheirDidDoc, ThreadId};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use messages::msg_fields::protocols::connection::response::Response;

use crate::protocols::connection::trait_bounds::{TheirDidDoc, ThreadId};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;

use crate::protocols::connection::trait_bounds::{TheirDidDoc, ThreadId};

Expand Down
2 changes: 1 addition & 1 deletion aries_vcx/src/protocols/connection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ mod trait_bounds;

use aries_vcx_core::wallet::base_wallet::BaseWallet;
use chrono::Utc;
use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use messages::{
decorators::{thread::Thread, timing::Timing},
msg_fields::protocols::{
Expand Down
2 changes: 1 addition & 1 deletion aries_vcx/src/protocols/connection/trait_bounds.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use messages::msg_fields::protocols::discover_features::{disclose::Disclose, ProtocolDescriptor};

/// Trait implemented for [`super::Connection`] states that store an [`AriesDidDoc`].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use crate::protocols::mediated_connection::pairwise_info::PairwiseInfo;
use crate::protocols::SendClosureConnection;
use aries_vcx_core::wallet::base_wallet::BaseWallet;
use chrono::Utc;
use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use messages::decorators::thread::Thread;
use messages::decorators::timing::Timing;
use messages::msg_fields::protocols::connection::invitation::Invitation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::clone::Clone;

use crate::protocols::mediated_connection::invitee::states::requested::RequestedState;
use crate::protocols::mediated_connection::invitee::states::responded::RespondedState;
use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use messages::msg_fields::protocols::connection::response::Response;
use messages::msg_fields::protocols::discover_features::ProtocolDescriptor;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use messages::msg_fields::protocols::connection::problem_report::ProblemReport;

use crate::{handlers::util::AnyInvitation, protocols::mediated_connection::invitee::states::invited::InvitedState};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use messages::msg_fields::protocols::connection::request::Request;

use crate::handlers::util::AnyInvitation;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use messages::msg_fields::protocols::connection::problem_report::ProblemReport;
use messages::msg_fields::protocols::connection::request::Request;
use messages::msg_fields::protocols::connection::ConnectionData;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use messages::msg_fields::protocols::connection::{problem_report::ProblemReport, request::Request, ConnectionData};

use crate::protocols::mediated_connection::invitee::states::initial::InitialState;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::sync::Arc;

use aries_vcx_core::wallet::base_wallet::BaseWallet;
use chrono::Utc;
use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use messages::decorators::thread::Thread;
use messages::decorators::timing::Timing;
use messages::msg_fields::protocols::connection::invitation::{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::clone::Clone;

use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use messages::msg_fields::protocols::discover_features::ProtocolDescriptor;

#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use messages::msg_fields::protocols::connection::problem_report::ProblemReport;
use messages::msg_fields::protocols::connection::response::Response;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use messages::msg_fields::protocols::connection::problem_report::ProblemReport;
use messages::msg_fields::protocols::connection::response::Response;

Expand Down
2 changes: 1 addition & 1 deletion aries_vcx/src/protocols/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use futures::future::BoxFuture;
use messages::AriesMessage;

Expand Down
2 changes: 1 addition & 1 deletion aries_vcx/src/utils/encryption_envelope.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::sync::Arc;

use aries_vcx_core::wallet::base_wallet::BaseWallet;
use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use futures::TryFutureExt;

use agency_client::testing::mocking::AgencyMockDecrypted;
Expand Down
2 changes: 1 addition & 1 deletion aries_vcx/src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::path::PathBuf;
use std::sync::Arc;

use aries_vcx_core::wallet::base_wallet::BaseWallet;
use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;

use crate::errors::error::{AriesVcxError, AriesVcxErrorKind, VcxResult};
use crate::utils::encryption_envelope::EncryptionEnvelope;
Expand Down
2 changes: 1 addition & 1 deletion aries_vcx/tests/test_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ mod integration_tests {
use aries_vcx::common::test_utils::create_and_store_nonrevocable_credential_def;
use aries_vcx::utils::constants::DEFAULT_SCHEMA_ATTRS;
use aries_vcx::utils::devsetup::{SetupProfile, SetupWalletPool};
use diddoc::aries::service::AriesService;
use diddoc_legacy::aries::service::AriesService;
use std::sync::Arc;
use std::thread;
use std::time::Duration;
Expand Down
2 changes: 1 addition & 1 deletion aries_vcx/tests/utils/devsetup_agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub mod test_utils {
use aries_vcx_core::wallet::base_wallet::BaseWallet;
use aries_vcx_core::wallet::indy_wallet::IndySdkWallet;
use aries_vcx_core::{PoolHandle, WalletHandle};
use diddoc::aries::service::AriesService;
use diddoc_legacy::aries::service::AriesService;
use futures::future::BoxFuture;

use agency_client::agency_client::AgencyClient;
Expand Down
2 changes: 1 addition & 1 deletion aries_vcx/tests/utils/scenarios.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub mod test_utils {
use aries_vcx::handlers::util::{AnyInvitation, OfferInfo, PresentationProposalData};
use aries_vcx::protocols::SendClosureConnection;
use async_channel::{bounded, Sender};
use diddoc::aries::diddoc::AriesDidDoc;
use diddoc_legacy::aries::diddoc::AriesDidDoc;
use messages::misc::MimeType;
use messages::msg_fields::protocols::connection::request::Request;
use messages::msg_fields::protocols::connection::Connection;
Expand Down
2 changes: 1 addition & 1 deletion did_doc_builder/Cargo.lock → did_doc/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion did_doc_builder/Cargo.toml → did_doc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "did_doc_builder"
name = "did_doc"
version = "0.1.0"
edition = "2021"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion did_doc_builder/tests/serde.rs → did_doc/tests/serde.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::str::FromStr;

use did_doc_builder::schema::{
use did_doc::schema::{
did_doc::DidDocument,
types::{jsonwebkey::JsonWebKey, uri::Uri},
verification_method::{VerificationMethod, VerificationMethodKind},
Expand Down
Loading

0 comments on commit 3072394

Please sign in to comment.