1.4 KiB
1.4 KiB
Action Layer UI Specification
Overview
UI specifications for swap, bridge, and wallet interaction interfaces.
Swap Interface
Components
- Token selector (from/to)
- Amount input
- Swap quote display
- Slippage settings
- Gas estimate
- Execute button
Flow
- Select tokens
- Enter amount
- Display quote
- Adjust slippage (optional)
- Connect wallet
- Approve token (if needed)
- Execute swap
- Show transaction status
Bridge Interface
Components
- Chain selector (from/to)
- Token selector
- Amount input
- Bridge quote display
- Estimated time
- Execute button
Flow
Similar to swap with chain selection
Wallet Connection UI
Connection Options
- WalletConnect
- Browser extension (MetaMask, etc.)
- Hardware wallet
- Embedded wallet
UI Elements
- Connection modal
- Wallet list
- Connection status
- Disconnect option
Transaction Confirmation Flows
Confirmation Steps
- Review transaction details
- Show risk warnings (if any)
- Gas fee display
- Final confirmation
- Transaction pending
- Success/failure status
Portfolio View
Components
- Total portfolio value
- Token list with balances
- Value breakdown
- Transaction history
- Quick actions (swap, bridge, send)
References
- Frontend Architecture: See
frontend-architecture.md - Swap Engine: See
../actions/swap-engine.md - Bridge Engine: See
../actions/bridge-engine.md