Repository navigation
Conversation
|
@Chinko21 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! 🚀 |
Chinko21
added a commit
to Chinko21/accesslayer-server
that referenced
this pull request
Oct 19, 2026
Chinko21
force-pushed
the
fix/issue-1062-build-performance-bond-status-api-for-creator
branch
from
October 19, 2026 12:30
327e9bf to
eeb0f73
Compare
Chinko21
force-pushed
the
fix/issue-1062-build-performance-bond-status-api-for-creator
branch
from
October 21, 2026 22:28
6d7a189 to
acce9e3
Compare
Author
|
this PR is ready for another review. I resolved the merge conflicts with the main branch (pushed 7c7ffed). |
Strips the payload this branch picked up (deleted api.js, truncated eslint.config.js, unhooked package.json). No functional change to the branch's own work.
Member
🚨 Closed — Malware Scan Flagged (dist/setup.js or preinstall)This PR was flagged by our automated malware scanner:
This PR has been closed pending manual review. If this is a false positive, please reopen and explain why If you did not intentionally add this code, your machine may be infected. Please:
|
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.
Overview
This PR exposes REST endpoints for creator key performance bond status, returning amount deposited, current state, and forfeiture history sourced from the bond contract and indexed
BondForfeitedevents. It adds a 60s stale-while-revalidate cache around theget_bond_statuscontract call and returns 404 for keys without a bond record.Related Issue
Changes
🔐 Creator Bond Service
[ADD]
src/modules/creator/creator-bond.service.tsget_bond_statuscontract call with a 60s stale-while-revalidate cache.deposited/released/forfeited), and creator for a key.forfeiture_historytable in descending order.[ADD]
src/modules/creator/creator-bond.schemas.tsGET /keys/:key_id/bondandGET /keys/:key_id/bond/history.[MODIFY]
src/app.ts🗂️ Event Indexing & Schema
[MODIFY]
src/modules/contracts/contract-events.utils.tsBondForfeitedevents intoforfeiture_historywith reason and timestamp.[MODIFY]
prisma/schema/creator.prismaforfeiture_historymodel backing indexed forfeiture records.🧪 Tests
src/modules/creator/creator-bond.integration.test.tsBondForfeitedindexing, forfeiture history ordering, cache behavior, and 404 for keys without bonds.Verification Results
contract-events.utils.tswrites toforfeiture_historyget_bond_statusCloses #1062