A comprehensive tool for tracking ShapeShift DAO affiliate fees from Portals Protocol bridge transactions across multiple EVM chains.
- Multi-Chain Support: Ethereum, Polygon, Optimism, Arbitrum, Base
- Real-Time Monitoring: Live transaction scanning and affiliate fee detection
- CSV Data Storage: Efficient CSV-based data management
- Affiliate Fee Tracking: Automatic detection of ShapeShift partnership transactions
- Block Tracking: Smart block range management to avoid reprocessing
# Install dependencies
./install.sh
# Run the listener
python run_portals.py
# Quick test
./portals- Portals Router:
0xbf5A7F3629fB325E2a8453D595AB103465F75E62 - ShapeShift Treasury:
0x90A48D5CF7343B08dA12E067680B4C6dbfE551Be - Portal Events: Cross-chain bridge transactions with affiliate partnerships
- Affiliate Fees: Token transfers to ShapeShift DAO
portals_listener.py- Core listener with CSVPortalsListener classrun_portals.py- Interactive launchercsv_data/- Data storage directory- Analysis scripts for transaction investigation
- Transactions CSV: All detected Portals transactions
- Block Tracker: Processed block ranges
- Affiliate Events: ShapeShift partnership transactions
from portals_listener import CSVPortalsListener
# Initialize listener
listener = CSVPortalsListener()
# Scan for events
events = listener.fetch_portals_events("ethereum", 23217750, 23217760)
# Process transactions
listener.process_transactions("ethereum", 23217750, 23217760)- Python 3.8+
- Web3.py
- eth-abi
- python-dotenv
- Alchemy API key
- Requires valid Alchemy API key in
.envfile - Processes transactions in chunks to avoid RPC rate limits
- Tracks last processed block to avoid reprocessing
- CSV-based storage for simplicity and portability
MIT License - See LICENSE file for details