Trait eth_bridge_rpc::EthBridgeApiClient
source · pub trait EthBridgeApiClient<BlockHash, Hash, Approval, AccountId, AssetKind, AssetId, EthAddress, OffchainRequest, RequestStatus, OutgoingRequestEncoded, DispatchError, NetworkId, BalancePrecision>: ClientTwhere
BlockHash: Send + Sync + 'static + Serialize,
Hash: Send + Sync + 'static + Serialize + DeserializeOwned,
Approval: Send + Sync + 'static + DeserializeOwned,
AccountId: Send + Sync + 'static + Serialize,
AssetKind: Send + Sync + 'static + DeserializeOwned,
AssetId: Send + Sync + 'static + DeserializeOwned,
EthAddress: Send + Sync + 'static + DeserializeOwned,
OffchainRequest: Send + Sync + 'static + DeserializeOwned,
RequestStatus: Send + Sync + 'static + Serialize + DeserializeOwned,
OutgoingRequestEncoded: Send + Sync + 'static + DeserializeOwned,
DispatchError: Send + Sync + 'static + DeserializeOwned,
NetworkId: Send + Sync + 'static + Serialize + DeserializeOwned,
BalancePrecision: Send + Sync + 'static + DeserializeOwned,{
// Provided methods
fn get_requests<'life0, 'async_trait>(
&'life0 self,
request_hashes: Vec<Hash>,
network_id: Option<NetworkId>,
redirect_finished_load_requests: Option<bool>,
at: Option<BlockHash>
) -> Pin<Box<dyn Future<Output = RpcResult<Result<Vec<(OffchainRequest, RequestStatus)>, DispatchError>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn get_approved_requests<'life0, 'async_trait>(
&'life0 self,
request_hashes: Vec<Hash>,
network_id: Option<NetworkId>,
at: Option<BlockHash>
) -> Pin<Box<dyn Future<Output = RpcResult<Result<Vec<(OutgoingRequestEncoded, Vec<Approval>)>, DispatchError>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn get_approvals<'life0, 'async_trait>(
&'life0 self,
request_hashes: Vec<Hash>,
network_id: Option<NetworkId>,
at: Option<BlockHash>
) -> Pin<Box<dyn Future<Output = RpcResult<Result<Vec<Vec<Approval>>, DispatchError>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn get_account_requests<'life0, 'async_trait>(
&'life0 self,
account_id: AccountId,
status_filter: Option<RequestStatus>,
at: Option<BlockHash>
) -> Pin<Box<dyn Future<Output = RpcResult<Result<Vec<(NetworkId, Hash)>, DispatchError>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn get_registered_assets<'life0, 'async_trait>(
&'life0 self,
network_id: Option<NetworkId>,
at: Option<BlockHash>
) -> Pin<Box<dyn Future<Output = RpcResult<Result<Vec<(AssetKind, (AssetId, BalancePrecision), Option<(EthAddress, BalancePrecision)>)>, DispatchError>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}
Expand description
Client implementation for the EthBridgeApi
RPC API.