parcl-math 1.0.0

A Rust math library for solana programs
Documentation
1
2
3
4
5
6
7
8
9
10
//! Error codes.
use anchor_lang::prelude::*;

#[error_code]
pub enum ParclMathErrorCode {
    #[msg("Integer overflow")]
    IntegerOverflow,
    #[msg("Invalid type conversion")]
    ConversionError,
}