Skip to content

Instantly share code, notes, and snippets.

@tobeycodes
tobeycodes / helpers.rs
Created August 5, 2025 17:17
Solana Pinocchio Helpers
use crate::errors::PinocchioError;
use crate::Escrow;
use pinocchio::instruction::{Seed, Signer};
use pinocchio::pubkey::find_program_address;
use pinocchio::sysvars::Sysvar;
use pinocchio::{
account_info::AccountInfo, program_error::ProgramError, sysvars::rent::Rent, ProgramResult,
};
use pinocchio_associated_token_account::instructions::Create;
use pinocchio_system::instructions::CreateAccount;