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;

Keybase proof

I hereby claim:

  • I am tobeycodes on github.
  • I am tobeycodes (https://keybase.io/tobeycodes) on keybase.
  • I have a public key whose fingerprint is 3527 CE7D 78E2 A7AE DA5D DE17 584F 4AFC 167B 409F

To claim this, I am signing this object: