{ "high_value_swaps": [ { "name": "uniswap_v3_usdc_weth_1m", "description": "Uniswap V3 USDC/WETH swap - $1M+ transaction", "tx_hash": "0xc6962004f452be9203591991d15f6b388e09e8d0", "block_number": 150234567, "protocol": "UniswapV3", "function_signature": "0x414bf389", "function_name": "exactInputSingle", "router": "0xE592427A0AEce92De3Edee1F18E0157C05861564", "pool": "0xC6962004f452bE9203591991D15f6b388e09E8D0", "token_in": "0xaf88d065e77c8cC2239327C5eDb3A432268e5831", "token_out": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1", "amount_in": "1000000000000", "amount_out_minimum": "380000000000000000", "fee": 500, "gas_used": 150000, "gas_price": "100000000", "expected_events": [ { "type": "Swap", "pool": "0xC6962004f452bE9203591991D15f6b388e09E8D0", "amount0": "-1000000000000", "amount1": "385123456789012345", "sqrt_price_x96": "79228162514264337593543950336", "liquidity": "12345678901234567890", "tick": -195000 } ] }, { "name": "sushiswap_v2_weth_arb_500k", "description": "SushiSwap V2 WETH/ARB swap - $500K transaction", "tx_hash": "0x1b02da8cb0d097eb8d57a175b88c7d8b47997506", "block_number": 150234568, "protocol": "SushiSwap", "function_signature": "0x38ed1739", "function_name": "swapExactTokensForTokens", "router": "0x1b02dA8Cb0d097eB8D57A175b88c7D8b47997506", "token_in": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1", "token_out": "0x912CE59144191C1204E64559FE8253a0e49E6548", "amount_in": "150000000000000000000", "amount_out_minimum": "45000000000000000000000", "path": ["0x82aF49447D8a07e3bd95BD0d56f35241523fBab1", "0x912CE59144191C1204E64559FE8253a0e49E6548"], "gas_used": 120000, "gas_price": "100000000" }, { "name": "1inch_aggregator_multi_dex_2m", "description": "1inch aggregator multi-DEX arbitrage - $2M transaction", "tx_hash": "0x1111111254eeb25477b68fb85ed929f73a960582", "block_number": 150234569, "protocol": "1Inch", "function_signature": "0x7c025200", "function_name": "swap", "router": "0x1111111254EEB25477B68fb85Ed929f73A960582", "complex_routing": true, "total_amount_in": "2000000000000000000000", "gas_used": 350000, "gas_price": "150000000" } ], "complex_multi_hop": [ { "name": "uniswap_v3_multi_hop_weth_usdc_arb", "description": "Uniswap V3 multi-hop: WETH -> USDC -> ARB", "tx_hash": "0xe592427a0aece92de3edee1f18e0157c05861564", "block_number": 150234570, "protocol": "UniswapV3", "function_signature": "0xc04b8d59", "function_name": "exactInput", "path_encoded": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1000bb8af88d065e77c8cc2239327c5edb3a432268e5831000bb8912ce59144191c1204e64559fe8253a0e49e6548", "amount_in": "50000000000000000000", "amount_out_minimum": "75000000000000000000000", "expected_hops": 2 }, { "name": "camelot_dex_stable_swap", "description": "Camelot DEX stable swap USDC/USDT", "tx_hash": "0xc873fecd354f5a56e00e710b90ef4201db2448d", "block_number": 150234571, "protocol": "Camelot", "function_signature": "0x38ed1739", "function_name": "swapExactTokensForTokens", "token_in": "0xaf88d065e77c8cc2239327c5edb3a432268e5831", "token_out": "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9", "amount_in": "1000000000000", "amount_out_minimum": "999500000000", "stable_swap": true } ], "failed_transactions": [ { "name": "failed_slippage_exceeded", "description": "Transaction failed due to slippage exceeded", "tx_hash": "0xfailed1234567890123456789012345678901234", "block_number": 150234572, "status": 0, "revert_reason": "Too much slippage", "gas_used": 45000, "protocol": "UniswapV3", "should_parse": false }, { "name": "failed_insufficient_balance", "description": "Transaction failed due to insufficient balance", "tx_hash": "0xfailed2345678901234567890123456789012345", "block_number": 150234573, "status": 0, "revert_reason": "Insufficient balance", "gas_used": 21000, "should_parse": false } ], "edge_cases": [ { "name": "zero_value_transaction", "description": "Zero value token swap", "tx_hash": "0xzero12345678901234567890123456789012345", "amount_in": "0", "should_validate": false }, { "name": "max_uint256_amount", "description": "Transaction with max uint256 amount", "tx_hash": "0xmax123456789012345678901234567890123456", "amount_in": "115792089237316195423570985008687907853269984665640564039457584007913129639935", "should_handle_overflow": true }, { "name": "unknown_token_addresses", "description": "Swap with unknown token addresses", "tx_hash": "0xunknown1234567890123456789012345678901", "token_in": "0x1234567890123456789012345678901234567890", "token_out": "0x0987654321098765432109876543210987654321", "should_resolve_symbols": false } ], "mev_transactions": [ { "name": "sandwich_attack_frontrun", "description": "Sandwich attack front-running transaction", "tx_hash": "0xsandwich1234567890123456789012345678901", "block_number": 150234574, "tx_index": 0, "protocol": "UniswapV3", "amount_in": "10000000000000000000", "mev_type": "sandwich_frontrun", "expected_victim_tx": "0xvictim12345678901234567890123456789012", "expected_profit_estimate": 50000000000000000 }, { "name": "sandwich_attack_backrun", "description": "Sandwich attack back-running transaction", "tx_hash": "0xsandwich2345678901234567890123456789012", "block_number": 150234574, "tx_index": 2, "protocol": "UniswapV3", "amount_out": "9950000000000000000", "mev_type": "sandwich_backrun", "expected_profit": 48500000000000000 }, { "name": "arbitrage_opportunity", "description": "Cross-DEX arbitrage transaction", "tx_hash": "0xarbitrage123456789012345678901234567890", "block_number": 150234575, "protocols_used": ["UniswapV3", "SushiSwap", "Camelot"], "token_pair": "WETH/USDC", "profit_token": "WETH", "estimated_profit": 2500000000000000000, "gas_cost": 450000, "net_profit": 2200000000000000000 }, { "name": "liquidation_transaction", "description": "Aave/Compound liquidation transaction", "tx_hash": "0xliquidation1234567890123456789012345678", "block_number": 150234576, "protocol": "Aave", "liquidated_user": "0xuser1234567890123456789012345678901234567", "collateral_token": "WETH", "debt_token": "USDC", "liquidation_bonus": 105000000000000000, "gas_cost": 180000 } ], "protocol_specific": { "curve_stable_swaps": [ { "name": "curve_3pool_swap", "description": "Curve 3pool USDC -> USDT swap", "tx_hash": "0xcurve12345678901234567890123456789012345", "pool": "0x7f90122BF0700F9E7e1F688fe926940E8839F353", "function_signature": "0x3df02124", "function_name": "exchange", "i": 1, "j": 2, "dx": "1000000000", "min_dy": "999000000" } ], "balancer_batch_swaps": [ { "name": "balancer_batch_swap", "description": "Balancer V2 batch swap", "tx_hash": "0xbalancer123456789012345678901234567890", "vault": "0xBA12222222228d8Ba445958a75a0704d566BF2C8", "function_signature": "0x945bcec9", "function_name": "batchSwap", "swap_kind": 0, "assets": ["0x82aF49447D8a07e3bd95BD0d56f35241523fBab1", "0xaf88d065e77c8cc2239327c5edb3a432268e5831"], "limits": ["-1000000000000000000", "995000000000"] } ], "gmx_perpetuals": [ { "name": "gmx_increase_position", "description": "GMX increase long position", "tx_hash": "0xgmx1234567890123456789012345678901234567", "router": "0x327df1e6de05895d2ab08513aadd9317845f20d9", "function_signature": "0x4e71d92d", "function_name": "increasePosition", "collateral_token": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1", "index_token": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1", "amount_in": "1000000000000000000", "size_delta": "3000000000000000000000000000000000", "is_long": true } ] }, "gas_optimization_tests": [ { "name": "multicall_transaction", "description": "Uniswap V3 multicall with multiple swaps", "tx_hash": "0xmulticall123456789012345678901234567890", "function_signature": "0xac9650d8", "function_name": "multicall", "sub_calls": 5, "total_gas_used": 850000, "gas_per_call_avg": 170000 }, { "name": "optimized_routing", "description": "Gas-optimized routing through multiple pools", "tx_hash": "0xoptimized12345678901234567890123456789", "expected_gas_savings": 45000, "alternative_routes_count": 3 } ] }