-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-16496] Clean up exposed protobuf types
Several of the stub and shim APIs return protobuf types directly from the protobufjs parser: Stub: - getCreator() returns a protobufjs SerializedIdentity object - getTransient() returns a Map<string, Buffer> that we build now, rather than protobufjs - getSignedProposal() is crazy, and returns a hand crafted structure similar to a SignedProposal object, but with all of the payloads parsed - getTxTimestamp() returns a protobufjs Timestamp object - getBinding() should be OK but probably needs checking - All calls that return iterators return either a protobufjs KV object, or a protobufjs KeyModification object Shim: - success() returns a Response object - error() returns a Response object By switching to protobufjs v6, all of these types have changed. Names are camelCase rather than underscore_sep_erated, and there are no getters or setters. This CR changes the TypeScript definitions to match the new protobuf formats, and also changes the structure of the "signed proposal" to match the style of an actual SignedProposal. Signed-off-by: Simon Stone <[email protected]> Change-Id: I1d84512142ce57e8d089a901ebdc35434720b55d
- Loading branch information
Simon Stone
committed
Sep 6, 2019
1 parent
f499e22
commit 2c39852
Showing
5 changed files
with
37 additions
and
89 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
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