Skip to content

feat: list_active_disputes, close_market creator auth, invite public guard, price tests#1235

Merged
Olowodarey merged 1 commit into
Arena1X:mainfrom
dotunv:feat/issues-1059-1055-1054-1061
Jun 27, 2026
Merged

feat: list_active_disputes, close_market creator auth, invite public guard, price tests#1235
Olowodarey merged 1 commit into
Arena1X:mainfrom
dotunv:feat/issues-1059-1055-1054-1061

Conversation

@dotunv

@dotunv dotunv commented Jun 27, 2026

Copy link
Copy Markdown

Implements 4 issues:

** Closes #1059 — Feature: list_active_disputes**

  • Added DataKey::ActiveDisputeList singleton
  • raise_dispute appends market_id to list, resolve_dispute removes it
  • New public query list_active_disputes() -> Vec
  • 4 tests: empty initially, includes raised, removed after resolve, insertion order preserved

** Closes #1055 — Test: close_market by non-creator/non-admin rejected**

  • Updated close_market to also allow the market creator
  • Tests: creator can close, admin can close third-party market, random third-party rejected

** Closes #1054 — Test: generate_invite_code on public market returns error**

  • Added guard in generate_invite_code to reject public markets (InvalidInput)
  • Tests: public market rejected, private market succeeds

Closes #1061 — Test: get_outcome_price after swap

  • Integration test: initial equal prices, swap from YES to NO, verify price direction and reserve invariant

…lic-market guard, and tests

- Arena1X#1059: Add DataKey::ActiveDisputeList, list_active_disputes query,
  maintain list in raise_dispute/resolve_dispute
- Arena1X#1055: Allow market creator to close_market (alongside admin/oracle),
  add tests for creator/admin/third-party auth paths
- Arena1X#1054: Reject generate_invite_code for public markets, add tests
  for public rejection and private success
- Arena1X#1061: Add integration test verifying get_outcome_price moves
  correctly after a swap and total reserves are preserved
@vercel

vercel Bot commented Jun 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
insight-arena-4rll Ready Ready Preview, Comment Jun 27, 2026 2:02am

@Olowodarey Olowodarey merged commit 07430d0 into Arena1X:main Jun 27, 2026
4 checks passed
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