pub trait PswapDistributionAPIServer<BlockHash, AccountId, BalanceInfo>: Sized + Send + Sync + 'static {
    // Required method
    fn claimable_amount(
        &self,
        account_id: AccountId,
        at: Option<BlockHash>
    ) -> Result<BalanceInfo>;

    // Provided method
    fn into_rpc(self) -> RpcModule<Self>
       where BlockHash: Send + Sync + 'static + DeserializeOwned,
             AccountId: Send + Sync + 'static + DeserializeOwned,
             BalanceInfo: Send + Sync + 'static + Serialize { ... }
}
Expand description

Server trait implementation for the PswapDistributionAPI RPC API.

Required Methods§

source

fn claimable_amount( &self, account_id: AccountId, at: Option<BlockHash> ) -> Result<BalanceInfo>

Provided Methods§

source

fn into_rpc(self) -> RpcModule<Self>where BlockHash: Send + Sync + 'static + DeserializeOwned, AccountId: Send + Sync + 'static + DeserializeOwned, BalanceInfo: Send + Sync + 'static + Serialize,

Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

Implementors§

source§

impl<C, Block, AccountId, Balance> PswapDistributionAPIServer<<Block as Block>::Hash, AccountId, BalanceInfo<Balance>> for PswapDistributionClient<C, Block>where Block: BlockT, C: Send + Sync + 'static + ProvideRuntimeApi<Block> + HeaderBackend<Block>, C::Api: PswapDistributionRuntimeAPI<Block, AccountId, Balance>, AccountId: Codec, Balance: Codec + MaybeFromStr + MaybeDisplay,