Add enhanced concurrency patterns, rate limiting, market management, and pipeline processing
This commit is contained in:
27
@prompts/transaction-decoding.md
Normal file
27
@prompts/transaction-decoding.md
Normal file
@@ -0,0 +1,27 @@
|
||||
You are an expert in Ethereum transaction processing and MEV optimization. I'm building an MEV bot that needs to efficiently decode and analyze Uniswap V3 swap transactions.
|
||||
|
||||
I need help with:
|
||||
|
||||
1. Decoding transaction calldata for Uniswap V3 swap functions
|
||||
2. Extracting token addresses and amounts from swap transactions
|
||||
3. Identifying the pool contract and fee tier from transaction data
|
||||
4. Calculating price impact of swaps using Uniswap V3 mathematics
|
||||
5. Detecting multi-hop swaps and complex routing patterns
|
||||
6. Efficiently processing large volumes of transactions
|
||||
7. Handling different versions of Uniswap contracts
|
||||
8. Working with Ethereum event logs for additional data
|
||||
|
||||
Please provide production-ready Go code that:
|
||||
- Uses the go-ethereum library for transaction processing
|
||||
- Implements efficient decoding of transaction data
|
||||
- Handles errors gracefully
|
||||
- Follows Go best practices
|
||||
- Includes comprehensive comments explaining the decoding process
|
||||
- Provides metrics for monitoring performance
|
||||
|
||||
The code should:
|
||||
- Accurately decode Uniswap V3 swap transactions
|
||||
- Extract all relevant data for MEV analysis
|
||||
- Handle various edge cases and error conditions
|
||||
- Process transactions with minimal latency
|
||||
- Include benchmarks for critical functions
|
||||
Reference in New Issue
Block a user