Skip to content

Commit c389a57

Browse files
authored
V2.2 lite (#39)
* commented out session key owned validator for temporary usage * Feat/add benchmark (#36) * forge install: aa-benchmark * temp * updated forge-std * test refactor * Kernel lite draft * test for kernel lite ecdsa * gas report * removed bytes * fixed test * small gas optimize trick * execute batch * kernel lite has execute batch too * removed delegate call * bumped version of kernel to 0.2.2 in test * revert on setDefaultValidator in kernel lite * updated libraries * updated tag for entrypoint * sessionkey for batching * sessionkey batch call tested * readme updated for addresses * fix: userOpHash verification for unlimited permission * temp : passes with no-validation, parsing was successful for multiple * test passing * added interval validation * forge fmt * chore: remove mock files from coverage * moved to mock folder for test artifacts * added session key invalidator * refactoring IKernel * increasing test case coverage * removed aa-benchmark for now * removed fallback to default option for 0x00000001 * Removed dependencies * removed remappings * test for invalid signatures * removed multiowned validator * added forge test for validator * renamed the test function * forge fmt * using custom error for validator * updated session key to invalidate nonce and nonce is incremental * kernel lite to operate as a validator to mitigate wallet bricked situation * todo: sessionkey test cases * sessionkey test passing * Merkle renamed * changed kernel to support selfcall for executor * test for delegatecall * sessionkey test added for validAfter, interval invariants * removed broadcast * ignoring broadcast * updated readme for deployed addresses * updated address for via-ir enabled versions
1 parent 359938c commit c389a57

File tree

301 files changed

+1987
-22624
lines changed

Some content is hidden

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

301 files changed

+1987
-22624
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ types/
66

77
# Ignores development broadcast logs
88
!/broadcast
9-
/broadcast/*/31337/
10-
/broadcast/**/dry-run/
9+
/broadcast/*
10+
/broadcast/*
1111

1212
# Docs
1313
docs/

.gitmodules

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
1-
[submodule "lib/account-abstraction"]
2-
path = lib/account-abstraction
3-
url = https://github.com/eth-infinitism/account-abstraction
4-
branch = 556f03fadcaba0d7d04cd901e6eb9601db50a998
51
[submodule "lib/forge-std"]
62
path = lib/forge-std
73
url = https://github.com/foundry-rs/forge-std
8-
branch = v1.5.2
9-
[submodule "lib/openzeppelin-contracts"]
10-
path = lib/openzeppelin-contracts
11-
url = https://github.com/OpenZeppelin/openzeppelin-contracts
12-
branch = v4.8.2
134
[submodule "lib/solady"]
145
path = lib/solady
156
url = https://github.com/vectorized/solady
7+
[submodule "lib/I4337"]
8+
path = lib/I4337
9+
url = https://github.com/leekt/I4337

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,36 @@ forge test
2828
## License
2929

3030
MIT
31+
32+
## Addresses
33+
34+
<details>
35+
<summary>v2.2</summary>
36+
37+
| Name | Address |
38+
| -------------------- | ------------------------------------------ |
39+
| Kernel | 0x0DA6a956B9488eD4dd761E59f52FDc6c8068E6B5 |
40+
| KernelLite | 0xbEdb61Be086F3f15eE911Cc9AB3EEa945DEbFa96 |
41+
</details>
42+
43+
<details>
44+
<summary>v2.1</summary>
45+
46+
| Name | Address |
47+
| -------------------- | ------------------------------------------ |
48+
| Kernel | 0xf048AD83CB2dfd6037A43902a2A5Be04e53cd2Eb |
49+
| KernelFactory | 0x5de4839a76cf55d0c90e2061ef4386d962E15ae3 |
50+
| ECDSA Validator | 0xd9AB5096a832b9ce79914329DAEE236f8Eea0390 |
51+
</details>
52+
53+
<details>
54+
<summary>v2.0</summary>
55+
56+
| Name | Address |
57+
| --------------- | ------------------------------------------ |
58+
| Kernel | 0xeB8206E02f6AB1884cfEa58CC7BabdA7d55aC957 |
59+
| TempKernel | 0x727A10897e70cd3Ab1a6e43d59A12ab0895A4995 |
60+
| KernelFactory | 0x12358cA00141D09cB90253F05a1DD16bE93A8EE6 |
61+
| ECDSA Validator | 0x180D6465F921C7E0DEA0040107D342c87455fFF5 |
62+
| ECDSA Factory | 0xAf299A1f51560F51A1F3ADC0a5991Ac74b61b0BE |
63+
</details>

broadcast/DeployECDSAValidator.s.sol/1/run-1692154943.json

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

broadcast/DeployECDSAValidator.s.sol/1/run-1692154962.json

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

broadcast/DeployECDSAValidator.s.sol/1/run-latest.json

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

broadcast/DeployECDSAValidator.s.sol/10/run-1692128913.json

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

0 commit comments

Comments
 (0)