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
8 changes: 4 additions & 4 deletions examples/fixture/anchors.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[
{
"spaces_root": "6243eee1459193a86f801250ab75fdf5a96e829d1846a6a51e9aa2c1c88db73b",
"nums_root": "81e10fb6592ce87d8cd1f109eae29d584d9bf684468e042d77863bdcb47921aa",
"nums_root": "5e4f68496e475a9ad087ebc0fa8f96e98baaa3e44fd0c596e048724a9d12282d",
"block": {
"hash": "ba232401ad870c4fc435b8b8bb71ab4a78bd7aa9a96cb535127126e2cbd0208b",
"hash": "822af0ef8ce16f94a1c9ddd95152b5178c90cd42d5940872f0376020d44b4a62",
"height": 145
}
},
{
"spaces_root": "6243eee1459193a86f801250ab75fdf5a96e829d1846a6a51e9aa2c1c88db73b",
"nums_root": "81e10fb6592ce87d8cd1f109eae29d584d9bf684468e042d77863bdcb47921aa",
"nums_root": "5e4f68496e475a9ad087ebc0fa8f96e98baaa3e44fd0c596e048724a9d12282d",
"block": {
"hash": "ba232401ad870c4fc435b8b8bb71ab4a78bd7aa9a96cb535127126e2cbd0208b",
"hash": "822af0ef8ce16f94a1c9ddd95152b5178c90cd42d5940872f0376020d44b4a62",
"height": 0
}
}
Expand Down
Binary file modified examples/fixture/message.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/js/verify.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { readFileSync } from "fs";
import { Veritas, QueryContext, Message } from "./pkg/libveritas.js";

// Load fixtures generated by `cargo run --bin generate-fixture`
// Load fixtures generated by `cargo run --example generate_fixture -p libveritas_testutil`
const anchors = JSON.parse(readFileSync("examples/fixture/anchors.json", "utf8"));
const msgBytes = readFileSync("examples/fixture/message.bin");

Expand Down
12 changes: 7 additions & 5 deletions release-plz.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,16 @@ name = "libveritas_zk"
release = false
publish = false

# Non-publishable crates: skip versioning, changelog, and releases
[[package]]
name = "libveritas_methods"
release = false
publish = false
name = "libveritas_testutil"
publish = true
git_release_enable = true
git_release_latest = false
git_tag_name = "libveritas_testutil-v{{ version }}"

# Non-publishable crates: skip versioning, changelog, and releases
[[package]]
name = "libveritas_testutil"
name = "libveritas_methods"
release = false
publish = false

Expand Down
15 changes: 9 additions & 6 deletions testutil/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@
name = "libveritas_testutil"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
authors.workspace = true
publish = false
description = "Test fixtures and helpers for libveritas — simulated chain state, handle trees, and a fixture generator."
documentation = "https://docs.rs/libveritas_testutil"
keywords = ["spaces", "testing", "fixture"]
categories = ["development-tools::testing"]

[dependencies]
libveritas = { workspace = true }
Expand All @@ -16,8 +23,4 @@ borsh_utils = { workspace = true }
borsh = { version = "1.6", features = ["derive", "std"] }
bitcoin = { version = "0.32", default-features = false, features = ["rand-std"] }
risc0-zkvm = { version = "3.0.5", default-features = false, features = ["std"] }
serde_json = "1.0"

[[bin]]
name = "generate-fixture"
path = "../examples/generate_fixture.rs"
serde_json = "1.0"
File renamed without changes.
Loading