Create Macro for Implementing `SlotRange` (#2788)
* Macro for generating `SlotRange` * remove test code * refactor slots into crate * add no_std flag * finish macro * make compile * fix copyright date * don't assume lease periods per slot * Update runtime/common/Cargo.toml * Apply suggestions from code review Co-authored-by:Guillaume Thiolliere <gui.thiolliere@gmail.com> * fixes * Update lib.rs * tests * Move consts into struct * docs * fix compile * Apply suggestions from code review Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com> * Update Cargo.lock * Update runtime/common/src/slot_range.rs Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com> * Apply suggestions from code review Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com> * fixes Co-authored-by:
Guillaume Thiolliere <gui.thiolliere@gmail.com> Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com>
Showing
- polkadot/Cargo.lock 11 additions, 0 deletionspolkadot/Cargo.lock
- polkadot/Cargo.toml 1 addition, 0 deletionspolkadot/Cargo.toml
- polkadot/runtime/common/Cargo.toml 2 additions, 0 deletionspolkadot/runtime/common/Cargo.toml
- polkadot/runtime/common/slot_range_helper/Cargo.toml 19 additions, 0 deletionspolkadot/runtime/common/slot_range_helper/Cargo.toml
- polkadot/runtime/common/slot_range_helper/src/lib.rs 289 additions, 0 deletionspolkadot/runtime/common/slot_range_helper/src/lib.rs
- polkadot/runtime/common/src/auctions.rs 14 additions, 11 deletionspolkadot/runtime/common/src/auctions.rs
- polkadot/runtime/common/src/crowdloan.rs 5 additions, 2 deletionspolkadot/runtime/common/src/crowdloan.rs
- polkadot/runtime/common/src/lib.rs 1 addition, 1 deletionpolkadot/runtime/common/src/lib.rs
- polkadot/runtime/common/src/slot_range.rs 1 addition, 136 deletionspolkadot/runtime/common/src/slot_range.rs
Please register or sign in to comment