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
531 changes: 269 additions & 262 deletions Cargo.lock

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ members = ["server", "contracts", "contracts/hyli-utxo-state"]

[workspace.dependencies]
# Hyli dependencies
sdk = { git = "https://github.com/hyli-org/hyli.git", package = "hyli-contract-sdk", branch = "commitment_metadata_calldata" }
client-sdk = { git = "https://github.com/hyli-org/hyli.git", default-features = false, package = "hyli-client-sdk", branch = "commitment_metadata_calldata" }
hyli-modules = { git = "https://github.com/hyli-org/hyli.git", package = "hyli-modules", branch = "commitment_metadata_calldata" }
hyli-turmoil-shims = { git = "https://github.com/hyli-org/hyli.git", package = "hyli-turmoil-shims", branch = "commitment_metadata_calldata" }
hyli-verifiers = { git = "https://github.com/hyli-org/hyli.git", package = "hyli-verifiers", branch = "commitment_metadata_calldata" }
sdk = { git = "https://github.com/hyli-org/hyli.git", package = "hyli-contract-sdk", branch = "main" }
client-sdk = { git = "https://github.com/hyli-org/hyli.git", default-features = false, package = "hyli-client-sdk", branch = "main" }
hyli-modules = { git = "https://github.com/hyli-org/hyli.git", package = "hyli-modules", branch = "main" }
hyli-turmoil-shims = { git = "https://github.com/hyli-org/hyli.git", package = "hyli-turmoil-shims", branch = "main" }
hyli-verifiers = { git = "https://github.com/hyli-org/hyli.git", package = "hyli-verifiers", branch = "main" }

hyli-registry = "0.4.0"

Expand Down
8 changes: 8 additions & 0 deletions contracts/hyli-utxo-state/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,14 @@ impl HyliUtxoState {
self.notes_tree.root()
}

pub fn notes_tree_contains(&self, commitment: &BorshableH256) -> bool {
self.notes_tree.contains(commitment)
}

pub fn notes_tree_leaf_count(&self) -> usize {
self.notes_tree.leaf_count()
}

pub fn build_smt_witnesses(
&self,
commitment0: BorshableH256,
Expand Down
Loading
Loading