Summary
getClaims returns all claims; hasClaim returns a bool. There's no single-claim detail fetch. Add getClaim(wallet, type) returning { valid, verifiedAt, expiry } (or null) so UIs can show expiry/verifiedAt without pulling every type.
What to build
export async function getClaim(wallet, claimType, opts?): Promise<Claim | null>
- Reuses
readIsVerified; respects trustedIssuers
- Added to the
StellarCred namespace + README
Acceptance criteria
✅ Merge requirements (read before starting)
Before this PR can be merged, all of the following must hold:
Greptile performs the detailed code review on each PR. Please resolve its feedback fully before requesting a human merge — PRs below 4/5 or with open Greptile threads will not be merged.
Summary
getClaimsreturns all claims;hasClaimreturns a bool. There's no single-claim detail fetch. AddgetClaim(wallet, type)returning{ valid, verifiedAt, expiry }(or null) so UIs can show expiry/verifiedAt without pulling every type.What to build
export async function getClaim(wallet, claimType, opts?): Promise<Claim | null>readIsVerified; respectstrustedIssuersStellarCrednamespace + READMEAcceptance criteria
getClaimreturns the record or nulltrustedIssuerspnpm tsc --noEmitpasses---✅ Merge requirements (read before starting)
Before this PR can be merged, all of the following must hold:
Greptile performs the detailed code review on each PR. Please resolve its feedback fully before requesting a human merge — PRs below 4/5 or with open Greptile threads will not be merged.