Crates.io | chainthru-primitives |
lib.rs | chainthru-primitives |
version | 0.0.0-reserved |
source | src |
created_at | 2023-11-25 21:57:16.304604 |
updated_at | 2023-11-25 21:57:16.304604 |
description | EVM Indexer |
homepage | https://github.com/lbkolev/chainthru |
repository | https://github.com/lbkolev/chainthru |
max_upload_size | |
id | 1048602 |
size | 25,300 |
chainthru
Index Ethereum into a storage backend
🚧 work in progress 🚧
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
}
Include the following