Trait replace_rpc::ReplaceRuntimeApi
source · pub trait ReplaceRuntimeApi<Block, AccountId, H256, ReplaceRequest>: Core<Block>where
Block: Block,
AccountId: Codec,
H256: Codec,
ReplaceRequest: Codec,{
// Provided methods
fn get_old_vault_replace_requests(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
vault_id: AccountId
) -> Result<Vec<H256, Global>, ApiError> { ... }
fn get_new_vault_replace_requests(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
vault_id: AccountId
) -> Result<Vec<H256, Global>, ApiError> { ... }
}
Provided Methods§
sourcefn get_old_vault_replace_requests(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
vault_id: AccountId
) -> Result<Vec<H256, Global>, ApiError>
fn get_old_vault_replace_requests( &self, __runtime_api_at_param__: <Block as Block>::Hash, vault_id: AccountId ) -> Result<Vec<H256, Global>, ApiError>
Get all replace requests from a particular vault
sourcefn get_new_vault_replace_requests(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
vault_id: AccountId
) -> Result<Vec<H256, Global>, ApiError>
fn get_new_vault_replace_requests( &self, __runtime_api_at_param__: <Block as Block>::Hash, vault_id: AccountId ) -> Result<Vec<H256, Global>, ApiError>
Get all replace requests to a particular vault