Skip to content

Instantly share code, notes, and snippets.

// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
contract DepositGen {
event DepositEvent(
bytes pubkey,
bytes withdrawal_credentials,
bytes amount,
bytes signature,
@lightclient
lightclient / checksums.txt
Last active May 16, 2023 08:45
Era1 Checksums
0x407c4c0eecd727ba70368bab3750043b722e00abb62c1bb44d4557d085fe2173
0x682b68a5a475069595d10b7f0350b628fb7f2500f6c16da429bd14318aab95a5
0x4791b876b930fe597810b09ab5d264e6510e7e88699a3cfb44419ba768a8cf39
0x84c0343f0cc617575fd4be216212cc47cda3b59c491d6ac69a09de248dfc53ad
0x7de0294942c5c2ad9a934c121c50b4d04840459134178a39d792fc89bd4e6bbb
0xab8129f9e23721e8aeebd2224cf7107df1bdc91f5892bb2082cfc31f29c1e599
0x8e6fd1531a5a6a42c8b4343ad88c906cd362ef9d509607cb80cbd6f95e5d15d9
0x84b0127f5973d67b7a3ffd444ae32d682208034c584d58898d3949aae17359c4
0x2689bdc1cf3e9827ee574bd543192ff5bf2b00f92569de805e9a1c6ce108e440
0x3c7cc83a771472f1e2720ef74361999b106fd2f4b5659cd689c3323e25a1eaa5
### Keybase proof
I hereby claim:
* I am lightclient on github.
* I am lightclient (https://keybase.io/lightclient) on keybase.
* I have a public key ASBzuFsBMaCs2aabKxkJlXXNkMG60rcTn6AR2Gt6XLijZAo
To claim this, I am signing this object:
@lightclient
lightclient / main.py
Created January 22, 2021 17:37
Trace runner
import json
import requests
import sys
headers = {
'Content-Type': 'application/json',
}
tracer = '{hist: {DIFFICULTY: {}, BLOCKHASH: {}, CALLCODE: {}}, found: false, fault: function(log) {}, step: function(log) {
var op = log.op.toString(); var addr = toHex(log.contract.getAddress()); if(op == "DIFFICULTY" || op == "BLOCKHASH" || op ==
@lightclient
lightclient / tracer.js
Last active January 22, 2021 13:57
DIFFICULTY + BLOCKHASH tracer
{
hist: {
DIFFICULTY: {},
BLOCKHASH: {},
CALLCODE: {},
},
found: false,
fault: function(log) {},
step: function(log) {
var op = log.op.toString();
@lightclient
lightclient / rlp.txt
Last active December 3, 2020 18:11
Parsing EIP-2718 Block Test Case
https://github.com/ethereum/go-ethereum/blob/7a22d848c851b1dcc89344049e5be9833fde1e97/core/types/block_test.go#L71
--
f9 0316 // outer length
f9 0211 // header length
a0 0000000000000000000000000000000000000000000000000000000000000000 // parent hash
a0 1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347 // uncle hash
94 8888f1f195afa192cfee860698584c030f4c9db1 // coinbase
a0 ef1552a40b7165c3cd773806b9e0c165b75356e0314bf0706f279c729f51e017 // root hash
@lightclient
lightclient / converter.py
Created August 17, 2020 14:18
Script to convert EIP front matter to TOML
import json
import sys
import yaml
import toml
import datetime
import re
import os
def encode(x):
@lightclient
lightclient / main.go
Last active June 17, 2020 00:49
RLP Encoded Transactions
package main
import (
"bytes"
"fmt"
"math/big"
"reflect"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/rlp"