Skip to content

Commit

Permalink
Merge pull request Electric-Coin-Company#137 from Electric-Coin-Compa…
Browse files Browse the repository at this point in the history
…ny/ffi-0.8.0

FFI 0.8.0
  • Loading branch information
nuttycom authored Apr 17, 2024
2 parents e6b0c9b + 9314c83 commit 0bc99a3
Show file tree
Hide file tree
Showing 15 changed files with 245 additions and 108 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ and this library adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## 0.8.0 - 2024-04-17

### Added
- `zcashlc_is_valid_sapling_address`

### Changed
- Updates to `zcash_client_sqlite` version `0.10.3` to add migrations that ensure the
wallet's default Unified address contains an Orchard receiver.
- `zcashlc_get_memo` now takes an additional `output_pool` parameter. This fixes a problem
with the retrieval of Orchard memos.

### Removed
- `zcashlc_is_valid_shielded_address` - use `zcashlc_is_valid_sapling_address` instead.

## 0.7.4 - 2024-03-28

### Added
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ products/%/frameworks/libzcashlc.framework: products/%/universal/libzcashlc.a
cp -R rust/target/Headers $@
mkdir $@/Modules
cp support/module.modulemap $@/Modules
# Workaround for a bug in the XCode 15.3 build system.
# https://github.com/Electric-Coin-Company/zashi-ios/issues/1166
cp support/platform-Info.plist $@/Info.plist

products/macos/universal/libzcashlc.a: $(MACOS_ARCHS)
mkdir -p $(@D)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ char *zcashlc_get_sapling_receiver_for_unified_address(const char *ua);
* - `address` must be non-null and must point to a null-terminated UTF-8 string.
* - The memory referenced by `address` must not be mutated for the duration of the function call.
*/
bool zcashlc_is_valid_shielded_address(const char *address, uint32_t network_id);
bool zcashlc_is_valid_sapling_address(const char *address, uint32_t network_id);

/**
* Returns the network type and address kind for the given address string,
Expand Down Expand Up @@ -823,6 +823,7 @@ int64_t zcashlc_get_total_transparent_balance_for_account(const uint8_t *db_data
bool zcashlc_get_memo(const uint8_t *db_data,
uintptr_t db_data_len,
const uint8_t *txid_bytes,
uint32_t output_pool,
uint16_t output_index,
uint8_t *memo_bytes_ret,
uint32_t network_id);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>libzcashlc</string>
<key>CFBundleIdentifier</key>
<string>libzcashlc</string>
<key>CFBundleName</key>
<string>libzcashlc</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleVersion</key>
<string>0.8.0</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>iphonesimulator</string>
</array>
<key>MinimumOSVersion</key>
<string>100.0</string>
</dict>
</plist>
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ char *zcashlc_get_sapling_receiver_for_unified_address(const char *ua);
* - `address` must be non-null and must point to a null-terminated UTF-8 string.
* - The memory referenced by `address` must not be mutated for the duration of the function call.
*/
bool zcashlc_is_valid_shielded_address(const char *address, uint32_t network_id);
bool zcashlc_is_valid_sapling_address(const char *address, uint32_t network_id);

/**
* Returns the network type and address kind for the given address string,
Expand Down Expand Up @@ -823,6 +823,7 @@ int64_t zcashlc_get_total_transparent_balance_for_account(const uint8_t *db_data
bool zcashlc_get_memo(const uint8_t *db_data,
uintptr_t db_data_len,
const uint8_t *txid_bytes,
uint32_t output_pool,
uint16_t output_index,
uint8_t *memo_bytes_ret,
uint32_t network_id);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>libzcashlc</string>
<key>CFBundleIdentifier</key>
<string>libzcashlc</string>
<key>CFBundleName</key>
<string>libzcashlc</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleVersion</key>
<string>0.8.0</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>iphonesimulator</string>
</array>
<key>MinimumOSVersion</key>
<string>100.0</string>
</dict>
</plist>
Loading

0 comments on commit 0bc99a3

Please sign in to comment.