Skip to content

Add pause state readonly function#375

Merged
Mosas2000 merged 30 commits into
mainfrom
add-pause-state-readonly-function
Apr 29, 2026
Merged

Add pause state readonly function#375
Mosas2000 merged 30 commits into
mainfrom
add-pause-state-readonly-function

Conversation

@Mosas2000

Copy link
Copy Markdown
Owner

✅ All Acceptance Criteria Met
Exposed a direct pause-state read-only function

Added get-is-paused function to both tipstream-v2.clar and tipstream.clar
Returns simple (ok bool) response
Includes inline documentation
Updated frontend helpers and docs to use it

Updated admin-contract.js to call the new function
Updated pauseOperations.js constants
Added TypeScript type definitions
Enhanced error handling with custom error classes
Added coverage for the new read-only call

9 new contract tests (4 for v2, 5 for legacy)
23 frontend integration tests
All 108 contract tests passing
All 41 frontend tests passing

Closes #345

@Mosas2000 Mosas2000 merged commit b5609e4 into main Apr 29, 2026
4 of 8 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

Development

Successfully merging this pull request may close these issues.

Add a direct read-only contract function for the current pause state

1 participant