Skip to content

Instantly share code, notes, and snippets.

View davideaimar's full-sized avatar
👨‍💻

davide.aimar davideaimar

👨‍💻
View GitHub Profile
@davideaimar
davideaimar / metamorphic_contracts.csv
Last active August 6, 2023 12:54
Metamorphic smart contracts on the Ethereum chain up to block 17265420, sorted by received tx.
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 9 columns, instead of 1. in line 7.
address,creator,deployments_done,deployments_received,token_transfer_received,token_transfer_sent,tx_received,first_deployed,distinct_skeletons
0x0000000000007f150bd6f54c40a34d7c3d5e9f56,0x55757942b19e543a7d4c909f952f5509b10b66b3,1647068,36,1706785,1517323,2340403,2020-10-23T20:23:19Z,29
0x000000000000006f6502b7f2bbac8c30a3f67e9a,0x3452954838762313786992245132387393331546,211825,13,133060,132066,1438193,2020-05-01T20:07:07Z,13
0x6b75d8af000000e20b7a7ddf000ba900b4009a80,0x45f50a4ac2c4e636191adcfbb347ec2a3079fc02,0,4,795592,778744,482597,2023-02-21T01:16:23Z,4
0x00000000003b3cc22af3ae1eac0440bcee416b40,0x0000000000c9dee93d7eca6a304a192b4487482e,127808,24,371277,362862,361663,2021-05-21T12:07:41Z,23
0x000000000035b5e5ad9019092c665357240f594e,0x5aaa33de85c9daea4f9e216be937409849f80ecd,52512,13,367678,364195,353097,2021-06-02T04:46:38Z,11
0x1d6e8bac6ea3730825bde4b005ed7b2b39a2932d,0x055658fa70d40a5fa3d0e3e66c29f7e7add08553,100732,14,207715,206290,275649,2020-12-05T23:34:57Z,13
0x00000000a991c429ee2ec6df19d40fe0c80
@davideaimar
davideaimar / abi.json
Created March 1, 2023 10:20
0xce1f2c3139dae247bdd916056cb7c244defc8dd6 ABI extracted from heimdall-rs
[{
"type": "function",
"name": "Unresolved_173825d9",
"inputs": [
{
"name": "arg0",
"internalType": "address",
"type": "address"
},
{
@davideaimar
davideaimar / getTokenBalance.py
Last active February 12, 2023 17:34
Get ERC20/ERC721 tokens balance of an address
#!/usr/bin/env python3
from web3 import Web3
def resolve_name(w3, address) -> str:
try:
abi = [
{
"inputs": [],
"name": "name",
"outputs": [