pub struct DepositManager { /* private fields */ }Implementations§
Source§impl DepositManager
impl DepositManager
pub const fn new( total_namespace: &'static str, deposit_namespace: &'static str, ) -> Self
pub fn increase( &self, storage: &mut dyn Storage, key: &[u8], amount: Uint64, ) -> AbstractResult<()>
pub fn decrease( &self, storage: &mut dyn Storage, key: &[u8], amount: Uint64, ) -> AbstractResult<()>
pub fn get(&self, storage: &dyn Storage, key: &[u8]) -> AbstractResult<Uint64>
pub fn get_total_deposits( &self, storage: &dyn Storage, ) -> AbstractResult<Uint64>
Auto Trait Implementations§
impl Freeze for DepositManager
impl RefUnwindSafe for DepositManager
impl Send for DepositManager
impl Sync for DepositManager
impl Unpin for DepositManager
impl UnsafeUnpin for DepositManager
impl UnwindSafe for DepositManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more