From 2949140a1a211a1d33e1264fd7fb2587834aa7e2 Mon Sep 17 00:00:00 2001 From: VRamakrishna Date: Wed, 17 Nov 2021 20:00:05 +0000 Subject: [PATCH] refactor(core-api): updated weaver protocol buffer definitions #1523 Updated Weaver protos README and imported latest schema additions Fixes #1523 Signed-off-by: VRamakrishna --- .../main/proto/weaver/common/protos/README.md | 4 ++-- .../common/protos/common/asset_transfer.proto | 24 +++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 packages/cactus-core-api/src/main/proto/weaver/common/protos/common/asset_transfer.proto diff --git a/packages/cactus-core-api/src/main/proto/weaver/common/protos/README.md b/packages/cactus-core-api/src/main/proto/weaver/common/protos/README.md index abeafc8791..2933101827 100644 --- a/packages/cactus-core-api/src/main/proto/weaver/common/protos/README.md +++ b/packages/cactus-core-api/src/main/proto/weaver/common/protos/README.md @@ -3,6 +3,6 @@ SPDX-License-Identifier: CC-BY-4.0 --> -## protos +## Weaver Protos -This repository contains the grpc service and protocol buffer definitions for the relay, drivers and other interop modules. protos +This repository contains the gRPC service and protocol buffer definitions for the relay, drivers, other interoperation modules, and common structures used by several Weaver components. diff --git a/packages/cactus-core-api/src/main/proto/weaver/common/protos/common/asset_transfer.proto b/packages/cactus-core-api/src/main/proto/weaver/common/protos/common/asset_transfer.proto new file mode 100644 index 0000000000..4bb627c632 --- /dev/null +++ b/packages/cactus-core-api/src/main/proto/weaver/common/protos/common/asset_transfer.proto @@ -0,0 +1,24 @@ +syntax = "proto3"; + +package common.asset_transfer; + +option java_package = "com.weaver.protos.common.asset_transfer"; +option go_package = "github.com/hyperledger-labs/weaver-dlt-interoperability/common/protos-go/common"; + +message AssetPledge { + bytes assetDetails = 1; + string localNetworkID = 2; + string remoteNetworkID = 3; + string recipient = 4; + uint64 expiryTimeSecs = 5; +} + +message AssetClaimStatus { + bytes assetDetails = 1; + string localNetworkID = 2; + string remoteNetworkID = 3; + string recipient = 4; + bool claimStatus = 5; + uint64 expiryTimeSecs = 6; + bool expirationStatus = 7; +}