refactor: move all remaining files to orig/ directory
Completed clean root directory structure: - Root now contains only: .git, .env, docs/, orig/ - Moved all remaining files and directories to orig/: - Config files (.claude, .dockerignore, .drone.yml, etc.) - All .env variants (except active .env) - Git config (.gitconfig, .github, .gitignore, etc.) - Tool configs (.golangci.yml, .revive.toml, etc.) - Documentation (*.md files, @prompts) - Build files (Dockerfiles, Makefile, go.mod, go.sum) - Docker compose files - All source directories (scripts, tests, tools, etc.) - Runtime directories (logs, monitoring, reports) - Dependency files (node_modules, lib, cache) - Special files (--delete) - Removed empty runtime directories (bin/, data/) V2 structure is now clean: - docs/planning/ - V2 planning documents - orig/ - Complete V1 codebase preserved - .env - Active environment config (not in git) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
24
orig/@prompts/arbitrum-monitoring.md
Normal file
24
orig/@prompts/arbitrum-monitoring.md
Normal file
@@ -0,0 +1,24 @@
|
||||
You are an expert in Ethereum and Arbitrum blockchain development. I'm building an MEV bot in Go that needs to monitor the Arbitrum sequencer for potential swap transactions.
|
||||
|
||||
I need help with:
|
||||
|
||||
1. Setting up a connection to an Arbitrum node (both RPC and WebSocket)
|
||||
2. Efficiently monitoring new blocks as they are added to the chain
|
||||
3. Monitoring the mempool for pending transactions
|
||||
4. Identifying transactions that interact with Uniswap-like contracts
|
||||
5. Decoding transaction data to extract swap parameters
|
||||
6. Handling network errors and reconnections gracefully
|
||||
|
||||
Please provide production-ready Go code that:
|
||||
- Uses the go-ethereum library
|
||||
- Implements efficient polling or event-driven monitoring
|
||||
- Handles errors gracefully
|
||||
- Follows Go best practices
|
||||
- Is optimized for performance
|
||||
- Includes comprehensive comments
|
||||
|
||||
The code should:
|
||||
- Connect to the Arbitrum mainnet RPC endpoint (https://arb1.arbitrum.io/rpc)
|
||||
- Monitor for transactions to common DEX contract addresses
|
||||
- Extract function signatures and parameters from transaction data
|
||||
- Decode swap function calls to get token addresses and amounts
|
||||
Reference in New Issue
Block a user