Skip to content
Draft
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
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ All notable changes to `ant-protocol` will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
and this project adheres to [Semantic Versioning](https://semver.org/).

## [2.4.0]

### Added
- Re-export `evmlib::merkle_batch_payment::{MerkleTreePayment, MAX_TREES_PER_PAYMENT, MERKLE_TREES_PER_PAYMENT}`
under `ant_protocol::evm`, so clients can drive the batched `payForMerkleTrees`
payment path (one wallet transaction for up to `MERKLE_TREES_PER_PAYMENT`
merkle trees) without a direct `evmlib` dependency. Client-only surface, same
as the existing `Wallet` re-export; requires the `evmlib` release carrying
WithAutonomi/evmlib#15.

## [2.3.0]

### Changed
Expand Down
5 changes: 2 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ant-protocol"
version = "2.3.2"
version = "2.4.0"
edition = "2021"
authors = ["MaidSafe Developers <dev@maidsafe.net>"]
description = "Wire protocol for the Autonomi decentralized network (WithAutonomi fork)"
Expand Down Expand Up @@ -70,3 +70,9 @@ expect_used = "deny"
panic = "deny"
# Allow non-const functions — the constructors may gain runtime behaviour.
missing_const_for_fn = "allow"

# DRAFT-ONLY: compile against the unreleased `payForMerkleTrees` evmlib surface
# (WithAutonomi/evmlib#15). Before this PR leaves draft: remove this patch and
# bump the `evmlib` dependency to the release carrying that PR.
[patch.crates-io]
evmlib = { git = "https://github.com/WithAutonomi/evmlib", branch = "feat/pay-for-merkle-trees" }
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ pub use payment::{
/// same `evmlib` major version.
pub mod evm {
pub use evmlib::common::{Address, Amount, QuoteHash, TxHash, U256};
pub use evmlib::merkle_batch_payment::PoolCommitment;
pub use evmlib::merkle_batch_payment::{
MerkleTreePayment, PoolCommitment, MAX_TREES_PER_PAYMENT, MERKLE_TREES_PER_PAYMENT,
};
pub use evmlib::merkle_payments::{
MerklePaymentCandidateNode, MerklePaymentCandidatePool, MerklePaymentProof,
MerklePaymentVerificationError, MerkleTree, MidpointProof, CANDIDATES_PER_POOL, MAX_LEAVES,
Expand Down
Loading