From c6bacef417d285851f5725b401093d5ce7b6ee70 Mon Sep 17 00:00:00 2001 From: Francisco Gindre Date: Tue, 18 May 2021 11:46:17 -0300 Subject: [PATCH] update proto files --- .../proto/darkside.grpc.swift | 45 +++++++++++++++++++ ZcashLightClientKitTests/proto/darkside.proto | 7 +++ 2 files changed, 52 insertions(+) diff --git a/ZcashLightClientKitTests/proto/darkside.grpc.swift b/ZcashLightClientKitTests/proto/darkside.grpc.swift index cc416d90..266382d8 100644 --- a/ZcashLightClientKitTests/proto/darkside.grpc.swift +++ b/ZcashLightClientKitTests/proto/darkside.grpc.swift @@ -71,6 +71,16 @@ internal protocol DarksideStreamerClientProtocol: GRPCClient { callOptions: CallOptions? ) -> UnaryCall + func addAddressUtxo( + _ request: GetAddressUtxosReply, + callOptions: CallOptions? + ) -> UnaryCall + + func clearAddressUtxo( + _ request: Empty, + callOptions: CallOptions? + ) -> UnaryCall + } extension DarksideStreamerClientProtocol { @@ -270,6 +280,41 @@ extension DarksideStreamerClientProtocol { callOptions: callOptions ?? self.defaultCallOptions ) } + + /// Add a GetAddressUtxosReply entry to be returned by GetAddressUtxos(). + /// There is no staging or applying for these, very simple. + /// + /// - Parameters: + /// - request: Request to send to AddAddressUtxo. + /// - callOptions: Call options. + /// - Returns: A `UnaryCall` with futures for the metadata, status and response. + internal func addAddressUtxo( + _ request: GetAddressUtxosReply, + callOptions: CallOptions? = nil + ) -> UnaryCall { + return self.makeUnaryCall( + path: "/cash.z.wallet.sdk.rpc.DarksideStreamer/AddAddressUtxo", + request: request, + callOptions: callOptions ?? self.defaultCallOptions + ) + } + + /// Clear the list of GetAddressUtxos entries (can't fail) + /// + /// - Parameters: + /// - request: Request to send to ClearAddressUtxo. + /// - callOptions: Call options. + /// - Returns: A `UnaryCall` with futures for the metadata, status and response. + internal func clearAddressUtxo( + _ request: Empty, + callOptions: CallOptions? = nil + ) -> UnaryCall { + return self.makeUnaryCall( + path: "/cash.z.wallet.sdk.rpc.DarksideStreamer/ClearAddressUtxo", + request: request, + callOptions: callOptions ?? self.defaultCallOptions + ) + } } internal final class DarksideStreamerClient: DarksideStreamerClientProtocol { diff --git a/ZcashLightClientKitTests/proto/darkside.proto b/ZcashLightClientKitTests/proto/darkside.proto index e2e03413..f84e615b 100644 --- a/ZcashLightClientKitTests/proto/darkside.proto +++ b/ZcashLightClientKitTests/proto/darkside.proto @@ -114,4 +114,11 @@ service DarksideStreamer { // Clear the incoming transaction pool. rpc ClearIncomingTransactions(Empty) returns (Empty) {} + + // Add a GetAddressUtxosReply entry to be returned by GetAddressUtxos(). + // There is no staging or applying for these, very simple. + rpc AddAddressUtxo(GetAddressUtxosReply) returns (Empty) {} + + // Clear the list of GetAddressUtxos entries (can't fail) + rpc ClearAddressUtxo(Empty) returns (Empty) {} }