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> { ... }
}
The identifier of the runtime api.
The version of the runtime api.