pub trait EthBridgeRuntimeApi<Block, Hash, Approval, AccountId, AssetKind, AssetId, EthAddress, OffchainRequest, RequestStatus, OutgoingRequestEncoded, NetworkId, BalancePrecision>: Core<Block>where
+Trait eth_bridge_rpc::EthBridgeRuntimeApi
source · pub trait EthBridgeRuntimeApi<Block, Hash, Approval, AccountId, AssetKind, AssetId, EthAddress, OffchainRequest, RequestStatus, OutgoingRequestEncoded, NetworkId, BalancePrecision>: Core<Block>where
Block: Block,
Hash: Codec,
Approval: Codec,
@@ -92,60 +92,60 @@
context: ExecutionContext,
network_id: Option<NetworkId>
) -> Result<Result<Vec<(AssetKind, (AssetId, BalancePrecision), Option<(EthAddress, BalancePrecision)>), Global>, DispatchError>, ApiError> { ... }
-}
Provided Methods§
fn get_requests(
+}Provided Methods§
sourcefn 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(
+) -> Result<Result<Vec<(OffchainRequest, RequestStatus), Global>, DispatchError>, ApiError>
sourcefn 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(
+) -> Result<Result<Vec<(OffchainRequest, RequestStatus), Global>, DispatchError>, ApiError>
sourcefn 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(
+) -> Result<Result<Vec<(OutgoingRequestEncoded, Vec<Approval, Global>), Global>, DispatchError>, ApiError>
sourcefn 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(
+) -> Result<Result<Vec<(OutgoingRequestEncoded, Vec<Approval, Global>), Global>, DispatchError>, ApiError>
sourcefn 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(
+) -> Result<Result<Vec<Vec<Approval, Global>, Global>, DispatchError>, ApiError>
sourcefn 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(
+) -> Result<Result<Vec<Vec<Approval, Global>, Global>, DispatchError>, ApiError>
sourcefn 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(
+) -> Result<Result<Vec<(NetworkId, Hash), Global>, DispatchError>, ApiError>
sourcefn 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(
+) -> Result<Result<Vec<(NetworkId, Hash), Global>, DispatchError>, ApiError>
sourcefn 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(
+) -> Result<Result<Vec<(AssetKind, (AssetId, BalancePrecision), Option<(EthAddress, BalancePrecision)>), Global>, DispatchError>, ApiError>
sourcefn 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,
Implementors§