pub struct Staking<'a> { /* private fields */ }
Implementations§
Source§impl Staking<'_>
impl Staking<'_>
pub fn create(terra: &Terra) -> Staking<'_>
pub async fn validator( &self, key: &str, ) -> Result<LCDResult<Validator>, TerraRustAPIError>
Sourcepub async fn validators(
&self,
) -> Result<LCDResult<Vec<Validator>>, TerraRustAPIError>
pub async fn validators( &self, ) -> Result<LCDResult<Vec<Validator>>, TerraRustAPIError>
Get list of validators
Sourcepub async fn validators_at_height(
&self,
height: u64,
limit: Option<u64>,
) -> Result<LCDResult<Vec<Validator>>, TerraRustAPIError>
pub async fn validators_at_height( &self, height: u64, limit: Option<u64>, ) -> Result<LCDResult<Vec<Validator>>, TerraRustAPIError>
Get list of validators at a given height
pub async fn validator_by_moniker( &self, moniker: &str, ) -> Result<Option<Validator>, TerraRustAPIError>
Sourcepub async fn validator_delegations(
&self,
key: &str,
) -> Result<LCDResult<Vec<ValidatorDelegation>>, TerraRustAPIError>
pub async fn validator_delegations( &self, key: &str, ) -> Result<LCDResult<Vec<ValidatorDelegation>>, TerraRustAPIError>
all delegations for a given validator
Sourcepub async fn validator_delegations_limit(
&self,
key: &str,
limit: u64,
) -> Result<ValidatorDelegationsV1Response, TerraRustAPIError>
pub async fn validator_delegations_limit( &self, key: &str, limit: u64, ) -> Result<ValidatorDelegationsV1Response, TerraRustAPIError>
all delegations for a given validator (limit) (new format)
Sourcepub async fn validator_unbonding_delegations(
&self,
key: &str,
) -> Result<LCDResult<Vec<ValidatorUnbondingDelegation>>, TerraRustAPIError>
pub async fn validator_unbonding_delegations( &self, key: &str, ) -> Result<LCDResult<Vec<ValidatorUnbondingDelegation>>, TerraRustAPIError>
all unbondings for a given validator
Auto Trait Implementations§
impl<'a> Freeze for Staking<'a>
impl<'a> !RefUnwindSafe for Staking<'a>
impl<'a> Send for Staking<'a>
impl<'a> Sync for Staking<'a>
impl<'a> Unpin for Staking<'a>
impl<'a> !UnwindSafe for Staking<'a>
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