Skip to content

Instantly share code, notes, and snippets.

@adidonato
adidonato / recovery-audit-report.md
Created May 18, 2026 13:19
Grantr Kernel recovery internal audit evidence report

Grantr Kernel Recovery Internal Audit Evidence Report

Generated: 2026-05-18 Source revision: 7b544028d6e5daf065badc2f65e6a5d4cf5b80c8

Scope

This report covers the production-readiness evidence for the Base Sepolia Kernel recovery path used by Grantr before claiming production guardian recovery support.

@adidonato
adidonato / deployment-readiness-non-code-runbook.md
Created May 18, 2026 13:09
Grantr deployment readiness remaining evidence report

Deployment Readiness Non-Code Runbook

Last refreshed with pnpm check:deployment-readiness -- --missing-env at 2026-05-18T12:35:33Z.

This runbook tracks the remaining work that cannot be completed by code changes alone. Do not set any *_EVIDENCE_VERIFIED=1 variable until the corresponding checker has passed and the evidence artifact has been reviewed.

Local evidence paths may be absolute, relative to the command cwd, or relative

@adidonato
adidonato / kernel-recovery-e2e.json
Created May 18, 2026 08:04
Grantr Kernel recovery Base Sepolia e2e evidence
{
"success": true,
"status": "success",
"receiptStatus": "success",
"chainId": 84532,
"implementationKind": "kernel-recovery-plugin",
"adapterKind": "kernel-recovery-plugin-v1",
"entryPoint": "0x0000000071727De22E5E9d8BAf0edAc6f37da032",
"moduleAddress": "0xe884C2868CC82c16177eC73a93f7D9E6F3A5DC6E",
"moduleBytecodeHash": "0xfcfe9c1a11298ee296c28eea8f377a8e6e8969cea336d4dcfe3b53e007b7cf89",
@adidonato
adidonato / rip-dune-data.py
Last active September 16, 2021 16:37
Turn JSON object from Dune gql API into a CSV file
import json
import csv
import sys
def main():
filename = sys.argv[1]
with open(filename) as f:
data = json.load(f)
if data.get("data") is not None:
data = data.get("data")
@adidonato
adidonato / kovan
Created May 24, 2021 17:08
kovan
pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;
interface Structs {
struct Val {
uint256 value;
}
enum ActionType {
Deposit, // supply tokens
<table border="1" class="dataframe">
<thead>
<tr style="text-align: right;">
<th></th>
<th>inputs</th>
<th>payable</th>
<th>stateMutability</th>
<th>type</th>
<th>anonymous</th>
<th>name</th>
@adidonato
adidonato / osx-status-say.sh
Created April 22, 2020 09:13
Say "Done" or "Failed" when process ends
function status_say () {
echo "EXECUTING: " "$@" "& saying 'done' or 'failed'"
bash -c " $@ && say '$@ is done' || say '$@ has failed' " || echo "Quote the command to be executed status_say `command arg1 arg2`"
}
# add to .bashrc / source
# example: status_say "make install"
#!/usr/bin/sh
command -v docker >/dev/null 2>&1 || { echo >&2 "I require docker but it's not installed. Aborting."; exit 1; }
read -p "
##############################################################
# WARNING! You are about to blow up all your docker stuff #
# By entering Y/y you will remove: #
# - all stopped containers #
# - all networks not used by at least one container #
# - all volumes not used by at least one container #
#!/bin/sh
echo "Usage: ./show_last_updated_hive_table.sh #tablename"
time_column=`hive -e "show create table $1" | egrep "transient_lastDdlTime"`
time_value=`echo $time_column | sed 's/[|,)]//g' | awk -F '=' '{print $2}' | sed "s/'//g"`
tran_date=`date -d @$time_value +'%Y-%m-%d %H:%M:%S'`
echo $tran_date
#!/bin/bash
function post_to_slack () {
# format message as a code block ```${msg}```
SLACK_MESSAGE="\`\`\`$1\`\`\`"
SLACK_URL= # [URL of The Channel you want to post to]
case "$2" in
INFO)
SLACK_ICON=':slack:'
;;
WARNING)