-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/next' into icon-eth-development
- Loading branch information
Showing
72 changed files
with
3,583 additions
and
77 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
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 |
---|---|---|
|
@@ -20,11 +20,12 @@ members = [ | |
# "workflow/composer-v2", | ||
"primitives", | ||
# "workflow/workflow_apis", | ||
"workflow/test_util" | ||
"workflow/test_util", | ||
"workflow/hello_world_macro", | ||
] | ||
|
||
[workspace.package] | ||
authors = ["The HugoByte Team <[email protected]>"] | ||
edition = "2021" | ||
repository = "https://github.com/hugobyte/aurras.git" | ||
version = "0.0.1" | ||
version = "0.0.1" |
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
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 |
---|---|---|
|
@@ -66,7 +66,7 @@ impl Action { | |
let user_id: UserId = serde_json::from_value(user_id_res).unwrap(); | ||
let res = self.get_context().get_document(&user_id.user_id)?; | ||
let user: User = serde_json::from_value(res).unwrap(); | ||
if verify(self.params.password.clone(), &user.get_password()).unwrap() { | ||
if verify(self.params.password.clone(), user.get_password()).unwrap() { | ||
let headers = Header::default(); | ||
let encoding_key = | ||
EncodingKey::from_secret("user_registration_token_secret_key".as_bytes()); | ||
|
@@ -127,7 +127,7 @@ mod tests { | |
}); | ||
let id = uuid::Uuid::new_v4().to_string(); | ||
let doc_id = serde_json::to_value(UserId::new(id.clone())).unwrap(); | ||
let _id_store= action | ||
let _id_store = action | ||
.get_context() | ||
.insert_document(&doc_id, Some("[email protected]".to_string())) | ||
.unwrap(); | ||
|
@@ -179,8 +179,8 @@ mod tests { | |
.get_context() | ||
.insert_document(&user, Some(id.clone())); | ||
assert_eq!(user_id.unwrap(), id); | ||
action.login_user().unwrap(); | ||
|
||
let res = action.login_user(); | ||
couchdb.delete().await.expect("Stopping Container Failed"); | ||
res.unwrap(); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,9 +1,17 @@ | ||
use serde_derive::{Deserialize, Serialize}; | ||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] | ||
pub struct Topic { | ||
#[serde(rename = "_id")] | ||
pub id: String, | ||
#[serde(rename = "_rev")] | ||
pub rev: String, | ||
pub data: Vec<UserData>, | ||
} | ||
|
||
#[allow(clippy::derive_partial_eq_without_eq)] | ||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] | ||
pub struct DbDatas { | ||
pub endpoint: String, | ||
pub validator: String, | ||
pub key: String, | ||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, Default)] | ||
pub struct UserData { | ||
pub user_id: String, | ||
pub status: bool, | ||
pub input_data: serde_json::Value, | ||
} |
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
Oops, something went wrong.