5 releases (breaking)

new 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

#200 in Magic Beans

Download history 103/week @ 2024-07-17 3/week @ 2024-07-24 7/week @ 2024-09-11 4/week @ 2024-09-18 3/week @ 2024-09-25 451/week @ 2024-10-09 828/week @ 2024-10-16 92/week @ 2024-10-23 86/week @ 2024-10-30

1,484 downloads per month
Used in 9 crates (4 directly)

Apache-2.0

77KB
1.5K SLoC

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

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
~497K SLoC