19 releases (12 breaking)

0.21.2 Mar 14, 2024
0.20.1 Jan 23, 2024
0.19.0 Dec 21, 2023
0.17.0 May 30, 2023
0.10.0 Nov 22, 2021

#675 in Magic Beans

Download history 636/week @ 2023-12-21 326/week @ 2023-12-28 531/week @ 2024-01-04 732/week @ 2024-01-11 828/week @ 2024-01-18 862/week @ 2024-01-25 646/week @ 2024-02-01 631/week @ 2024-02-08 1138/week @ 2024-02-15 1225/week @ 2024-02-22 779/week @ 2024-02-29 989/week @ 2024-03-07 1200/week @ 2024-03-14 880/week @ 2024-03-21 999/week @ 2024-03-28 1024/week @ 2024-04-04

4,241 downloads per month
Used in 28 crates (8 directly)

MIT/Apache

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

~35–51MB
~802K SLoC