react-native-zcash 0.6.10 → 0.6.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/android/src/main/assets/co.electriccoin.zcash/checkpoint/mainnet/2460000.json +8 -0
  3. package/ios/ZCashLightClientKit/Block/CompactBlockProcessor.swift +937 -425
  4. package/ios/ZCashLightClientKit/Block/Download/BlockDownloader.swift +17 -31
  5. package/ios/ZCashLightClientKit/Block/Download/BlockDownloaderService.swift +2 -2
  6. package/ios/ZCashLightClientKit/Block/Enhance/BlockEnhancer.swift +15 -46
  7. package/ios/ZCashLightClientKit/Block/FetchUnspentTxOutputs/UTXOFetcher.swift +15 -4
  8. package/ios/ZCashLightClientKit/Block/FilesystemStorage/FSCompactBlockRepository.swift +4 -4
  9. package/ios/ZCashLightClientKit/Block/Scan/BlockScanner.swift +35 -10
  10. package/ios/ZCashLightClientKit/Block/Utils/InternalSyncProgress.swift +200 -0
  11. package/ios/ZCashLightClientKit/Block/Validate/BlockValidator.swift +51 -0
  12. package/ios/ZCashLightClientKit/ClosureSynchronizer.swift +2 -1
  13. package/ios/ZCashLightClientKit/CombineSynchronizer.swift +5 -2
  14. package/ios/ZCashLightClientKit/Constants/ZcashSDK.swift +26 -13
  15. package/ios/ZCashLightClientKit/DAO/BlockDao.swift +112 -0
  16. package/ios/ZCashLightClientKit/DAO/TransactionDao.swift +42 -40
  17. package/ios/ZCashLightClientKit/DAO/UnspentTransactionOutputDao.swift +4 -13
  18. package/ios/ZCashLightClientKit/Entity/AccountEntity.swift +0 -9
  19. package/ios/ZCashLightClientKit/Entity/BlockProgress.swift +24 -0
  20. package/ios/ZCashLightClientKit/Entity/TransactionEntity.swift +10 -7
  21. package/ios/ZCashLightClientKit/Error/Sourcery/generateErrorCode.sh +1 -1
  22. package/ios/ZCashLightClientKit/Error/ZcashError.swift +12 -121
  23. package/ios/ZCashLightClientKit/Error/ZcashErrorCode.swift +5 -43
  24. package/ios/ZCashLightClientKit/Error/ZcashErrorCodeDefinition.swift +6 -72
  25. package/ios/ZCashLightClientKit/Initializer.swift +26 -47
  26. package/ios/ZCashLightClientKit/Metrics/SDKMetrics.swift +12 -0
  27. package/ios/ZCashLightClientKit/Model/Checkpoint.swift +0 -12
  28. package/ios/ZCashLightClientKit/Modules/Service/GRPC/LightWalletGRPCService.swift +0 -15
  29. package/ios/ZCashLightClientKit/Modules/Service/GRPC/ProtoBuf/compact_formats.pb.swift +46 -150
  30. package/ios/ZCashLightClientKit/Modules/Service/GRPC/ProtoBuf/proto/compact_formats.proto +16 -30
  31. package/ios/ZCashLightClientKit/Modules/Service/GRPC/ProtoBuf/proto/service.proto +6 -32
  32. package/ios/ZCashLightClientKit/Modules/Service/GRPC/ProtoBuf/service.grpc.swift +22 -259
  33. package/ios/ZCashLightClientKit/Modules/Service/GRPC/ProtoBuf/service.pb.swift +7 -193
  34. package/ios/ZCashLightClientKit/Modules/Service/LightWalletService.swift +0 -8
  35. package/ios/ZCashLightClientKit/Providers/LatestBlocksDataProvider.swift +28 -18
  36. package/ios/ZCashLightClientKit/Repository/CompactBlockRepository.swift +1 -1
  37. package/ios/ZCashLightClientKit/Repository/TransactionRepository.swift +6 -2
  38. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2460000.json +8 -0
  39. package/ios/ZCashLightClientKit/Rust/ZcashRustBackend.swift +158 -293
  40. package/ios/ZCashLightClientKit/Rust/ZcashRustBackendWelding.swift +64 -58
  41. package/ios/ZCashLightClientKit/Rust/zcashlc.h +513 -619
  42. package/ios/ZCashLightClientKit/Synchronizer/ClosureSDKSynchronizer.swift +8 -2
  43. package/ios/ZCashLightClientKit/Synchronizer/CombineSDKSynchronizer.swift +15 -3
  44. package/ios/ZCashLightClientKit/Synchronizer/Dependencies.swift +30 -11
  45. package/ios/ZCashLightClientKit/Synchronizer/SDKSynchronizer.swift +50 -41
  46. package/ios/ZCashLightClientKit/Synchronizer.swift +65 -51
  47. package/ios/ZCashLightClientKit/Transaction/TransactionEncoder.swift +2 -2
  48. package/ios/ZCashLightClientKit/Transaction/WalletTransactionEncoder.swift +7 -7
  49. package/ios/ZCashLightClientKit/Utils/OSLogger.swift +3 -3
  50. package/ios/libzcashlc.xcframework/Info.plist +0 -4
  51. package/ios/libzcashlc.xcframework/ios-arm64/libzcashlc.a +0 -0
  52. package/ios/libzcashlc.xcframework/ios-arm64_x86_64-simulator/libzcashlc.a +0 -0
  53. package/package.json +1 -1
  54. package/ios/ZCashLightClientKit/Block/Actions/Action.swift +0 -98
  55. package/ios/ZCashLightClientKit/Block/Actions/ClearAlreadyScannedBlocksAction.swift +0 -35
  56. package/ios/ZCashLightClientKit/Block/Actions/ClearCacheAction.swift +0 -30
  57. package/ios/ZCashLightClientKit/Block/Actions/DownloadAction.swift +0 -67
  58. package/ios/ZCashLightClientKit/Block/Actions/EnhanceAction.swift +0 -97
  59. package/ios/ZCashLightClientKit/Block/Actions/FetchUTXOsAction.swift +0 -33
  60. package/ios/ZCashLightClientKit/Block/Actions/MigrateLegacyCacheDBAction.swift +0 -70
  61. package/ios/ZCashLightClientKit/Block/Actions/ProcessSuggestedScanRangesAction.swift +0 -60
  62. package/ios/ZCashLightClientKit/Block/Actions/RewindAction.swift +0 -48
  63. package/ios/ZCashLightClientKit/Block/Actions/SaplingParamsAction.swift +0 -33
  64. package/ios/ZCashLightClientKit/Block/Actions/ScanAction.swift +0 -95
  65. package/ios/ZCashLightClientKit/Block/Actions/UpdateChainTipAction.swift +0 -55
  66. package/ios/ZCashLightClientKit/Block/Actions/UpdateSubtreeRootsAction.swift +0 -58
  67. package/ios/ZCashLightClientKit/Block/Actions/ValidateServerAction.swift +0 -60
  68. package/ios/ZCashLightClientKit/Block/Utils/CompactBlockProgress.swift +0 -24
  69. package/ios/ZCashLightClientKit/Block/Utils/SyncControlData.swift +0 -25
  70. package/ios/ZCashLightClientKit/Extensions/Bool+ToData.swift +0 -15
  71. package/ios/ZCashLightClientKit/Extensions/Data+ToOtherTypes.swift +0 -18
  72. package/ios/ZCashLightClientKit/Extensions/Int+ToData.swift +0 -15
  73. package/ios/ZCashLightClientKit/Model/ScanProgress.swift +0 -29
  74. package/ios/ZCashLightClientKit/Model/ScanRange.swift +0 -31
  75. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2092500.json +0 -8
  76. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2095000.json +0 -8
  77. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2097500.json +0 -8
  78. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2102500.json +0 -8
  79. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2105000.json +0 -8
  80. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2107500.json +0 -8
  81. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2112500.json +0 -8
  82. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2115000.json +0 -8
  83. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2117500.json +0 -8
  84. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2122500.json +0 -8
  85. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2125000.json +0 -8
  86. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2127500.json +0 -8
  87. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2132500.json +0 -8
  88. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2135000.json +0 -8
  89. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2137500.json +0 -8
  90. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2142500.json +0 -8
  91. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2145000.json +0 -8
  92. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2147500.json +0 -8
  93. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2152500.json +0 -8
  94. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2155000.json +0 -8
  95. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2157500.json +0 -8
  96. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2162500.json +0 -8
  97. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2165000.json +0 -8
  98. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2167500.json +0 -8
  99. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2172500.json +0 -8
  100. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2175000.json +0 -8
  101. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2177500.json +0 -8
  102. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2182500.json +0 -8
  103. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2185000.json +0 -8
  104. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2187500.json +0 -8
  105. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2192500.json +0 -8
  106. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2195000.json +0 -8
  107. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2197500.json +0 -8
  108. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2202500.json +0 -8
  109. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2205000.json +0 -8
  110. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2207500.json +0 -8
  111. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2212500.json +0 -8
  112. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2215000.json +0 -8
  113. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2217500.json +0 -8
  114. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2222500.json +0 -8
  115. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2225000.json +0 -8
  116. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2227500.json +0 -8
  117. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2232500.json +0 -8
  118. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2235000.json +0 -8
  119. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2237500.json +0 -8
  120. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2242500.json +0 -8
  121. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2245000.json +0 -8
  122. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2247500.json +0 -8
  123. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2252500.json +0 -8
  124. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2255000.json +0 -8
  125. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2257500.json +0 -8
  126. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2262500.json +0 -8
  127. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2265000.json +0 -8
  128. package/ios/ZCashLightClientKit/Resources/checkpoints/mainnet/2267500.json +0 -8
  129. package/ios/ZCashLightClientKit/Resources/checkpoints/testnet/2350000.json +0 -8
  130. package/ios/ZCashLightClientKit/Resources/checkpoints/testnet/2360000.json +0 -8
  131. package/ios/ZCashLightClientKit/Resources/checkpoints/testnet/2370000.json +0 -8
  132. package/ios/ZCashLightClientKit/Resources/checkpoints/testnet/2380000.json +0 -8
  133. package/ios/ZCashLightClientKit/Resources/checkpoints/testnet/2390000.json +0 -8
  134. package/ios/ZCashLightClientKit/Resources/checkpoints/testnet/2400000.json +0 -8
  135. package/ios/ZCashLightClientKit/Resources/checkpoints/testnet/2410000.json +0 -8
  136. package/ios/ZCashLightClientKit/Resources/checkpoints/testnet/2420000.json +0 -8
  137. package/ios/ZCashLightClientKit/Resources/checkpoints/testnet/2430000.json +0 -8
  138. package/ios/ZCashLightClientKit/Resources/checkpoints/testnet/2440000.json +0 -8
  139. package/ios/ZCashLightClientKit/Resources/checkpoints/testnet/2450000.json +0 -8
  140. package/ios/ZCashLightClientKit/Resources/checkpoints/testnet/2460000.json +0 -8
  141. package/ios/ZCashLightClientKit/Resources/checkpoints/testnet/2470000.json +0 -8
  142. package/ios/ZCashLightClientKit/Resources/checkpoints/testnet/2480000.json +0 -8
  143. package/ios/ZCashLightClientKit/Resources/checkpoints/testnet/2490000.json +0 -8
  144. package/ios/ZCashLightClientKit/Resources/checkpoints/testnet/2500000.json +0 -8
  145. package/ios/ZCashLightClientKit/Resources/checkpoints/testnet/2510000.json +0 -8
  146. package/ios/ZCashLightClientKit/Resources/checkpoints/testnet/2520000.json +0 -8
  147. package/ios/ZCashLightClientKit/Resources/checkpoints/testnet/2530000.json +0 -8
  148. package/ios/ZCashLightClientKit/Resources/checkpoints/testnet/2540000.json +0 -8
  149. package/ios/ZCashLightClientKit/Resources/checkpoints/testnet/2550000.json +0 -8
  150. package/ios/ZCashLightClientKit/Utils/ZcashFileManager.swift +0 -16
@@ -1,10 +1,25 @@
1
1
  //
2
2
  // DO NOT EDIT.
3
- // swift-format-ignore-file
4
3
  //
5
4
  // Generated by the protocol buffer compiler.
6
5
  // Source: service.proto
7
6
  //
7
+
8
+ //
9
+ // Copyright 2018, gRPC Authors All rights reserved.
10
+ //
11
+ // Licensed under the Apache License, Version 2.0 (the "License");
12
+ // you may not use this file except in compliance with the License.
13
+ // You may obtain a copy of the License at
14
+ //
15
+ // http://www.apache.org/licenses/LICENSE-2.0
16
+ //
17
+ // Unless required by applicable law or agreed to in writing, software
18
+ // distributed under the License is distributed on an "AS IS" BASIS,
19
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
+ // See the License for the specific language governing permissions and
21
+ // limitations under the License.
22
+ //
8
23
  import GRPC
9
24
  import NIO
10
25
  import NIOConcurrencyHelpers
@@ -26,23 +41,12 @@ internal protocol CompactTxStreamerClientProtocol: GRPCClient {
26
41
  callOptions: CallOptions?
27
42
  ) -> UnaryCall<BlockID, CompactBlock>
28
43
 
29
- func getBlockNullifiers(
30
- _ request: BlockID,
31
- callOptions: CallOptions?
32
- ) -> UnaryCall<BlockID, CompactBlock>
33
-
34
44
  func getBlockRange(
35
45
  _ request: BlockRange,
36
46
  callOptions: CallOptions?,
37
47
  handler: @escaping (CompactBlock) -> Void
38
48
  ) -> ServerStreamingCall<BlockRange, CompactBlock>
39
49
 
40
- func getBlockRangeNullifiers(
41
- _ request: BlockRange,
42
- callOptions: CallOptions?,
43
- handler: @escaping (CompactBlock) -> Void
44
- ) -> ServerStreamingCall<BlockRange, CompactBlock>
45
-
46
50
  func getTransaction(
47
51
  _ request: TxFilter,
48
52
  callOptions: CallOptions?
@@ -85,17 +89,6 @@ internal protocol CompactTxStreamerClientProtocol: GRPCClient {
85
89
  callOptions: CallOptions?
86
90
  ) -> UnaryCall<BlockID, TreeState>
87
91
 
88
- func getLatestTreeState(
89
- _ request: Empty,
90
- callOptions: CallOptions?
91
- ) -> UnaryCall<Empty, TreeState>
92
-
93
- func getSubtreeRoots(
94
- _ request: GetSubtreeRootsArg,
95
- callOptions: CallOptions?,
96
- handler: @escaping (SubtreeRoot) -> Void
97
- ) -> ServerStreamingCall<GetSubtreeRootsArg, SubtreeRoot>
98
-
99
92
  func getAddressUtxos(
100
93
  _ request: GetAddressUtxosArg,
101
94
  callOptions: CallOptions?
@@ -159,24 +152,6 @@ extension CompactTxStreamerClientProtocol {
159
152
  )
160
153
  }
161
154
 
162
- /// Same as GetBlock except actions contain only nullifiers
163
- ///
164
- /// - Parameters:
165
- /// - request: Request to send to GetBlockNullifiers.
166
- /// - callOptions: Call options.
167
- /// - Returns: A `UnaryCall` with futures for the metadata, status and response.
168
- internal func getBlockNullifiers(
169
- _ request: BlockID,
170
- callOptions: CallOptions? = nil
171
- ) -> UnaryCall<BlockID, CompactBlock> {
172
- return self.makeUnaryCall(
173
- path: CompactTxStreamerClientMetadata.Methods.getBlockNullifiers.path,
174
- request: request,
175
- callOptions: callOptions ?? self.defaultCallOptions,
176
- interceptors: self.interceptors?.makeGetBlockNullifiersInterceptors() ?? []
177
- )
178
- }
179
-
180
155
  /// Return a list of consecutive compact blocks
181
156
  ///
182
157
  /// - Parameters:
@@ -198,27 +173,6 @@ extension CompactTxStreamerClientProtocol {
198
173
  )
199
174
  }
200
175
 
201
- /// Same as GetBlockRange except actions contain only nullifiers
202
- ///
203
- /// - Parameters:
204
- /// - request: Request to send to GetBlockRangeNullifiers.
205
- /// - callOptions: Call options.
206
- /// - handler: A closure called when each response is received from the server.
207
- /// - Returns: A `ServerStreamingCall` with futures for the metadata and status.
208
- internal func getBlockRangeNullifiers(
209
- _ request: BlockRange,
210
- callOptions: CallOptions? = nil,
211
- handler: @escaping (CompactBlock) -> Void
212
- ) -> ServerStreamingCall<BlockRange, CompactBlock> {
213
- return self.makeServerStreamingCall(
214
- path: CompactTxStreamerClientMetadata.Methods.getBlockRangeNullifiers.path,
215
- request: request,
216
- callOptions: callOptions ?? self.defaultCallOptions,
217
- interceptors: self.interceptors?.makeGetBlockRangeNullifiersInterceptors() ?? [],
218
- handler: handler
219
- )
220
- }
221
-
222
176
  /// Return the requested full (not compact) transaction (as from zcashd)
223
177
  ///
224
178
  /// - Parameters:
@@ -384,46 +338,6 @@ extension CompactTxStreamerClientProtocol {
384
338
  )
385
339
  }
386
340
 
387
- /// Unary call to GetLatestTreeState
388
- ///
389
- /// - Parameters:
390
- /// - request: Request to send to GetLatestTreeState.
391
- /// - callOptions: Call options.
392
- /// - Returns: A `UnaryCall` with futures for the metadata, status and response.
393
- internal func getLatestTreeState(
394
- _ request: Empty,
395
- callOptions: CallOptions? = nil
396
- ) -> UnaryCall<Empty, TreeState> {
397
- return self.makeUnaryCall(
398
- path: CompactTxStreamerClientMetadata.Methods.getLatestTreeState.path,
399
- request: request,
400
- callOptions: callOptions ?? self.defaultCallOptions,
401
- interceptors: self.interceptors?.makeGetLatestTreeStateInterceptors() ?? []
402
- )
403
- }
404
-
405
- /// Returns a stream of information about roots of subtrees of the Sapling and Orchard
406
- /// note commitment trees.
407
- ///
408
- /// - Parameters:
409
- /// - request: Request to send to GetSubtreeRoots.
410
- /// - callOptions: Call options.
411
- /// - handler: A closure called when each response is received from the server.
412
- /// - Returns: A `ServerStreamingCall` with futures for the metadata and status.
413
- internal func getSubtreeRoots(
414
- _ request: GetSubtreeRootsArg,
415
- callOptions: CallOptions? = nil,
416
- handler: @escaping (SubtreeRoot) -> Void
417
- ) -> ServerStreamingCall<GetSubtreeRootsArg, SubtreeRoot> {
418
- return self.makeServerStreamingCall(
419
- path: CompactTxStreamerClientMetadata.Methods.getSubtreeRoots.path,
420
- request: request,
421
- callOptions: callOptions ?? self.defaultCallOptions,
422
- interceptors: self.interceptors?.makeGetSubtreeRootsInterceptors() ?? [],
423
- handler: handler
424
- )
425
- }
426
-
427
341
  /// Unary call to GetAddressUtxos
428
342
  ///
429
343
  /// - Parameters:
@@ -500,8 +414,10 @@ extension CompactTxStreamerClientProtocol {
500
414
  }
501
415
  }
502
416
 
417
+ #if compiler(>=5.6)
503
418
  @available(*, deprecated)
504
419
  extension CompactTxStreamerClient: @unchecked Sendable {}
420
+ #endif // compiler(>=5.6)
505
421
 
506
422
  @available(*, deprecated, renamed: "CompactTxStreamerNIOClient")
507
423
  internal final class CompactTxStreamerClient: CompactTxStreamerClientProtocol {
@@ -557,6 +473,7 @@ internal struct CompactTxStreamerNIOClient: CompactTxStreamerClientProtocol {
557
473
  }
558
474
  }
559
475
 
476
+ #if compiler(>=5.6)
560
477
  @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
561
478
  internal protocol CompactTxStreamerAsyncClientProtocol: GRPCClient {
562
479
  static var serviceDescriptor: GRPCServiceDescriptor { get }
@@ -572,21 +489,11 @@ internal protocol CompactTxStreamerAsyncClientProtocol: GRPCClient {
572
489
  callOptions: CallOptions?
573
490
  ) -> GRPCAsyncUnaryCall<BlockID, CompactBlock>
574
491
 
575
- func makeGetBlockNullifiersCall(
576
- _ request: BlockID,
577
- callOptions: CallOptions?
578
- ) -> GRPCAsyncUnaryCall<BlockID, CompactBlock>
579
-
580
492
  func makeGetBlockRangeCall(
581
493
  _ request: BlockRange,
582
494
  callOptions: CallOptions?
583
495
  ) -> GRPCAsyncServerStreamingCall<BlockRange, CompactBlock>
584
496
 
585
- func makeGetBlockRangeNullifiersCall(
586
- _ request: BlockRange,
587
- callOptions: CallOptions?
588
- ) -> GRPCAsyncServerStreamingCall<BlockRange, CompactBlock>
589
-
590
497
  func makeGetTransactionCall(
591
498
  _ request: TxFilter,
592
499
  callOptions: CallOptions?
@@ -626,16 +533,6 @@ internal protocol CompactTxStreamerAsyncClientProtocol: GRPCClient {
626
533
  callOptions: CallOptions?
627
534
  ) -> GRPCAsyncUnaryCall<BlockID, TreeState>
628
535
 
629
- func makeGetLatestTreeStateCall(
630
- _ request: Empty,
631
- callOptions: CallOptions?
632
- ) -> GRPCAsyncUnaryCall<Empty, TreeState>
633
-
634
- func makeGetSubtreeRootsCall(
635
- _ request: GetSubtreeRootsArg,
636
- callOptions: CallOptions?
637
- ) -> GRPCAsyncServerStreamingCall<GetSubtreeRootsArg, SubtreeRoot>
638
-
639
536
  func makeGetAddressUtxosCall(
640
537
  _ request: GetAddressUtxosArg,
641
538
  callOptions: CallOptions?
@@ -691,18 +588,6 @@ extension CompactTxStreamerAsyncClientProtocol {
691
588
  )
692
589
  }
693
590
 
694
- internal func makeGetBlockNullifiersCall(
695
- _ request: BlockID,
696
- callOptions: CallOptions? = nil
697
- ) -> GRPCAsyncUnaryCall<BlockID, CompactBlock> {
698
- return self.makeAsyncUnaryCall(
699
- path: CompactTxStreamerClientMetadata.Methods.getBlockNullifiers.path,
700
- request: request,
701
- callOptions: callOptions ?? self.defaultCallOptions,
702
- interceptors: self.interceptors?.makeGetBlockNullifiersInterceptors() ?? []
703
- )
704
- }
705
-
706
591
  internal func makeGetBlockRangeCall(
707
592
  _ request: BlockRange,
708
593
  callOptions: CallOptions? = nil
@@ -715,18 +600,6 @@ extension CompactTxStreamerAsyncClientProtocol {
715
600
  )
716
601
  }
717
602
 
718
- internal func makeGetBlockRangeNullifiersCall(
719
- _ request: BlockRange,
720
- callOptions: CallOptions? = nil
721
- ) -> GRPCAsyncServerStreamingCall<BlockRange, CompactBlock> {
722
- return self.makeAsyncServerStreamingCall(
723
- path: CompactTxStreamerClientMetadata.Methods.getBlockRangeNullifiers.path,
724
- request: request,
725
- callOptions: callOptions ?? self.defaultCallOptions,
726
- interceptors: self.interceptors?.makeGetBlockRangeNullifiersInterceptors() ?? []
727
- )
728
- }
729
-
730
603
  internal func makeGetTransactionCall(
731
604
  _ request: TxFilter,
732
605
  callOptions: CallOptions? = nil
@@ -821,30 +694,6 @@ extension CompactTxStreamerAsyncClientProtocol {
821
694
  )
822
695
  }
823
696
 
824
- internal func makeGetLatestTreeStateCall(
825
- _ request: Empty,
826
- callOptions: CallOptions? = nil
827
- ) -> GRPCAsyncUnaryCall<Empty, TreeState> {
828
- return self.makeAsyncUnaryCall(
829
- path: CompactTxStreamerClientMetadata.Methods.getLatestTreeState.path,
830
- request: request,
831
- callOptions: callOptions ?? self.defaultCallOptions,
832
- interceptors: self.interceptors?.makeGetLatestTreeStateInterceptors() ?? []
833
- )
834
- }
835
-
836
- internal func makeGetSubtreeRootsCall(
837
- _ request: GetSubtreeRootsArg,
838
- callOptions: CallOptions? = nil
839
- ) -> GRPCAsyncServerStreamingCall<GetSubtreeRootsArg, SubtreeRoot> {
840
- return self.makeAsyncServerStreamingCall(
841
- path: CompactTxStreamerClientMetadata.Methods.getSubtreeRoots.path,
842
- request: request,
843
- callOptions: callOptions ?? self.defaultCallOptions,
844
- interceptors: self.interceptors?.makeGetSubtreeRootsInterceptors() ?? []
845
- )
846
- }
847
-
848
697
  internal func makeGetAddressUtxosCall(
849
698
  _ request: GetAddressUtxosArg,
850
699
  callOptions: CallOptions? = nil
@@ -920,18 +769,6 @@ extension CompactTxStreamerAsyncClientProtocol {
920
769
  )
921
770
  }
922
771
 
923
- internal func getBlockNullifiers(
924
- _ request: BlockID,
925
- callOptions: CallOptions? = nil
926
- ) async throws -> CompactBlock {
927
- return try await self.performAsyncUnaryCall(
928
- path: CompactTxStreamerClientMetadata.Methods.getBlockNullifiers.path,
929
- request: request,
930
- callOptions: callOptions ?? self.defaultCallOptions,
931
- interceptors: self.interceptors?.makeGetBlockNullifiersInterceptors() ?? []
932
- )
933
- }
934
-
935
772
  internal func getBlockRange(
936
773
  _ request: BlockRange,
937
774
  callOptions: CallOptions? = nil
@@ -944,18 +781,6 @@ extension CompactTxStreamerAsyncClientProtocol {
944
781
  )
945
782
  }
946
783
 
947
- internal func getBlockRangeNullifiers(
948
- _ request: BlockRange,
949
- callOptions: CallOptions? = nil
950
- ) -> GRPCAsyncResponseStream<CompactBlock> {
951
- return self.performAsyncServerStreamingCall(
952
- path: CompactTxStreamerClientMetadata.Methods.getBlockRangeNullifiers.path,
953
- request: request,
954
- callOptions: callOptions ?? self.defaultCallOptions,
955
- interceptors: self.interceptors?.makeGetBlockRangeNullifiersInterceptors() ?? []
956
- )
957
- }
958
-
959
784
  internal func getTransaction(
960
785
  _ request: TxFilter,
961
786
  callOptions: CallOptions? = nil
@@ -1064,30 +889,6 @@ extension CompactTxStreamerAsyncClientProtocol {
1064
889
  )
1065
890
  }
1066
891
 
1067
- internal func getLatestTreeState(
1068
- _ request: Empty,
1069
- callOptions: CallOptions? = nil
1070
- ) async throws -> TreeState {
1071
- return try await self.performAsyncUnaryCall(
1072
- path: CompactTxStreamerClientMetadata.Methods.getLatestTreeState.path,
1073
- request: request,
1074
- callOptions: callOptions ?? self.defaultCallOptions,
1075
- interceptors: self.interceptors?.makeGetLatestTreeStateInterceptors() ?? []
1076
- )
1077
- }
1078
-
1079
- internal func getSubtreeRoots(
1080
- _ request: GetSubtreeRootsArg,
1081
- callOptions: CallOptions? = nil
1082
- ) -> GRPCAsyncResponseStream<SubtreeRoot> {
1083
- return self.performAsyncServerStreamingCall(
1084
- path: CompactTxStreamerClientMetadata.Methods.getSubtreeRoots.path,
1085
- request: request,
1086
- callOptions: callOptions ?? self.defaultCallOptions,
1087
- interceptors: self.interceptors?.makeGetSubtreeRootsInterceptors() ?? []
1088
- )
1089
- }
1090
-
1091
892
  internal func getAddressUtxos(
1092
893
  _ request: GetAddressUtxosArg,
1093
894
  callOptions: CallOptions? = nil
@@ -1154,7 +955,9 @@ internal struct CompactTxStreamerAsyncClient: CompactTxStreamerAsyncClientProtoc
1154
955
  }
1155
956
  }
1156
957
 
1157
- internal protocol CompactTxStreamerClientInterceptorFactoryProtocol: Sendable {
958
+ #endif // compiler(>=5.6)
959
+
960
+ internal protocol CompactTxStreamerClientInterceptorFactoryProtocol: GRPCSendable {
1158
961
 
1159
962
  /// - Returns: Interceptors to use when invoking 'getLatestBlock'.
1160
963
  func makeGetLatestBlockInterceptors() -> [ClientInterceptor<ChainSpec, BlockID>]
@@ -1162,15 +965,9 @@ internal protocol CompactTxStreamerClientInterceptorFactoryProtocol: Sendable {
1162
965
  /// - Returns: Interceptors to use when invoking 'getBlock'.
1163
966
  func makeGetBlockInterceptors() -> [ClientInterceptor<BlockID, CompactBlock>]
1164
967
 
1165
- /// - Returns: Interceptors to use when invoking 'getBlockNullifiers'.
1166
- func makeGetBlockNullifiersInterceptors() -> [ClientInterceptor<BlockID, CompactBlock>]
1167
-
1168
968
  /// - Returns: Interceptors to use when invoking 'getBlockRange'.
1169
969
  func makeGetBlockRangeInterceptors() -> [ClientInterceptor<BlockRange, CompactBlock>]
1170
970
 
1171
- /// - Returns: Interceptors to use when invoking 'getBlockRangeNullifiers'.
1172
- func makeGetBlockRangeNullifiersInterceptors() -> [ClientInterceptor<BlockRange, CompactBlock>]
1173
-
1174
971
  /// - Returns: Interceptors to use when invoking 'getTransaction'.
1175
972
  func makeGetTransactionInterceptors() -> [ClientInterceptor<TxFilter, RawTransaction>]
1176
973
 
@@ -1195,12 +992,6 @@ internal protocol CompactTxStreamerClientInterceptorFactoryProtocol: Sendable {
1195
992
  /// - Returns: Interceptors to use when invoking 'getTreeState'.
1196
993
  func makeGetTreeStateInterceptors() -> [ClientInterceptor<BlockID, TreeState>]
1197
994
 
1198
- /// - Returns: Interceptors to use when invoking 'getLatestTreeState'.
1199
- func makeGetLatestTreeStateInterceptors() -> [ClientInterceptor<Empty, TreeState>]
1200
-
1201
- /// - Returns: Interceptors to use when invoking 'getSubtreeRoots'.
1202
- func makeGetSubtreeRootsInterceptors() -> [ClientInterceptor<GetSubtreeRootsArg, SubtreeRoot>]
1203
-
1204
995
  /// - Returns: Interceptors to use when invoking 'getAddressUtxos'.
1205
996
  func makeGetAddressUtxosInterceptors() -> [ClientInterceptor<GetAddressUtxosArg, GetAddressUtxosReplyList>]
1206
997
 
@@ -1221,9 +1012,7 @@ internal enum CompactTxStreamerClientMetadata {
1221
1012
  methods: [
1222
1013
  CompactTxStreamerClientMetadata.Methods.getLatestBlock,
1223
1014
  CompactTxStreamerClientMetadata.Methods.getBlock,
1224
- CompactTxStreamerClientMetadata.Methods.getBlockNullifiers,
1225
1015
  CompactTxStreamerClientMetadata.Methods.getBlockRange,
1226
- CompactTxStreamerClientMetadata.Methods.getBlockRangeNullifiers,
1227
1016
  CompactTxStreamerClientMetadata.Methods.getTransaction,
1228
1017
  CompactTxStreamerClientMetadata.Methods.sendTransaction,
1229
1018
  CompactTxStreamerClientMetadata.Methods.getTaddressTxids,
@@ -1232,8 +1021,6 @@ internal enum CompactTxStreamerClientMetadata {
1232
1021
  CompactTxStreamerClientMetadata.Methods.getMempoolTx,
1233
1022
  CompactTxStreamerClientMetadata.Methods.getMempoolStream,
1234
1023
  CompactTxStreamerClientMetadata.Methods.getTreeState,
1235
- CompactTxStreamerClientMetadata.Methods.getLatestTreeState,
1236
- CompactTxStreamerClientMetadata.Methods.getSubtreeRoots,
1237
1024
  CompactTxStreamerClientMetadata.Methods.getAddressUtxos,
1238
1025
  CompactTxStreamerClientMetadata.Methods.getAddressUtxosStream,
1239
1026
  CompactTxStreamerClientMetadata.Methods.getLightdInfo,
@@ -1254,24 +1041,12 @@ internal enum CompactTxStreamerClientMetadata {
1254
1041
  type: GRPCCallType.unary
1255
1042
  )
1256
1043
 
1257
- internal static let getBlockNullifiers = GRPCMethodDescriptor(
1258
- name: "GetBlockNullifiers",
1259
- path: "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetBlockNullifiers",
1260
- type: GRPCCallType.unary
1261
- )
1262
-
1263
1044
  internal static let getBlockRange = GRPCMethodDescriptor(
1264
1045
  name: "GetBlockRange",
1265
1046
  path: "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetBlockRange",
1266
1047
  type: GRPCCallType.serverStreaming
1267
1048
  )
1268
1049
 
1269
- internal static let getBlockRangeNullifiers = GRPCMethodDescriptor(
1270
- name: "GetBlockRangeNullifiers",
1271
- path: "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetBlockRangeNullifiers",
1272
- type: GRPCCallType.serverStreaming
1273
- )
1274
-
1275
1050
  internal static let getTransaction = GRPCMethodDescriptor(
1276
1051
  name: "GetTransaction",
1277
1052
  path: "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetTransaction",
@@ -1320,18 +1095,6 @@ internal enum CompactTxStreamerClientMetadata {
1320
1095
  type: GRPCCallType.unary
1321
1096
  )
1322
1097
 
1323
- internal static let getLatestTreeState = GRPCMethodDescriptor(
1324
- name: "GetLatestTreeState",
1325
- path: "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetLatestTreeState",
1326
- type: GRPCCallType.unary
1327
- )
1328
-
1329
- internal static let getSubtreeRoots = GRPCMethodDescriptor(
1330
- name: "GetSubtreeRoots",
1331
- path: "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetSubtreeRoots",
1332
- type: GRPCCallType.serverStreaming
1333
- )
1334
-
1335
1098
  internal static let getAddressUtxos = GRPCMethodDescriptor(
1336
1099
  name: "GetAddressUtxos",
1337
1100
  path: "/cash.z.wallet.sdk.rpc.CompactTxStreamer/GetAddressUtxos",