Skip to content

Instantly share code, notes, and snippets.

@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
@benjiqq
benjiqq / nli.md
Last active June 18, 2023 05:06
NLI - Netlisp

draft

Purpose

NetLISP (NLI) is a a lisp like language. It is similar to clojure/edn in that its intended primarily as a data format. It is intended to be passed between nodes in a blockchain/p2p context. For now it is some subset of lisp/clojure to be quick to implement. No GC, no complex types etc.

NetLISP needs to be implemented on the host in rust and in javascript at the same time. The parser can be shared between JS/client and the host via WASM.

The language needs to map expressions to protocols which are handled by the endpoints. Since the network defines the peers and client/server we can assume a common library with Rust/RustWASM.