Skip to content

Commit

Permalink
refactor: Move agents to new root (aries) as per #1045 (#1061)
Browse files Browse the repository at this point in the history
* refactor: Move agents to new  root as per #1045

---------

Signed-off-by: Naian <[email protected]>
  • Loading branch information
nain-F49FF806 authored Nov 14, 2023
1 parent 4263dd7 commit 668fca9
Show file tree
Hide file tree
Showing 114 changed files with 32 additions and 27 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -374,13 +374,13 @@ jobs:
- name: "Run wrapper integration tests"
run: (cd wrappers/node && npm run test:integration)
- name: "Install vcxagent-core dependencies"
run: (cd agents/node/vcxagent-core && npm install)
run: (cd aries/agents/node/vcxagent-core && npm install)
- name: "Run demo"
run: (cd agents/node/vcxagent-core && AGENCY_URL=http://localhost:8080 npm run demo)
run: (cd aries/agents/node/vcxagent-core && AGENCY_URL=http://localhost:8080 npm run demo)
- name: "Run demo with revocation"
run: (cd agents/node/vcxagent-core && AGENCY_URL=http://localhost:8080 npm run demo:revocation)
run: (cd aries/agents/node/vcxagent-core && AGENCY_URL=http://localhost:8080 npm run demo:revocation)
- name: "Run integration tests"
run: (cd agents/node/vcxagent-core && AGENCY_URL=http://localhost:8080 npm run test:integration)
run: (cd aries/agents/node/vcxagent-core && AGENCY_URL=http://localhost:8080 npm run test:integration)



Expand Down Expand Up @@ -431,7 +431,7 @@ jobs:
run: |
if [[ "$PUBLISH_VERSION" ]]
then
NPMJS_TOKEN=${{ secrets.NPMJS_TOKEN }} PUBLISH_VERSION=${{ env.PUBLISH_VERSION }} ./agents/node/vcxagent-core/publish.sh
NPMJS_TOKEN=${{ secrets.NPMJS_TOKEN }} PUBLISH_VERSION=${{ env.PUBLISH_VERSION }} ./aries/agents/node/vcxagent-core/publish.sh
else
echo "New version was not defined, skipping release."
fi
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mediator.pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches:
- "**"
paths:
- 'agents/rust/mediator/**'
- 'aries/agents/rust/mediator/**'

env:
DOCKER_BUILDKIT: 1
Expand Down Expand Up @@ -51,6 +51,6 @@ jobs:
# uses: Swatinem/rust-cache@v2
run: cargo install sqlx-cli
- name: Setup database
run: DATABASE_URL=${MYSQL_URL} sqlx migrate run --source agents/rust/mediator/mediation/migrations
run: DATABASE_URL=${MYSQL_URL} sqlx migrate run --source aries/agents/rust/mediator/mediation/migrations
- name: "Run mediator integration tests"
run: cargo run --bin mediator & sleep 5 && cargo test --verbose --package mediator -- --nocapture;
13 changes: 7 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ members = [
"messages",
"shared_vcx",
"diddoc_legacy",
"agents/rust/mediator",
"agents/rust/mediator/client-tui",
"aries/agents/rust/mediator",
"aries/agents/rust/mediator/client-tui",
"agents/rust/aries-vcx-agent",
"wrappers/vcx-napi-rs",
"aries_vcx_core",
Expand All @@ -31,12 +31,15 @@ members = [
"tools/simple_message_relay",
"tools/test_utils",
"tools/libvcx_logger",
"tools/display_as_json"
"tools/display_as_json",
]

[workspace.package]
version = "0.61.0"
authors = ["Absa Group Limited", "Hyperledger Indy Contributors <[email protected]>"]
authors = [
"Absa Group Limited",
"Hyperledger Indy Contributors <[email protected]>",
]
description = "Library to work with Aries protocols & collection of supporting components"
license = "Apache-2.0"
edition = "2021"
Expand Down Expand Up @@ -72,5 +75,3 @@ unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_qualifications = "warn"
let_underscore_drop = "allow"


3 changes: 2 additions & 1 deletion agents/rust/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Rust agents

This directory contains some of Rust agents built on top of the `aries_vcx` crate:
- `aries-vcx-agent` - aries agent library providing used to build our cross-framework testing [backchannel](https://github.com/hyperledger/aries-agent-test-harness/tree/main/aries-backchannels/aries-vcx)

- `aries-vcx-agent` - aries agent library providing used to build our cross-framework testing [backchannel](https://github.com/hyperledger/aries-agent-test-harness/tree/main/aries-backchannels/aries-vcx)
5 changes: 4 additions & 1 deletion agents/rust/aries-vcx-agent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ edition.workspace = true
[dependencies]
serde = "1.0.145"
aries_vcx = { path = "../../../aries_vcx" }
aries_vcx_core = { path = "../../../aries_vcx_core", features = ["credx", "vdrtools_wallet"] }
aries_vcx_core = { path = "../../../aries_vcx_core", features = [
"credx",
"vdrtools_wallet",
] }
shared_vcx = { path = "../../../shared_vcx" }
async-trait = "0.1.64"
derive_builder = "0.12.0"
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"dependencies": {
"sovrin-networks": "git+https://github.com/AbsaOSS/sovrin-networks#0.1.0",
"@hyperledger/node-vcx-wrapper": "file:../../../wrappers/node",
"@hyperledger/node-vcx-wrapper": "file:../../../../wrappers/node",
"@hyperledger/vcxagent-core": "file:../vcxagent-core",
"command-line-args": "^5.1.1",
"command-line-usage": "^5.0.5",
Expand All @@ -20,4 +20,4 @@
},
"author": "Absa Group Limited",
"license": "Apache-2.0"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"test:integration:connection": "jest --forceExit --env=node --runInBand test/connection.spec.js"
},
"dependencies": {
"@hyperledger/node-vcx-wrapper": "file:../../../wrappers/node",
"@hyperledger/node-vcx-wrapper": "file:../../../../wrappers/node",
"axios": "^1.6.0",
"ffi-napi": "^4.0.3",
"fs-extra": "^4.0.3",
Expand All @@ -68,4 +68,4 @@
"standard": "^16.0.4",
"winston": "^3.3.3"
}
}
}
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.
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ client = []

[dependencies]
anyhow = "1.0.75"
aries_vcx = { path = "../../../aries_vcx" }
aries_vcx_core = { path = "../../../aries_vcx_core", features = [
aries_vcx = { path = "../../../../aries_vcx" }
aries_vcx_core = { path = "../../../../aries_vcx_core", features = [
"vdrtools_wallet",
] }
async-trait = "0.1.73"
axum = "0.6"
axum-macros = "0.3.8"
diddoc_legacy = { path = "../../../diddoc_legacy" }
diddoc_legacy = { path = "../../../../diddoc_legacy" }
dotenvy = "0.15"
env_logger = "0.10.0"
fast_qr = { version = "0.10.2", features = ["svg"] }
futures = "0.3.28"
log = "0.4.20"
messages = { path = "../../../messages" }
messages = { path = "../../../../messages" }
reqwest = { version = "0.11.20", features = ["json"] }
serde = "1.0.188"
serde_json = "1.0.106"
Expand All @@ -35,7 +35,7 @@ tower-http = { version = "0.4.4", features = ["catch-panic"] }
url = "2.4.1"
uuid = "1.4.1"
mediation = { path = "./mediation" }
test_utils = { path = "../../../tools/test_utils" }
test_utils = { path = "../../../../tools/test_utils" }

[dev-dependencies]
base64-url = "2.0.0"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
aries_vcx_core = { path = "../../../../aries_vcx_core", features = [
aries_vcx_core = { path = "../../../../../aries_vcx_core", features = [
"vdrtools_wallet",
] }
axum = "0.6.20"
Expand All @@ -15,7 +15,7 @@ futures = "0.3.28"
log = "0.4.20"
mediation = { path = "../mediation" }
mediator = { path = ".." }
messages = { path = "../../../../messages" }
messages = { path = "../../../../../messages" }
reqwest = "0.11.22"
serde_json = "1.0.107"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dotenvy = "0.15.7"
env_logger = "0.10.0"
futures = "0.3.28"
log = "0.4.19"
messages = { path = "../../../../messages" }
messages = { path = "../../../../../messages" }
serde = { version = "1.0.164", features = ["derive"] }
serde_json = "1.0.104"
serde_with = { version = "3.1.0", features = ["base64"] }
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.

0 comments on commit 668fca9

Please sign in to comment.