use thiserror::Error;
pub type MeterResult<T> = Result<T, MeterError>;
#[derive(Debug, Error)]
pub enum MeterError {
#[error("over budget: cost {cost} micro-$MATA exceeds remaining {remaining}")]
OverBudget { cost: u64, remaining: u64 },
#[error("claim codec error: {0}")]
Codec(String),
#[error("settlement failed: {0}")]
Settlement(String),
}