Broker: sale price runtime api (#3485)

Defines a runtime api for `pallet-broker` for getting the current price
of a core if there is an ongoing sale.

Closes: #3413

---------

Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
Sergej Sakac
2024-04-06 01:29:35 +02:00
committed by GitHub
parent 05b97068f9
commit 1c85bfe901
8 changed files with 95 additions and 7 deletions
+3 -1
View File
@@ -36,6 +36,8 @@ mod tick_impls;
mod types;
mod utility_impls;
pub mod runtime_api;
pub mod weights;
pub use weights::WeightInfo;
@@ -132,7 +134,7 @@ pub mod pallet {
pub type AllowedRenewals<T> =
StorageMap<_, Twox64Concat, AllowedRenewalId, AllowedRenewalRecordOf<T>, OptionQuery>;
/// The current (unassigned) Regions.
/// The current (unassigned or provisionally assigend) Regions.
#[pallet::storage]
pub type Regions<T> = StorageMap<_, Blake2_128Concat, RegionId, RegionRecordOf<T>, OptionQuery>;