Skip to content

Commit

Permalink
Update ZcashLightClientKit package to 2.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ealymbaev committed Sep 11, 2024
1 parent a22afdd commit a2d6cc5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12995,7 +12995,7 @@
repositoryURL = "https://github.com/zcash/ZcashLightClientKit";
requirement = {
kind = exactVersion;
version = 2.1.8;
version = 2.2.2;
};
};
D3993DAA28F42549008720FB /* XCRemoteSwiftPackageReference "WalletConnectSwiftV2" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,7 @@ extension ZcashAdapter {
fsBlockDbRoot: fsBlockDbRootURL(uniqueId: uniqueId, network: network),
generalStorageURL: generalStorageURL(uniqueId: uniqueId, network: network),
dataDbURL: dataDbURL(uniqueId: uniqueId, network: network),
torDirURL: torDirURL(uniqueId: uniqueId, network: network),
endpoint: LightWalletEndpoint(address: endPoint, port: 443, secure: true, streamingCallTimeoutInMillis: 10 * 60 * 60 * 1000),
network: network,
spendParamsURL: spendParamsURL(uniqueId: uniqueId),
Expand Down Expand Up @@ -550,6 +551,10 @@ extension ZcashAdapter {
try dataDirectoryUrl().appendingPathComponent(network.constants.defaultDbNamePrefix + uniqueId + ZcashSDK.defaultDataDbName, isDirectory: false)
}

private static func torDirURL(uniqueId: String, network: ZcashNetwork) throws -> URL {
try dataDirectoryUrl().appendingPathComponent(network.constants.defaultDbNamePrefix + uniqueId + ZcashSDK.defaultTorDirName, isDirectory: true)
}

private static func spendParamsURL(uniqueId: String) throws -> URL {
try dataDirectoryUrl().appendingPathComponent("sapling-spend_\(uniqueId).params")
}
Expand Down Expand Up @@ -741,7 +746,7 @@ extension ZcashAdapter: ISendZcashAdapter {
switch try Recipient(address, network: network.networkType) {
case .transparent:
return .transparent
case .sapling, .unified: // I'm keeping changes to the minimum. Unified Address should be treated as a different address type which will include some shielded pool and possibly others as well.
case .sapling, .unified, .tex: // I'm keeping changes to the minimum. Unified Address should be treated as a different address type which will include some shielded pool and possibly others as well.
return .shielded
}
} catch {
Expand Down

0 comments on commit a2d6cc5

Please sign in to comment.