Trait RelayerApiTrait
Source pub trait RelayerApiTrait<J, RR, TR, NR, NFR, SR, TCR, PR>: Send + Syncwhere
J:
JobProducerTrait + 'static,
TR:
TransactionRepository +
Repository<
TransactionRepoModel,
String> +
Send +
Sync + 'static,
RR:
RelayerRepository +
Repository<
RelayerRepoModel,
String> +
Send +
Sync + 'static,
NR:
NetworkRepository +
Repository<
NetworkRepoModel,
String> +
Send +
Sync + 'static,
NFR:
Repository<
NotificationRepoModel,
String> +
Send +
Sync + 'static,
SR:
Repository<
SignerRepoModel,
String> +
Send +
Sync + 'static,
TCR:
TransactionCounterTrait +
Send +
Sync + 'static,
PR:
PluginRepositoryTrait +
Send +
Sync + 'static,
{
// Required methods
fn handle_request<'life0, 'life1, 'async_trait>(
&'life0 self,
request: Request,
state: &'life1 ThinData<AppState<J, RR, TR, NR, NFR, SR, TCR, PR>>,
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn process_request<'life0, 'life1, 'async_trait>(
&'life0 self,
request: Request,
state: &'life1 ThinData<AppState<J, RR, TR, NR, NFR, SR, TCR, PR>>,
) -> Pin<Box<dyn Future<Output = Result<Response, PluginError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn handle_send_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
request: Request,
state: &'life1 ThinData<AppState<J, RR, TR, NR, NFR, SR, TCR, PR>>,
) -> Pin<Box<dyn Future<Output = Result<Response, PluginError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn handle_get_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
request: Request,
state: &'life1 ThinData<AppState<J, RR, TR, NR, NFR, SR, TCR, PR>>,
) -> Pin<Box<dyn Future<Output = Result<Response, PluginError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn handle_get_relayer_status<'life0, 'life1, 'async_trait>(
&'life0 self,
request: Request,
state: &'life1 ThinData<AppState<J, RR, TR, NR, NFR, SR, TCR, PR>>,
) -> Pin<Box<dyn Future<Output = Result<Response, PluginError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn handle_sign_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
request: Request,
state: &'life1 ThinData<AppState<J, RR, TR, NR, NFR, SR, TCR, PR>>,
) -> Pin<Box<dyn Future<Output = Result<Response, PluginError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn handle_get_relayer_info<'life0, 'life1, 'async_trait>(
&'life0 self,
request: Request,
state: &'life1 ThinData<AppState<J, RR, TR, NR, NFR, SR, TCR, PR>>,
) -> Pin<Box<dyn Future<Output = Result<Response, PluginError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}