34 releases (21 breaking)

Uses new Rust 2024

new 0.30.1 May 2, 2025
0.29.2 Apr 2, 2025
0.29.1 Mar 6, 2025
0.28.0 Dec 12, 2024
0.10.0 Nov 22, 2021

#362 in Magic Beans

Download history 2863/week @ 2025-01-10 2698/week @ 2025-01-17 2251/week @ 2025-01-24 3257/week @ 2025-01-31 3929/week @ 2025-02-07 2975/week @ 2025-02-14 2954/week @ 2025-02-21 3378/week @ 2025-02-28 2857/week @ 2025-03-07 4395/week @ 2025-03-14 3656/week @ 2025-03-21 3410/week @ 2025-03-28 4104/week @ 2025-04-04 3296/week @ 2025-04-11 3454/week @ 2025-04-18 2861/week @ 2025-04-25

14,188 downloads per month
Used in 33 crates (8 directly)

MIT/Apache

1.5MB
30K SLoC

Chain configs crate

This crate provides typed interfaces to the NEAR Genesis and Client Configs, together with the functions to validate their correctness.

Genesis config

Genesis config is the one that 'defines' the chain. It was set at the beginning and generally is not mutable.

Client config

Client config is the part of the config that client can configure on their own - it controls things like: how many peers it should connect to before syncing, which shards to track etc.

Protocol config

This is the type that is spanning over GenesisConfig and RuntimeConfig. People should not use it directly, but use the ProtocolConfigView class instead.

Dependencies

~19–32MB
~475K SLoC