moondance-labs / tanssi

GNU General Public License v3.0
116 stars 44 forks source link

Starlight Collator & Authority Assignments #614

Closed girazoki closed 1 week ago

girazoki commented 2 weeks ago

Adds the following pallets to Starlight runtime:

Some integration tests related to the overall functioning of these pallets were added inside collator_assignment_tests.rs file.

This PR also adds a bool const to the config of both pallet-configuration and pallet-collator-assignment called ForceEmptyOrchestrator, which when enabled to true, indicates that no collators will be collating for any orchestrator chain while using Starlight runtime.

github-actions[bot] commented 1 week ago

Coverage Report

(master)

@@                          Coverage Diff                           @@
##           master   girazoki-agustin-starlight-session      +/-   ##
======================================================================
+ Coverage   67.16%                               67.28%   +0.12%     
  Files         249                                  249              
+ Lines       43530                                43631     +101     
======================================================================
+ Hits        29233                                29356     +123     
- Misses      14297                                14275      -22     
Files Changed Coverage
/pallets/collator-assignment/src/lib.rs 93.90% (+0.02%) 🔼
/pallets/configuration/src/lib.rs 88.06% (+0.27%) 🔼
/pallets/invulnerables/src/lib.rs 86.49% (+0.90%) 🔼
/primitives/traits/src/lib.rs 80.82% (+9.91%) 🔼
/solo-chains/runtime/starlight/src/genesis_config_presets.rs 21.38% (+0.24%) 🔼
/solo-chains/runtime/starlight/src/lib.rs 19.64% (+2.83%) 🔼
/solo-chains/runtime/starlight/tests/common/mod.rs 88.82% (-1.78%) 🔽

Coverage generated Tue Jul 9 16:11:43 UTC 2024