Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Features

* [FEATURE][rust] Re-exported the fee pricing and note checking types that the client API already surfaces, so downstream crates no longer need a direct `miden-tx` dependency to price note consumption: `NetworkNotePricer`, `NotePricingError` and `NoteCheckerError` at the crate root, `TransactionFee` and `TransactionFeeError` from `transaction`, `NoteCost` and `NoteConsumptionCost` from `note`, and `MastForestStore` and `TransactionMastStore` from `testing` ([#2475](https://github.com/0xMiden/rust-sdk/pull/2475)).

### Fixes

* [FIX][cli] `miden-client import` now rejects invocations without a file path instead of silently succeeding ([#2450](https://github.com/0xMiden/rust-sdk/pull/2450)).
Expand Down
4 changes: 2 additions & 2 deletions crates/rust-client/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ pub use miden_standards::errors::CodeBuilderError;
use miden_standards::tx_script::SendNotesTransactionScriptError;
use miden_tx::utils::HexParseError;
use miden_tx::utils::serde::DeserializationError;
pub use miden_tx::{AuthenticationError, TransactionExecutorError};
use miden_tx::{DataStoreError, NoteCheckerError, TransactionProverError};
pub use miden_tx::{AuthenticationError, NoteCheckerError, TransactionExecutorError};
use miden_tx::{DataStoreError, TransactionProverError};
use thiserror::Error;

use crate::note::NoteScreenerError;
Expand Down
10 changes: 5 additions & 5 deletions crates/rust-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ pub use miden_protocol::{
Word,
ZERO,
};
pub use miden_tx::{ExecutionOptions, NetworkNotePricer};
pub use miden_tx::{ExecutionOptions, NetworkNotePricer, NotePricingError};
#[cfg(feature = "tonic")]
pub use remote_prover::RemoteTransactionProver;

Expand All @@ -357,10 +357,10 @@ pub mod testing {
pub use miden_standards::testing as standards;
pub use miden_standards::testing::note::NoteBuilder;
pub use miden_testing::*;
/// The data store the executor reads from, along with the trait whose methods it serves.
/// Exposed here so that tests can exercise it on its own, without going through a transaction
/// or a note screening pass.
pub use miden_tx::DataStore;
/// The data store the executor reads from, the MAST forest store trait it also serves, and the
/// MAST store that [`ClientDataStore::mast_store`] returns. Exposed here so that tests can
/// exercise them on their own, without going through a transaction or a note screening pass.
pub use miden_tx::{DataStore, MastForestStore, TransactionMastStore};

pub use crate::store::data_store::ClientDataStore;
pub use crate::test_utils::*;
Expand Down
1 change: 1 addition & 0 deletions crates/rust-client/src/note/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ pub use miden_protocol::note::{
pub use miden_protocol::transaction::ToInputNoteCommitments;
/// Raw access to `miden-standards` note modules for items not curated by `miden-client`.
pub use miden_standards::note as standards;
pub use miden_standards::note::costs::{NoteConsumptionCost, NoteCost};
pub use miden_standards::note::{
FeeSponsorshipNote,
MintNote,
Expand Down
2 changes: 2 additions & 0 deletions crates/rust-client/src/transaction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ pub use miden_protocol::transaction::{
RawOutputNote,
RawOutputNotes,
TransactionArgs,
TransactionFee,
TransactionFeeError,
TransactionId,
TransactionInputs,
TransactionKernel,
Expand Down
Loading