Open
Conversation
Add end-to-end retry mint capability for VP messages. Introduces a new API endpoint POST /:policyId/mint/:vpMessageId/retry (protected by POLICIES_POLICY_EXECUTE and POLICIES_POLICY_MANAGE) that calls PolicyEngine.retryMint. The flow retries failed mint/transfer operations for the specified VP message. Signed-off-by: Alex Piatakov <alex.piatakov@swirldslabs.com>
Introduce mint requests support across backend and frontend. Adds a new API endpoint GET /:policyId/mint-requests with pagination and filters (status, tokenId). On the frontend, a MintRequestsComponent was added to a policy viewer (tab shown for STANDARD_REGISTRY permission). UI supports filtering, paging and retrying failed mints. Signed-off-by: Alex Piatakov <alex.piatakov@swirldslabs.com>
Enhance API documentation for mint requests and related endpoints. Add concrete MINT_REQUEST example objects to improve Swagger UI and example payloads. Signed-off-by: Alex Piatakov <alex.piatakov@swirldslabs.com>
Signed-off-by: Alex Piatakov <alex.piatakov@swirldslabs.com>
Fix for the "Cannot read properties of null (reading 'dryRun')" error Signed-off-by: Alex Piatakov <alex.piatakov@swirldslabs.com>
When the user confirms "Retry", the API call fires in the background (fire-and-forget) and the grid refreshes immediately via loadData(), so the UI is not blocked. Signed-off-by: Alex Piatakov <alex.piatakov@swirldslabs.com>
Signed-off-by: Alex Piatakov <alex.piatakov@swirldslabs.com>
Clear any previous error on the mint request before setting processDate and saving, ensuring stale errors don't persist across retries Signed-off-by: Alex Piatakov <alex.piatakov@swirldslabs.com>
- Replace the Token ID filter with Account ID. - Adjust CSS classes and table column widths. - Change default ordering for mint requests from processDate to vpMessageId (DESC). Signed-off-by: Alex Piatakov <alex.piatakov@swirldslabs.com>
Role-based filtering for mint requests, where non-owner users now see only their own mint requests, but SR retain visibility of all requests Signed-off-by: Alex Piatakov <alex.piatakov@swirldslabs.com>
Prevent non-owners from retrying mint requests by validating policy.creator against the request owner in the policy engine and throwing a 403 error with a clear message. Add an ApiForbiddenResponse to the API docs for the retry endpoint. Also ensure the API gateway preserves existing error codes (only setting UNPROCESSABLE_ENTITY when none is present) so 403 errors propagate correctly. Signed-off-by: Alex Piatakov <alex.piatakov@swirldslabs.com>
Retry endpoint returns immediately after sync validation (ownership,
cooldown, in-progress); mint/transfer runs in the background.
MintService.retry / retryRequest gain a `detached` flag and return
{ warnings, message? } so clients see cooldown / already-in-progress
conditions instead of silent no-ops. BlockTreeGenerator uses detached
for the REST path; block-execution callers keep the sync path.
Swagger and docs updated.
Signed-off-by: Alex Piatakov <alex.piatakov@swirldslabs.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
Adds the Mint Event Retry feature. The policy owner gets a dedicated UI panel inside the Policy Viewer and a pair of REST endpoints to inspect these requests and retry any that failed, without resubmitting the original VP or re-running policy logic.
Feature summary
The Mint Requests tab in the Policy Viewer is rendered only for Standard Registry users. Non-SR users with POLICIES_POLICY_READ can still hit GET .../mint-requests programmatically, scoped to requests they own.
Documentation
mint-event-retry-docs.md
Related issue(s):
Closes #5926
Checklist