Skip to content
Open
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: 5 additions & 5 deletions Cargo.lock

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

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ derivative = { version = "2.2.0", default-features = false, features = ["use_cor
dirs-next = { version = "2.0.0", default-features = false }
futures = { version = "0.3.17", default-features = false, features = ["alloc"] }
http-types = { version = "2.12.0", default-features = false }
manta-accounting = { git = "https://github.com/manta-network/manta-rs", default-features = false, features = ["cocoon-fs"] }
manta-crypto = { git = "https://github.com/manta-network/manta-rs", default-features = false, features = ["getrandom"] }
manta-parameters = { git = "https://github.com/manta-network/manta-rs", default-features = false, features = ["download"] }
manta-pay = { git = "https://github.com/manta-network/manta-rs", default-features = false, features = ["bs58", "groth16", "serde", "wallet", "network", "parameters"] }
manta-util = { git = "https://github.com/manta-network/manta-rs", default-features = false }
manta-accounting = { git = "https://github.com/manta-network/manta-rs", branch = "feat/manta-api-assetmetadata", default-features = false, features = ["cocoon-fs"] }
manta-crypto = { git = "https://github.com/manta-network/manta-rs", branch = "feat/manta-api-assetmetadata", default-features = false, features = ["getrandom"] }
manta-parameters = { git = "https://github.com/manta-network/manta-rs", branch = "feat/manta-api-assetmetadata", default-features = false, features = ["download"] }
manta-pay = { git = "https://github.com/manta-network/manta-rs", branch = "feat/manta-api-assetmetadata", default-features = false, features = ["bs58", "groth16", "serde", "wallet", "network", "parameters"] }
manta-util = { git = "https://github.com/manta-network/manta-rs", branch = "feat/manta-api-assetmetadata", default-features = false }
parking_lot = { version = "0.12.1", default-features = false }
password-hash = { version = "0.4.2", default-features = false, features = ["alloc"] }
reqwest = { version = "0.11.11", default-features = false, features = ["json"] }
Expand Down
13 changes: 5 additions & 8 deletions src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use core::{
};
use http_types::headers::HeaderValue;
use manta_accounting::{
asset::{Asset, AssetMetadata},
asset::Asset,
fs::{cocoon::File, File as _, SaveError},
transfer::canonical::TransferShape,
};
Expand All @@ -39,6 +39,7 @@ use manta_pay::{
signer::{
base::{Signer, SignerParameters, SignerState, UtxoAccumulator},
client::network::{Message, Network, NetworkSpecific},
AssetMetadata,
},
};
use manta_util::{from_variant, serde::Serialize};
Expand Down Expand Up @@ -160,23 +161,19 @@ pub fn display_transaction(
match transaction {
Transaction::ToPrivate(Asset { value, .. }) => format!(
"Privatize {} on {} network",
metadata.display(*value, metadata.decimals),
metadata.display(*value),
network
),
Transaction::PrivateTransfer(Asset { value, .. }, receiving_key) => {
format!(
"Send {} to {} on {} network",
metadata.display(*value, metadata.decimals),
metadata.display(*value),
address_to_base58(receiving_key),
network
)
}
Transaction::ToPublic(Asset { value, .. }) => {
format!(
"Public {} on {} network",
metadata.display(*value, metadata.decimals),
network
)
format!("Public {} on {} network", metadata.display(*value), network)
}
}
}
Expand Down