GithubHelp home page GithubHelp logo

cpquinn98k / optimistic-ethereum-v1.0 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ethereum-optimism/optimism

0.0 0.0 0.0 72.01 MB

The Optimism monorepo

Home Page: https://optimism.io

License: MIT License

Shell 0.66% JavaScript 3.12% Ruby 0.01% Python 0.05% C 4.66% Java 0.21% Go 78.67% Assembly 0.44% TypeScript 7.76% Makefile 0.19% HTML 0.09% NSIS 0.16% M4 0.18% Dockerfile 0.04% Sage 0.21% Solidity 3.57%

optimistic-ethereum-v1.0's Introduction

Optimism

The Optimism Monorepo

TL;DR

This is where Optimism gets built.

Documentation

Extensive documentation is available here.

Community

Come hang on our very active discord ๐Ÿ”ดโœจ

Contributing

Read through CONTRIBUTING.md for a general overview of our contribution process. Then check out our list of good first issues to find something fun to work on!

Directory Structure

root
โ”œโ”€โ”€ packages
โ”‚   โ”œโ”€โ”€ common-ts: Common tools for building apps in TypeScript
โ”‚   โ”œโ”€โ”€ contracts: L1 and L2 smart contracts for Optimism
โ”‚   โ”œโ”€โ”€ contracts-periphery: Peripheral contracts for Optimism
โ”‚   โ”œโ”€โ”€ core-utils: Low-level utilities that make building Optimism easier
โ”‚   โ”œโ”€โ”€ data-transport-layer: Service for indexing Optimism-related L1 data
โ”‚   โ”œโ”€โ”€ fault-detector:
โ”‚   โ”œโ”€โ”€ integration-tests-bedrock (BEDROCK upgrade): Bedrock integration tests.
โ”‚   โ”œโ”€โ”€ message-relayer: Tool for automatically relaying L1<>L2 messages in development
โ”‚   โ”œโ”€โ”€ replica-healthcheck: Service for monitoring the health of a replica node
โ”‚   โ””โ”€โ”€ sdk: provides a set of tools for interacting with Optimism

~~ Production ~~
โ”œโ”€โ”€ batch-submitter: Service for submitting batches of transactions and results to L1
โ”œโ”€โ”€ bss-core: Core batch-submitter logic and utilities
โ”œโ”€โ”€ gas-oracle: Service for updating L1 gas prices on L2
โ”œโ”€โ”€ indexer: indexes and syncs transactions
โ”œโ”€โ”€ infra/op-replica: Deployment examples and resources for running an Optimism replica
โ”œโ”€โ”€ integration-tests: Various integration tests for the Optimism network
โ”œโ”€โ”€ l2geth: Optimism client software, a fork of geth v1.9.10  (deprecated for BEDROCK upgrade)
โ”œโ”€โ”€ l2geth-exporter: A prometheus exporter to collect/serve metrics from an L2 geth node
โ”œโ”€โ”€ op-exporter: A prometheus exporter to collect/serve metrics from an Optimism node
โ”œโ”€โ”€ proxyd: Configurable RPC request router and proxy
โ”œโ”€โ”€ technical-documents: audits and post-mortem documents
โ”œโ”€โ”€ teleportr: Bridge for teleporting ETH between L1 and L2 at low cost

~~ BEDROCK upgrade - Not production-ready yet, part of next major upgrade ~~
โ”œโ”€โ”€ contracts-bedrock: Bedrock smart contracts. To be merged with ./packages/contracts.
โ”œโ”€โ”€ op-bindings: Go bindings for Bedrock smart contracts.
โ”œโ”€โ”€ op-batcher: L2-Batch Submitter, submits bundles of batches to L1
โ”œโ”€โ”€ op-e2e: End-to-End testing of all bedrock components in Go
โ”œโ”€โ”€ op-node: rollup consensus-layer client.
โ”œโ”€โ”€ op-proposer: L2-Output Submitter, submits proposals to L1
โ”œโ”€โ”€ ops-bedrock: Bedrock devnet work
โ””โ”€โ”€ specs: Specs of the rollup starting at the Bedrock upgrade

Branching Model and Releases

Active Branches

Branch Status
master Accepts PRs from develop when we intend to deploy to mainnet.
develop Accepts PRs that are compatible with master OR from release/X.X.X branches.
release/X.X.X Accepts PRs for all changes, particularly those not backwards compatible with develop and master.

Overview

We generally follow this Git branching model. Please read the linked post if you're planning to make frequent PRs into this repository (e.g., people working at/with Optimism).

The master branch

The master branch contains the code for our latest "stable" releases. Updates from master always come from the develop branch. We only ever update the master branch when we intend to deploy code within the develop to the Optimism mainnet. Our update process takes the form of a PR merging the develop branch into the master branch.

The develop branch

Our primary development branch is develop. develop contains the most up-to-date software that remains backwards compatible with our latest experimental network deployments. If you're making a backwards compatible change, please direct your pull request towards develop.

Changes to contracts within packages/contracts/contracts are usually NOT considered backwards compatible and SHOULD be made against a release candidate branch. Some exceptions to this rule exist for cases in which we absolutely must deploy some new contract after a release candidate branch has already been fully deployed. If you're changing or adding a contract and you're unsure about which branch to make a PR into, default to using the latest release candidate branch. See below for info about release candidate branches.

Release new versions

Developers can release new versions of the software by adding changesets to their pull requests using yarn changeset. Changesets will persist over time on the develop branch without triggering new version bumps to be proposed by the Changesets bot. Once changesets are merged into master, the bot will create a new pull request called "Version Packages" which bumps the versions of packages. The correct flow for triggering releases is to update the base branch of these pull requests onto develop and merge them, and then create a new pull request to merge develop into master. Then, the release workflow will trigger the actual publishing to npm and Docker hub.

Be sure to not merge other pull requests into develop if partially through the release process. This can cause problems with Changesets doing releases and will require manual intervention to fix it.

Release candidate branches

Branches marked release/X.X.X are release candidate branches. Changes that are not backwards compatible and all changes to contracts within packages/contracts/contracts MUST be directed towards a release candidate branch. Release candidates are merged into develop and then into master once they've been fully deployed. We may sometimes have more than one active release/X.X.X branch if we're in the middle of a deployment. See table in the Active Branches section above to find the right branch to target.

Releasing new versions

Developers can release new versions of the software by adding changesets to their pull requests using yarn changeset. Changesets will persist over time on the develop branch without triggering new version bumps to be proposed by the Changesets bot. Once changesets are merged into master, the bot will create a new pull request called "Version Packages" which bumps the versions of packages. The correct flow for triggering releases is to re-base these pull requests onto develop and merge them, and then create a new pull request to merge develop onto master. Then, the release workflow will trigger the actual publishing to npm and Docker hub.

License

Code forked from go-ethereum under the name l2geth is licensed under the GNU GPLv3 in accordance with the original license.

All other files within this repository are licensed under the MIT License unless stated otherwise.

optimistic-ethereum-v1.0's People

Contributors

adriang-90 avatar annieke avatar axchu avatar ben-chain avatar cfromknecht avatar dependabot[bot] avatar elenadimitrova avatar gakonst avatar gigamesh avatar github-actions[bot] avatar indeavr avatar inphi avatar k-ho avatar karlfloersch avatar maurelian avatar mslipper avatar optimisticben avatar platocrat avatar protolambda avatar qbzzt avatar rajivpo avatar smartcontracts avatar snario avatar timmyers avatar tonykogias avatar tonysosa-dev avatar transmissions11 avatar trianglesphere avatar tuxcanfly avatar tynes 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.