juno-tokenfactory-core 0.0.4

The tokenfactory core middleware for the Juno blockchain.
Documentation
use cosmwasm_std::StdError;
use thiserror::Error;

#[derive(Error, Debug, PartialEq)]
pub enum ContractError {
    #[error("{0}")]
    Std(#[from] StdError),

    #[error("Unauthorized")]
    Unauthorized {},

    #[error("Invalid denom: {denom:?} {message:?}")]
    InvalidDenom { denom: String, message: String },

    #[error("You did not specify any denoms.")]
    NoDenomsProvided {},

    #[error("Invalid funds")]
    InvalidFunds {},
}