Skip to content
Merged
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
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
### Features

* [FEATURE][rust] The committed note passed to the `OnNoteReceived` callback now always reports the note's resolved attachment content, whether the `SyncNotes` response carried it verbatim or a `GetNotesById` follow-up resolved it ([#2475](https://github.com/0xMiden/rust-sdk/pull/2475)).
* [FEATURE][rust] `NetworkNotePricer` is re-exported from `miden_client`, so pricing a network note does not require a direct dependency on `miden-tx` ([#2475](https://github.com/0xMiden/rust-sdk/pull/2475)).
* [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

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