Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Compiler files
cache/
out/
out/**
!/out/
!out/Solver7702Delegate.sol/
!out/Solver7702Delegate.sol/Solver7702Delegate.json
Comment thread
igorroncevic marked this conversation as resolved.

# Ignores development broadcast logs
!/broadcast
Expand Down
2 changes: 2 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ out = "out"
libs = ["lib"]
solc = "0.8.34" # See latest release at: https://github.com/argotorg/solidity/releases
isolate = true
optimizer = true
optimizer_runs = 1000000

[fmt]
sort_imports = true
Expand Down
1 change: 1 addition & 0 deletions out/Solver7702Delegate.sol/Solver7702Delegate.json

Large diffs are not rendered by default.

16 changes: 15 additions & 1 deletion snapshots/Solver7702DelegateForkTest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
{
"historical tx - swap and bridge order - delegated call": "949703",
"historical tx - USDC permit to MOG - delegated call": "426600",
"historical tx - USDC permit to MOG - direct call": "422548",
"historical tx - USDC to EURA - delegated call": "234623",
"historical tx - USDC to EURA - direct call": "228238",
"historical tx - USDT to AAVE - delegated call": "751998",
"historical tx - USDT to AAVE - direct call": "747672",
"historical tx - WETH to USDC - delegated call": "293676",
"historical tx - WETH to USDC - direct call": "289777",
"historical tx - YFI to USDC - delegated call": "780486",
"historical tx - YFI to USDC - direct call": "773300",
"historical tx - flashloan order - delegated call": "1310933",
"historical tx - flashloan order - direct call": "1306374",
"historical tx - flashloan wrapper order - delegated call": "938147",
"historical tx - flashloan wrapper order - direct call": "933772",
"historical tx - swap and bridge order - delegated call": "949549",
"historical tx - swap and bridge order - direct call": "945548"
}
12 changes: 6 additions & 6 deletions snapshots/Solver7702DelegateTest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"approved caller empty target payload - success - forwards": "24507",
"approved caller empty target payload - success - forwards": "24353",
"approved caller short calldata - success - receives ETH": "21760",
"approved caller short calldata - success - returns empty": "21760",
"approved caller target empty revert - reverts - bubbles empty data": "24861",
"approved caller target payload - success - forwards": "31258",
"approved caller target return data - success - bubbles return data": "25069",
"approved caller target revert data - reverts - bubbles non-empty data": "25738",
"unauthorized caller - success - receives ETH": "21232",
"approved caller target empty revert - reverts - bubbles empty data": "24707",
"approved caller target payload - success - forwards": "31104",
"approved caller target return data - success - bubbles return data": "24915",
"approved caller target revert data - reverts - bubbles non-empty data": "25584",
"unauthorized caller - success - receives ETH": "21199",
"unauthorized caller no value - reverts - unauthorized": "21930"
}
Loading