0.5.1-pre.006

This commit is contained in:
2026-08-10 02:44:24 +02:00
parent b6a286a4df
commit 34a670eaec
72 changed files with 5589 additions and 1932 deletions

View File

@@ -1,5 +1,5 @@
<!-- file: ks-onchain-transport/USAGE.md -->
<!-- version: 6 -->
<!-- version: 7 -->
# Utilisation de ks-onchain-transport
@@ -9,7 +9,7 @@ La crate expose les contrats publics nécessaires aux communications RPC HTTP et
## Prérequis
- une configuration `ks-config` contenant au moins un endpoint compatible ;
- un profil de transport `ks-config::TransportProfileConfig` contenant au moins un endpoint compatible ;
- un runtime Tokio pour les opérations asynchrones ;
- des limites et engagements adaptés à lopération demandée.
@@ -32,9 +32,9 @@ fn build_http_client(
```rust
fn select_query_client(
profile: &ks_config::ProfileConfig,
profile: &ks_config::TransportProfileConfig,
) -> ks_core::Result<ks_onchain_transport::HttpClient> {
let pool_result = ks_onchain_transport::HttpEndpointPool::from_profile(profile);
let pool_result = ks_onchain_transport::HttpEndpointPool::from_transport_profile(profile);
let pool = match pool_result {
Ok(pool) => pool,
Err(error) => return Err(error),
@@ -44,7 +44,7 @@ fn select_query_client(
}
```
`HttpEndpointPool::snapshot` fournit un état sérialisable des endpoints actifs et de leurs rôles.
`HttpEndpointPool::snapshot` fournit un état sérialisable des endpoints actifs et de leurs rôles. Les constructeurs `from_profile` restent temporairement disponibles pour le contrat runtime `ProfileConfig` résolu pendant la migration `0.5.1`.
## Classer une méthode RPC