|
1 | 1 | LOCAL_TRACE = r""" |
2 | 2 | Call trace for '0x([A-Fa-f0-9]{64})' |
3 | 3 | tx\.origin=0x[a-fA-F0-9]{40} |
4 | | -ContractA\.methodWithoutArguments\(\) -> 0x00\.\.93bc \[\d+ gas\] |
| 4 | +ContractA\.methodWithoutArguments\(\) -> 0x0000\.\.93bc \[\d+ gas\] |
5 | 5 | ├── SYMBOL\.supercluster\(x=234444\) -> \[ |
6 | 6 | │ \[23523523235235, 11111111111, 234444\], |
7 | 7 | │ \[ |
|
55 | 55 | └── ContractC\.methodC1\(windows95="simpler", jamaica=111, cardinal=Contract[A|C]\) \[\d+ gas\] |
56 | 56 | """ |
57 | 57 | MAINNET_FAIL_TRACE_FIRST_10_LINES = r""" |
58 | | -Call trace for '0x053cba5c12172654d894f66d5670bab6215517a94189a9ffc09bc40a589ec04d' |
59 | | -reverted with message: "UNIV3R: min return" |
60 | | -tx\.origin=0xd2f91C13e2D7ABbA4408Cd3D86285b7835524ad7 |
61 | | -AggregationRouterV4\.uniswapV3Swap\( |
62 | | - amount=12851675475480000000000, |
63 | | - minReturn=4205588148, |
64 | | - pools=\[ |
65 | | - 682631518358379038160760928734868612545194078373, |
66 | | - 5789604461865809771178549250512551984713807685540901737341300416798777562476 |
| 58 | +Call trace for '0x605ebd5a54b7d99d9bb61a228a57bfdf8614148c063a5f44e5d52b5a81c2679c' |
| 59 | +reverted with message: "BAL#508" |
| 60 | +tx\.origin=0xF36BCB79C3AD71Bd4E9343f78c402b0f6C99bF34 |
| 61 | +AggregationRouterV5\.swap\( |
| 62 | + executor=AggregationRouterV5, |
| 63 | + desc=\[ |
| 64 | + AggregationRouterV5, |
| 65 | + AggregationRouterV5, |
| 66 | + AggregationRouterV5, |
| 67 | + tx\.origin, |
| 68 | +
|
67 | 69 | """ |
68 | 70 | MAINNET_FAIL_TRACE_LAST_10_LINES = r""" |
69 | | - ├── AggregationRouterV4\.uniswapV3SwapCallback\( |
70 | | - │ amount0Delta=-4192051335, |
71 | | - │ amount1Delta=2098831888913057968, |
72 | | - │ 0x00\.\.097d |
73 | | - │ \) \[9861 gas\] |
74 | | - │ ├── UniswapV3Pool.token0\(\) -> FiatTokenProxy \[266 gas\] |
75 | | - │ ├── UniswapV3Pool\.token1\(\) -> WETH \[308 gas\] |
76 | | - │ ├── UniswapV3Pool\.fee\(\) -> 500 \[251 gas\] |
77 | | - │ └── WETH\.transfer\(dst=UniswapV3Pool, wad=2098831888913057968\) -> True \[6062 gas\] |
78 | | - └── WETH\.balanceOf\(UniswapV3Pool\) -> 68359883632315875514968 \[534 gas\] |
| 71 | + 48534500000000000000, |
| 72 | + 0x0000\.\.0000 |
| 73 | + ], |
| 74 | + funds=\['Vault', 0, 'Vault', 0\], |
| 75 | + limit=0, |
| 76 | + deadline=1734390153 |
| 77 | + \) -> |
| 78 | + 0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000 |
| 79 | + 000000000000000000000000000000000000000000000742414c2335303800000000000000000000000000000000 |
| 80 | + 000000000000000000 48534500000000000000 \[7542 gas\] |
| 81 | +
|
79 | 82 | """ |
80 | 83 | MAINNET_TRACE_FIRST_10_LINES = r""" |
81 | 84 | Call trace for '0xb7d7f1d5ce7743e821d3026647df486f517946ef1342a1ae93c96e4a8016eab7' |
82 | 85 | tx\.origin=0x5668EAd1eDB8E2a4d724C8fb9cB5fFEabEB422dc |
83 | | -DSProxy\.execute\(_target=LoanShifterTaker, _data=0x35\.\.0000\) -> "" \[\d+ gas\] |
84 | | -└── \(delegate\) LoanShifterTaker\.moveLoan\( |
85 | | - _exchangeData=\[ |
86 | | - 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE, |
87 | | - ZERO_ADDRESS, |
88 | | - 0, |
89 | | - 0, |
| 86 | +
|
| 87 | +Events emitted: |
| 88 | +log LogPermit\(src=0x0000\.\.09ad, dst=0x0000..52dd, sig=0x1cff\.\.0000\) |
| 89 | +log Transfer\( |
| 90 | + from=CErc20Delegator, |
| 91 | + to=CErc20Delegator, |
| 92 | + amount=48354786024690521017562 |
| 93 | +\)\[x2\] |
90 | 94 | """ |
91 | 95 | MAINNET_TRACE_LAST_10_LINES = r""" |
92 | | - │ └── LendingRateOracle\.getMarketBorrowRate\(_asset=DAI\) -> |
93 | 96 | │ 35000000000000000000000000 \[1164 gas\] |
94 | | - ├── DSProxy\.authority\(\) -> DSGuard \[1291 gas\] |
95 | | - ├── DSGuard\.forbid\(src=LoanShifterReceiver, dst=DSProxy, sig=0x1c\.\.0000\) \[5253 gas\] |
| 97 | + ├── CErc20Delegator\.0xbf7e214f\(\) -> |
| 98 | + │ 0x000000000000000000000000b67f15159e1c60d7e5f5b60316c4588b014c61fa \[1291 gas\] |
| 99 | + ├── DSGuard\.forbid\(src=DSGuard, dst=DSGuard, sig=0x1cff\.\.0000\) \[5253 gas\] |
96 | 100 | └── DefisaverLogger\.Log\( |
97 | | - _contract=DSProxy, |
| 101 | + _contract=DefisaverLogger, |
98 | 102 | _caller=tx\.origin, |
99 | 103 | _logName="LoanShifter", |
100 | | - _data=0x00\.\.0000 |
| 104 | + _data=0x0000\.\.0000 |
101 | 105 | \) \[6057 gas\] |
| 106 | +
|
102 | 107 | """ |
103 | 108 | LOCAL_GAS_REPORT = r""" |
104 | 109 | +ContractA Gas |
|
0 commit comments