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