From 42100fecbbfd8f07b16bd4d4209e3882391d9faa Mon Sep 17 00:00:00 2001 From: Till Date: Wed, 23 Nov 2022 16:10:30 +0000 Subject: [PATCH] View methods for the factory --- factory/src/lib.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/factory/src/lib.rs b/factory/src/lib.rs index a995ed5..93a513f 100644 --- a/factory/src/lib.rs +++ b/factory/src/lib.rs @@ -126,6 +126,18 @@ impl MintbaseStoreFactory { &self.admin_public_key } + /// Retrieve the storage price per byte in yocotNEAR currently registered + /// with the factory. + pub fn get_storage_price_per_byte(&self) -> U128 { + self.storage_price_per_byte.into() + } + + /// Retrieve the store cost in yocotNEAR currently registered with the + /// factory. + pub fn get_store_cost(&self) -> U128 { + self.store_cost.into() + } + /// The Near Storage price per byte has changed in the past, and may change in /// the future. This method may never be used. #[payable]