pub trait EthBridgeRuntimeApi<Block: BlockT, Hash, Approval, AccountId, AssetKind, AssetId, EthAddress, OffchainRequest, RequestStatus, OutgoingRequestEncoded, NetworkId, BalancePrecision>: Core<Block>where
    Hash: Codec,
    Approval: Codec,
    AccountId: Codec,
    AssetKind: Codec,
    AssetId: Codec,
    EthAddress: Codec,
    OffchainRequest: Codec,
    RequestStatus: Codec,
    OutgoingRequestEncoded: Codec,
    NetworkId: Codec,
    BalancePrecision: Codec,{
    // Provided methods
    fn get_requests(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        hashes: Vec<Hash>,
        network_id: Option<NetworkId>,
        redirect_finished_load_requests: bool
    ) -> Result<Result<Vec<(OffchainRequest, RequestStatus)>, DispatchError>, ApiError> { ... }
    fn get_requests_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        hashes: Vec<Hash>,
        network_id: Option<NetworkId>,
        redirect_finished_load_requests: bool
    ) -> Result<Result<Vec<(OffchainRequest, RequestStatus)>, DispatchError>, ApiError> { ... }
    fn get_approved_requests(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        hashes: Vec<Hash>,
        network_id: Option<NetworkId>
    ) -> Result<Result<Vec<(OutgoingRequestEncoded, Vec<Approval>)>, DispatchError>, ApiError> { ... }
    fn get_approved_requests_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        hashes: Vec<Hash>,
        network_id: Option<NetworkId>
    ) -> Result<Result<Vec<(OutgoingRequestEncoded, Vec<Approval>)>, DispatchError>, ApiError> { ... }
    fn get_approvals(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        hashes: Vec<Hash>,
        network_id: Option<NetworkId>
    ) -> Result<Result<Vec<Vec<Approval>>, DispatchError>, ApiError> { ... }
    fn get_approvals_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        hashes: Vec<Hash>,
        network_id: Option<NetworkId>
    ) -> Result<Result<Vec<Vec<Approval>>, DispatchError>, ApiError> { ... }
    fn get_account_requests(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        account_id: AccountId,
        status_filter: Option<RequestStatus>
    ) -> Result<Result<Vec<(NetworkId, Hash)>, DispatchError>, ApiError> { ... }
    fn get_account_requests_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        account_id: AccountId,
        status_filter: Option<RequestStatus>
    ) -> Result<Result<Vec<(NetworkId, Hash)>, DispatchError>, ApiError> { ... }
    fn get_registered_assets(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        network_id: Option<NetworkId>
    ) -> Result<Result<Vec<(AssetKind, (AssetId, BalancePrecision), Option<(EthAddress, BalancePrecision)>)>, DispatchError>, ApiError> { ... }
    fn get_registered_assets_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        network_id: Option<NetworkId>
    ) -> Result<Result<Vec<(AssetKind, (AssetId, BalancePrecision), Option<(EthAddress, BalancePrecision)>)>, DispatchError>, ApiError> { ... }
}

Provided Methods§

source

fn get_requests( &self, __runtime_api_at_param__: &BlockId<Block>, hashes: Vec<Hash>, network_id: Option<NetworkId>, redirect_finished_load_requests: bool ) -> Result<Result<Vec<(OffchainRequest, RequestStatus)>, DispatchError>, ApiError>

source

fn get_requests_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, hashes: Vec<Hash>, network_id: Option<NetworkId>, redirect_finished_load_requests: bool ) -> Result<Result<Vec<(OffchainRequest, RequestStatus)>, DispatchError>, ApiError>

source

fn get_approved_requests( &self, __runtime_api_at_param__: &BlockId<Block>, hashes: Vec<Hash>, network_id: Option<NetworkId> ) -> Result<Result<Vec<(OutgoingRequestEncoded, Vec<Approval>)>, DispatchError>, ApiError>

source

fn get_approved_requests_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, hashes: Vec<Hash>, network_id: Option<NetworkId> ) -> Result<Result<Vec<(OutgoingRequestEncoded, Vec<Approval>)>, DispatchError>, ApiError>

source

fn get_approvals( &self, __runtime_api_at_param__: &BlockId<Block>, hashes: Vec<Hash>, network_id: Option<NetworkId> ) -> Result<Result<Vec<Vec<Approval>>, DispatchError>, ApiError>

source

fn get_approvals_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, hashes: Vec<Hash>, network_id: Option<NetworkId> ) -> Result<Result<Vec<Vec<Approval>>, DispatchError>, ApiError>

source

fn get_account_requests( &self, __runtime_api_at_param__: &BlockId<Block>, account_id: AccountId, status_filter: Option<RequestStatus> ) -> Result<Result<Vec<(NetworkId, Hash)>, DispatchError>, ApiError>

source

fn get_account_requests_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, account_id: AccountId, status_filter: Option<RequestStatus> ) -> Result<Result<Vec<(NetworkId, Hash)>, DispatchError>, ApiError>

source

fn get_registered_assets( &self, __runtime_api_at_param__: &BlockId<Block>, network_id: Option<NetworkId> ) -> Result<Result<Vec<(AssetKind, (AssetId, BalancePrecision), Option<(EthAddress, BalancePrecision)>)>, DispatchError>, ApiError>

source

fn get_registered_assets_with_context( &self, __runtime_api_at_param__: &BlockId<Block>, context: ExecutionContext, network_id: Option<NetworkId> ) -> Result<Result<Vec<(AssetKind, (AssetId, BalancePrecision), Option<(EthAddress, BalancePrecision)>)>, DispatchError>, ApiError>

Trait Implementations§

source§

impl<Block: BlockT, Hash, Approval, AccountId, AssetKind, AssetId, EthAddress, OffchainRequest, RequestStatus, OutgoingRequestEncoded, NetworkId, BalancePrecision> RuntimeApiInfo for dyn EthBridgeRuntimeApi<Block, Hash, Approval, AccountId, AssetKind, AssetId, EthAddress, OffchainRequest, RequestStatus, OutgoingRequestEncoded, NetworkId, BalancePrecision>

source§

const ID: [u8; 8] = _

The identifier of the runtime api.
source§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§