Skip to content

feat(demo): transaction builder - #580

Merged
m-kus merged 2 commits into
02-25-feat_demo_privacy_pool_deploymentfrom
02-26-feat_demo_transaction_builder
Mar 4, 2026
Merged

m-kus merged 2 commits into
02-25-feat_demo_privacy_pool_deploymentfrom
02-26-feat_demo_transaction_builder

Conversation

@m-kus

@m-kus m-kus commented Feb 26, 2026 •

Copy link
Copy Markdown

TL;DR

Added a transaction builder interface that allows users to compose and execute multiple privacy pool operations in a single transaction, alongside the existing individual action buttons.

What changed?

  • Added a new TransactionBuilder component with support for batching deposit, transfer, withdraw, surplus, and invoke operations
  • Implemented useTransactionBuilder hook to handle batch transaction execution with automatic approval and proof generation
  • Added a view toggle between "Actions" and "Builder" modes in the action panel
  • Converted account selector from dropdown to tab-based interface for better UX
  • Added a register operation to both action panel and transaction builder
  • Enhanced styling with new CSS classes for tabs, builder interface, and operation management
  • Implemented localStorage persistence for active account selection
  • Removed the ability to add new accounts dynamically from the UI

How to test?

  1. Switch between "Actions" and "Builder" tabs in the right panel
  2. In Builder mode, add multiple operations (deposits, transfers, withdrawals) and execute them as a batch
  3. Try the new Register button in Actions mode
  4. Verify account selection persists across page refreshes
  5. Test the new tabbed account selector interface

Why make this change?

The transaction builder enables more complex privacy pool interactions by allowing users to compose multiple operations into a single transaction, which is more efficient and provides better privacy guarantees. The UI improvements make account management more intuitive and provide a cleaner interface for both simple actions and advanced batch operations.


This change is Reviewable

@m-kus
m-kus marked this pull request as ready for review February 26, 2026 12:34
@github-actions

github-actions Bot commented Feb 26, 2026 •

Copy link
Copy Markdown

Deploy preview for starknet-privacy-demo ready!

✅ Preview
https://starknet-privacy-demo-hjcp0f316-keep-starknet-strange.vercel.app

Built with commit 06319f1.
This pull request is being automatically deployed with vercel-action

@m-kus
m-kus force-pushed the 02-26-feat_demo_transaction_builder branch from c073154 to 0b99b2f Compare February 26, 2026 15:10
@m-kus
m-kus force-pushed the 02-25-feat_demo_privacy_pool_deployment branch 2 times, most recently from c08a52e to cb25718 Compare February 26, 2026 15:22
@m-kus
m-kus force-pushed the 02-26-feat_demo_transaction_builder branch from 0b99b2f to 35ff33c Compare February 26, 2026 15:22
@m-kus m-kus self-assigned this Feb 26, 2026
@m-kus
m-kus force-pushed the 02-26-feat_demo_transaction_builder branch from 35ff33c to a3615cb Compare March 4, 2026 13:23
@m-kus
m-kus force-pushed the 02-26-feat_demo_transaction_builder branch from a3615cb to 399bc4b Compare March 4, 2026 13:28
@m-kus
m-kus force-pushed the 02-26-feat_demo_transaction_builder branch from 399bc4b to f5e8d24 Compare March 4, 2026 13:57
@m-kus
m-kus force-pushed the 02-25-feat_demo_privacy_pool_deployment branch from 1d43a1c to 7b56e6b Compare March 4, 2026 13:57
@m-kus
m-kus merged commit b28e662 into 02-25-feat_demo_privacy_pool_deployment Mar 4, 2026
4 checks passed
@m-kus
m-kus deleted the 02-26-feat_demo_transaction_builder branch March 4, 2026 19:30
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