Giter Club home page Giter Club logo

op-up's Introduction

op-up

Build Status License Docs Latest Version rustc 1.31+

Composable OP Stack Orchestration System. op-up is in https://github.com/anton-rs/op-up/labels/alpha.

Install | User Docs | Crate Docs | Reference | Contributing | License

What is op-up?

op-up is the infrastructure for building composable OP Stack configurations. Given the growing number of OP Stack component implementations, having a simple service to spin up a composable devnet in a programmatical way is crucial for verifying superchain compatibility, general testing and experimentation.

The project was born out of the need to test out Magi, a rollup client built for the OP stack.

Have a new rollup derivation pipeline implementation for the OP Stack and want to test it?

Use op-up to configure an OP Stack with the new rollup derivation pipeline. Then, you can spin up a local devnet and run test suites against it!

What's the OP Stack?

The OP Stack is what powers the superchain!

It is a stack of various software components that, together, can be used to fully run a chain in the superchain. The Optimism Collective has already spent an enormous amount of effort and time building out the specifications for how OP Stack components work together in an interoperable way.

For example, want to run a pure rust op-stack?

You can use

  • reth as an L1 execution node.
  • op-reth as an L2 node (interchangeable with op-geth).
  • magi as the rollup node.

Notice, this does not include the proposer or batcher, as well as fault proof components.

Usage

Pre-requisites

First, install the following dependencies on your machine:

Installation

To get started with the interactive prompt, run the following commands:

git clone [email protected]:anton-rs/op-up.git && cd op-up
cargo run

This will bring up a local devnet using the default components.

Once the devnet is up and running, L1 is accessible at http://localhost:8545, and L2 is accessible at http://localhost:9545. Any Ethereum tool - Metamask, seth, etc. - can use these endpoints. Note that you will need to specify the L2 chain ID manually if you use Metamask. The devnet's L2 chain ID is 901.

The devnet comes with a pre-funded account you can use as a faucet:

  • Address: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
  • Private key: ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80

The faucet account exists on both L1 and L2.


To stop the devnet, run:

cargo run -- stop

To reset the devnet state, run:

cargo run -- nuke

Using op-up as a library

By building with Rust's crate system, op-up can easily be used as a library in an extensible way.

Contributing

Please report any bugs or issues you encounter by opening a github issue.

All contributions are welcome, but if you are at all unsure, visit the developer docs.

License

This project is licensed under the MIT License. Free and open-source, forever.

All our rust are belong to you.

op-up's People

Contributors

merklefruit avatar refcell avatar steph-mipt avatar

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.