Skip to content

feat(zair-sdk): support all gaptree modes in the integration api#54

Merged
zeapoz merged 2 commits into
mainfrom
feat/api-gaptree-modes
Apr 22, 2026
Merged

feat(zair-sdk): support all gaptree modes in the integration api#54
zeapoz merged 2 commits into
mainfrom
feat/api-gaptree-modes

Conversation

@zeapoz

@zeapoz zeapoz commented Apr 21, 2026

Copy link
Copy Markdown
Collaborator
  • Adds support for all gaptree modes in the integration API
  • Refactors build_pool_merkle_tree to use the integration API gaptree implementation

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

@zeapoz zeapoz force-pushed the feat/api-gaptree-modes branch from 57851f9 to 260e15f Compare April 21, 2026 12:21
@zeapoz zeapoz marked this pull request as draft April 21, 2026 12:23
@zeapoz zeapoz marked this pull request as ready for review April 21, 2026 12:23
Comment thread crates/zair-sdk/src/api/claims.rs Outdated
match self {
Self::Sapling(tree) => tree.root_bytes(),
Self::Orchard(tree) => tree.root_bytes(),
Self::SaplingSparse(tree) => tree.root().to_bytes(),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we cannot use root_bytes() here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, for some reason NonMembershipTree doesn't define it whilst the others do. Likewise, we can't do NonMembershipTree::witness_bytes either. Implemented them in latest commit

Comment thread crates/zair-sdk/src/api/scan.rs Outdated
viewing_keys: &ViewingKeys,
airdrop_config: &AirdropConfiguration,
snapshot_nullifiers: Option<SanitiseNullifiers>,
snapshot_nullifiers: Option<zair_core::base::SanitiseNullifiers>,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: could be imported

@zeapoz zeapoz marked this pull request as draft April 21, 2026 13:45
@zeapoz zeapoz marked this pull request as ready for review April 21, 2026 13:45
@zeapoz zeapoz requested a review from mikdk April 21, 2026 13:46
@zeapoz zeapoz added this pull request to the merge queue Apr 22, 2026
Merged via the queue into main with commit c22681e Apr 22, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants