Skip to content

Features/issue 2 production oracle integration#11

Merged
hman38705 merged 4 commits intosolutions-plug:developfrom
chukwudiikeh:features/issue-2-production-oracle-integration
Feb 20, 2026
Merged

Features/issue 2 production oracle integration#11
hman38705 merged 4 commits intosolutions-plug:developfrom
chukwudiikeh:features/issue-2-production-oracle-integration

Conversation

@chukwudiikeh
Copy link
Copy Markdown
Contributor

Closes #2

chukwudiikeh and others added 4 commits February 20, 2026 03:18
- 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
@hman38705 hman38705 merged commit a40073a into solutions-plug:develop Feb 20, 2026
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
@hman38705 hman38705 mentioned this pull request Feb 23, 2026
6 tasks
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants