Skip to content

Feat/oracle evaluation hardening - #467

Merged
OxDev-max merged 6 commits into
Refract-Protocol:mainfrom
proverbs31ziggo-a11y:feat/oracle-evaluation-hardening
Oct 23, 2026
Merged

OxDev-max merged 6 commits into
Refract-Protocol:mainfrom
proverbs31ziggo-a11y:feat/oracle-evaluation-hardening

Conversation

@proverbs31ziggo-a11y

Copy link
Copy Markdown
Contributor

Closes #243
Closes #244
Closes #245
Closes #246

Summary

Type of change

  • Bug fix
  • New feature
  • Refactor / cleanup
  • Docs
  • Tests / CI

Checklist

  • I read CONTRIBUTING.md
  • Tests added/updated for the change
  • Local gate passes (lint / typecheck or fmt + clippy + test / build)
  • No secrets, keys, or .env values committed
  • Behavioural changes are documented in the README where relevant

Notes for reviewers

proverbs31ziggo-a11y and others added 5 commits October 21, 2026 09:39
Restore the package manifest, typed configuration surface, and cache wrapper required by the existing oracle service. This prerequisite makes isolated oracle behavior tests runnable while unrelated repository-wide integration issues remain.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add versioned Zod schemas and byte limits for CoinGecko, Horizon, and DeFiLlama responses. Parse raw response text before using payout-triggering values, and safely degrade invalid provider payloads.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Check the configured RefractOracle WASM spec against update_reading(coverage_type: u32, value: i128) during module initialization and fail startup on mismatch.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Poll each feed independently, using threshold distance, observed volatility, and provider rate-limit headers to adjust cadence. The scheduler backs off for quiet or quota-constrained feeds and keeps faster polling near triggers.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@drips-wave

drips-wave Bot commented Oct 21, 2026

Copy link
Copy Markdown

@proverbs31ziggo-a11y 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

…ion-hardening

# Conflicts:
#	README.md
#	src/oracle/oracle.controller.ts
#	src/oracle/oracle.gateway.ts
#	src/oracle/oracle.scheduler.ts
#	src/stellar/stellar.module.ts
@OxDev-max
OxDev-max merged commit cc06f42 into Refract-Protocol:main Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants