whitelist-immutable 3.15.0

Store-once whitelist for read only use cases
Documentation
use cosmwasm_std::StdError;
use cw_utils::PaymentError;
use thiserror::Error;

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

    #[error("{0}")]
    PaymentError(#[from] PaymentError),

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

    #[error("AddressNotFound {addr}")]
    AddressNotFound { addr: String },

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

    #[error("AddressAlreadyExists {addr}")]
    AddressAlreadyExists { addr: String },
    // Add any other custom errors you like here.
    // Look at https://docs.rs/thiserror/1.0.21/thiserror/ for details.
    #[error("Empty whitelist, must provide at least one address")]
    EmptyWhitelist {},
}