Skip to content

Instantly share code, notes, and snippets.

@AdvaithD
AdvaithD / 2026-04-15-staging-performance-deep-dive.md
Created April 15, 2026 19:27
Azura staging web performance report 2026-04-15 expanded

Staging Web Performance Deep Dive (2026-04-15, Expanded Dataset)

Scope

  • Target app: azura-monorepo/apps/web
  • Focus routes: /scope, /markets/spot*, /markets/pair-scanner, and broad /spot/:chainId/:token coverage
  • Trace scope: web -> tRPC -> API -> Talos-v2 and adjacent backends
  • Included data: 16 labeled staging runs + 40-sample scope click probe

Dataset Summary

@AdvaithD
AdvaithD / prod-v2-v4-agentic-runbook.md
Created April 8, 2026 22:48
Prod-v2 memetics agentic tab runbook

Prod-v2 Memetics Agentic Empty Tab Runbook

Date: 2026-04-08

Summary

The memetics "agentic" tab is empty in prod-v2 because prod Talos state-service is missing v4 pool mappings for agentic pools that do exist in ClickHouse. Nonprod works because it materializes those v4 pools into Talos state correctly.

This is not a frontend bug.

@AdvaithD
AdvaithD / AGENTS.md
Created December 5, 2025 13:25 — forked from spenceriam/AGENTS.md
Xuanwo's AGENTS.md (converted to English)

0 · About the User and Your Role

  • The person you are assisting is User.
  • Assume User is an experienced senior backend/database engineer, familiar with mainstream languages and their ecosystems such as Rust, Go, and Python.
  • User values "Slow is Fast", focusing on: reasoning quality, abstraction and architecture, long-term maintainability, rather than short-term speed.
  • Your core objectives:
    • As a strong reasoning, strong planning coding assistant, provide high-quality solutions and implementations in as few interactions as possible;
    • Prioritize getting it right the first time, avoiding superficial answers and unnecessary clarifications.

@AdvaithD
AdvaithD / main.go
Created March 3, 2023 05:13
skeleton repl
package main
import (
"bufio"
"fmt"
"log"
"os"
"strings"
"github.com/ethereum/go-ethereum/accounts/abi"
@AdvaithD
AdvaithD / eip1167.md
Last active November 18, 2022 18:21
EIP1167 annotated
36 - CALLDATASIZE
3d - RETURNDATASIZE
3d - RETURNDATASIZE
37 - CALLDATACOPY
3d - RETURNDATASIZE
3d - RETURNDATASIZE
3d - RETURNDATASIZE
36 - CALLDATASIZE
3d - RETURNDATASIZE
func register_voter{
syscall_ptr : felt*, range_check_ptr, pedersen_ptr : HashBuiltin*,
ecdsa_ptr : SignatureBuiltin*}(poll_id : felt, voter_public_key : felt, r : felt, s : felt):
let (owner_pubkey) = poll_owner_public_key.read(poll_id=poll_id)
# verify valid poll
assert_not_zero(owner_pubkey)
# verify signature
let (message) = hash2{hash_ptr=pedersen_ptr}(x=poll_id, y=voter_public_key)
verify_ecdsa_signature(message=message, public_key=owner_pubkey, signature_r=r, signature_s=s)
@AdvaithD
AdvaithD / stream.go
Created March 5, 2022 02:44
stream txns
func StreamNewTxs(rpcClient *rpc.Client, fullMode bool) {
// Go channel to pipe data from client subscription
newTxsChannel := make(chan common.Hash)
// Subscribe to receive one time events for new txs
rpcClient.EthSubscribe(
context.Background(), newTxsChannel, "newPendingTransactions", // no additional args
)
client := GetCurrentClient()
@AdvaithD
AdvaithD / state.js
Created February 23, 2021 18:34
state-dissector.js
//Mozilla Public License 2.0
//As per https://github.com/ethereumjs/ethereumjs-vm/blob/master/LICENSE
//Requires the following packages to run as nodejs file https://gist.github.com/tpmccallum/0e58fc4ba9061a2e634b7a877e60143a
// NOTE: Ported from a medium.com article (https://medium.com/cybermiles/diving-into-ethereums-world-state-c893102030ed)
//Getting the requirements
var Trie = require('merkle-patricia-tree/secure');
var levelup = require('levelup');
var leveldown = require('leveldown');
var utils = require('ethereumjs-util');
var BN = utils.BN;
@AdvaithD
AdvaithD / types.ts
Last active November 8, 2020 04:31
ccxt types
declare module 'ccxt' {
interface Dictionary<T> {
[key: string]: T;
}
export class BaseError extends Error {
constructor(message: string);
}
export class ExchangeError extends BaseError {}
@AdvaithD
AdvaithD / logdump
Created July 12, 2020 22:16
connecterror
(org.apache.kafka.connect.runtime.Worker)
[2020-07-12 22:12:45,478] ERROR Failed to start task test_es_sink-0 (org.apache.kafka.connect.runtime.Worker)
org.apache.kafka.connect.errors.ConnectException: Failed to find any class that implements Converter and which name matches io.confluent.connect.elasticsearch.ElasticsearchSinkConnector, available converters are: PluginDesc{klass=class io.confluent.connect.avro.AvroConverter, name='io.confluent.connect.avro.AvroConverter', version='undefined', encodedVersion=undefined, type=converter, typeName='converter', location='file:/usr/share/java/kafka-connect-storage-common/'}, PluginDesc{klass=class io.confluent.connect.json.JsonSchemaConverter, name='io.confluent.connect.json.JsonSchemaConverter', version='undefined', encodedVersion=undefined, type=converter, typeName='converter', location='file:/usr/share/java/confluent-control-center/'}, PluginDesc{klass=class io.confluent.connect.protobuf.ProtobufConverter, name='io.confluent.connect.protobuf.ProtobufConverter', v