-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(satp-hermes): add protobuf gateway refactor
Authored by: Carlos Amaro <carlosrscamaro@tecnico.ulisboa.pt> Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> feat(satp-hermes): satp proto update (#3147) * feat(satp-hermes): update protos Signed-off-by: Carlos Amaro <carlosrscamaro@tecnico.ulisboa.pt> * feat(satp-hermes): protos Signed-off-by: Carlos Amaro <carlosrscamaro@tecnico.ulisboa.pt> * feat(satp-hermes): protos Signed-off-by: Carlos Amaro <carlosrscamaro@tecnico.ulisboa.pt> --------- Signed-off-by: Carlos Amaro <carlosrscamaro@tecnico.ulisboa.pt> feat(satp-hermes): update protos Signed-off-by: Carlos Amaro <carlosrscamaro@tecnico.ulisboa.pt> feat(satp-hermes): core stage services message names update Signed-off-by: Carlos Amaro <carlosrscamaro@tecnico.ulisboa.pt> feat(satp-hermes): gRPC server start implementation and gateway_refactor in handlers Signed-off-by: Carlos Amaro <carlosrscamaro@tecnico.ulisboa.pt> fix(satp-hermes): satp proto update also updates yarn lock Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt> fix(satp-hermes): update yarn, comment method fix(satp-hermes): update yarn ci(satp-hermes): fix bungee and satp ci Signed-off-by: Rafael Belchior <rafael.belchior@tecnico.ulisboa.pt>
- Loading branch information
1 parent
852ac4c
commit 1366440
Showing
49 changed files
with
7,690 additions
and
423 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
packages/cactus-plugin-satp-hermes/src/main/proto/cacti/satp/v02/common/message.proto
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
42 changes: 16 additions & 26 deletions
42
packages/cactus-plugin-satp-hermes/src/main/proto/cacti/satp/v02/stage_0.proto
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,34 +1,24 @@ | ||
|
||
syntax = "proto3"; | ||
package cacti.satp.v02.stage_0; | ||
package cacti.satp.v02; | ||
|
||
import "google/protobuf/empty.proto"; | ||
import "cacti/satp/v02/common/message.proto"; | ||
|
||
service SATPStage0 { | ||
// util RPCs | ||
|
||
// step RPCs | ||
rpc TransferProposalClaims(TransferProposalClaimsRequest) returns (TransferProposalClaimsResponse) {}; | ||
// todo other rpcs | ||
} | ||
|
||
message TransferProposalClaimsRequest { | ||
string message_type = 1; | ||
string asset_asset_id = 2; | ||
string asset_profile_id = 3; | ||
string verified_originator_entity_id = 4; | ||
string verified_beneficiary_entity_id = 5; | ||
string originator_pubkey = 6; | ||
string beneficiary_pubkey = 7; | ||
string sender_gateway_network_id = 8; | ||
string recipient_gateway_network_id = 9; | ||
string client_identity_pubkey = 10; | ||
string server_identity_pubkey = 11; | ||
string sender_gateway_owner_id = 12; | ||
string receiver_gateway_owner_id = 13; | ||
message PreTransferVerificationAndContextEstablishmentRequest { | ||
cacti.satp.v02.common.CommonSatp context = 1; | ||
cacti.satp.v02.common.TransferClaims transferClaims = 2; | ||
// todo other fields | ||
} | ||
|
||
// TODO | ||
message TransferProposalClaimsResponse { | ||
string message_type = 1; | ||
message PreTransferVerificationAndContextEstablishmentResponse { | ||
|
||
} | ||
|
||
service SatpStage0Service { | ||
// util RPCs | ||
|
||
// step RPCs | ||
rpc TransferProposalClaims(PreTransferVerificationAndContextEstablishmentRequest) returns (PreTransferVerificationAndContextEstablishmentResponse) {}; | ||
// todo other rpcs | ||
} |
35 changes: 29 additions & 6 deletions
35
packages/cactus-plugin-satp-hermes/src/main/proto/cacti/satp/v02/stage_1.proto
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,13 +1,36 @@ | ||
|
||
syntax = "proto3"; | ||
package cacti.satp.v02.stage_1; | ||
package cacti.satp.v02; | ||
|
||
import "google/protobuf/empty.proto"; | ||
import "cacti/satp/v02/common/message.proto"; | ||
|
||
|
||
service SATPStage1 { | ||
// util RPCs | ||
message TransferProposalRequestMessage { | ||
cacti.satp.v02.common.CommonSatp common = 1; | ||
cacti.satp.v02.common.TransferClaims transfer_init_claims = 2; | ||
cacti.satp.v02.common.TransferClaimsFormat transfer_init_claims_format = 3; | ||
cacti.satp.v02.common.NetworkCapabilities network_capabilities = 4; | ||
bool multiple_claims_allowed = 5; | ||
bool multiple_cancels_allowed = 6; | ||
} | ||
|
||
// step RPCs | ||
message TransferProposalReceiptRejectMessage { | ||
cacti.satp.v02.common.CommonSatp common = 1; | ||
string hash_transfer_init_claims = 2; | ||
cacti.satp.v02.common.TransferClaims transfer_counter_claims = 3; | ||
string timestamp = 4; | ||
} | ||
|
||
message TransferCommenceRequestMessage { | ||
cacti.satp.v02.common.CommonSatp common = 1; | ||
string hash_transfer_init_claims = 2; | ||
string client_transfer_number = 3; | ||
} | ||
|
||
message TransferCommenceResponseMessage { | ||
cacti.satp.v02.common.CommonSatp common = 1; | ||
} | ||
|
||
service SatpStage1Service { | ||
rpc TransferProposal(TransferProposalRequestMessage) returns (TransferProposalReceiptRejectMessage) {} | ||
rpc TransferCommence(TransferCommenceRequestMessage) returns (TransferCommenceResponseMessage) {} | ||
} |
Oops, something went wrong.