Skip to content

add validation of entryPoint and wrapper#779

Merged
souradeep-das merged 4 commits intodevelopfrom
souradeep/verify_ep_connected
May 8, 2023
Merged

add validation of entryPoint and wrapper#779
souradeep-das merged 4 commits intodevelopfrom
souradeep/verify_ep_connected

Conversation

@souradeep-das
Copy link
Copy Markdown
Contributor

@souradeep-das souradeep-das commented May 5, 2023

📋 closes #759

Overview

Adds validation for EntryPoint and EntryPointWrapper configuration when the bundler starts

Changes

  • make EntryPointWrapper a compulsion
  • add validation to confirm EntryPointWrapper points to the EntryPoint contract that is passed
  • add validation to confirm EntryPoint contract is valid

Testing

currently: bundler starts up and integ tests pass

@InoMurko InoMurko changed the title add validaiton of entryPoint and wrapper add validation of entryPoint and wrapper May 5, 2023
@souradeep-das souradeep-das marked this pull request as ready for review May 5, 2023 13:15
) {
console.error('WARN: entryPointWrapper may be incompatible with entryPoint')
process.exit(1)
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EntryPointWrapper has been made a compulsion now

@souradeep-das
Copy link
Copy Markdown
Contributor Author

currently, no tests for BundlerServer exist, so haven't added an explicit test condition for this misconfiguration case (in which the bundler will not start). lmk what you think.

@souradeep-das souradeep-das requested review from InoMurko and wsdt May 5, 2023 15:52
Copy link
Copy Markdown
Contributor

@wsdt wsdt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@souradeep-das souradeep-das merged commit 41f3150 into develop May 8, 2023
@souradeep-das souradeep-das deleted the souradeep/verify_ep_connected branch May 8, 2023 12:35
InoMurko pushed a commit that referenced this pull request May 8, 2023
* add validaiton of entryPoint and wrapper

(cherry picked from commit 41f3150)
InoMurko added a commit that referenced this pull request May 8, 2023
* Inomurko/bump bundler  (#698)

* bump bundler, limit dependency bumps

* uncomment bundler related stuff

* build bundler in docker

* build fixes

* fix tests

* fix bundler building

* uncomment _disableInitializers

* fix running DTL

* v1.0.0

* fixing starting bundler and tests, default config

* local unsafe, linting fix in intg tests

* custom errors fixes

* new api for simple account contract

* use simple account factory proxy

* use simple account factory proxy in SimpleAccountAPI

* use simple account factory proxy in SimpleAccountAPI

* use wrappers to get around custom errors

* update entrypoint wrapper (#745)

* sponsoring fee fixed

* stricter validation for staking

* remove debug namespace, fix return for unaavailable rpc methods

* addressing Souradeeps comments

---------

Co-authored-by: Souradeep Das <dsouradeep2@gmail.com>
(cherry picked from commit 6368c72)

* fix: qsp30 (#773)

fix: BOB1-30
(cherry picked from commit 7feda88)

* run op fix (#771)

(cherry picked from commit 176cd3c)

* close-server (#768)

(cherry picked from commit 72021af)

* [AA]: fix inconsistent userOpHash (#757)

* add token callback handler on SimpleAccount

* fix: userOpHash packing

* prevent recursive calls into handleOps

* move nonce validation from individual Account to EntryPoint

* add bundler changes for nonce change to EP

(cherry picked from commit cc4e205)

* ValidationManager account for signature expiration (#775)

* resolve #753

* Update packages/boba/bundler/src/modules/ValidationManager.ts

Co-authored-by: Ino Murko <ino.murko.github@protonmail.com>

* fix bool

* validAfter/Until integrationt tests, validAfter

* cleanup

* regex

* integration_tests

* integration & unit tests

---------

Co-authored-by: Ino Murko <ino.murko.github@protonmail.com>
(cherry picked from commit ef02bee)

* npm release workflow for bundler-sdk (#749)

(cherry picked from commit 718141f)

* Fix/banxa and bridges (#772)

* adding boba network

* fixing boba bridge url

* fixing bridge integration

* replace code by selectors

* remove hardcoded symbol

* enable banxa only for mainnet

* Available bridge inable only for mainnet

* adding support for testnet

* update conditional for other bridges

* implemented the available bridges with typescript

* unit test cases for available bridges

* typo in Available bridges

---------

Co-authored-by: alvaro-ricotta <alvaro.e.ricotta@gmail.com>
Co-authored-by: alvaro-ricotta <81116391+alvaro-ricotta@users.noreply.github.com>
Co-authored-by: Ino Murko <ino.murko.github@protonmail.com>
(cherry picked from commit dcf9b7e)

* add validation of entryPoint and wrapper (#779)

* add validaiton of entryPoint and wrapper

(cherry picked from commit 41f3150)

---------

Co-authored-by: Souradeep Das <dsouradeep2@gmail.com>
Co-authored-by: Riedl Kevin, Bsc <kevin.riedl@wavect.io>
Co-authored-by: Sahil K <86316370+sk-enya@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[AA] when bundler starts - verify the correct version of Entrypoint and EntrypointWrapper contract

3 participants