#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)]
pub enum MeltError {
#[error("the chain could not be read: {0}")]
ChainUnreachable(String),
#[error("the profile's DID has no current coin on chain")]
NoDid,
#[error("the profile's store has no current coin on chain")]
NoStore,
#[error("refused: {0}")]
Refused(String),
#[error("could not build the melt: {0}")]
Build(String),
#[error("could not read the profile's on-chain state: {0}")]
Format(String),
#[error("the network rejected the deletion: {0}")]
Rejected(String),
#[error("the account is locked")]
Locked,
}
pub type MeltResult<T> = std::result::Result<T, MeltError>;