Skip to content

Commit

Permalink
V2.2 lite (#39)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
leekt committed Oct 26, 2023
1 parent 359938c commit c389a57
Show file tree
Hide file tree
Showing 301 changed files with 1,987 additions and 22,624 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ types/

# Ignores development broadcast logs
!/broadcast
/broadcast/*/31337/
/broadcast/**/dry-run/
/broadcast/*
/broadcast/*

# Docs
docs/
Expand Down
12 changes: 3 additions & 9 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
[submodule "lib/account-abstraction"]
path = lib/account-abstraction
url = https://github.com/eth-infinitism/account-abstraction
branch = 556f03fadcaba0d7d04cd901e6eb9601db50a998
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
branch = v1.5.2
[submodule "lib/openzeppelin-contracts"]
path = lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
branch = v4.8.2
[submodule "lib/solady"]
path = lib/solady
url = https://github.com/vectorized/solady
[submodule "lib/I4337"]
path = lib/I4337
url = https://github.com/leekt/I4337
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,36 @@ forge test
## License

MIT

## Addresses

<details>
<summary>v2.2</summary>

| Name | Address |
| -------------------- | ------------------------------------------ |
| Kernel | 0x0DA6a956B9488eD4dd761E59f52FDc6c8068E6B5 |
| KernelLite | 0xbEdb61Be086F3f15eE911Cc9AB3EEa945DEbFa96 |
</details>

<details>
<summary>v2.1</summary>

| Name | Address |
| -------------------- | ------------------------------------------ |
| Kernel | 0xf048AD83CB2dfd6037A43902a2A5Be04e53cd2Eb |
| KernelFactory | 0x5de4839a76cf55d0c90e2061ef4386d962E15ae3 |
| ECDSA Validator | 0xd9AB5096a832b9ce79914329DAEE236f8Eea0390 |
</details>

<details>
<summary>v2.0</summary>

| Name | Address |
| --------------- | ------------------------------------------ |
| Kernel | 0xeB8206E02f6AB1884cfEa58CC7BabdA7d55aC957 |
| TempKernel | 0x727A10897e70cd3Ab1a6e43d59A12ab0895A4995 |
| KernelFactory | 0x12358cA00141D09cB90253F05a1DD16bE93A8EE6 |
| ECDSA Validator | 0x180D6465F921C7E0DEA0040107D342c87455fFF5 |
| ECDSA Factory | 0xAf299A1f51560F51A1F3ADC0a5991Ac74b61b0BE |
</details>
34 changes: 0 additions & 34 deletions broadcast/DeployECDSAValidator.s.sol/1/run-1692154943.json

This file was deleted.

49 changes: 0 additions & 49 deletions broadcast/DeployECDSAValidator.s.sol/1/run-1692154962.json

This file was deleted.

49 changes: 0 additions & 49 deletions broadcast/DeployECDSAValidator.s.sol/1/run-latest.json

This file was deleted.

34 changes: 0 additions & 34 deletions broadcast/DeployECDSAValidator.s.sol/10/run-1692128913.json

This file was deleted.

Loading

0 comments on commit c389a57

Please sign in to comment.