Skip to content

Instantly share code, notes, and snippets.

@benjiqq
benjiqq / minsniper.mjs
Created May 6, 2024 15:22
minimal sniper
/*from shadowystupidcoders */
import { PublicKey, Keypair, Connection, ComputeBudgetProgram, SystemProgram, Transaction, TransactionInstruction } from '@solana/web3.js';
import { u8, struct, NearUInt64 } from "@solana/buffer-layout"
import { u64, publicKey } from "@solana/buffer-layout-utils"
import * as spl from "@solana/spl-token"
import BN from 'bn.js'
import dotenv from 'dotenv';
import bs58 from 'bs58';
dotenv.config();
@benjiqq
benjiqq / weirdtx.json
Created April 30, 2024 09:37
weird tx
{
"slot": 262953324,
"transaction": {
"signatures": [
"5sM7MGqLTrPKPjqPgYcKrL9Beq7wNmV4E3hxJXJnGTgfJPeXUR8ULGX9nGaREHrx7FWaaKnnScp1tXaffDJzokah"
],
"message": {
"accountKeys": [
{
"pubkey": "FHdEcRSnXGvdVsws5FxmvGSgJAUpXcCr4RhsGjuDHxCU",
@benjiqq
benjiqq / tx.json
Created April 27, 2024 07:34
encoded tx
{
"slot": 262201689,
"transaction": {
"signatures": [
"5a5fadQjqcxdsAu8cKEEpS4Ymr7ZoM2U3ssqDnmwVY5YpHiv97vH1Vq6guBnYEP3P4NY6PqFRD2oEyRCAL1FkrwE"
],
"message": {
"accountKeys": [
{
"pubkey": "9nnwVAfRKGKpzeTcRxdyqbSroroGCM1HTfMZ489UxEaV",
{
"blockTime": 1713533892,
"meta": {
"computeUnitsConsumed": 124408,
"err": null,
"fee": 25002,
"innerInstructions": [
{
"index": 2,
"instructions": [
@benjiqq
benjiqq / decode_ray.ts
Created April 19, 2024 06:53
decode ray
// 0 => LogType::Init,
// 1 => LogType::Deposit,
// 2 => LogType::Withdraw,
// 3 => LogType::SwapBaseIn,
// 4 => LogType::SwapBaseOut,
export function decodeRayLogInit(encodedLog: string): any {
// pub struct InitLog {
// pub log_type: u8,
@benjiqq
benjiqq / bulltard
Last active December 22, 2023 12:09
bullard.json
{
"name": "SolBullTard",
"symbol": "SBT",
"uri": "https://gist.githubusercontent.com/benjiqq/7a9ad6e9f00d3691155b37e86c24ec6f/raw/33bfd2b48fd64de3f39c6660458eed52077061ca/bulltard",
"seller_fee_basis_points": 500
}
@benjiqq
benjiqq / stats.md
Last active November 22, 2023 06:11
stats terms
@benjiqq
benjiqq / saito.json
Last active October 19, 2023 07:32
saitinfo
{
"id": "saito",
"symbol": "saito",
"name": "Saito",
"asset_platform_id": "ethereum",
"platforms": {
"ethereum": "0xfa14fa6958401314851a17d6c5360ca29f74b57b",
"binance-smart-chain": "0x3c6dad0475d3a1696b359dc04c99fd401be134da"
},
"detail_platforms": {
@benjiqq
benjiqq / record.txt
Last active September 6, 2023 05:08
track record
Intro
One of the worlds pioneers in blockchain and cryptocurrency since 2013.
Decidated my careeer to innovation in the blockchain industry.
CV
2000-2012 Study of Business, Computer science, Markets, and AI before it becomes considered a serious subject.
Helped manage 2B$ AUM fund. Deep passion for markets, data and accessible economic systems.
2012 Learned about Bitcoin and joined bitcointalk
@benjiqq
benjiqq / jechain.rs
Last active July 2, 2023 05:28
jechain rs
// basic Jechain interpreter
// read from simple.jel
// example
// "SET a, 0"
// "SET b, 1"
// "STORE astore, 111"
// "ADD b, 1"
// "SET a, $b"
// --------
// result