Skip to content

Instantly share code, notes, and snippets.

View emo-eth's full-sized avatar

James emo-eth

View GitHub Profile
@emo-eth
emo-eth / eip7201.py
Last active February 13, 2025 01:19
Python script to re/calculate EIP-7201 namespaced storage locations in your project. Run with `uv run eip7201.py <dir>`
#!/usr/bin/env python3
# /// script
# requires-python = ">=3.7"
# dependencies = [
# "pycryptodome>=3.17.0",
# ]
# ///
"""
This script processes Solidity (.sol) files to replace lines following