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
Verify Github on Galaxy. gid:nEaBWnvDbp5bRNMnqPrzGX
Verify Github on Galaxy. gid:4xACG2nfPinFgdyQCSSc2h
@staccDOTsol
staccDOTsol / tornoncrek.MD
Last active May 5, 2022 10:29
Torn on Crek

GM

Wat

On tornado.cash, the process is basically this:

  1. deposit to contract
  2. so does everyone else
  3. these are then in predefined buckets: 1 eth, 10 eth, 100 eth
  4. now, you have a big tumbler with many funds
@staccDOTsol
staccDOTsol / mod.py
Created May 5, 2022 22:38
mmm modulus
#!/usr/bin/python3
for i in range(1,51): # iterates int 1 through 50
if i % 3 == 0: # test if divisible by 3
if i % 7 == 0: # test if divisible by 7
print('#{}\t'.format(i) + str(i % 7 == 0 and i % 3 == 0) + '\t CloudComputing') # if divisible by 3 & 7, prints iteration, arg response, and 'Computing'
else:
print('#{}\t'.format(i) + str(i % 7 == 0) + '\t Computing') # prints iteration, arg response, and 'Computing'
@staccDOTsol
staccDOTsol / soma.MD
Last active May 7, 2022 09:20
this is soma; I still refuse to do a slidedeck

goodmorning solana

Solana does all of the things very wonderfully, and it's a shame that some low-hanging fruit from a susceptible chain has come under attac over the recent year or so

All that aside, we can offload some of the trauma & make Solana great again.

  1. we mirror solana state, trusting their consensus as gospel
  2. we write our own new testament; solana's people do not have to trust it. it doesn't matter.
  3. we write back to Solana what we choose, and if necessary do on & offchain magic to write it the way that is acceptable by solana --> gm, the discern000r stops here and goes 'how can you ensure it's in the same block.' There's some good theories here and we're open to suggestion (and smrter ppl to dissect the thing I realized in a dream && promptly forgot in another dream, like the grandpa mad scientist in Futurama) - the short answer is thus: more of the discerning ppl that mite appreciate the volumes and/or mite not appreciate any and all potential or sustained censorship (or threat/implicat
curl https://rpc.theindex.io/mainnet-beta/kekgetyourown -X POST -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getProgramAccounts",
"params": [
"cndyAnrLdpjq1Ssp1z8xxDsB8dxe7u4HL5Nxi2K5WXZ"
]
}' -o cmv1.csv
@staccDOTsol
staccDOTsol / rain_in_action.
Created May 30, 2022 15:41
#today we simp @redacted_j and @only_raindrops #next we mix some sprinkles over other solana genius - this gonna be way cooler wen we fuck with the nashisms ingame and metagame :) # #fuckwiththenashofit
# assumes solana-cli (eh but an old enuff version for raindrops to work, I actually replaced raindrops occurrences of _recentBlockhash with getLastBlockHash iirc)
# you have cloned https://github.com/raindrops-protocol/raindrops
# you are in raindrops/js
# gl; hf; mb
solana-keygen new -o bla --force -s --no-bip39-passphrase
export blarg=$(solana address -k bla)
solana-keygen new -o p1 --force -s --no-bip39-passphrase
export p1=$(solana address -k p1)
solana-keygen new -o p2 --force -s --no-bip39-passphrase
# assumes solana-cli (eh but an old enuff version for raindrops to work, I actually replaced raindrops occurrences of _recentBlockhash with getLastBlockHash iirc)
# you have cloned https://github.com/raindrops-protocol/raindrops
# you are in raindrops/js
# gl; hf; mb
yarn add @project-serum/anchor ts-node '@strata-foundation/spl-utils' "@glasseaters/hydra-sdk" "@project-serum/common"
solana-keygen new -o bla --force -s --no-bip39-passphrase
export blarg=$(solana address -k bla)
#solana-keygen new -o p1 --force -s --no-bip39-passphrase
export p1=$(solana address -k p1)
@staccDOTsol
staccDOTsol / your move hydra rain strata dtp naysayers.ts
Last active February 24, 2024 12:20
these are the hydras @pit_the_panda was looking for; QED.
import {
Account,
Connection,
Keypair,
PublicKey
} from "@solana/web3.js";
import { NodeWallet } from "@project-serum/common"; //TODO remove this; kek
import fs from 'fs'
import {
Fanout,
@staccDOTsol
staccDOTsol / package.json
Created June 6, 2022 14:22
package.json kek
{
"name": "@glasseaters/hydra",
"version": "1.0.3",
"workspaces": [
"packages/*"
],
"description": "Hydra",
"license": "MIT",
"author": "Hydra GlassEaters",
"devDependencies": {