dash_sdk::query_types

Type Alias ProtocolVersionVoteCount

pub type ProtocolVersionVoteCount = u64;
Expand description

Number of votes for a protocol version upgrade.

Trait Implementations§

source§

impl FetchMany<u32, IndexMap<u32, Option<u64>>> for ProtocolVersionVoteCount

Fetch information about number of votes for each protocol version upgrade.

Returns ProtocolVersionUpgrades indexed by ProtocolVersion.

§Supported query types

It requires no query, so you can use () as the query parameter.

§Example
use dash_sdk::{Sdk, platform::FetchMany, Error};
use drive_proof_verifier::types::{ProtocolVersionUpgrades, ProtocolVersionVoteCount};

let sdk = Sdk::new_mock();
let result: Result<ProtocolVersionUpgrades, Error> = ProtocolVersionVoteCount::fetch_many(&sdk, ()).await;
source§

type Request = GetProtocolVersionUpgradeStateRequest

Type of request used to fetch multiple objects from Platform. Read more
source§

fn fetch_many<'life0, 'async_trait, Q>( sdk: &'life0 Sdk, query: Q, ) -> Pin<Box<dyn Future<Output = Result<O, Error>> + Send + 'async_trait>>
where Q: 'async_trait + Query<<Self as FetchMany<K, O>>::Request>, Self: Send + 'async_trait, 'life0: 'async_trait,

Fetch (or search) multiple objects on the Dash Platform Read more
source§

fn fetch_many_with_metadata<'life0, 'async_trait, Q>( sdk: &'life0 Sdk, query: Q, settings: Option<RequestSettings>, ) -> Pin<Box<dyn Future<Output = Result<(O, ResponseMetadata), Error>> + Send + 'async_trait>>
where Q: 'async_trait + Query<<Self as FetchMany<K, O>>::Request>, Self: Send + 'async_trait, 'life0: 'async_trait,

Fetch multiple objects from Platform with metadata. Read more
source§

fn fetch_many_with_metadata_and_proof<'life0, 'async_trait, Q>( sdk: &'life0 Sdk, query: Q, settings: Option<RequestSettings>, ) -> Pin<Box<dyn Future<Output = Result<(O, ResponseMetadata, Proof), Error>> + Send + 'async_trait>>
where Q: 'async_trait + Query<<Self as FetchMany<K, O>>::Request>, Self: Send + 'async_trait, 'life0: 'async_trait,

Fetch multiple objects from Platform with metadata and underlying proof. Read more
source§

fn fetch_many_with_limit<'life0, 'async_trait, Q>( sdk: &'life0 Sdk, query: Q, limit: u32, ) -> Pin<Box<dyn Future<Output = Result<O, Error>> + Send + 'async_trait>>
where LimitQuery<Q>: Query<<Self as FetchMany<K, O>>::Request>, Q: 'async_trait + Query<<Self as FetchMany<K, O>>::Request>, Self: Send + 'async_trait, 'life0: 'async_trait,

Fetch multiple objects from Platform with limit. Read more