Trait farming_rpc::FarmingApiServer
source · pub trait FarmingApiServer<BlockHash, AssetId>: Sized + Send + Sync + 'static {
// Required method
fn reward_doubling_assets(
&self,
at: Option<BlockHash>
) -> RpcResult<Vec<AssetId>>;
// Provided method
fn into_rpc(self) -> RpcModule<Self>
where BlockHash: Send + Sync + 'static + DeserializeOwned,
AssetId: Send + Sync + 'static + Serialize { ... }
}
Expand description
Server trait implementation for the FarmingApi
RPC API.