switchboard-on-demand 0.5.5

A Rust library to interact with the Switchboard Solana program.
Documentation
use borsh::BorshSerialize;

use crate::anchor_traits::*;

pub struct BundleVerifyV3 {}

#[derive(Clone, BorshSerialize, Debug)]
pub struct BundleVerifyV3Params {
    pub bundle_data: Vec<u8>,
}

impl InstructionData for BundleVerifyV3Params {}

impl Discriminator for BundleVerifyV3 {
    const DISCRIMINATOR: &[u8] = &[42, 158, 91, 205, 123, 78, 45, 220];
}

impl Discriminator for BundleVerifyV3Params {
    const DISCRIMINATOR: &[u8] = BundleVerifyV3::DISCRIMINATOR;
}

// Note: This is a placeholder instruction for the verify_v3 functionality
// The actual implementation would require:
// 1. Adding this instruction to the main program's instruction enum
// 2. Implementing the handler in the program's processor
// 3. Exposing it through the program's IDL for JavaScript/TypeScript clients
//
// For now, the verify_v3 functionality is available through the VerifiedBundle::verify_v3 method