Skip to content

Instantly share code, notes, and snippets.

0x0055479897a27808d98e19a3fc66179B1D6beb32
#!/bin/bash
while true
do
echo "Running"
ore --rpc "$1" --keypair "$2" --priority-fee 1000 mine --threads 4
echo "Exited"
done
// Fetches accounts from raydium
use std::{
fs::File,
io::{BufWriter, Read, Write},
str::FromStr,
time::{Duration, SystemTime},
};
use serde::Deserialize;
@Taylor123
Taylor123 / pump_amm.json
Created March 21, 2025 00:21
PumpSwap IDL
{
"address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA",
"metadata": {
"name": "pump_amm",
"version": "0.1.0",
"spec": "0.1.0",
"description": "Created with Anchor"
},
"instructions": [
{
@Taylor123
Taylor123 / pinocchio_get_all_extensions_for_mint.rs
Last active August 1, 2025 16:39
Pinocchio Get Extension Types
// Modified from unused Pinocchio T22 extension code
/// Iterate over all extension data and return the lists of extension types.
pub fn get_all_extensions_for_mint(
acc_data_bytes: &[u8],
) -> Result<Vec<ExtensionType>, ProgramError> {
let mut extension_types = Vec::new();
let ext_bytes = &acc_data_bytes[pinocchio_token2022::state::Mint::BASE_LEN
+ EXTENSIONS_PADDING
+ EXTENSION_START_OFFSET..];