Skip to content

[Frontend] Replace local vault balance mutations with confirmed chain state #11

Description

@grantfox-oss

Files affected (5+): Frontend/src/hooks/useVault.ts, Frontend/src/lib/stellar.ts, Frontend/src/lib/api.ts, Frontend/src/stores/index.ts, Frontend/src/types/index.ts, Frontend/src/features/vaults/CreateVault.tsx, Frontend/src/features/vaults/VaultList.tsx, Frontend/src/features/vaults/VaultDetail.tsx
Description: useVault generates random IDs and directly changes local balances without creating or confirming a Soroban transaction.
Acceptance criteria:

Create vaults and deposits through wallet-signed transactions.

Show pending, failed, and confirmed transaction states.

Refresh vault state from authoritative backend/chain sources.

Prevent duplicate submission and optimistic double counting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions