115 Commits

Author SHA1 Message Date
Dror Tirosh
9ab1a05eb3 V07 (#179)
use new account-abstraction/contracts v0.7
2024-02-22 12:42:57 +02:00
Alex
42cad15044 use INVALID_PARAMS_CODE instead of METHOD_NOT_FOUND for bad userOpHash (#176) 2024-02-18 15:16:00 +02:00
Dror Tirosh
f19f0e58ae Check aa51 (#182)
* check AA51

* Adding validation error

---------

Co-authored-by: shahafn <shahaflol@gmail.com>
2024-02-12 18:21:07 +02:00
BigBoss
6c708dc2cc add process signal handlers and specify package manager version (#170)
* add process signal handlers

* specify package manager version
2024-01-03 20:22:57 +02:00
Dror Tirosh
ba78f2067e fix lint.. (#166) 2023-12-03 18:42:19 +02:00
Dror Tirosh
09056eb560 bundler: --debugRpc to enable "debug_" rpc calls
auto enabled for local (1337, 31337) nodes
2023-11-06 20:37:09 +02:00
Alex Forshtat
3fcc4eff5d AA-213: Standalone ValidationManager package (#153) 2023-10-20 13:33:37 +03:00
Dror Tirosh
aac31d2af5 [STO-033]: staked entity have read-only access to any storage in non-entity contract. (#156) 2023-10-18 15:30:50 +03:00
Dror Tirosh
310e63f83a AA-205 reference validation rules by id (#145)
* reference validation rules by id
add comments to reference validation rules
2023-10-11 17:10:36 +03:00
Alex Forshtat
0a66f260cf SREP-010 add RPC debug API (#152)
* SREP-010 add RPC debug API
2023-10-03 13:17:46 +03:00
Alex Forshtat
f6b3bd8e0f STO-040 rule check implementation (#151)
* STO-040 rule check implementation
2023-10-03 13:14:22 +03:00
shahafn
a2cd779a90 Staked account rep (#150)
* Tracking staked account reputation

* Adding clearMempool, clearReputation debug rpc calls
2023-10-02 13:34:03 +03:00
Alex Forshtat
6b916f11fa Enforce entity reputation rules (#149) 2023-10-01 13:37:00 +03:00
Alex Forshtat
65f56cfc9c SSTORE reverts when gas left is below 2300 (#148) 2023-09-20 14:55:35 +03:00
Utkir S
a5d2c0fc2b fix bignumber comparison (#135)
Co-authored-by: Alex Forshtat <forshtat1@gmail.com>
2023-09-11 16:35:34 +03:00
Dror Tirosh
30dc20da10 bundler 0.6.1 (#121)
- verificationGasLimit field name fix.

Co-authored-by: Dror Tirosh <dror@Dror-MacBook-M2.local>
2023-09-11 16:29:47 +03:00
Alex Forshtat
29b1ccc42b AA-198: Support opcode sequences for access rules (#142)
* Step 2: keep the top 3 values of the stack for each opcode step
* Step 3: Use hard-coded regex to match the pattern
2023-08-24 12:24:13 +03:00
Alex Forshtat
1b154c9e2b AA-192: fix 'yarn runop' command (#141)
* Always deployFactory if chainID is 1337 or 31337
2023-08-22 12:25:10 +03:00
Alex Forshtat
fedde20d95 AA-190: restrict access to EntryPoint address (#139)
may not use EXT* opcodes to access the entrypoint.
2023-08-22 11:57:27 +03:00
Alex Forshtat
2bf0030bf2 AA-195: Define allowed precompiles instead of injected 'isPrecompiled' function (#140) 2023-08-22 11:31:27 +03:00
Alex Forshtat
75c435bc0e AA-185: Check access of un-deployed zero code size addresses even for sender (#138)
* Allow factory to access sender with EXTCODE* when undeployed
2023-08-17 20:59:12 +03:00
Alex Forshtat
2724126c04 AA-182: Detect violation of rule "4.1 Must not use value" in the bundler (#136) 2023-08-15 13:45:41 +03:00
Ankur Dubey
1d278b65e6 fix: debug_bundler_clearState clears MempoolManager.entryCount (#134) 2023-08-10 00:34:15 +03:00
Dror Tirosh
277f36247c fix bundler check for "expire too soon" (#129)
* fix bundler check for "expire too soon"
* fixed tests (and condition)
* add VALID_UNTIL_FUTURE_SECONDS constant
* validAfter tests
2023-08-07 23:38:01 +03:00
Dror Tirosh
d935f2690f bugfix: estimateUserOperationGas gas values are overridden by the default values (#119)
default values are for missing values, and should not override user-specified values.
(reported by: https://t.me/sherifabdelmoatty)

* update node version
2023-08-03 19:13:12 +03:00
Jayden
404002e3da support jsonrpc batching (#126) 2023-08-02 18:15:59 +03:00
Dror Tirosh
32725c2cc0 unstaked paymaster can't use assoc. storage even if factory is staked 2023-08-02 16:42:14 +03:00
Dror Tirosh
23da4f439c rule fix: allow account to access associated storage if factory is staked (#127) 2023-08-01 20:19:55 +03:00
andreas-papageorgiou
ba29f67567 use hardhat's provider's signer (#114)
* use hardhat's provider's signer

* Fix linter issues

---------

Co-authored-by: Andreas Papageorgiou <andreas@btblock.io>
Co-authored-by: MakisChristou <makis_christou@protonmail.com>
2023-07-28 00:18:04 +03:00
Dror Tirosh
623991115d Fix --unsafe and --conditionalRpc tests (#125) 2023-07-26 18:06:27 +03:00
Dror Tirosh
c8ac5b43ec vix typo: verificationGasLimit
mistakenly named "verificationGas"
2023-07-10 17:05:06 +03:00
Dror Tirosh
633fb4d829 PR comments 2023-07-04 21:56:27 +03:00
Dror Tirosh
9ade4d1c0e remove console.log 2023-07-04 21:56:27 +03:00
Dror Tirosh
b14e5d556f stop collecting trace on "BeginExecution" 2023-07-04 21:56:27 +03:00
Dror Tirosh
3342161003 lints 2023-07-04 21:56:27 +03:00
Dror Tirosh
03f8dbc3d0 fixed bundler-spec-test error "test_codehash_changed" 2023-07-04 21:56:27 +03:00
Dror Tirosh
44e64f118c remove marker. use top-level call signature
instead of markers, use the method calls form entryPoint
- createSender
- validateUserOp
- validatePaymasterUserOp
2023-07-04 21:56:27 +03:00
Alex Forshtat
1bbbd2d5be Return 'calldata' check 2023-07-03 18:55:31 +03:00
Alex Forshtat
f90d607caf Simplify TestFakeWalletToken 2023-07-03 18:55:31 +03:00
Alex Forshtat
08b7326d12 Remove state.sol 2023-07-03 18:55:31 +03:00
Alex Forshtat
d72291fa4a Remove 'SimpleWallet' 2023-07-03 18:55:31 +03:00
Alex Forshtat
e0b9e63c1b Add TypeScript test for AA-98 rule 2023-07-03 18:55:31 +03:00
Alex Forshtat
b6fc1068a1 Imrpove log and make it 'debug' 2023-07-03 18:55:31 +03:00
Alex Forshtat
b2d6a4e8ce AA-98: Prevent bundling UserOps that access another UserOp's sender 2023-07-03 18:55:31 +03:00
Dror Tirosh
e055a4fa82 pkg cleanpup 2023-05-08 12:16:05 +03:00
Dror Tirosh
3d849b35c4 fix bundler --network (#103) 2023-05-04 19:55:31 +03:00
Dror Tirosh
adc5c30120 fix slice size on tracer (#102)
the trace collector attempt to trim down large buffers, but is too
aggressive, and fails when there is a payaster context.
2023-05-04 17:56:14 +03:00
Garvit Khatri
e4d4fdbe4a Fix return type of estimateUserOpGas (#104)
Co-authored-by: plusminushalf <plusminushalf@gmail.com>
2023-05-04 17:55:35 +03:00
tincho
53fa990f08 Fix calculation for min amount of ops (#101) 2023-05-04 13:37:29 +03:00
Dror Tirosh
82e65429d7 support v0.6.0 (#95)
* update json pkgs
* fix tests, lints
* update versions
2023-04-30 20:34:07 +03:00