Skip to content

Instantly share code, notes, and snippets.

View hkalodner's full-sized avatar

Harry Kalodner hkalodner

View GitHub Profile
@hkalodner
hkalodner / verifyAction.sol
Created December 5, 2024 19:44
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.26+commit.8a97fa7a.js&optimize=false&runs=200&gist=
pragma solidity ^0.8.13;
import {console} from "forge-std/console.sol";
contract MyScript {
function run() external {
uint8 op = 0;
uint256 amount = 0;
address upgradeExecutor = 0x0EE7AD3Cc291343C9952fFd8844e86d294fa513F;
bytes memory call1Data = abi.encodeWithSignature(

Keybase proof

I hereby claim:

  • I am hkalodner on github.
  • I am hkalodner (https://keybase.io/hkalodner) on keybase.
  • I have a public key ASCFV0jg_8_8zz6Mf4--ZIh9ukNTKdmfK1utffFvQo60Tgo

To claim this, I am signing this object:

@hkalodner
hkalodner / utxo_age.py
Last active November 9, 2024 18:39
BlockSci UTXO age distribution
import blocksci
import pandas as pd
import numpy as np
chain = blocksci.Blockchain("/blocksci/bitcoin")
block_day = 6 * 24
block_year = 365 * block_day
block_week = 7 * block_day
block_month = block_year // 12