pub async fn update_network<J, RR, TR, NR, NFR, SR, TCR, PR, AKR>(
network_id: String,
request: UpdateNetworkRequest,
state: ThinDataAppState<J, RR, TR, NR, NFR, SR, TCR, PR, AKR>,
) -> Result<HttpResponse, 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,
AKR: ApiKeyRepositoryTrait + Send + Sync + 'static,Expand description
Updates a network’s configuration. Currently supports updating RPC URLs only. Can be extended to support other fields.
§Arguments
network_id- The ID of the network (e.g., “evm:sepolia”, “solana:mainnet”).request- The update request containing fields to update.state- The application state containing the network repository.
§Returns
The updated network or an error if update fails.