pub trait EthBridgeRuntimeApi<Block, Hash, Approval, AccountId, AssetKind, AssetId, EthAddress, OffchainRequest, RequestStatus, OutgoingRequestEncoded, NetworkId, BalancePrecision>: Core<Block>where
    Block: Block,
    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, Global>,
        network_id: Option<NetworkId>,
        redirect_finished_load_requests: bool
    ) -> Result<Result<Vec<(OffchainRequest, RequestStatus), Global>, DispatchError>, ApiError> { ... }
    fn get_requests_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        hashes: Vec<Hash, Global>,
        network_id: Option<NetworkId>,
        redirect_finished_load_requests: bool
    ) -> Result<Result<Vec<(OffchainRequest, RequestStatus), Global>, DispatchError>, ApiError> { ... }
    fn get_approved_requests(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        hashes: Vec<Hash, Global>,
        network_id: Option<NetworkId>
    ) -> Result<Result<Vec<(OutgoingRequestEncoded, Vec<Approval, Global>), Global>, DispatchError>, ApiError> { ... }
    fn get_approved_requests_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        hashes: Vec<Hash, Global>,
        network_id: Option<NetworkId>
    ) -> Result<Result<Vec<(OutgoingRequestEncoded, Vec<Approval, Global>), Global>, DispatchError>, ApiError> { ... }
    fn get_approvals(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        hashes: Vec<Hash, Global>,
        network_id: Option<NetworkId>
    ) -> Result<Result<Vec<Vec<Approval, Global>, Global>, DispatchError>, ApiError> { ... }
    fn get_approvals_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        hashes: Vec<Hash, Global>,
        network_id: Option<NetworkId>
    ) -> Result<Result<Vec<Vec<Approval, Global>, Global>, 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), Global>, 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), Global>, 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)>), Global>, 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)>), Global>, DispatchError>, ApiError> { ... }
}

Provided Methods§

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

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

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

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

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

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

Trait Implementations§

§

impl<Block, 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> + 'staticwhere Block: Block,

§

const ID: [u8; 8] = [248u8, 224u8, 194u8, 82u8, 0u8, 196u8, 102u8, 204u8]

The identifier of the runtime api.
§

const VERSION: u32 = 1u32

The version of the runtime api.

Implementors§