This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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..]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"address": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA", | |
"metadata": { | |
"name": "pump_amm", | |
"version": "0.1.0", | |
"spec": "0.1.0", | |
"description": "Created with Anchor" | |
}, | |
"instructions": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fetches accounts from raydium | |
use std::{ | |
fs::File, | |
io::{BufWriter, Read, Write}, | |
str::FromStr, | |
time::{Duration, SystemTime}, | |
}; | |
use serde::Deserialize; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while true | |
do | |
echo "Running" | |
ore --rpc "$1" --keypair "$2" --priority-fee 1000 mine --threads 4 | |
echo "Exited" | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x0055479897a27808d98e19a3fc66179B1D6beb32 |