#genesis #client-config #interface #blockchain #typed #chain #unc

unc-chain-configs

This crate provides typed interfaces to the UNC Genesis and Chain Configs

12 releases (5 breaking)

new 0.12.2 May 30, 2024
0.10.2 May 15, 2024
0.7.3 Apr 12, 2024
0.7.0 Mar 29, 2024
0.1.0 Mar 6, 2024

#11 in #client-config

Download history 143/week @ 2024-03-02 271/week @ 2024-03-09 304/week @ 2024-03-16 111/week @ 2024-03-23 72/week @ 2024-03-30 468/week @ 2024-04-06 175/week @ 2024-04-13 10/week @ 2024-04-20 1/week @ 2024-04-27 131/week @ 2024-05-04 174/week @ 2024-05-11 108/week @ 2024-05-18 325/week @ 2024-05-25

738 downloads per month
Used in 11 crates (6 directly)

GPL-2.0-or-later

1MB
22K SLoC

Chain configs crate

This crate provides typed interfaces to the UNC 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

~38–54MB
~851K SLoC