A React-based visualization tool for exploring and analyzing transaction paths in the Circles network. This application provides an interactive interface to visualize token transfer paths between addresses and analyze maximum flow capacity.
- React 18.2
- Cytoscape.js with Dagre layout
- Tailwind CSS
- Radix UI components
- Lucide React icons
- Vite build tool
- Node.js (version 16 or higher)
- npm or yarn package manager
- Clone the repository:
git clone [repository-url]
cd flow-visualization
- Install dependencies:
npm install
- Start the development server:
npm run dev
src/
├── components/
│ ├── ui/
│ │ ├── button.jsx
│ │ ├── card.jsx
│ │ ├── header.jsx
│ │ ├── input.jsx
│ │ └── transaction_table.jsx
│ └── FlowVisualization.jsx
├── lib/
│ └── utils.js
├── App.jsx
└── main.jsx
The application connects to a backend API endpoint for path finding. The default endpoint is /api/findPath
. API parameters include:
from
: Source addressto
: Destination addressfromTokens
: (Optional) Source token addresstoTokens
: (Optional) Destination token addressamount
: Transfer amount (in wei)
npm run build
npm run test
npm run lint
This project is licensed under the MIT License - see the LICENSE file for details.