Skip to content

Add admin controls and configurable settings - #205

Merged
oluwaseyi1996-netizen merged 7 commits into
vatal-system:mainfrom
ngoziobidigwe212:main
Oct 20, 2026
Merged

oluwaseyi1996-netizen merged 7 commits into
vatal-system:mainfrom
ngoziobidigwe212:main

Conversation

@ngoziobidigwe212

Copy link
Copy Markdown

Closes #158
Closes #159
Closes #160
Closes #161

Summary

Adds the four requested contract fixes: admin-controlled reputation escrow rotation; zero-weight ratings no longer consume a rater/ratee aggregate slot; admin-managed dispute panel and threshold updates; and a configurable escrow dispute timeout (seven days by default). Panel changes invalidate existing approvals, and timeout changes apply only to future disputes. Contract references, deployment initialization, and timeout messaging are synchronized.

Related issue

No issue numbers were supplied.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Refactor / tests

How was it tested?

  • source "$HOME/.cargo/env" && cd contracts && cargo fmt --all && cargo test — passed (24 dispute unit, 59 escrow unit, 21 reputation unit, and 3 integration tests).
  • source "$HOME/.cargo/env" && cd contracts && cargo clippy --all-targets -- -D warnings — passed.
  • cd backend && npm test -- src/__tests__/contractErrors.test.ts — passed (9 tests).
  • cd backend && npx eslint src/lib/contractErrors.ts src/openapi.ts src/__tests__/contractErrors.test.ts — passed.
  • cd frontend && npm run lint — passed.
  • cd frontend && npx tsc --noEmit — passed.
  • cd frontend && npm run build — passed.
  • cd backend && npm run lint — failed on 39 existing lint errors in unrelated files.
  • cd backend && npm run build — failed on existing type errors in backend/src/routes/reputation.ts (lines 158 and 164), unrelated to these changes.

Checklist

  • Contracts: cd contracts && cargo fmt --all && cargo clippy --all-targets -- -D warnings && cargo test
  • Frontend: cd frontend && npm run lint && npx tsc --noEmit && npm run build
  • New contract functions have tests for both success and failure paths
  • Behaviour changes are reflected in README.md / CONTRIBUTING.md
  • Contract reference tables in README.md / CONTRIBUTING.md still match contracts/*/src/lib.rs (signatures, preconditions, same function set in both)
  • No secrets committed; testnet only

Wave complexity

  • Trivial
  • Medium
  • High

ngoziobidigwe212 and others added 6 commits October 20, 2026 13:12
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…meout-config

Add admin controls and configurable dispute settings
@drips-wave

drips-wave Bot commented Oct 20, 2026

Copy link
Copy Markdown

@ngoziobidigwe212 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

@oluwaseyi1996-netizen
oluwaseyi1996-netizen merged commit 1e6bd84 into vatal-system:main Oct 20, 2026
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