tensor-vipers 1.0.1

Assorted checks and validations for writing safer Solana programs. Updated from the original Vipers crate to use Anchor 0.29.0.
Documentation
1
2
3
4
5
6
7
8
9
10
//! Validations for accounts.
#![allow(clippy::all)]

use anchor_lang::prelude::*;

/// Validates the contents of a variable. Generally used for [Accounts] structs and struct members.
pub trait Validate<'info> {
    /// Validates the account struct.
    fn validate(&self) -> Result<()>;
}