NOTE FOR REVIEWERS : Build Instruction
The Warthog Wallet Extension is a feature-rich browser extension for seamless interaction with the Warthog Network. Built for modern browsers, it provides a secure, efficient, and user-friendly interface for managing your Warthog assets.
- ⚡ Modern Tech Stack: Built with React.js 18.3.1 and TypeScript for a robust and scalable architecture.
- 🎨 Tailwind CSS: Ensures a sleek and responsive design for all screen sizes.
- 🔒 Secure: Optimized for privacy and secure data handling.
- 🌐 Web3 Ready: Compatible with decentralized applications in the Warthog ecosystem.
- 📱 Fully Responsive: Offers a seamless experience across devices.
Follow these steps to install and run the Warthog Wallet Extension:
-
Clone the repository:
git clone https://github.com/warthog-network/warthog-extension.git cd warthog-wallet-extension -
Install dependencies:
npm install
-
Set up environment variables:
cp .env.sample .env
Edit
.envfile with your values. -
Start the development server:
npm run dev
-
Build the extension for production:
npm run build
Create a .env file from .env.sample:
- VITE_APP_ENCRYPTION_KEY: Encryption key for secure data
- VITE_APP_COINGECKO_API_URL: CoinGecko API for WART price (USD)
- VITE_APP_XEGGEX_API_URL: Legacy Xeggex API (deprecated)
The extension's configuration is managed by the public/manifest.json file. This file defines key settings such as permissions, browser compatibility, and entry points.
To build and package the extension, run:
npm run build-
Navigate to the Extension Management page:
- Open
chrome://extensionsin your browser. - Alternatively, access it via the Chrome menu:
More Tools > Extensions.
- Open
-
Enable Developer Mode:
- Toggle the Developer mode switch at the top-right of the Extensions page.
-
Load the unpacked extension:
- Click the Load unpacked button.
- Select the
buildfolder from the project directory.
The extension will now be loaded and ready for use.
- Ensure you’re using Node.js 22.x or higher.
- Follow the coding standards defined in the project’s
.eslintrcand.prettierrcconfiguration files.
Explore additional resources to enhance your development experience: