Skip to content

Add get_refund_status view to refunds contract #979

Description

@Uyoxy

Description

Priority P3

Type / Area feature, contracts, soroban

Suggested Complexity Low

Summary Add a get_refund_status(refund_id: u64) -> Symbol view function returning the status of a refund request (e.g. pending, processed, rejected).

Problem No view function exposes the current status of a specific refund request.

Scope

In Scope

Add get_refund_status to contracts/refunds.rs

Out of Scope

Changing refund processing logic

Files contracts/refunds.rs

Acceptance Criteria

Returns correct status symbol
Test covers at least two status values
Workspace builds clean

How to Test cargo test --workspace -- refunds

PR Requirements

CI checks must pass
cargo test passes
Include screenshots of test results
Link issue using Closes #ISSUE_NUMBER

Project Links Repository: https://github.com/stellarspend/stellarspend-contracts Community: https://t.me/+7RpAgpVggOphNzJk

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions