Skip to content

feat: add local swap history and receipt views#26

Open
claytonlin1110 wants to merge 1 commit intoentrius:testfrom
claytonlin1110:feat/cli-swap-history-receipts
Open

feat: add local swap history and receipt views#26
claytonlin1110 wants to merge 1 commit intoentrius:testfrom
claytonlin1110:feat/cli-swap-history-receipts

Conversation

@claytonlin1110
Copy link
Copy Markdown

Summary

  • Add a local swap history persistence layer at ~/.allways/swap_history.json via history_store.py.
  • Track swap lifecycle transitions from existing CLI flows (swap now, swap resume, swap post-tx, and view swap/watch path).
  • Add new CLI commands:
    -- alw view history [--limit N] [--status ...]
    -- alw view receipt <swap_id>

Closes #21

Why

Resolved swaps are removed from on-chain active storage, which makes it hard for users to review past swaps. This PR provides a practical local-first history/receipt UX without contract changes.

User Impact

  • Users can now inspect local swap history even after on-chain cleanup of resolved swaps.
  • Users can retrieve a local receipt by swap_id for support/debugging/accounting.

@claytonlin1110
Copy link
Copy Markdown
Author

@LandynDev Would you please review when you have a chance ?

@claytonlin1110 claytonlin1110 force-pushed the feat/cli-swap-history-receipts branch from 6610e48 to 8cac218 Compare April 15, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add local swap history and receipt commands

1 participant