Skip to content

Instantly share code, notes, and snippets.

View iankressin's full-sized avatar

Ian K. Guimarães iankressin

View GitHub Profile
@iankressin
iankressin / spec.md
Created June 21, 2024 18:10
EVM Query Language

Draft EVM Query Language spec

This query language allows users to interact with EVM chain data and perform various operations on entities like accounts, blocks, and transactions. Below is a summary of the entities and expressions available in this language:

Entities:

Account:

  • address [id]
  • nonce
  • balance
@iankressin
iankressin / match_vs_if_perf.rs
Last active June 15, 2024 10:55
match vs if naive bench
use criterion::{criterion_group, criterion_main, Criterion};
#[derive(Debug, PartialEq, Eq)]
enum Foo {
A,
B,
C,
D,
E,
F,