Skip to content

Commit e05d732

Browse files
Merge pull request #4 from ssvlabs/feat/gas-optimization-p0
Gas Optimizations For BApps Token Matching
2 parents 6bf1a95 + c66e0f6 commit e05d732

14 files changed

+700
-746
lines changed

.gas-snapshot

Lines changed: 0 additions & 93 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
 
66

7-
## :office: _Architecture_
7+
## :page_facing_up: _Whitepaper_
88

9-
![alt text](images/architecture.png "Title")
9+
[Whitepaper](https://ssv.network/wp-content/uploads/2025/01/SSV2.0-Based-Applications-Protocol-1.pdf)
1010

1111
 
1212

foundry.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ src = "src"
33
out = "out"
44
libs = ["lib"]
55
solc = "0.8.28"
6-
gas_reports = ["*"]
76
optimizer = true
8-
optimizer_runs = 200
7+
optimizer_runs = 2000
8+
gas_reports = ["BasedAppManager"]
99

1010
[fmt]
1111
bracket_spacing = false
1212
int_types = "long"
13-
line_length = 120
14-
multiline_func_header = "params_first"
13+
line_length = 130
14+
multiline_func_header = "attributes_first"
1515
number_underscore = "thousands"
1616
quote_style = "double"
1717
tab_width = 4

images/architecture.png

-167 KB
Binary file not shown.

script/DeployProxy.s.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ contract DeployProxy is Script {
1616
uint32 maxFeeIncrement = 500;
1717

1818
// 3. Encode initializer data for the proxy
19-
bytes memory initData = abi.encodeWithSignature("initialize(uint32)", maxFeeIncrement);
19+
bytes memory initData = abi.encodeWithSignature("initialize(address,uint32)", msg.sender, maxFeeIncrement);
2020

2121
// 4. Deploy the proxy and link it to the implementation
2222
ERC1967Proxy proxy = new ERC1967Proxy(address(implementation), initData);

0 commit comments

Comments
 (0)