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DA5OGMyM2U5ZDhmMzRmZWZiMWI3YmQ2YTkxYjdmZjEyMmY0ZTE2ZjVjMDAwMDAwMD
@ezynda3
ezynda3 / ledger-sign-rescue.py
Created October 20, 2026 14:33
ledger-sign-rescue.py — sign agnear rescue plan (7702 auth + outer type-4 tx) on a Ledger
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.11"
# dependencies = [
# "hidapi>=0.14",
# "eth-utils>=4.0",
# "eth-hash[pycryptodome]>=0.7",
# "rlp>=4.0",
# ]
# ///
@ezynda3
ezynda3 / ledger-sign-auth.py
Created October 20, 2026 13:48
ledger-sign-auth.py — sign an EIP-7702 delegation authorization directly on a Ledger via hidapi, bypassing MetaMask / foundry's broken cast --ledger path
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.11"
# dependencies = [
# "hidapi>=0.14",
# "eth-utils>=4.0",
# "eth-hash[pycryptodome]>=0.7",
# "rlp>=4.0",
# ]
# ///
@ezynda3
ezynda3 / ralph.nu
Last active June 12, 2026 10:49
Ralph Wiggum opencode runner for Nushell
#!/usr/bin/env nu
# Trap handler to kill all child processes on exit
def cleanup [] {
# Kill all processes in our process group
^kill -- $"-($nu.pid)" err>| ignore
}
# Main entry point - a generic iterative AI coding assistant runner
def main [
@ezynda3
ezynda3 / mongodb-tests.ts
Created October 22, 2025 10:45
Mongo DB TS Helpers
import { config } from 'dotenv'
import { MongoClient } from 'mongodb'
import { consola } from 'consola'
import { type Address, type Hex } from 'viem'
import { getRPCEnvVarName } from '../script/utils/network.js'
import {
type ISafeTxDocument,
type ISafeTransaction,
OperationTypeEnum,
storeTransactionInMongoDB,
@ezynda3
ezynda3 / test-mongo-helper-functions.sh
Created October 22, 2025 10:42
Test Mongo DB Bash Helpers
#!/bin/bash
PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$PROJECT_ROOT"
source .env
source script/helperFunctions.sh
export ENABLE_MONGODB_LOGGING="true"
@ezynda3
ezynda3 / parser.go
Last active September 16, 2025 18:17
JSON to BAML TypeBuilder Parser
package parser
import (
"fmt"
"strings"
"example.com/baml_client/type_builder"
baml "github.com/boundaryml/baml/engine/language_client_go/pkg"
)
@ezynda3
ezynda3 / fetch_pr_comments.sh
Last active August 19, 2025 04:35
Fetch all comments from pr and user
#!/bin/bash
# Script to fetch and display PR comments from GitHub
# Automatically detects repository from current git directory
# Usage: ./fetch_pr_comments.sh <PR_NUMBER> [USERNAME]
# Color codes for better output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
@ezynda3
ezynda3 / bigmi-transaction-creation.md
Created July 27, 2025 13:32
Creating Bitcoin Transactions with Bigmi and bitcoinjs-lib

Creating Bitcoin Transactions with Bigmi and bitcoinjs-lib

The bigmi library doesn't include functions for generating raw transactions. It focuses on blockchain data retrieval and transaction broadcasting. For transaction creation, use bitcoinjs-lib which bigmi already depends on.

Recommended Approach: Using bitcoinjs-lib

1. Basic Transaction Creation

import * as bitcoin from 'bitcoinjs-lib';
import { getUTXOs } from '@bigmi/core';
@ezynda3
ezynda3 / bigmi-docs.md
Created July 27, 2025 13:23
Bigmi Library - Complete Function Documentation

Bigmi Library - Complete Function Documentation

Overview

Bigmi is a TypeScript library for Bitcoin applications that provides a comprehensive set of functions for interacting with the Bitcoin blockchain. It includes actions for querying blockchain data, managing transactions, and working with various Bitcoin data providers.

Core Functions

1. getBalance