Skip to content

fix: address #1554, #1555, #1556, #1561 - #1657

Merged
hman38705 merged 5 commits into
solutions-plug:mainfrom
only1dreamgene:drips/1554-1555-1556-1561
Sep 27, 2026
Merged

hman38705 merged 5 commits into
solutions-plug:mainfrom
only1dreamgene:drips/1554-1555-1556-1561

Conversation

@only1dreamgene

Copy link
Copy Markdown
Contributor

Summary

fix: address #1554, #1555, #1556, #1561

What was solved

#1554 — verify_oracle_health is dead code and, if wired in, would be a misleadingly weak health check

Wire a genuinely useful oracle health check into market-creation validation so malformed feed_ids are rejected up front, and add a test proving market creation fails for a malformed feed_id rather than only at resolution time.

Addressed:

  • Changed: contracts/predict-iq/src/modules/oracles.rs
  • Keep verify_oracle_health but make it meaningful: validate the feed_id decodes correctly (e.g. via decode_feed_id) instead of only checking non-emptiness.
  • Wire the health check into market-creation validation so a malformed feed_id is rejected before a market can accept bets.
  • Add a test asserting market creation with a malformed feed_id (wrong length or non-hex) is rejected up front.

#1555 — Fix docs/README.md structure diagram and root README link — both stale

Update docs/README.md so its directory tree lists every file/subdirectory currently present in docs/ (API_SPEC.md, CONTRACT_ERRORS.md, api-versioning.md, architecture.md, data-flow.md, deployment.md, secrets.md, runbooks/, pr/, plus existing README.md and DISTRIBUTED_TRACING.md), and fix the stale root README link on line 18 so it resolves to an existing file.

Addressed:

  • Changed: docs/README.md
  • Rewrite the directory tree in docs/README.md (lines ~7-12) to accurately reflect all current docs/ contents: README.md, DISTRIBUTED_TRACING.md, API_SPEC.md, CONTRACT_ERRORS.md, api-versioning.md, architecture.md, data-flow.md, deployment.md, secrets.md, runbooks/, and pr/.
  • Fix the broken relative link to ../README.md on line 18 so it points to an existing file (root README.md exists per file tree, so verify/correct the link target and path).
  • Ensure all relative links in docs/README.md resolve (no broken links introduced or left behind).

#1556 — docs/README.md has no index entries for docs/runbooks/ or docs/pr/

Update docs/README.md to add an "Operations / Runbooks" category that links to docs/runbooks/ (or an index within it), and add a short note clarifying the purpose and retention policy of docs/pr/ and frontend/docs/pr/ working notes. This is a documentation-only, index/discoverability fix scoped to the docs index.

Addressed:

  • Changed: docs/README.md
  • Add an "Operations / Runbooks" category to docs/README.md linking to docs/runbooks/ or an index file within it.
  • Add a short note in docs/README.md clarifying the purpose and retention policy of docs/pr/ and frontend/docs/pr/ (working notes vs. permanent docs).
  • Do not relocate or delete docs/pr/ or frontend/docs/pr/ contents unless explicitly required; a clarifying note satisfies the acceptance criteria.

#1561 — frontend/I18N_GUIDE.md advertises es/fr/de locales not present in frontend/src/lib/i18n.ts

Update frontend/I18N_GUIDE.md so its supported-locale list matches the actual translations defined in frontend/src/lib/i18n.ts (only en), and clearly mark es/fr/de as planned/not yet implemented with a follow-up note for tracking translation work.

Addressed:

  • Changed: frontend/I18N_GUIDE.md
  • Edit frontend/I18N_GUIDE.md so the supported locales list reflects only locales actually implemented in frontend/src/lib/i18n.ts (currently only en).
  • Mark es/fr/de as "planned, not yet implemented" rather than currently supported, if they are intended near-term.
  • Add a follow-up note or issue reference indicating translation work for other locales is tracked separately.

Changes

  • contracts/predict-iq/src/modules/oracles.rs (modify)
  • docs/README.md (modify)
  • frontend/I18N_GUIDE.md (modify)

Approach

  1. verify_oracle_health is dead code and, if wired in, would be a misleadingly weak health check #1554 — verify_oracle_health is dead code and, if wired in, would be a misleadingly weak health check (Changed: contracts/predict-iq/src/modules/oracles.rs)
  2. Fix docs/README.md structure diagram and root README link — both stale #1555 — Fix docs/README.md structure diagram and root README link — both stale (Changed: docs/README.md)
  3. docs/README.md has no index entries for docs/runbooks/ or docs/pr/ #1556 — docs/README.md has no index entries for docs/runbooks/ or docs/pr/ (Changed: docs/README.md)
  4. frontend/I18N_GUIDE.md advertises es/fr/de locales not present in frontend/src/lib/i18n.ts #1561 — frontend/I18N_GUIDE.md advertises es/fr/de locales not present in frontend/src/lib/i18n.ts (Changed: frontend/I18N_GUIDE.md)

Issues

Closes #1554
Closes #1555
Closes #1556
Closes #1561

@drips-wave

drips-wave Bot commented Sep 27, 2026

Copy link
Copy Markdown

@only1dreamgene Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

…6-1561

# Conflicts:
#	contracts/predict-iq/src/modules/oracles.rs
@hman38705
hman38705 merged commit dfed573 into solutions-plug:main Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment