[][src]Trait node_rpc_runtime_api::pips::PipsApi

pub trait PipsApi<Block: BlockT, AccountId, Balance>: Core<Block> where
    AccountId: Codec,
    Balance: Codec, 
{ fn get_votes(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        pips_index: u32
    ) -> Result<VoteCount<Balance>, Self::Error> { ... }
fn get_votes_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        pips_index: u32
    ) -> Result<VoteCount<Balance>, Self::Error> { ... }
fn proposed_by(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        address: AccountId
    ) -> Result<Vec<u32>, Self::Error> { ... }
fn proposed_by_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        address: AccountId
    ) -> Result<Vec<u32>, Self::Error> { ... }
fn voted_on(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        address: AccountId
    ) -> Result<Vec<u32>, Self::Error> { ... }
fn voted_on_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        address: AccountId
    ) -> Result<Vec<u32>, Self::Error> { ... } }

The API to interact with Pips governance.

Provided methods

fn get_votes(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    pips_index: u32
) -> Result<VoteCount<Balance>, Self::Error>
[src]

Retrieve votes for a proposal for a given pips_index.

fn get_votes_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    pips_index: u32
) -> Result<VoteCount<Balance>, Self::Error>
[src]

Retrieve votes for a proposal for a given pips_index.

fn proposed_by(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    address: AccountId
) -> Result<Vec<u32>, Self::Error>
[src]

Retrieve proposals started by address.

fn proposed_by_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    address: AccountId
) -> Result<Vec<u32>, Self::Error>
[src]

Retrieve proposals started by address.

fn voted_on(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    address: AccountId
) -> Result<Vec<u32>, Self::Error>
[src]

Retrieve proposals address voted on.

fn voted_on_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    address: AccountId
) -> Result<Vec<u32>, Self::Error>
[src]

Retrieve proposals address voted on.

Loading content...

Trait Implementations

impl<Block: BlockT, AccountId, Balance, __Sr_Api_Error__> RuntimeApiInfo for dyn PipsApi<Block, AccountId, Balance, Error = __Sr_Api_Error__>[src]

Implementors

Loading content...