hello
A lightweight web interface for managing limit orders on 9mm Pro LP positions on PulseChain.
- π Connect Wallet - MetaMask integration for PulseChain
- π View Positions - See all your LP positions with current prices and ranges
- π― Create Limit Orders - Set automated limit orders for your positions
- π Monitor Orders - Track active orders and their progress
- β Cancel Orders - Cancel orders and get your deposit back
- π Auto-refresh - Data updates every 30 seconds
- Pure HTML/CSS/JavaScript - No build tools required
- Web3.js - Ethereum/PulseChain interaction
- MetaMask - Wallet connection
- Static hosting ready - Deploy anywhere (GitHub Pages, Netlify, Vercel, etc.)
-
Simple HTTP Server (Python)
cd website python3 -m http.server 8000Then open: http://localhost:8000
-
Simple HTTP Server (Node.js)
cd website npx http-server -p 8000Then open: http://localhost:8000
-
PHP Built-in Server
cd website php -S localhost:8000Then open: http://localhost:8000
- Create a new repository
- Push the
websitefolder contents - Enable GitHub Pages in repository settings
- Access at:
https://yourusername.github.io/repo-name
- Create account at netlify.com
- Drag and drop the
websitefolder - Site will be live instantly
- Custom domain optional
- Create account at vercel.com
- Import repository or drag/drop folder
- Deploy with one click
- Custom domain optional
website/
βββ index.html # Main HTML page
βββ css/
β βββ style.css # Styling
βββ js/
β βββ config.js # Configuration and constants
β βββ contract.js # Smart contract interactions
β βββ wallet.js # Wallet connection management
β βββ positions.js # LP positions functionality
β βββ orders.js # Orders functionality
β βββ app.js # Main application logic
βββ README.md # This file
Edit js/config.js to update:
- Contract addresses
- Network settings
- UI preferences
- Gas payment amounts
-
Connect Wallet
- Click "Connect Wallet"
- Approve MetaMask connection
- Switch to PulseChain if needed
-
View Your Positions
- See all LP positions
- Check current prices and ranges
- View position details
-
Create Limit Order
- Click "Create Limit Order" on a position
- Set target price
- Choose direction (above/below)
- Set slippage tolerance
- Approve NFT (one-time per position)
- Confirm order creation (costs 3,000 PLS deposit)
-
Monitor Orders
- Switch to "Active Orders" tab
- See order status and progress
- Cancel orders if needed (refunds deposit)
The website interacts with these contract functions:
orders(tokenId)- Get order detailspositions(tokenId)- Get LP position info
createOrder()- Create a new limit order (costs 3,000 PLS)cancelOrder()- Cancel an order (refunds deposit)approve()- Approve NFT to contract (one-time)
- β All transactions require user approval in MetaMask
- β No private keys are stored or transmitted
- β Contract addresses are hardcoded and verified
- β All data is read directly from blockchain
β οΈ Always verify contract addresses before approvingβ οΈ Test with small amounts first
- β Chrome/Brave (Recommended)
- β Firefox
- β Edge
- β Safari (with MetaMask extension)
- β Mobile browsers (MetaMask app browser only)
- Install MetaMask browser extension
- Refresh the page
- Click "Switch Network" when prompted
- Or manually switch to PulseChain in MetaMask
- Check you have enough PLS for gas
- Verify order creation requires 3,000 PLS deposit
- Check slippage tolerance if market is volatile
- Ensure you have LP positions on 9mm DEX
- Refresh the page
- Check you're connected with correct wallet
- Add UI - Update
index.htmlandcss/style.css - Add Logic - Create/update JavaScript files
- Test - Test locally before deploying
Edit js/contract.js to:
- Add new contract functions
- Update ABIs
- Add new contract interactions
Edit css/style.css:
- Change colors in
:rootvariables - Modify component styles
- Update responsive breakpoints
This site requires minimal maintenance:
- β No database - All data from blockchain
- β No backend - Pure frontend static site
- β No build process - Direct HTML/CSS/JS
- β No dependencies - CDN for Web3.js only
- β Auto-updates - Reads current blockchain state
The only maintenance needed is updating contract addresses if you deploy new versions.
MIT License - Feel free to modify and use as needed.
For issues or questions:
- Check browser console for errors
- Verify MetaMask is connected
- Ensure you're on PulseChain network
- Check contract addresses are correct