This repository contains a full-stack blockchain integration project for interacting with Hitvamp vaults. It includes smart contracts, deployment scripts, and a modern frontend for user interaction.
frontend/ # Next.js frontend application
Hitvamp/ # Solidity smart contracts and Foundry tests
- Built with Next.js and TypeScript
- Located in the
frontend/directory - Contains UI components for wallet connection, deposit, withdrawal, and dashboard
- Uses modern React patterns and hooks
- Located in the
Hitvamp/directory - Written in Solidity
- Includes contracts for vault locking, yield management, and interfaces
- Uses Foundry for testing and deployment
fixedLockVault.sol: Main vault contractHitvampLock.sol: Handles Hitvamp-specific locking logicyieldLockManager.sol: Manages yield and lock operationsinterfaces/: ERC20 and router interfaceslibraries/: Helper libraries
scripts/deploy.s.sol: Deployment script for Foundry
test/unit/: Unit tests for contractstest/integration/: Integration tests for contract flows
- Node.js (for frontend)
- Foundry (for Solidity development)
- Git
-
Clone the repository:
git clone <repo-url> cd <repo-root>
-
Install frontend dependencies:
cd frontend npm install -
Install Foundry: Follow instructions at Foundry Book
cd frontend
npm run devThe app will be available at http://localhost:3000.
cd Hitvamp
forge testEdit scripts/deploy.s.sol as needed, then run:
forge script scripts/deploy.s.sol --broadcast --rpc-url <YOUR_RPC_URL>Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.