Skip to content

Add expense split feature and local snapshot persistence#11

Open
MaivaSoftwares wants to merge 2 commits intoTrac-Systems:mainfrom
MaivaSoftwares:main
Open

Add expense split feature and local snapshot persistence#11
MaivaSoftwares wants to merge 2 commits intoTrac-Systems:mainfrom
MaivaSoftwares:main

Conversation

@MaivaSoftwares
Copy link

Summary

  • Added InterSplit (P2P expense splitter) with sidechannel sync
  • Added contract-backed persistence + local fallback snapshots
  • Added browser UI for SC-Bridge control (no terminal required)
  • Added settlement export (text/json/csv)

Key Features

  • P2P expense ledger + balances + settlement suggestions
  • Persist/restore snapshots (contract state + local node fallback)
  • Web UI with chat, expense actions, assistant input
  • Demo-ready flow documented

How to Run

  1. pear run . --peer-store-name demo2 --msb-store-name demo2-msb --subnet-channel intersplit-demo --sidechannels trip-nyc --sc-bridge 1 --sc-bridge-token YOUR_TOKEN
  2. npm run ui
  3. Open http://127.0.0.1:5070 and connect to ws://127.0.0.1:49222

Demo

Notes

  • Persist can take 10–60s depending on validator latency.
  • Restore uses local node store fallback if contract state not confirmed.

Checklist

  • README updated (frontend tutorial + demo)
  • Trac address included

…enses

- Implemented ExpenseSplit class for handling expense tracking and settlements.
- Added commands for adding, listing, balancing, clearing, persisting, and restoring expenses.
- Integrated expense split functionality into the sidechannel communication.
- Updated README.md with details about the new expense split app and its commands.
- Created necessary configuration files for project setup in IntelliJ IDEA.
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.

1 participant