Features/issue 2 production oracle integration#11
Merged
hman38705 merged 4 commits intosolutions-plug:developfrom Feb 20, 2026
Merged
Conversation
- Add OracleConfig fields for freshness and confidence validation - Implement price validation with configurable staleness threshold - Add confidence check with basis points configuration - Auto-resolve markets on successful price validation - Auto-dispute markets on validation failures - Add comprehensive test coverage for price validation - Add resolve_with_oracle() public API function - Add detailed documentation in PYTH_INTEGRATION.md Resolves solutions-plug#2
5 tasks
Mac-5
added a commit
to Mac-5/predictIQ
that referenced
this pull request
Feb 21, 2026
- Add ReferrerBalance storage to track referrer rewards - Modify place_bet to accept optional referrer parameter - Calculate 10% of protocol fee as referral reward - Add claim_referral_rewards function for reward withdrawal - Create comprehensive test suite for referral functionality - Update all existing tests to support new place_bet signature Resolves solutions-plug#11
soma-enyi
added a commit
to soma-enyi/predictIQ
that referenced
this pull request
Feb 24, 2026
…lutions-plug#11) - Add centralized error handling middleware with standardized error format - Integrate Pino logging with pretty printing in dev and JSON in prod - Add Sentry error tracking for unhandled exceptions - Implement Prometheus metrics collection (requests, errors, latency, connections) - Create health check endpoints (/health, /health/ready, /health/live) - Add request tracing with automatic slow query detection (>1s) - Configure Prometheus alerting rules (6 critical alerts) - Create Grafana dashboard template - Add Docker and docker-compose support for full monitoring stack - Include comprehensive documentation and quick reference guides All acceptance criteria met: ✅ Errors handled consistently ✅ Error tracking captures issues ✅ Health checks work ✅ Metrics collected ✅ Alerts configured ✅ Request tracing implemented ✅ Slow queries logged
soma-enyi
added a commit
to soma-enyi/predictIQ
that referenced
this pull request
Feb 24, 2026
Mystery-CLI
added a commit
to Mystery-CLI/predictIQ
that referenced
this pull request
Mar 27, 2026
- Replace client.transfer() (host panic) with client.try_transfer() in safe_transfer() so failures are caught as Result instead of crashing the host environment - Map both invocation-level and contract-level errors to ErrorCode::TransferFailed (= 52) - Emit xfer_fail event (topics: [xfer_fail, from, to], data: (token_address, amount)) on failure for indexer observability - Add TransferFailed = 52 to ErrorCode enum - Add test_transfer_failure_returns_error_not_panic to verify a zero-balance bettor returns Err instead of a host panic Closes solutions-plug#11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2