chainthru-server

Crates.iochainthru-server
lib.rschainthru-server
version0.0.0-reserved
sourcesrc
created_at2023-11-25 22:02:51.862172
updated_at2023-11-25 22:02:51.862172
descriptionEVM Indexer
homepagehttps://github.com/lbkolev/chainthru
repositoryhttps://github.com/lbkolev/chainthru
max_upload_size
id1048605
size12,103
lachezar kolev (lbkolev)

documentation

README

chainthru

Index Ethereum into a storage backend

🚧 work in progress 🚧

Database schema

erDiagram

"public.block" {
    bytea hash "PK"
    bytea parent_hash "Hash of the parent block"
    bytea uncles_hash
    bytea author "Address of the miner who created the block"
    bytea state_root
    bytea transactions_root
    bytea receipts_root
    NUMBER number
    bytea gas_used
    bytea gas_limit
    bytea base_fee_per_gas
    BIGSERIAL timestamp
    bytea difficulty
    bytea total_difficulty
    INTEGER transactions "Number of transactions in the block"
    bytea size
    bytea nonce
}

"public.contract" {
    bytea contract_addr "PK"
    bytea transaction_hash
    bytea _from
    bytea input
    TIMESTAMP created_at "The TS of the table entry"
}

"contract_fn.transfer" ||--o{ "public.contract": "depends on"
"contract_fn.transfer" {
    bytea contract_addr "FK"
    bytea transaction_hash "PK"
    bytea transaction_sender
    bytea _to
    bytea _value
    TIMESTAMP created_at "The TS of the table entry"
}

"contract_fn.transfer_from" ||--o{ "public.contract": "depends on"
"contract_fn.transfer_from" {
    bytea contract_addr "FK"
    bytea transaction_hash "PK"
    bytea transaction_sender
    bytea _from
    bytea _to
    bytea _value
    TIMESTAMP created_at "The TS of the table entry"
}

"contract_fn.approve" ||--o{ "public.contract": "depends on"
"contract_fn.approve" {
    bytea contract_addr "FK"
    bytea transaction_hash "PK"
    bytea transaction_sender
    bytea _spender
    bytea _value
    TIMESTAMP created_at "The TS of the table entry"
}

"contract_fn.safe_transfer_from" ||--o{ "public.contract": "depends on"
"contract_fn.safe_transfer_from" {
    bytea contract_addr "FK"
    bytea transaction_hash "PK"
    bytea transaction_sender
    bytea _from
    bytea _to
    bytea _token_id
    TIMESTAMP created_at "The TS of the table entry"
}

"public.function_signature" {
    uuid id "PK"
    bytea hex_sig
    bytea text_sig
}

Crates

Include the following

Documentation

Index

Server

Primitives

Core

Commit count: 78

cargo fmt