Trait ValidatorPoolDeposit

Source
pub trait ValidatorPoolDeposit: StateWrite {
    // Provided method
    fn deposit_to_validator_pool<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        validator_ik: &'life1 IdentityKey,
        unbonded_deposit: Amount,
    ) -> Pin<Box<dyn Future<Output = Option<Value>> + Send + 'async_trait>>
       where Self: Send + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}
Available on crate feature component only.

Provided Methods§

Source

fn deposit_to_validator_pool<'life0, 'life1, 'async_trait>( &'life0 mut self, validator_ik: &'life1 IdentityKey, unbonded_deposit: Amount, ) -> Pin<Box<dyn Future<Output = Option<Value>> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Checked increase of the validator pool size by the given amount of staking tokens (unbonded).

On success, this method returns the bonded value of the deposit, i.e, measured in delegation tokens.

Returns None if the update failed.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§