Skip to content
Draft

Dev #83

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
7 changes: 6 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:

env:
CARGO_TERM_COLOR: always
SIMPLEX_VERSION: 0.0.12
SIMPLEX_VERSION: 0.2.0

jobs:
lint:
Expand Down Expand Up @@ -52,6 +52,11 @@ jobs:
run: |
simplex build

- name: Check contracts formatting
shell: bash
run: |
simplex fmt --check

- name: Check formatting
run: |
cargo fmt --all --check
Expand Down
25 changes: 23 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
SIMPLEX_VERSION: 0.0.12
SIMPLEX_VERSION: 0.2.0

jobs:
simplex-tests:
Expand Down Expand Up @@ -60,8 +60,29 @@ jobs:
run: |
cargo build --workspace --all-features --verbose

- name: Unit
env:
SIMPLEX_TEST_VERBOSE: ${{ runner.debug == '1' && '-v' || '' }}
run: |
simplex test --no-simplex --test-threads 4 "${SIMPLEX_TEST_VERBOSE}" -- --release

- name: Fuzz
env:
SIMPLEX_TEST_VERBOSE: ${{ runner.debug == '1' && '-v' || '' }}
run: |
simplex test --fuzz --test-threads 4 "${SIMPLEX_TEST_VERBOSE}" -- --release

# Each run draws a new seed: keep the persisted failing cases to reproduce them locally.
- name: Upload fuzz failures
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: fuzz-failures-${{ matrix.os }}
path: fuzz-failures/
if-no-files-found: ignore

- name: Test
env:
SIMPLEX_TEST_VERBOSE: ${{ runner.debug == '1' && '-v' || '' }}
run: |
simplex test --test-threads 4 "${SIMPLEX_TEST_VERBOSE}" -- --release
simplex test --test-threads 2 "${SIMPLEX_TEST_VERBOSE}" -- --release
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ target/

# Simplex output
src/artifacts
/fuzz-failures

# IDE/editors (optional but common minimal)
**/.DS_Store
Expand Down
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## Unreleased

### Added
- Extended functions for retrieving information from `OP_RETURN`.
- Conversion and bit functions for `u2` and `u4`.
- Functions for asserting script hashes.
- Fuzz tests for `secp256k1` operations.
- `enforce_relative_distance` and `enforce_relative_duration`, replacements for the deprecated `jet::check_lock_distance` and `jet::check_lock_duration`.

### Changed
- Bumped Simplex to 0.2.0.
- Aligned existing testing API with changes in Simplex.
- `secp256k1` unit tests run without a node, on fixed values.

## [0.2.0]

### Breaking changes
Expand Down
Loading
Loading