Skip to content

Commit 00d4415

Browse files
committed
feat: update to use entrypoint v0.9
fix: commit ep v0.9.0 bytecode file
1 parent 94119a6 commit 00d4415

File tree

144 files changed

+364
-4042
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+364
-4042
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Entrypoint config. If empty, scripts default to EP v0.7 at 0x0000000071727De22E5E9d8BAf0edAc6f37da032.
1+
# Entrypoint config. If empty, scripts default to EP v0.9 at 0x433709009B8330FDa32311DF1C2AFA402eD8D009.
22
ENTRYPOINT=
33

44
# AccountFactory's initial owner

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"solidity.packageDefaultDependenciesContractsDirectory": "src",
33
"solidity.packageDefaultDependenciesDirectory": "lib",
4-
"solidity.compileUsingRemoteVersion": "v0.8.26+commit.8a97fa7a",
4+
"solidity.compileUsingRemoteVersion": "v0.8.28+commit.7893614",
55
"editor.formatOnSave": true,
66
"[solidity]": {
77
"editor.defaultFormatter": "JuanBlanco.solidity"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This repository contains:
3434

3535
The contracts conform to these ERC versions:
3636

37-
- ERC-4337: [v0.7.0](https://github.com/eth-infinitism/account-abstraction/blob/releases/v0.7/erc/ERCS/erc-4337.md)
37+
- ERC-4337: [v0.9.0](https://github.com/eth-infinitism/account-abstraction/blob/releases/v0.9/erc/ERCS/erc-4337.md)
3838
- ERC-6900: [v0.8.0](https://github.com/ethereum/ERCs/blob/c081c445424505d549e0236650917a2aaf3c5743/ERCS/erc-6900.md)
3939

4040
## Development

config/solhint-src.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"rules": {
44
"immutable-vars-naming": ["error"],
55
"no-unused-import": ["error"],
6-
"compiler-version": ["error", ">=0.8.26"],
6+
"compiler-version": ["error", ">=0.8.28"],
77
"func-visibility": ["error", { "ignoreConstructors": true }],
88
"max-line-length": ["error", 120],
99
"func-param-name-mixedcase": ["error"],

config/solhint-test.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"func-name-mixedcase": "off",
55
"immutable-vars-naming": ["error"],
66
"no-unused-import": ["error"],
7-
"compiler-version": ["error", ">=0.8.26"],
7+
"compiler-version": ["error", ">=0.8.28"],
88
"custom-errors": "off",
99
"func-visibility": ["error", { "ignoreConstructors": true }],
1010
"max-line-length": ["error", 120],

foundry.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[profile.default]
2-
solc = '0.8.26'
2+
solc = '0.8.28'
33
via_ir = false
4-
evm_version = 'paris'
4+
evm_version = 'cancun'
55
src = 'src'
66
test = 'test'
77
libs = ['lib', 'node_modules']

gas/BenchmarkBase.sol

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: UNLICENSED
2-
pragma solidity ^0.8.26;
2+
pragma solidity ^0.8.28;
33

44
import {console} from "forge-std/console.sol";
55

@@ -40,7 +40,7 @@ abstract contract BenchmarkBase is OptimizedTest {
4040
vm.deal(recipient, 1 wei);
4141
vm.deal(beneficiary, 1 wei);
4242

43-
entryPoint = _deployEntryPoint070();
43+
entryPoint = _deployEntryPoint090();
4444

4545
mockErc20 = new MockERC20();
4646
}
@@ -61,7 +61,8 @@ abstract contract BenchmarkBase is OptimizedTest {
6161
PackedUserOperation[] memory userOps = new PackedUserOperation[](1);
6262
userOps[0] = userOp;
6363

64-
vm.prank(beneficiary);
64+
// solhint-disable avoid-tx-origin
65+
vm.prank(tx.origin);
6566
entryPoint.handleOps(userOps, beneficiary);
6667

6768
gasUsed = vm.lastCallGas().gasTotalUsed;

gas/lightaccount-v2/ILightAccount.sol

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

gas/lightaccount-v2/ILightAccountFactory.sol

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

0 commit comments

Comments
 (0)