use miden_protocol::account::AccountId;
use miden_protocol::errors::NoteError;
use miden_protocol::note::NoteAttachment;
use miden_standards::note::{NetworkAccountTarget, NoteExecutionHint};
pub mod costs;
pub mod xreserve_admin;
pub mod xreserve_burn;
pub mod xreserve_mint;
pub(crate) fn network_routing_attachment(
faucet_id: AccountId,
) -> Result<NoteAttachment, NoteError> {
let target =
NetworkAccountTarget::new(faucet_id, NoteExecutionHint::Always).map_err(|err| {
NoteError::other_with_source("faucet id is not a public network account", err)
})?;
Ok(NoteAttachment::from(target))
}