pub async fn get_network_relayer<J, RR, TR, NR, NFR, SR, TCR, PR>(
relayer_id: String,
state: &ThinDataAppState<J, RR, TR, NR, NFR, SR, TCR, PR>,
) -> Result<NetworkRelayer<J, TR, RR, NR, TCR>, ApiError>where
J: JobProducerTrait + Send + Sync + 'static,
RR: RelayerRepository + Repository<RelayerRepoModel, String> + Send + Sync + 'static,
TR: TransactionRepository + Repository<TransactionRepoModel, 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,
Expand description
Retrieves a network relayer by its ID, constructing it using the relayer and signer models.
§Arguments
relayer_id
- A string slice that holds the ID of the relayer.state
- A reference to the application state.
§Returns
Result<NetworkRelayer, ApiError>
- Returns aNetworkRelayer
on success, or anApiError
on failure.