v0.2.11-pre.011-fix.001
This commit is contained in:
86
deltas/0.2.11/pre.011-fix.001.md
Normal file
86
deltas/0.2.11/pre.011-fix.001.md
Normal file
@@ -0,0 +1,86 @@
|
||||
<!-- file: deltas/0.2.11/pre.011-fix.001.md -->
|
||||
<!-- version: 1 -->
|
||||
|
||||
# Delta `0.2.11-pre.011-fix.001` — CoinMarketCap Simple Price V2 `id`
|
||||
|
||||
## 1. Déclencheur
|
||||
|
||||
Le gate déterministe de `0.2.11-pre.011` est PASS : audits Rust/Markdown, `cargo check`, Clippy, tests ciblés, `cargo test --workspace` et `cargo tree` Off-chain Transport. Le smoke live keyless a ensuite tenté les sept providers et a échoué uniquement sur CoinMarketCap :
|
||||
|
||||
```text
|
||||
live market-price providers did not all refresh successfully after every provider was attempted:
|
||||
["coinmarketcap:TemporarilyUnavailable { retry_at: None }"]
|
||||
```
|
||||
|
||||
Les six autres providers keyless ont donc produit une observation valide pendant le même batch.
|
||||
|
||||
## 2. Diagnostic officiel actuel
|
||||
|
||||
Le réaudit CoinMarketCap du `2026-08-26` confirme :
|
||||
|
||||
```text
|
||||
GET /v2/simple/price
|
||||
keyless = /public-api/v2/simple/price
|
||||
identifiant CoinMarketCap = query parameter `id`
|
||||
SOL = id 5426
|
||||
include_last_updated = true supporté
|
||||
```
|
||||
|
||||
L'adapter KSP utilisait encore :
|
||||
|
||||
```text
|
||||
ids=5426
|
||||
```
|
||||
|
||||
Cette query n'est pas le contrat V2 officiel courant.
|
||||
|
||||
## 3. Correctif
|
||||
|
||||
`market_price_coinmarketcap.rs` remplace uniquement :
|
||||
|
||||
```text
|
||||
ids=5426 -> id=5426
|
||||
```
|
||||
|
||||
Le builder est commun aux modes `Keyless` et `Basic`, donc les deux sont corrigés simultanément. Les endpoints, headers, parser, rate-limit, quota, provenance et sémantique `AggregatedMarket` restent inchangés.
|
||||
|
||||
Le test unitaire existant verrouille désormais la query exacte pour les deux modes :
|
||||
|
||||
```text
|
||||
id=5426&convert=USD&include_last_updated=true
|
||||
```
|
||||
|
||||
## 4. Version
|
||||
|
||||
```text
|
||||
workspace.package.version = 0.2.11-pre.11.fix.1
|
||||
commit attendu = v0.2.11-pre.011-fix.001
|
||||
aucun tag prerelease
|
||||
```
|
||||
|
||||
## 5. Gate requis
|
||||
|
||||
Après application :
|
||||
|
||||
```bash
|
||||
cargo fmt --all
|
||||
python3 scripts/audit_rust_workspace_rules.py
|
||||
python3 scripts/audit_markdown_tables.py README.md RULES.md ROADMAP.md CHANGELOG.md docs prompts crates deltas/0.2.11
|
||||
cargo check --workspace
|
||||
cargo clippy --workspace --all-targets
|
||||
cargo test -p ksp-offchain-transport-lib
|
||||
cargo test -p ksp-config-lib
|
||||
cargo test --workspace
|
||||
cargo tree -p ksp-offchain-transport-lib --edges normal
|
||||
```
|
||||
|
||||
Puis le re-smoke keyless obligatoire :
|
||||
|
||||
```bash
|
||||
cargo test -p ksp-offchain-transport-lib \
|
||||
--test market_price_live_smoke \
|
||||
keyless_market_price_providers_live_smoke \
|
||||
-- --ignored --exact --nocapture --test-threads=1
|
||||
```
|
||||
|
||||
Le smoke keyed reste opt-in et peut être consigné `SKIP opérateur` si les quatre credentials gratuits ne sont pas disponibles.
|
||||
Reference in New Issue
Block a user