21 releases (breaking)

0.23.0 Jun 17, 2024
0.21.2 Mar 14, 2024
0.19.0 Dec 21, 2023
0.17.0 May 30, 2023
0.10.0 Nov 22, 2021

#696 in Magic Beans

Download history 1074/week @ 2024-04-04 1183/week @ 2024-04-11 1035/week @ 2024-04-18 948/week @ 2024-04-25 986/week @ 2024-05-02 940/week @ 2024-05-09 1305/week @ 2024-05-16 1093/week @ 2024-05-23 1170/week @ 2024-05-30 1169/week @ 2024-06-06 1448/week @ 2024-06-13 1285/week @ 2024-06-20 1095/week @ 2024-06-27 1248/week @ 2024-07-04 1095/week @ 2024-07-11 1417/week @ 2024-07-18

5,166 downloads per month
Used in 30 crates (8 directly)

MIT/Apache

1MB
23K 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

~30–43MB
~635K SLoC