Giter VIP home page Giter VIP logo

silius's People

Contributors

da-bao-jian avatar magnus-loki avatar vid201 avatar winor30 avatar zsluedem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

silius's Issues

Modular ideas: split bundler, mempool and rpc into 3 crates.

Currently, we got everything in the aa-bundler crate.

Maybe we could separate these bundler, mempool and rpc into 3 crates and publish it for other rust developers to depend on.

Generally I am talking to change Cargo.toml into

[workspace]
members = [
    "bundler",
    "mempool",
    "rpc",
]

@Vid201 It is more like a discussion now and I am curious how you think about it.

Shortcoming:
A lot of code changes.

Abstract sanity check and simulation rules

Alternative mempools (that is not canonical mempool) can use only subset of all sanity check and simulation rules, e.g., only forbidden opcodes. They can also introduce new custom rules that are specific to them.

We should have a way modular way of enabling/turning on certain rules and add way to write custom rules and include them in the verification/validation workflow.

When bundler will received user operation, it will have to match to which alt mempool the user operation should be passed.

P2P mempool of user operations

Bundlers will form P2P network to exchange user operations (similar to P2P tx pool in the normal Ethereum network).

There will be official spec test released by eth-infinitism that the bundler MUST pass.

Provide a debug api flag for bundler api

I want to continue the question #43 (comment) here.

Currently, our debug API is config with a compiling flag #[cfg(debug_assertions)] which means the debug api would be there only when we build with cargo build. If we want to build with release version cargo build --release with compiler optimization, there are no debug apis.

I suggest we using the method like geth does providing a flag like --api debug to enable debug api instead of put it as a compilation flag. In that way, we could use release version to run tests especially for https://bundler-test-results.eip4337.com/. (BTW, @Vid201 very great job on it.) I want to see whether we could beat stackup-bundler on performance.

@Vid201 What do you think?

Unify binary executbles into one

Currently we have 4 executables bundle-rpc, bundler-uopool, bundler, create-wallet.

We could create a big binary executable like aa-bundler and put the 4 above into subcommand

Bundler Configuration

  1. Network level configuration (config file src/res/chainspec, mainnet, goerli, local) with neccessary values: supported entry points ...
  2. Bundler level configuration (probably as params): bundler beneficiary ...

Integration tests idea

Problem

We need a local Ethereum network tool like Hardhat tests. They should provide enough gRPCJSON endpoint and correct EVM execution. The bundler could be able to integrate with the local test network.

Proposed solution

I suggest we used the anvil tool. It is written in Rust and it is light enough for tests.

@Vid201 Please let me know if you have some other options to choose.

Goal

  1. Introduce anvil tool into the repo.
  2. Setup the test environment for abstract contracts .
  3. Integrate with the anvil node with bundler.(This could be another issue.)

The goal here is to achieve 1 and 2.

Bundler mnemonic and private key

Problem

Currently, the bundler binary accepts a mnemonic folder or mnemonic file for the bundler's account. This can be confusing and should always be the same.

Proposed solution

  1. Implement standalone binary for creating new mnemonic and saving it to file.
  2. Change the bundler to always accept the mnemonic file.

Implement tracer logic

The UserOperation simulation needs Geth debug_traceCall js tracer to collect custom evm operations.
And we need to implement this tracer logic for the simulations.

Here are some other implementations for reference:

  1. https://github.com/eth-infinitism/bundler/blob/f5af738e7f95f53b8954d98e777b2c76c6ea9b1f/packages/bundler/src/GethTracer.ts#L18-L37
  2. https://github.com/stackup-wallet/stackup-bundler/blob/main/pkg/tracer/types.go#L48-L54

Goal

  1. implement Rust serde types for custom json output (Done in https://github.com/Vid201/aa-bundler/blob/feat/uopool/src/contracts/tracer.rs)
  2. implement TracerTest.js

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.