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