Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .docker/Dockerfile.ci-container
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker.io/debian:buster-slim
FROM docker.io/debian:bullseye-slim

MAINTAINER Onur Özkan <onur@komodoplatform.com>

Expand Down
76 changes: 76 additions & 0 deletions .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ jobs:
- name: Build
run: cargo build --release --target x86_64-apple-darwin

- name: Upload build for next job
uses: actions/upload-artifact@v4
with:
name: x86_64-apple-darwin-release-kdf
path: target/x86_64-apple-darwin/release/kdf

- name: Compress kdf build output
env:
AVAILABLE: ${{ secrets.FILE_SERVER_KEY }}
Expand Down Expand Up @@ -167,6 +173,12 @@ jobs:
- name: Build
run: cargo build --release --target aarch64-apple-darwin

- name: Upload build for next job
uses: actions/upload-artifact@v4
with:
name: aarch64-apple-darwin-release-kdf
path: target/aarch64-apple-darwin/release/kdf

- name: Compress kdf build output
env:
AVAILABLE: ${{ secrets.FILE_SERVER_KEY }}
Expand All @@ -189,6 +201,70 @@ jobs:
SAFE_BRANCH_NAME=$(echo "$BRANCH_NAME" | tr '/' '-')
python3 ./scripts/ci/upload_artifact.py "$SAFE_BRANCH_NAME" "/uploads/$SAFE_BRANCH_NAME"

mac-universal:
timeout-minutes: 60
runs-on: macos-latest
needs: [mac-x86-64, mac-arm64]
steps:
- uses: actions/checkout@v3

- name: Install build deps
uses: ./.github/actions/deps-install
with:
deps: ('protoc', 'python3', 'paramiko')

- name: Calculate build tag (commit hash) for PR commit
if: github.event_name == 'pull_request'
run: echo "KDF_BUILD_TAG=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV

- name: Calculate build tag (commit hash) for merge commit
if: github.event_name != 'pull_request'
run: echo "KDF_BUILD_TAG=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV

- name: Download macos x86_64 build
uses: actions/download-artifact@v5
with:
name: x86_64-apple-darwin-release-kdf
path: target/x86_64-apple-darwin/release

- name: Download macos aarch64 build
uses: actions/download-artifact@v5
with:
name: aarch64-apple-darwin-release-kdf
path: target/aarch64-apple-darwin/release

- name: Make universal kdf build output
run: |
AARCH64_BIN="target/aarch64-apple-darwin/release/kdf"
X86_64_BIN="target/x86_64-apple-darwin/release/kdf"
OUT_DIR="target/universal-apple-darwin/release"
OUT_BIN="$OUT_DIR/kdf"
mkdir -p "$OUT_DIR"
lipo -create "$AARCH64_BIN" "$X86_64_BIN" -output "$OUT_BIN"
lipo -info "$OUT_BIN"

- name: Compress kdf build output
env:
AVAILABLE: ${{ secrets.FILE_SERVER_KEY }}
if: ${{ env.AVAILABLE != '' }}
run: |
NAME="kdf_$KDF_BUILD_TAG-mac-universal.zip"
zip $NAME target/universal-apple-darwin/release/kdf -j
SAFE_DIR_NAME=$(echo "$BRANCH_NAME" | tr '/' '-')
mkdir $SAFE_DIR_NAME
mv $NAME ./$SAFE_DIR_NAME/

- name: Upload build artifact
env:
FILE_SERVER_HOST: ${{ secrets.FILE_SERVER_HOST }}
FILE_SERVER_USERNAME: ${{ secrets.FILE_SERVER_USERNAME }}
FILE_SERVER_PORT: ${{ secrets.FILE_SERVER_PORT }}
FILE_SERVER_KEY: ${{ secrets.FILE_SERVER_KEY }}
if: ${{ env.FILE_SERVER_KEY != '' }}
run: |
SAFE_BRANCH_NAME=$(echo "$BRANCH_NAME" | tr '/' '-')
python3 ./scripts/ci/upload_artifact.py "$SAFE_BRANCH_NAME" "/uploads/$SAFE_BRANCH_NAME"

win-x86-64:
timeout-minutes: 60
runs-on: windows-latest
Expand Down
77 changes: 77 additions & 0 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ jobs:
run: |
rustup toolchain install nightly-2023-06-01 --no-self-update --profile=minimal
rustup default nightly-2023-06-01
rustup target add x86_64-apple-darwin

- name: Install build deps
uses: ./.github/actions/deps-install
Expand All @@ -109,6 +110,12 @@ jobs:
- name: Build
run: cargo build --release --target x86_64-apple-darwin

- name: Upload build for next job
uses: actions/upload-artifact@v4
with:
name: x86_64-apple-darwin-release-kdf
path: target/x86_64-apple-darwin/release/kdf

- name: Compress kdf build output
run: |
NAME="kdf_$KDF_BUILD_TAG-mac-x86-64.zip"
Expand Down Expand Up @@ -158,6 +165,12 @@ jobs:
- name: Build
run: cargo build --release --target aarch64-apple-darwin

- name: Upload build for next job
uses: actions/upload-artifact@v4
with:
name: aarch64-apple-darwin-release-kdf
path: target/aarch64-apple-darwin/release/kdf

- name: Compress kdf build output
run: |
NAME="kdf_$KDF_BUILD_TAG-mac-arm64.zip"
Expand All @@ -177,6 +190,70 @@ jobs:
SAFE_BRANCH_NAME=$(echo "$BRANCH_NAME" | tr '/' '-')
python3 ./scripts/ci/upload_artifact.py "$SAFE_BRANCH_NAME" "/uploads/$SAFE_BRANCH_NAME"

mac-universal:
timeout-minutes: 60
runs-on: macos-latest
needs: [mac-x86-64, mac-arm64]
steps:
- uses: actions/checkout@v3

- name: Install build deps
uses: ./.github/actions/deps-install
with:
deps: ('protoc', 'python3', 'paramiko')

- name: Calculate build tag (commit hash) for PR commit
if: github.event_name == 'pull_request'
run: echo "KDF_BUILD_TAG=$(git rev-parse --short=7 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV

- name: Calculate build tag (commit hash) for merge commit
if: github.event_name != 'pull_request'
run: echo "KDF_BUILD_TAG=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV

- name: Download macos x86_64 build
uses: actions/download-artifact@v5
with:
name: x86_64-apple-darwin-release-kdf
path: target/x86_64-apple-darwin/release

- name: Download macos aarch64 build
uses: actions/download-artifact@v5
with:
name: aarch64-apple-darwin-release-kdf
path: target/aarch64-apple-darwin/release

- name: Make universal kdf build output
run: |
AARCH64_BIN="target/aarch64-apple-darwin/release/kdf"
X86_64_BIN="target/x86_64-apple-darwin/release/kdf"
OUT_DIR="target/universal-apple-darwin/release"
OUT_BIN="$OUT_DIR/kdf"
mkdir -p "$OUT_DIR"
lipo -create "$AARCH64_BIN" "$X86_64_BIN" -output "$OUT_BIN"
lipo -info "$OUT_BIN"

- name: Compress kdf build output
env:
AVAILABLE: ${{ secrets.FILE_SERVER_KEY }}
if: ${{ env.AVAILABLE != '' }}
run: |
NAME="kdf_$KDF_BUILD_TAG-mac-universal.zip"
zip $NAME target/universal-apple-darwin/release/kdf -j
SAFE_DIR_NAME=$(echo "$BRANCH_NAME" | tr '/' '-')
mkdir $SAFE_DIR_NAME
mv $NAME ./$SAFE_DIR_NAME/

- name: Upload build artifact
env:
FILE_SERVER_HOST: ${{ secrets.FILE_SERVER_HOST }}
FILE_SERVER_USERNAME: ${{ secrets.FILE_SERVER_USERNAME }}
FILE_SERVER_PORT: ${{ secrets.FILE_SERVER_PORT }}
FILE_SERVER_KEY: ${{ secrets.FILE_SERVER_KEY }}
if: ${{ env.FILE_SERVER_KEY != '' }}
run: |
SAFE_BRANCH_NAME=$(echo "$BRANCH_NAME" | tr '/' '-')
python3 ./scripts/ci/upload_artifact.py "$SAFE_BRANCH_NAME" "/uploads/$SAFE_BRANCH_NAME"

win-x86-64:
timeout-minutes: 60
runs-on: windows-latest
Expand Down
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
## v2.5.2-beta - 2025-10-10

### Enhancements/Fixes:

**Swap Stats DB**:
- Swap status broadcasting was enabled for privacy coins with the persistent pubkey hidden (set to zeros) to maintain user privacy. [#2648](https://github.com/KomodoPlatform/komodo-defi-framework/pull/2648)
- Stats database now correctly stores persistent pubkeys for both maker and taker instead of incorrectly storing htlc pubkeys in some cases. [#2648](https://github.com/KomodoPlatform/komodo-defi-framework/pull/2648)

**ARRR/Pirate**:
- The `get_nullifiers` function for Zcoin WASM build is now aligned with its sqlite counterpart to return nullifiers for both unspent notes and notes with unconfirmed spends, fixing the `spent_by_me` field in transaction history and balance calculations. [#2651](https://github.com/KomodoPlatform/komodo-defi-framework/pull/2651)

**Metrics**:
- The `memory_db` size metric that relied on `parity-util-mem::malloc_size` was removed because it intermittently segfaulted on Linux due to allocator conflicts. [#2632](https://github.com/KomodoPlatform/komodo-defi-framework/pull/2632)

**Build and Dependency Management**:
- A CI job was added to build macOS Universal2 artifacts for KDF, this combines `x86_64-apple-darwin` and `aarch64-apple-darwin` binaries via `lipo` to produce a single binary that runs natively on both Intel and Apple Silicon. The universal binary is uploaded as `kdf_<commit>-mac-universal.zip`. [#2628](https://github.com/KomodoPlatform/komodo-defi-framework/pull/2628)
- The `parity-util-mem` dependency was removed. [#2632](https://github.com/KomodoPlatform/komodo-defi-framework/pull/2632)
- CI container base image was bumped to `debian:bullseye-slim` [#2534](https://github.com/KomodoPlatform/komodo-defi-framework/pull/2534) [#2641](https://github.com/KomodoPlatform/komodo-defi-framework/pull/2641)

---

## v2.5.1-beta - 2025-07-28

### Enhancements/Fixes:

**Wallet**:
- A comprehensive `get_private_keys` RPC was implemented to export private keys, public keys, and addresses for any configured coin without requiring activation. HD and Iguana modes with protocol-specific logic for UTXO, EVM, Tendermint, and ZHTLC coins were supported, enabling offline recovery workflows (implemented by Devin AI). [#2542](https://github.com/KomodoPlatform/komodo-defi-framework/pull/2542)

---

## v2.5.0-beta - 2025-07-04

### Features:
Expand Down
27 changes: 2 additions & 25 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ mocktopus = "0.8.0"
nom = "6.1.2"
num-bigint = { version = "0.4", features = ["serde", "std"] }
num-rational = { version = "0.4", features = ["serde"] }
parity-util-mem = "0.11"
num-traits = "0.2"
pairing_api = { git = "https://github.com/komodoplatform/walletconnectrust", tag = "k-0.1.3" }
parking_lot = { version = "0.12.0", default-features = false }
Expand Down
Loading
Loading