pub trait VestedRewardsApiServer<BlockHash, AccountId, AssetId, OptionBalanceInfo, CrowdloanTag>: Sized + Send + Sync + 'static {
// Required methods
fn crowdloan_claimable(
&self,
tag: CrowdloanTag,
account_id: AccountId,
asset_id: AssetId,
at: Option<BlockHash>
) -> Result<OptionBalanceInfo>;
fn crowdloan_lease(
&self,
tag: CrowdloanTag,
at: Option<BlockHash>
) -> Result<CrowdloanLease>;
// Provided method
fn into_rpc(self) -> RpcModule<Self>
where BlockHash: Send + Sync + 'static + DeserializeOwned,
AccountId: Send + Sync + 'static + DeserializeOwned,
AssetId: Send + Sync + 'static + DeserializeOwned,
OptionBalanceInfo: Send + Sync + 'static + Serialize,
CrowdloanTag: Send + Sync + 'static + DeserializeOwned { ... }
}
Expand description
Server trait implementation for the VestedRewardsApi
RPC API.
Required Methods§
fn crowdloan_claimable( &self, tag: CrowdloanTag, account_id: AccountId, asset_id: AssetId, at: Option<BlockHash> ) -> Result<OptionBalanceInfo>
fn crowdloan_lease( &self, tag: CrowdloanTag, at: Option<BlockHash> ) -> Result<CrowdloanLease>
Provided Methods§
sourcefn into_rpc(self) -> RpcModule<Self>where
BlockHash: Send + Sync + 'static + DeserializeOwned,
AccountId: Send + Sync + 'static + DeserializeOwned,
AssetId: Send + Sync + 'static + DeserializeOwned,
OptionBalanceInfo: Send + Sync + 'static + Serialize,
CrowdloanTag: Send + Sync + 'static + DeserializeOwned,
fn into_rpc(self) -> RpcModule<Self>where BlockHash: Send + Sync + 'static + DeserializeOwned, AccountId: Send + Sync + 'static + DeserializeOwned, AssetId: Send + Sync + 'static + DeserializeOwned, OptionBalanceInfo: Send + Sync + 'static + Serialize, CrowdloanTag: Send + Sync + 'static + DeserializeOwned,
Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule
.