Struct cosmos_client::client::staking::StakingModule
source · pub struct StakingModule { /* private fields */ }Implementations§
source§impl StakingModule
impl StakingModule
pub fn new(rpc: Rc<HttpClient>) -> Self
pub async fn validator( &self, validator_addr: &str ) -> Result<QueryValidatorResponse, CosmosClientError>
pub async fn validators( &self, status: &str, pagination: Option<PageRequest> ) -> Result<QueryValidatorsResponse, CosmosClientError>
pub async fn validator_delegations( &self, validator_addr: &str, pagination: Option<PageRequest> ) -> Result<QueryValidatorDelegationsResponse, CosmosClientError>
pub async fn validator_unbonding_delegations( &self, validator_addr: &str, pagination: Option<PageRequest> ) -> Result<QueryValidatorUnbondingDelegationsResponse, CosmosClientError>
pub async fn delegation( &self, delegator_addr: &str, validator_addr: &str ) -> Result<QueryDelegationResponse, CosmosClientError>
pub async fn unbonding_delegation( &self, delegator_addr: &str, validator_addr: &str ) -> Result<QueryUnbondingDelegationResponse, CosmosClientError>
pub async fn delegator_delegations( &self, delegator_addr: &str, pagination: Option<PageRequest> ) -> Result<QueryDelegatorDelegationsResponse, CosmosClientError>
pub async fn delegator_unbonding_delegations( &self, delegator_addr: &str, pagination: Option<PageRequest> ) -> Result<QueryDelegatorUnbondingDelegationsResponse, CosmosClientError>
pub async fn redelegations( &self, delegator_addr: &str, src_validator_addr: &str, dst_validator_addr: &str, pagination: Option<PageRequest> ) -> Result<QueryRedelegationsResponse, CosmosClientError>
pub async fn delegator_validators( &self, delegator_addr: &str, pagination: Option<PageRequest> ) -> Result<QueryDelegatorDelegationsResponse, CosmosClientError>
pub async fn delegator_validator( &self, delegator_addr: &str, validator_addr: &str ) -> Result<QueryDelegatorValidatorResponse, CosmosClientError>
pub async fn historical_info( &self, height: i64 ) -> Result<QueryHistoricalInfoResponse, CosmosClientError>
pub async fn pool(&self) -> Result<QueryPoolResponse, CosmosClientError>
pub async fn params(&self) -> Result<QueryParamsResponse, CosmosClientError>
Auto Trait Implementations§
impl !RefUnwindSafe for StakingModule
impl !Send for StakingModule
impl !Sync for StakingModule
impl Unpin for StakingModule
impl !UnwindSafe for StakingModule
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request