Optimism

Optimism 就是以太坊,而且规模更大。「Optimism is Ethereum, scaled.」

Github星跟踪图

Table of Contents

What is Optimism?

Optimism is a project dedicated to scaling Ethereum's technology and expanding its ability to coordinate people from across the world to build effective decentralized economies and governance systems. The Optimism Collective builds open-source software for running L2 blockchains and aims to address key governance and economic challenges in the wider cryptocurrency ecosystem. Optimism operates on the principle of impact=profit, the idea that individuals who positively impact the Collective should be proportionally rewarded with profit. Change the incentives and you change the world.

In this repository, you'll find numerous core components of the OP Stack, the decentralized software stack maintained by the Optimism Collective that powers Optimism and forms the backbone of blockchains like OP Mainnet and Base. Designed to be "aggressively open source," the OP Stack encourages you to explore, modify, extend, and test the code as needed. Although not all elements of the OP Stack are contained here, many of its essential components can be found within this repository. By collaborating on free, open software and shared standards, the Optimism Collective aims to prevent siloed software development and rapidly accelerate the development of the Ethereum ecosystem. Come contribute, build the future, and redefine power, together.

Documentation

Specification

If you're interested in the technical details of how Optimism works, refer to the Optimism Protocol Specification.

Community

General discussion happens most frequently on the Optimism discord.
Governance discussion can also be found on the Optimism Governance Forum.

Contributing

Read through CONTRIBUTING.md for a general overview of the contributing process for this repository.
Use the Developer Quick Start to get your development environment set up to start working on the Optimism Monorepo.
Then check out the list of Good First Issues to find something fun to work on!
Typo fixes are welcome; however, please create a single commit with all of the typo fixes & batch as many fixes together in a PR as possible. Spammy PRs will be closed.

Security Policy and Vulnerability Reporting

Please refer to the canonical Security Policy document for detailed information about how to report vulnerabilities in this codebase.
Bounty hunters are encouraged to check out the Optimism Immunefi bug bounty program.
The Optimism Immunefi program offers up to $2,000,042 for in-scope critical vulnerabilities.

Directory Structure

Development and Release Process

Overview

Please read this section if you're planning to fork this repository, or make frequent PRs into this repository.

Production Releases

Production releases are always tags, versioned as <component-name>/v<semver>.
For example, an op-node release might be versioned as op-node/v1.1.2, and smart contract releases might be versioned as op-contracts/v1.0.0.
Release candidates are versioned in the format op-node/v1.1.2-rc.1.
We always start with rc.1 rather than rc.

For contract releases, refer to the GitHub release notes for a given release, which will list the specific contracts being released—not all contracts are considered production ready within a release, and many are under active development.

Tags of the form v<semver>, such as v1.1.4, indicate releases of all Go code only, and DO NOT include smart contracts.
This naming scheme is required by Golang.
In the above list, this means these v<semver releases contain all op-* components, and exclude all contracts-* components.

op-geth embeds upstream geth’s version inside it’s own version as follows: vMAJOR.GETH_MAJOR GETH_MINOR GETH_PATCH.PATCH.
Basically, geth’s version is our minor version.
For example if geth is at v1.12.0, the corresponding op-geth version would be v1.101200.0.
Note that we pad out to three characters for the geth minor version and two characters for the geth patch version.
Since we cannot left-pad with zeroes, the geth major version is not padded.

See the Node Software Releases page of the documentation for more information about releases for the latest node components.
The full set of components that have releases are:

  • chain-mon
  • ci-builder
  • ci-builder
  • indexer
  • op-batcher
  • op-contracts
  • op-challenger
  • op-heartbeat
  • op-node
  • op-proposer
  • op-ufm
  • proxyd
  • ufm-metamask

All other components and packages should be considered development components only and do not have releases.

Development branch

The primary development branch is develop.
develop contains the most up-to-date software that remains backwards compatible with the 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-bedrock/src are usually NOT considered backwards compatible.
Some exceptions to this rule exist for cases in which we absolutely must deploy some new contract after a tag 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 a feature branch.
Feature branches are typically used when there are conflicts between 2 projects touching the same code, to avoid conflicts from merging both into develop.

License

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

主要指标

概览
名称与所有者ethereum-optimism/optimism
主编程语言Go
编程语言 (语言数: 14)
平台
许可证MIT License
所有者活动
创建于2020-02-06 22:28:26
推送于2025-04-24 16:13:27
最后一次提交2023-06-29 13:58:49
发布数3465
最新版本名称v1.13.2 (发布于 2025-04-18 15:02:44)
第一版名称v0.1.0 (发布于 2021-01-07 09:25:22)
用户参与
星数6.1k
关注者数128
派生数3.5k
提交数20.5k
已启用问题?
问题数2382
打开的问题数482
拉请求数10038
打开的拉请求数73
关闭的拉请求数2821
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?