28 releases (breaking)

new 0.29.0-rc.2 Feb 18, 2025
0.28.0 Dec 12, 2024
0.27.0 Nov 4, 2024
0.23.0 Jun 17, 2024
0.10.0 Nov 22, 2021

#11 in #genesis

Download history 1843/week @ 2024-10-29 1416/week @ 2024-11-05 1835/week @ 2024-11-12 1618/week @ 2024-11-19 1257/week @ 2024-11-26 1925/week @ 2024-12-03 2525/week @ 2024-12-10 2498/week @ 2024-12-17 946/week @ 2024-12-24 1085/week @ 2024-12-31 2034/week @ 2025-01-07 2873/week @ 2025-01-14 2475/week @ 2025-01-21 2884/week @ 2025-01-28 3248/week @ 2025-02-04 4189/week @ 2025-02-11

13,276 downloads per month
Used in 32 crates (8 directly)

MIT/Apache

1.5MB
29K 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
~451K SLoC