Skip to content
Open
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 .wasm-budget.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"receipt_anchor": 32834,
"refund_vault": 57541
}
}
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,18 @@ breaking changes bump the **minor** version, and they are called out as such.
`test_deposit_from_non_merchant_fails` pins the behaviour and is annotated as
deliberate.

### Removed

- **Committed scratch and exploration files** (issue #154): the orphaned
`contracts/refund-vault/scratch.rs` and `contracts/refund-vault/src/explore.rs`
(neither is referenced by any module) are deleted. This also fixes the
unterminated `assert_eq!` in `test_process_batch_exceeds_max_size_fails`
(`refund-vault/src/test.rs`) that prevented the crate's test target from
compiling, and regenerates the golden ledger snapshots to match. The
native-only `testutils` harness is moved out of the workspace `default-members`
so `cargo build --target wasm32v1-none --release` no longer fails on
soroban-sdk's `testutils` feature for the wasm target.

## [0.3.0] — 2026-08-26

### ⚠️ Breaking
Expand Down
12 changes: 12 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ members = [
"contracts/refund-vault",
"contracts/testutils",
]
# `contracts/testutils` is a native-only measurement harness (uses `std` +
# `soroban-sdk/testutils`), so it must not be part of the default build graph:
# including it forces the `testutils` feature into `soroban-sdk` for the
# `wasm32v1-none` target and breaks `cargo build --release --target wasm32v1-none`.
# Explicitly target it with `-p testutils` (e.g. CI's benchmark-budgets job).
default-members = [
"contracts/common",
"contracts/multisig-account",
"contracts/receipt-anchor",
"contracts/receipt-shard",
"contracts/refund-vault",
]
resolver = "2"

[workspace.package]
Expand Down
4 changes: 2 additions & 2 deletions contracts/receipt-anchor/src/fuzz_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -910,8 +910,8 @@ const ANCHOR_BATCH_BASELINE_CPU: u64 = 1_591_284;
const ANCHOR_BATCH_BASELINE_MEM: u64 = 3_819_993;

/// Cost baselines for `verify_receipt` (4-leaf Merkle proof, including cross-contract shard routing)
/// Measured via `env.cost_estimate().budget().cpu_instruction_cost()` and `env.cost_estimate().memory_bytes_cost()` on 2026-08-26.
const VERIFY_RECEIPT_BASELINE_CPU: u64 = 569_906;
/// Measured via `env.cost_estimate().budget().cpu_instruction_cost()` and `env.cost_estimate().memory_bytes_cost()`.
const VERIFY_RECEIPT_BASELINE_CPU: u64 = 780_993;
const VERIFY_RECEIPT_BASELINE_MEM: u64 = 1_500_000;

#[test]
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading
Loading