Task
Add a processAnchorRefund function to handle failed anchor transfer refunds.
Details
- Function signature:
processAnchorRefund(transactionId: string): Promise<RefundResult>
- Process refund for failed deposit/withdrawal
- Handle partial refunds if applicable
- Update transaction status appropriately
- Add RefundResult interface
Test
Run pnpm --filter @stellar-pay/anchor-service build to verify no TypeScript errors.
Task
Add a
processAnchorRefundfunction to handle failed anchor transfer refunds.Details
processAnchorRefund(transactionId: string): Promise<RefundResult>Test
Run
pnpm --filter @stellar-pay/anchor-service buildto verify no TypeScript errors.