uno-sdk 0.2.2

A IDL library for Etherfuse Uno.
Documentation
//! This code was AUTOGENERATED using the kinobi library.
//! Please DO NOT EDIT THIS FILE, instead use visitors
//! to add features, then rerun kinobi to update it.
//!
//! [https://github.com/metaplex-foundation/kinobi]
//!

use num_derive::FromPrimitive;
use thiserror::Error;

#[derive(Clone, Debug, Eq, Error, FromPrimitive, PartialEq)]
pub enum UnoError {
    /// 6000 (0x1770) - User is not signer
    #[error("User is not signer")]
    UserIsNotSigner,
    /// 6001 (0x1771) - Nonce account not initialized
    #[error("Nonce account not initialized")]
    NonceNotInitialized,
    /// 6002 (0x1772) - Invalid nonce account
    #[error("Invalid nonce account")]
    InvalidNonceAccount,
    /// 6003 (0x1773) - Nonce account is not writable
    #[error("Nonce account is not writable")]
    NonceNotWritable,
    /// 6004 (0x1774) - Math overflow
    #[error("Math overflow")]
    MathOverflow,
    /// 6005 (0x1775) - Invalid argument
    #[error("Invalid argument")]
    InvalidArgument,
    /// 6006 (0x1776) - Invalid system program id
    #[error("Invalid system program id")]
    InvalidSystemProgramId,
}

impl solana_program::program_error::PrintProgramError for UnoError {
    fn print<E>(&self) {
        solana_program::msg!(&self.to_string());
    }
}