The primary place where Optimism works on stuff related to Optimistic Ethereum

Optimism

The Optimism Monorepo

TL;DR

This is the primary place where Optimism works on stuff related to Optimistic Ethereum.

Documentation

Extensive documentation is available here.

Community

Contributing

Read through CONTRIBUTING.md for a general overview of our contribution process.

Directory Structure

  • packages: Contains all the typescript packages and contracts
  • l2geth: Fork of go-ethereum v1.9.10 implementing the OVM.
  • integration-tests: Integration tests between a L1 testnet, l2geth,
  • ops: Contains Dockerfiles for containerizing each service involved in the protocol, as well as a docker-compose file for bringing up local testnets easily

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 regenesis/X.X.X branches.
regenesis/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 Optimistic Ethereum 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 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.

Release candidate branches

Branches marked regenesis/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 regenesis/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.

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.

Owner
Onther Inc. Technology
Ethereum Blockchain R&D Startup
Onther Inc. Technology
Comments
  • Or 328 migration v20221005

    Or 328 migration v20221005

    optimism/master의 업데이트(commit id: 302700d694ad448befadc23760a9e5b448e3754d)를 적용하여 migration 작업을 진행하였습니다. OR-328 브랜치에서 docker container 빌드 및 실행, integration-test까지 확인 완료하였습니다.

    확인 과정에서 tokamak/message-relayer를 빌드할 때 필요한 패키지들이 업데이트되면서 의존성 문제가 있어 init 함수를 일부 수정하였습니다. 같이 확인 부탁드립니다.

    • https://github.com/Onther-Tech/tokamak-optimism-v2/pull/38/commits/cf1fb568dcec492c33f2af2fe68d50f4e75212b8: contract-bedrock 패키지 빌드 제외
    • https://github.com/Onther-Tech/tokamak-optimism-v2/pull/38/commits/ca0eb840feab105734e62ba2e147f712b568ff54: tokamak/message-relayer 빌드에 필요한 패키지 버전 업데이트
    • https://github.com/Onther-Tech/tokamak-optimism-v2/pull/38/commits/8a661134fa17dfe78c97dee8b49ed40eb5bf500d: tokamak/message-relayer 디펜던시 오류 픽스 & 패키지 버전 업데이트
    • https://github.com/Onther-Tech/tokamak-optimism-v2/pull/38/commits/316bce4fdeafe4cad5a072404aa46653ba0432b4: tokamak/message-relayer 내 불필요한 주석 삭제
  • OR-162 deploy contracts

    OR-162 deploy contracts

    아래와 같이 contract 배포 작업을 완료하였습니다. 작업한 내용을 확인하실 수 있도록 ops/README.md 에 가이드를 추가하였습니다. 확인 부탁드립니다.

    • 컨트랙트 배포용 쉘 스크립트 적용
    • fee token 기능을 위한 컨트랙트 추가
    • hardhat 배포 스크립트 수정
    • state dump 코드 수정
  • [OR-132] Add L1 BOBA & Boba_GasPriceOracle contract

    [OR-132] Add L1 BOBA & Boba_GasPriceOracle contract

    I modified some code to deploy the contracts for L2 fee token.

    • ADD packages/contracts/contracts/L1/token/BOBA.sol
    • ADD packages/contracts/contracts/L2/predeploys/Boba_GasPriceOracle.sol
    • MODIFY deploy script in packages/contracts/deploy
    • ADD packages/contracts/src/hardhat-deploy-ethers.ts
    • MODIFY packages/contracts/src/predeploys.ts
  • Or 339 deploy contracts FW

    Or 339 deploy contracts FW

    빠른 출금을 위한 컨트랙트 추가 및 배포 구현 완료하였습니다. 확인 부탁드립니다. 구현 내용은 12/12 세미나에서 말씀드린 내용과 완전히 동일하며, 수정 내용을 살펴보시고 궁금한 점이 있으시면 언제든 코멘트를 부탁드리겠습니다.

    commit log

    add contracts for fast-withdraw](https://github.com/Onther-Tech/tokamak-optimism-v2/pull/54/commits/29211d011c47d30cba274deb236540769ae60851) add contracts for fast-withdraw in tokamak/contracts(https://github.com/Onther-Tech/tokamak-optimism-v2/pull/54/commits/10801e672ebbb7de77652f11c3ccf11a39a1e681) clean up(https://github.com/Onther-Tech/tokamak-optimism-v2/pull/54/commits/f4b7cbcb28c05254bff142c93a22de8cdd802324) add test for L2BillingContracts(https://github.com/Onther-Tech/tokamak-optimism-v2/pull/54/commits/27565d2679e186648feacea2e49f55ddae853740) add test for L1CrossDomainMessengerFast(https://github.com/Onther-Tech/tokamak-optimism-v2/pull/54/commits/36cf56b49f87df19f6dbffe76ed7390b82df904b) add tokamak_deployer(https://github.com/Onther-Tech/tokamak-optimism-v2/pull/54/commits/c4c44ee509f201b09560ee5dc43dc20024716b65) clean up & disable typechain(https://github.com/Onther-Tech/tokamak-optimism-v2/pull/54/commits/b85025ea8d441287422e92663a26b5bea762a075) implement deploy script: L1CrossDomainMessengerFast, L1Liqui…(https://github.com/Onther-Tech/tokamak-optimism-v2/pull/54/commits/b6f74c8104cbf34aefb80dde86f795137b6be92d) Fix CALL_EXCEPTION error(https://github.com/Onther-Tech/tokamak-optimism-v2/pull/54/commits/a4790d6f62763f5715061eabe4158c5bfd957ba8) deploy ERC20 in L1/L2 & deploy BillingContract(https://github.com/Onther-Tech/tokamak-optimism-v2/pull/54/commits/caa65a651ab5908b1f197dae4a0b41bcdd26c937) serve addreses of deployed contract(https://github.com/Onther-Tech/tokamak-optimism-v2/pull/54/commits/6ce021745ee2e2604f1cb7477df570bd2f8559ef) change list of deployed token contract(https://github.com/Onther-Tech/tokamak-optimism-v2/pull/54/commits/88741c14f8303858fd2d45a642444094322f90fa) get network env in deploy/004-L2ERC20.deploy.ts(https://github.com/Onther-Tech/tokamak-optimism-v2/pull/54/commits/4fe60b3c4381cfa5378fd12fae4358d7e43ed23e) clean up(https://github.com/Onther-Tech/tokamak-optimism-v2/pull/54/commits/ab3f6798dfbb68e63e7aed5a0e6c1b4eafe6644e) refactoring packages(https://github.com/Onther-Tech/tokamak-optimism-v2/pull/54/commits/9f9a9cb890362f0b1376224e9bbff93cbf50b83e)

  • Or 244 apply feedback

    Or 244 apply feedback

    fee token PoC 피드백 반영하였습니다. 확인 부탁드립니다.

    • L2 토큰 심볼 변경: TOKAMAK -> TON
    • deploy script 15번 수정: hardhat flag에 따라 L1 Token 컨트랙트 배포 결정
    • L2TokamakFee 필드명 수정: L2TokamakFee -> ERC20L2Fee
    • 예제 코드 간소화 (예제 코드는 OR-244 브랜치를 feature/fee-token에 merge하고 나서 tokamak-optimism-example 레포지토리에 이동할 예정입니다.)
  • Or 215 fix fee token example

    Or 215 fix fee token example

    fee token 관련 example 코드의 버그를 수정하고 integration-tests에서 tokamak fee 테스트 코드를 추가하였습니다.

    • register fee token: examples/reigster-fee-token
    • send transaction: examples/fee-token-sendtx
    • tokamak fee test code: integration-tests/test/tokamak-fee-payment.spec.ts

    현재 integration-tests에서 withdrawTOKAMAK 테스트는 주석처리되어 있습니다. finalize 시 CTC/SCC 컨트랙트 call에서 오류가 있어 살펴보는 중입니다. 오류가 해결되면 추가하여 push하겠습니다.

  • OR-339 deploy contracts FW

    OR-339 deploy contracts FW

    빠른 출금을 위한 컨트랙트 추가 및 배포 구현 완료하였습니다. 확인 부탁드립니다.

    구현 내용은 12/12 세미나에서 말씀드린 내용과 완전히 동일하며, 수정 내용을 살펴보시고 궁금한 점이 있으시면 언제든 코멘트를 부탁드리겠습니다.

    해당 PR에서는 PR 목적에 맞는 코드 수정 내용만을 확인할 수 있도록 main -> feature/fast-withraw 로 변경 사항을 머지하였습니다. (pull request) 가이드 해주셔서 감사합니다. @harryoh

    commit log

    add contracts for fast-withdraw (https://github.com/Onther-Tech/tokamak-optimism-v2/commit/29211d011c47d30cba274deb236540769ae60851) add contracts for fast-withdraw in tokamak/contracts (https://github.com/Onther-Tech/tokamak-optimism-v2/commit/10801e672ebbb7de77652f11c3ccf11a39a1e681) clean up (https://github.com/Onther-Tech/tokamak-optimism-v2/commit/f4b7cbcb28c05254bff142c93a22de8cdd802324) add test for L2BillingContracts (https://github.com/Onther-Tech/tokamak-optimism-v2/commit/27565d2679e186648feacea2e49f55ddae853740) add test for L1CrossDomainMessengerFast (https://github.com/Onther-Tech/tokamak-optimism-v2/commit/36cf56b49f87df19f6dbffe76ed7390b82df904b) add tokamak_deployer (https://github.com/Onther-Tech/tokamak-optimism-v2/commit/c4c44ee509f201b09560ee5dc43dc20024716b65) clean up & disable typechain (https://github.com/Onther-Tech/tokamak-optimism-v2/commit/b85025ea8d441287422e92663a26b5bea762a075) implement deploy script: L1CrossDomainMessengerFast, L1LiquidityPool, L2LiquidityPool (included proxy) (https://github.com/Onther-Tech/tokamak-optimism-v2/commit/b6f74c8104cbf34aefb80dde86f795137b6be92d) Fix CALL_EXCEPTION error (https://github.com/Onther-Tech/tokamak-optimism-v2/commit/a4790d6f62763f5715061eabe4158c5bfd957ba8) deploy ERC20 in L1/L2 & deploy BillingContract (https://github.com/Onther-Tech/tokamak-optimism-v2/commit/caa65a651ab5908b1f197dae4a0b41bcdd26c937) serve addreses of deployed contract (https://github.com/Onther-Tech/tokamak-optimism-v2/commit/6ce021745ee2e2604f1cb7477df570bd2f8559ef) change list of deployed token contract (https://github.com/Onther-Tech/tokamak-optimism-v2/commit/88741c14f8303858fd2d45a642444094322f90fa) get network env in deploy/004-L2ERC20.deploy.ts (https://github.com/Onther-Tech/tokamak-optimism-v2/commit/4fe60b3c4381cfa5378fd12fae4358d7e43ed23e) clean up (https://github.com/Onther-Tech/tokamak-optimism-v2/commit/ab3f6798dfbb68e63e7aed5a0e6c1b4eafe6644e) refactoring packages (https://github.com/Onther-Tech/tokamak-optimism-v2/commit/9f9a9cb890362f0b1376224e9bbff93cbf50b83e)

Run The World. Command aggregator output. Define many services watch them in one place.

Run The World. Command aggregator output. Define many services watch them in one place.

Feb 2, 2022
Gountries provides: Countries (ISO-3166-1), Country Subdivisions(ISO-3166-2), Currencies (ISO 4217), Geo Coordinates(ISO-6709) as well as translations, country borders and other stuff exposed as struct data.

gountries Inspired by the countries gem for ruby. Countries (ISO-3166-1), Country Subdivisions(ISO-3166-2), Currencies (ISO 4217), Geo Coordinates(ISO

Dec 22, 2022
go.pipeline is a utility library that imitates unix pipeline. It simplifies chaining unix commands (and other stuff) in Go.

go.pipeline go.pipeline is a utility library that imitates unix pipeline. It simplifies chaining unix commands (and other stuff) in Go. Installation g

May 8, 2022
Yet another Go REPL that works nicely. Featured with line editing, code completion, and more.
  Yet another Go REPL that works nicely. Featured with line editing, code completion, and more.

gore Yet another Go REPL that works nicely. Featured with line editing, code completion, and more. (Screencast taken with cho45/KeyCast) Usage gore Af

Jan 7, 2023
Go-turing-i2c-cmdline - Controlling the i2c management bus of the turing pi with i2c works fine

go-turing-i2c-cmdline What is it? Controlling the i2c management bus of the turi

Jan 24, 2022
Works with HashiCorp HCL. Allows to append the input file with blocks and attributes from the template file

About hclmergetool Works with HashiCorp HCL. Allows to append the input file with blocks and attributes from the template file Installation Binary Rel

Feb 6, 2022
Ghdl - A much more convenient way to download GitHub release binaries on the command line, works on Win & Unix-like systems

ghdl Memorize ghdl as github download ghdl is a fast and simple program (and als

Oct 12, 2022
📖 A little book on Ethereum Development with Go (golang)
📖 A little book on Ethereum Development with Go (golang)

Ethereum Development with Go A little book on Ethereum Development with Go (golang) Online https://goethereumbook.org E-book The e-book is avaiable in

Dec 29, 2022
Hexagonal architecture paradigms, such as dividing adapters into primary (driver) and secondary (driven)Hexagonal architecture paradigms, such as dividing adapters into primary (driver) and secondary (driven)

authorizer Architecture In this project, I tried to apply hexagonal architecture paradigms, such as dividing adapters into primary (driver) and second

Dec 7, 2021
Monorepo implementing the Optimistic Ethereum protocol
Monorepo implementing the Optimistic Ethereum protocol

The Optimism Monorepo TL;DR This is the primary place where Optimism works on stuff related to Optimistic Ethereum. Documentation Extensive documentat

Sep 18, 2022
Go-backend-test - Creating backend stuff & openid connect authentication stuff in golang

Go Backend Coding Practice This is my practice repo to learn about creating back

Feb 5, 2022
Ethereum go-ethereum - Official Golang implementation of the Ethereum protocol

Go Ethereum Official Golang implementation of the Ethereum protocol. Automated b

Feb 17, 2022
L2 D O - The Optimism Monorepo With Golang
L2 D O - The Optimism Monorepo With Golang

The Optimism Monorepo TL;DR This is where Optimism gets built. Documentation Ext

Jan 19, 2022
A simple daemon which will watch files on your filesystem, mirror them to MFS, automatically update related pins, and update related IPNS keys.
A simple daemon which will watch files on your filesystem, mirror them to MFS, automatically update related pins, and update related IPNS keys.

ipfs-sync is a simple daemon which will watch files on your filesystem, mirror them to MFS, automatically update related pins, and update related IPNS keys, so you can always access your directories from the same address. You can use it to sync your documents, photos, videos, or even a website!

Dec 30, 2022
Optimistic rollup tech, minimal and generic.

Opti Optimistic rollup tech, minimal and generic. VERY experimental, just exploratory code, question is: 1:1 EVM rollup with interactive fraud proof p

Aug 30, 2022
This is a brief tutorial I created for a couple friends to show how to do some stuff in go and ethereum. Feel free to do any PRs with suggestions

golang-tutorial This is a brief tutorial I created for a couple friends to show how to do some stuff in Go and Ethereum. Milestones Create the environ

Aug 29, 2022
Go-ethlibs - A sandbox of helpers related to interacting with Ethereum nodes

go-ethlibs: Go Ethereum Libraries A sandbox of helpers related to interacting wi

Jan 30, 2022
A simple memory database. It's nothing but a homework to learn primary datastruct of golang.

A simple memory database. It's nothing but a homework to learn primary datastruct of golang.

Nov 8, 2021
Automatically map wacom tablets area to your primary X output.

xsetwacom-auto Simple CLI tool that uses xsetwacom and xrandr to: map the to one monitor set the tablet area to match the aspect ratio of the monitor

Dec 7, 2021
Kiteco-public - Primary Kite repo — private bits replaced with XXXXXXX

This is a public version of the main Kite repo The main Kite repo (originally kiteco/kiteco) was intended for private use. It has been lightly adapted

Dec 30, 2022