27 releases (breaking)

0.28.0 Dec 12, 2024
0.27.0 Nov 4, 2024
0.26.0 Sep 9, 2024
0.23.0 Jun 17, 2024
0.10.0 Nov 22, 2021

#487 in Magic Beans

Download history 1855/week @ 2024-09-01 1871/week @ 2024-09-08 1339/week @ 2024-09-15 1429/week @ 2024-09-22 1026/week @ 2024-09-29 1139/week @ 2024-10-06 1918/week @ 2024-10-13 1472/week @ 2024-10-20 1801/week @ 2024-10-27 1567/week @ 2024-11-03 1729/week @ 2024-11-10 1658/week @ 2024-11-17 1016/week @ 2024-11-24 2002/week @ 2024-12-01 2360/week @ 2024-12-08 2739/week @ 2024-12-15

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

MIT/Apache

1.5MB
28K 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

~18–31MB
~443K SLoC