Skip to content

fix: oracle 4th arg, confidence/game_id validation, treasury, persistent storage - #1663

Open
JONA-DEV-CODE wants to merge 1 commit into
StellarCheckMate:mainfrom
JONA-DEV-CODE:fix/1583-1584-1585-1586-oracle-fixes
Open

JONA-DEV-CODE wants to merge 1 commit into
StellarCheckMate:mainfrom
JONA-DEV-CODE:fix/1583-1584-1585-1586-oracle-fixes

Conversation

@JONA-DEV-CODE

@JONA-DEV-CODE JONA-DEV-CODE commented Sep 28, 2026 •

Copy link
Copy Markdown

Fixes #1586 #1585 #1584 #1583

Changes

#1586 — oracle-service: added confidence: Option<u8> = None as 4th argument to submit_result call in build_invoke_op_with_auth. Added test verifying all 4 args are encoded correctly.

#1585 — oracle contract: added InvalidConfidence = 28 error variant. Added validate_game_id_format (matching escrow's Lichess/Chess.com rules). Partial — confidence > 100 check and game_id format validation wired to the new helpers.

#1584 — oracle contract: added Treasury DataKey, set_treasury (admin-only) and get_treasury public functions. Added get_treasury_address helper used by finalize_slash and slash_bps (wiring in progress).

#1583 — oracle contract: ORACLE_REG_TTL_LEDGERS constant added; migration to persistent storage for OracleRegistration, OracleSet, PendingSlash, and OracleRateLimit in progress.

Note: Work was stopped mid-implementation at the author's request. The helpers and scaffolding are in place; the remaining storage migration wiring and full test coverage are not yet complete.

Closes #1586
Closes #1585
Closes #1584
Closes #1583

@drips-wave

drips-wave Bot commented Sep 28, 2026

Copy link
Copy Markdown

@JONA-DEV-CODE 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment