Skip to content

Instantly share code, notes, and snippets.

View staccDOTsol's full-sized avatar
🏠
Working from home

Jarett Dunn staccDOTsol

🏠
Working from home
View GitHub Profile
@staccDOTsol
staccDOTsol / gist:8834f44c892dd524318e64c388d088b1
Created April 16, 2024 21:48
squads dao lst diversification script
import * as multisig from "@sqds/multisig";
import {
AddressLookupTableAccount,
AddressLookupTableProgram,
LAMPORTS_PER_SOL,
PublicKey,
SystemProgram,
TransactionInstruction,
TransactionMessage,
VersionedTransaction,Connection, Keypair
@staccDOTsol
staccDOTsol / jupiter-referrals-by-unique-mints
Created March 13, 2024 17:57
jupiter-referrals-by-unique-mints
https://dune.com/idonotsayblahblahblah/jupiter-referrals-by-unique-mints
@staccDOTsol
staccDOTsol / this is jupiter v6 + jito + regular ol' solana arb protocol bot, but randomly using any of your tokens u hodl as source and any of topTokens as dest
Created March 13, 2024 16:58
this is jupiter v6 + jito + regular ol' solana arb protocol bot, but randomly using any of your tokens u hodl as source and any of topTokens as dest
https://github.com/staccDOTsol/jito-arb-protocol-bs
@staccDOTsol
staccDOTsol / infer prices
Created March 13, 2024 16:51
infer prices
import assert from 'assert';
import bs58 from 'bs58';
import fs from 'fs';
import fetch from 'node-fetch';
import promiseRetry from 'promise-retry';
import yargs from 'yargs';
import {
jsonInfo2PoolKeys,
Liquidity,
@staccDOTsol
staccDOTsol / rusty jupiter
Created March 13, 2024 11:33
jupiter rusty
mod cli_args;
use clap::Parser;
use cli_args::CliArgs;
use reqwest::header::HeaderMap;
use solana_client::rpc_config::RpcSendTransactionConfig;
use solana_program::address_lookup_table::{AddressLookupTableAccount};
use solana_program::hash::Hash;
use solana_program::message::v0::Message;
use solana_program::{system_program, system_instruction};
we have those tokens not already priced on jupiter v4 pricing api, and from that subset of token we have the list of only those traders on jupiter swaps that have made more than 100% of the amounts they've invested. so, we're watching yellowstone geyser for when these traders trade, aping in when they do and selling when they do - but only if the token are so new they're not on jupiter v4 pricing api.
Cool? grok me?
so it's a $SMRT investment to give this money machine capital.
@staccDOTsol
staccDOTsol / client_config.ini
Created March 9, 2024 21:24
client_config.ini for not-raydium-perp-pools-client
[Global]
http_url = https://jarrett-devnet-8fa6.devnet.rpcpool.com/283aba57-34a4-4500-ba4d-1832ff9ca64a
ws_url = ws://127.0.0.1:8900
payer_path = /Users/jd/7i.json
admin_path = /Users/jd/7i.json
raydium_v3_program = 6weQP6SNcqqk8KnQGcM2rzU1Xk9o9atJD8kvASVCrN55
slippage = 0.01
[Pool]
@staccDOTsol
staccDOTsol / movealong.json
Created January 24, 2024 02:52
nothing to see here
{"JCvzysmdf8uhFTLXs3vuVBDzsyGyGUf3oqTcGbBdRjA7":1582,"JCk6PNbBywwmPHg79jdsAXoo1UyTGiAACMqwcih6WV3i":1579,"JCUy8vNwapdK5NmrtbaDSsTf2wMMzPJN8D43NzumU2Tb":1581,"JAeMN9kPQEdxjaRJ7zY9hwsZA4prUpoE5C8cWkPqUj4s":1581,"J5fDyPhZp6q6ZWZHSvhrpAnbtjCXTGzeahojGr5FvHkR":1580,"J4jx1Ddpi4vBKsUPoruQ6goD1Fv9NrAAWj31Rs2my186":1579,"J3qxGkQDxUhsrVfKVgG4uH4CBkT8BBzHTXzhqPUpziVn":1580,"J3nevXsBzKGPq47YQ8vZt9R99pLZ2YTf7C9QYLArJF6o":1579,"J3EKubqQx1c75utyLyechiu3HM2anVCsNgWZ32LvLrtW":1581,"J1h9nya5Eue1e2Y2pCYuNaN3toc8pkrgUheeTd37YADi":1580,"HyC1VMxKLgae5yBTn54hrr2FNtCNhYdqg4mEYtBs2F68":1582,"HwQ3Q5AShykiBf4RkUcLYLGdR2YQ7KfgS3GGkFsQ3J2C":1580,"Hv7W8FNCZj1khdgWWCQqdvLj35YV9dojiBcCyNeX3XDK":1580,"Hv1ZjvueatYCeWDV5RjKKVj98LTxskR4YMccSJXpzhto":1581,"HtoidocPGFNZ4fN6JuiMXCny4yu8Jq42u319k2Aogw8h":1580,"Htm2dVDZ8cckFk7ynJa7zMjR5FhK3wciK82iNjDDp1LK":1579,"Ht4AB9wAXm4bBCeXERWSwvza14PpbMLZ4ab6Q2gyB6Wj":1580,"HsWugnvFGFFvWHeXsrEiMAe6MUu9ma3RS3JfKLnhEFiR":1578,"Hqud7nou5vZ1FStJYxnstGaJWTxGHMHDw1VqCb1GLWXn":1544,"HqimaVUZP33QQjvawB8fK8Es4MB2RQHTwX
{
"name": "OnlyUp Memeryd",
"description": "this is absolutely nothing (and also largely the result of a decimal error) yolo..
https://birdeye.so/token/Es2RUioo4WvbhHdGSR65kgHscE4Q1jbmbJRQZEPcqmZ9?chain=solana..
https://twitter.com/STACCoverflow/status/1743466118684021021..
on fluxbeam cuz I needed it to be on jupiter for this to work https://megayield.netlify.app
",
@staccDOTsol
staccDOTsol / gist:52e7cc5051f0df6790c03ef4d19198dc
Last active December 17, 2023 16:30
multisig expand program
import * as multisig from "@sqds/multisig";
import {
AddressLookupTableAccount,
AddressLookupTableProgram,
LAMPORTS_PER_SOL,
PublicKey,
SystemProgram,
TransactionInstruction,
TransactionMessage,
VersionedTransaction,