26 releases (breaking)

new 0.27.0 Nov 4, 2024
0.25.0 Aug 21, 2024
0.23.0 Jun 17, 2024
0.21.2 Mar 14, 2024
0.10.0 Nov 22, 2021

#9 in #genesis

Download history 1273/week @ 2024-07-15 1419/week @ 2024-07-22 2184/week @ 2024-07-29 2186/week @ 2024-08-05 2502/week @ 2024-08-12 1491/week @ 2024-08-19 1374/week @ 2024-08-26 1807/week @ 2024-09-02 1886/week @ 2024-09-09 1336/week @ 2024-09-16 1391/week @ 2024-09-23 1049/week @ 2024-09-30 1172/week @ 2024-10-07 1860/week @ 2024-10-14 1506/week @ 2024-10-21 1772/week @ 2024-10-28

6,395 downloads per month
Used in 30 crates (8 directly)

MIT/Apache

1.5MB
26K 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–33MB
~451K SLoC