Repository navigation
feat(trustless): listar fianzas por rol y firmante y avisar al indexador - #99
Merged
Merged
Conversation
getEscrowsByRole y getEscrowsBySigner (con los filtros del Swagger; por defecto single-release y validadas en cadena) e indexTransaction (PUT /indexer/update-from-txhash), con los mismos nombres que la versión provisional de apps/api para cambiarla sin más. Refs: #94
CarlosJX7
requested review from
Diego-Matoss,
RicardoMatosR and
jzelada97
as code owners
October 26, 2026 08:59
This was referenced Oct 26, 2026
RicardoMatosR
approved these changes
Oct 26, 2026
RicardoMatosR
left a comment
Collaborator
There was a problem hiding this comment.
Revisado: getEscrowsByRole y getEscrowsBySigner con valores por defecto (single-release, validateOnChain), el cuerpo vacío da [] e indexTransaction valida el hash antes de llamar a la API. Tests incluidos y CI en verde.
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.
Qué cambia
Tres métodos nuevos en
createTrustlessClient, para queapps/apideje su versión provisional (apps/api/src/plan-a/client.ts, #93 y #97). Los nombres, los parámetros y los valores por defecto son los de esa versión, así que el cambio es directo.getEscrowsByRole(role, roleAddress, opts?)→GET /helper/get-escrows-by-role. Las fianzas de un casero son las deapprover; las de un inquilino, las dereceiver.getEscrowsBySigner(signer, opts?)→GET /helper/get-escrows-by-signer.optsadmite los filtros del Swagger (status,type,engagementId,title,isActive,validateOnChain, fechas, importes,orderBy,orderDirection,page,pageSize), con el tipoEscrowListQuery.type=single-releaseyvalidateOnChain=true, comogetEscrows; lo que se pase lo sustituye.[].indexTransaction(txHash)→PUT /indexer/update-from-txhash { txHash }. Avisa al indexador de TW de una transacción enviada por nuestra RPC o por el Relayer: su base de datos solo se actualiza sola con su propiosendTransaction(hallazgo de feat(api): plan A: fondear, aprobar, liberar y parar con passkeys #97). Un hash mal formado daRangeErrory no llega a la API.CLAUDE.mddel paquete: las listas y el aviso al indexador.Issue
Closes #94
Cómo probarlo
Checklist
cross-areaaprobada por el dueño):packages/trustlessdocs/INTERFACES.md: no