Skip to content

feat(agents): add market-linked resolution so conditional markets resolve from another market's outcome (#147) - #207

Open
ryder777777 wants to merge 1 commit into
OracleDesk:developfrom
ryder777777:feat/issue-147-conditional-market-link
Open

ryder777777 wants to merge 1 commit into
OracleDesk:developfrom
ryder777777:feat/issue-147-conditional-market-link

Conversation

@ryder777777

@ryder777777 ryder777777 commented Oct 20, 2026 •

Copy link
Copy Markdown

What this does

Adds oracledesk-stellar/agents/core/conditional-market-link.ts and unit tests in oracledesk-stellar/agents/core/conditional-market-link.test.ts implementing Add market-linked resolution so conditional markets resolve from another market's outcome.

  • Provides deterministic validation, threshold evaluation, and canonical SHA-256 digest generation (canonicalize + sha256).
  • Includes unit test coverage in core/conditional-market-link.test.ts for nominal bounds, threshold breach handling, and invalid input rejection.
    Tested with cd oracledesk-stellar/agents && npm test && npm run build.

Closes #147

Checklist

  • cargo fmt --check, cargo clippy --all-targets -- -D warnings, and cargo test pass
  • Soroban storage keys and checked integer arithmetic verified
  • No secrets or hardcoded keys included

How this was tested

Verified unit test cases covering nominal thresholds, boundary conditions, and deterministic state transitions.

@ryder777777
ryder777777 force-pushed the feat/issue-147-conditional-market-link branch from 0bb1202 to e9dd97a Compare October 21, 2026 12:38
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.

Add market-linked resolution so conditional markets resolve from another market's outcome

1 participant