feat(evm): re-export batched merkle payment surface from evmlib - #26
Draft
Nic-dorman wants to merge 1 commit into
Draft
feat(evm): re-export batched merkle payment surface from evmlib#26Nic-dorman wants to merge 1 commit into
Nic-dorman wants to merge 1 commit into
Conversation
Adds MerkleTreePayment, MAX_TREES_PER_PAYMENT and MERKLE_TREES_PER_PAYMENT to the ant_protocol::evm re-export gate so clients can drive the batched payForMerkleTrees path without a direct evmlib dependency. Carries a draft-only [patch.crates-io] git pin on evmlib#15 until that releases. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linear issue
V2-990 — https://linear.app/autonominetwork/issue/V2-990 (parent V2-949)
Risk tier
Compatibility
ant_protocol::evmgainsMerkleTreePayment,MAX_TREES_PER_PAYMENT,MERKLE_TREES_PER_PAYMENT(re-exports of the batchedpayForMerkleTreessurface from feat(payment): pay N merkle trees in one tx (payForMerkleTrees) evmlib#15). Client-only surface, justified by the same version-pin rationale as the existingWalletre-export: ant-client is forbidden a direct evmlib dep, so this gate is its only path to the batch types.Semver impact
Caveat: proposed as minor (2.3.2 → 2.4.0) assuming evmlib releases the #15 surface on the 0.9.x line. If it releases as 0.10, the evmlib pin bump makes this a major instead — confirm at undraft.
Test evidence
cargo check --all-features,cargo clippy --all-targets --all-features -- -D warnings,cargo fmt --checkall clean against the patched evmlib.cargo test --lib: 79/79.New dependency
none (a draft-only
[patch.crates-io]git pin on evmlib branchfeat/pay-for-merkle-treesmakes CI compile before the evmlib release; it must be removed and theevmlibversion bumped before undraft).ADR
ADR-0011 (Proposed):
docs/adr/ADR-0011-batched-merkle-tree-payments.md— filed via WithAutonomi/ant-node#213. (n/a strictly required for T1; linked for context.)Mitigation / rollback
Re-exports only — nothing changes for existing consumers; rollback = revert. DRAFT until WithAutonomi/evmlib#15 merges and releases (this PR's patch pin cannot ship).
🤖 Generated with Claude Code