Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit c25b87a

Browse files
committed
View methods for the factory
1 parent 2781f2d commit c25b87a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

factory/src/lib.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,18 @@ impl MintbaseStoreFactory {
126126
&self.admin_public_key
127127
}
128128

129+
/// Retrieve the storage price per byte in yocotNEAR currently registered
130+
/// with the factory.
131+
pub fn get_storage_price_per_byte(&self) -> U128 {
132+
self.storage_price_per_byte.into()
133+
}
134+
135+
/// Retrieve the store cost in yocotNEAR currently registered with the
136+
/// factory.
137+
pub fn get_store_cost(&self) -> U128 {
138+
self.store_cost.into()
139+
}
140+
129141
/// The Near Storage price per byte has changed in the past, and may change in
130142
/// the future. This method may never be used.
131143
#[payable]

0 commit comments

Comments
 (0)