pub trait StakingRewardsApiClient<BlockHash, Balance>: ClientTwhere
    BlockHash: Send + Sync + 'static + Serialize,
    Balance: Send + Sync + 'static + Serialize + DeserializeOwned,{
    // Provided methods
    fn yearly_emission<'life0, 'async_trait>(
        &'life0 self,
        total_staked: Balance,
        total_issuance: Balance,
        at: Option<BlockHash>
    ) -> Pin<Box<dyn Future<Output = RpcResult<Balance>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn max_yearly_emission<'life0, 'async_trait>(
        &'life0 self,
        at: Option<BlockHash>
    ) -> Pin<Box<dyn Future<Output = RpcResult<Balance>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Client implementation for the StakingRewardsApi RPC API.

Provided Methods§

source

fn yearly_emission<'life0, 'async_trait>( &'life0 self, total_staked: Balance, total_issuance: Balance, at: Option<BlockHash> ) -> Pin<Box<dyn Future<Output = RpcResult<Balance>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Emission reward 1 year from now given the currently staked funds and issuance. Depends on the reward curve, decay percentage and remaining emission supply.

source

fn max_yearly_emission<'life0, 'async_trait>( &'life0 self, at: Option<BlockHash> ) -> Pin<Box<dyn Future<Output = RpcResult<Balance>> + Send + 'async_trait>>where Self: Sync + 'async_trait, 'life0: 'async_trait,

Maximum emission reward for 1 year from now. Depends on decay percentage and remaining emission supply.

Implementors§

source§

impl<TypeJsonRpseeInteral, BlockHash, Balance> StakingRewardsApiClient<BlockHash, Balance> for TypeJsonRpseeInteralwhere TypeJsonRpseeInteral: ClientT, BlockHash: Send + Sync + 'static + Serialize, Balance: Send + Sync + 'static + Serialize + DeserializeOwned,