Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Sapt stage 1 #1

Merged
merged 13 commits into from
Aug 4, 2023
Merged

feat: Sapt stage 1 #1

merged 13 commits into from
Aug 4, 2023

Conversation

outsidethecode
Copy link
Owner

No description provided.

@outsidethecode outsidethecode changed the title Sapt stage 1 feat: Sapt stage 1 Jul 4, 2023
@outsidethecode
Copy link
Owner Author

I've added an initial skeleton code to implement the SATP. This includes creating the relevant proto files, the requires client and services provided by the gateway. The focus was on the interactions 1.3, 1.4, 2.2 and 2.4. This code review is to ensure the draft code is readable and maintainable so that similar approach will be taken to implement the remaining functions.

@@ -0,0 +1,1044 @@
# Copyright IBM Corp. All Rights Reserved.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is for what purpose?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this file I thought it is better to have the test done between two fabric networks only as a starting point.

@@ -0,0 +1,367 @@
# Copyright IBM Corp. All Rights Reserved.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to use this file for satp_test, may be call it test_weaver-satp.yaml

Copy link
Owner Author

@outsidethecode outsidethecode Jul 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So maybe test_weaver-fabric-fabric-satp.yaml

[[bin]]
name = "client-tls"
path = "src/client_tls.rs"

[[bin]]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is duplicate entry as line 15-17 also points to same file src/satp_client.rs

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good spot. Fixed.

let request_id = transfer_commence_request.session_id.to_string();
// TODO refactor
let request_logged: Result<Option<sled::IVec>, crate::error::Error> =
log_request_in_local_sapt_db(&request_id, &network_asset_transfer, conf.clone());
Copy link
Collaborator

@sandeepnRES sandeepnRES Jul 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sapt typo, also check other places too.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed.

@outsidethecode outsidethecode merged commit 7ca4476 into satp Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants