Skip to content

Add get_wallet_status view function to wallet-status contract #963

Description

@Uyoxy

Description

Priority P3

Type / Area feature, contracts, soroban

Suggested Complexity Low

Summary Add a get_wallet_status(owner: Address) -> Symbol view function returning the current wallet status (e.g. active, frozen).

Problem No single view function exists to query the current status of a wallet address.

Scope

In Scope

Add get_wallet_status to contracts/wallet-status/src/lib.rs

Out of Scope

Changing status transition logic

Files contracts/wallet-status/src/lib.rs contracts/wallet-status/src/test.rs

Acceptance Criteria

Returns correct status symbol
Test covers at least two different status values
cargo test -p wallet-status passes

How to Test cargo test -p wallet-status

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

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