5 releases (breaking)

0.4.0 Nov 5, 2024
0.3.0 Oct 16, 2024
0.2.0 Oct 14, 2024
0.1.0 Oct 11, 2024
0.0.0-release Jul 18, 2024

#133 in #db

Download history 9/week @ 2024-09-13 4/week @ 2024-09-20 1/week @ 2024-09-27 810/week @ 2024-10-11 510/week @ 2024-10-18 69/week @ 2024-10-25 240/week @ 2024-11-01 77/week @ 2024-11-08 71/week @ 2024-11-15

468 downloads per month
Used in 9 crates (4 directly)

Apache-2.0

82KB
2K SLoC

Rust 1.5K SLoC // 0.0% comments SQL 486 SLoC // 0.0% comments

essential-node-db

Crates.io Documentation license Build Status

The Essential node database.


lib.rs:

The node's DB interface and sqlite implementation.

The core capability of the node is to:

  1. Receive blocks from an L1 relayer and validate them.
  2. Receive contracts from the p2p network so that they're available for validation.

As a part of satisfying these requirements, this crate provides the basic functions required for safely creating the necessary tables and inserting/ querying/updating them as necessary.

Dependencies

~30MB
~496K SLoC