feat: merkle batch payment support for large uploads - #3
Merged
Conversation
Implements the GUI side of merkle batch payments (ant-client PR #12). Files with 64+ chunks now auto-select merkle payment (single tx) instead of wave-batch (per-batch txs), reducing gas costs for large uploads. Backend: match on ExternalPaymentInfo enum, serialize merkle params, add confirm_upload_merkle command. Frontend: payForMerkleTree() via unified PaymentVault contract, branch upload flow on payment mode. Updates contract ABI and address to evmlib 0.8.0 unified vault. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add get_dir_size Tauri command for recursive directory size calculation
- Add nodeDetail API method (GET /api/v1/nodes/{id}) from ant-client PR #22
- Enrich nodes with data_dir and storage_bytes on 30s interval
- Fix storage display to show "0 B" for empty dirs instead of "-"
- Replace payment mode card selector with compact text label
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Nic-dorman
force-pushed
the
feat/merkle-payment-support
branch
from
April 6, 2026 16:39
f7b632c to
b6f8a66
Compare
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.
Summary
0x9A3EcAc693b699Fc0B2B6A50B5549e50c2320A26Changes
Rust backend (
autonomi_ops.rs,lib.rs):ExternalPaymentInfo::WaveBatchvs::Merkleinstart_uploadconfirm_upload_merklecommand accepting winner pool hashFrontend payment (
payment.ts):payForMerkleTree()— callspayForMerkleTreeon unified vault, extractswinnerPoolHashfromMerklePaymentMadeeventUpload flow (
stores/files.ts):UploadQuotecarries payment mode + merkle fieldsstartRealUploadbranches: merkle →payForMerkleTree+confirm_upload_merkle, wave-batch →payForQuotes+confirm_uploadUI (
UploadConfirmDialog.vue):Contract (
IPaymentVault.json,wallet-config.ts):payForQuotesandpayForMerkleTreeTest plan
🤖 Generated with Claude Code