-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into testing/err-handling
- Loading branch information
Showing
79 changed files
with
1,028 additions
and
830 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
use std::collections::VecDeque; | ||
|
||
use aries_vcx_core::wallet::base_wallet::BaseWallet; | ||
use mediation::storage::MediatorPersistence; | ||
use mediator::aries_agent::{client::transports::AriesReqwest, ArcAgent}; | ||
use messages::msg_fields::protocols::out_of_band::invitation::Invitation as OOBInvitation; | ||
use serde_json::{json, Value}; | ||
|
||
pub async fn handle_register( | ||
agent: ArcAgent<impl BaseWallet + 'static, impl MediatorPersistence>, | ||
oob_invite: OOBInvitation, | ||
) -> Result<Value, String> { | ||
let mut aries_transport = AriesReqwest { | ||
response_queue: VecDeque::new(), | ||
client: reqwest::Client::new(), | ||
}; | ||
let state = agent | ||
.establish_connection(oob_invite, &mut aries_transport) | ||
.await | ||
.map_err(|err| format!("{err:?}"))?; | ||
Ok(json!({ | ||
"status": "success", | ||
"connection_completed": state | ||
})) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/// Aries Agent TUI | ||
mod tui; | ||
|
||
/// Aries Agent TUI | ||
#[tokio::main] | ||
async fn main() { | ||
use mediator::{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.